/* =====================================================================
   LỊCH BÁCH VIỆT — main.css
   Phong cách: giấy dó · mực nho · triện son. Tokens → components.
   ===================================================================== */

/* -------------------------------------------------- Design tokens */
:root {
	/* Màu nền giấy */
	--paper:        #E7DDC6;
	--paper-light:  #F0E8D4;
	--paper-strip:  #E1D6BC;
	--card:         #F5EEDD;
	--card-2:       #F3ECDA;
	--card-grad:    linear-gradient(160deg, #F5EEDD, #EFE6D0);
	--board-grad:   linear-gradient(165deg, #F6EFDF, #EFE7D2);

	/* Mực */
	--ink:      #211C17;
	--ink-2:    #5A4F44;
	--ink-3:    #857A6C;
	--ink-nav:  #4A4038;

	/* Accent */
	--son:        #A5382B;
	--jade:       #566B54;
	--rose:       #d98b7f;
	--rose-2:     #e0a99f;

	/* Nền tối */
	--dark-grad:  linear-gradient(160deg, #211C17, #2c241c);
	--on-dark:    #EDE4CE;
	--on-dark-2:  #F3ECDA;
	--bezel:      #100d0a;

	/* Hairline */
	--line-08:  rgba(34,28,23,.08);
	--line-10:  rgba(34,28,23,.10);
	--line-12:  rgba(34,28,23,.12);
	--line-14:  rgba(34,28,23,.14);
	--line-16:  rgba(34,28,23,.16);
	--line-18:  rgba(34,28,23,.18);
	--line-22:  rgba(34,28,23,.22);

	/* Bóng */
	--sh-board: 0 26px 60px -34px rgba(40,28,12,.5);
	--sh-tool:  0 8px 22px -18px rgba(40,28,12,.5);
	--sh-cta:   0 14px 30px -14px rgba(33,28,23,.8);
	--sh-phone: 0 44px 90px -30px rgba(40,28,12,.7), 0 0 0 1.5px rgba(0,0,0,.4);
	--sh-son:   0 30px 60px -30px rgba(165,56,43,.7);

	/* Font */
	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--sans:  'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--container: 1200px;
	--gutter: 40px;
}

/* -------------------------------------------------- Reset / base */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--son); }
::selection { background: var(--son); color: var(--on-dark-2); }

html { scroll-behavior: smooth; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

/* Skip link — hiện khi focus bằng bàn phím */
.skip-link:focus {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 100;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 18px;
	background: var(--ink);
	color: var(--on-dark-2);
	border-radius: 12px;
	font-weight: 600;
	text-decoration: none;
}

/* Focus bàn phím — vòng son đồng nhất toàn theme */
:focus-visible {
	outline: 2px solid var(--son);
	outline-offset: 3px;
}

/* Anchor không bị sticky header che */
#lich, #ungdung, #widget, #macos, #sukien, #tai { scroll-margin-top: 86px; }

/* -------------------------------------------------- Layout helpers */
.site-bg {
	position: relative;
	width: 100%;
	overflow-x: hidden;
	background: radial-gradient(120% 60% at 15% 0%, var(--paper-light), var(--paper) 55%), var(--paper);
}
.site-bg__glow {
	position: absolute;
	top: -80px; right: -120px;
	width: 640px; height: 640px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(120,96,60,.10), transparent 62%);
	pointer-events: none;
}

.container {
	position: relative;
	z-index: 2;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section { padding-top: 74px; padding-bottom: 40px; }
.section--tight { padding-bottom: 20px; }

.section-head {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 34px;
}
.section-head__lead {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--ink-2);
	margin: 16px 0 0;
}
.section-foot { text-align: center; margin-top: 30px; }

/* -------------------------------------------------- Typography */
.display-1 {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(38px, 2.6vw + 22px, 60px); /* fluid: 38 → 60px */
	line-height: 1.06;
	letter-spacing: -.01em;
	color: var(--ink);
	margin: 0;
}
.display-2 {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(30px, 1.5vw + 21px, 42px); /* fluid: 30 → 42px */
	line-height: 1.12;
	color: var(--ink);
	margin: 14px 0 0;
}
.display-1 em, .display-2 em { font-style: italic; font-weight: 500; }
.is-son { color: var(--son) !important; }
.is-jade { color: var(--jade) !important; }
.is-light { color: var(--on-dark-2); }
.is-rose { color: var(--rose-2) !important; }

.lead {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-2);
}

.eyebrow {
	display: inline-block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--son);
}
.eyebrow--muted { color: var(--ink-3); letter-spacing: .14em; font-size: 11px; }
.eyebrow--rose { color: var(--rose); }
.eyebrow--pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 14px;
	border: 1px solid var(--line-16);
	border-radius: 24px;
	background: rgba(243,236,218,.5);
	letter-spacing: .14em;
}

/* -------------------------------------------------- Buttons / links */
.btn-store {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	background: var(--ink);
	color: var(--on-dark-2);
	text-decoration: none;
	border-radius: 16px;
	box-shadow: var(--sh-cta);
	transition: transform .18s ease, box-shadow .18s ease;
}
.btn-store:hover { transform: translateY(-2px); }
.btn-store__icon { color: var(--on-dark-2); }
.btn-store--lg { padding: 15px 24px; }
.btn-store--sm {
	gap: 7px;
	padding: 10px 18px;
	border-radius: 24px;
	box-shadow: 0 8px 20px -10px rgba(33,28,23,.7);
}
.btn-store--sm .btn-store__label { font-weight: 500; font-size: 14px; }
.btn-store__stack { text-align: left; line-height: 1.1; }
.btn-store__small { display: block; font-size: 10px; opacity: .8; }
.btn-store__big { font-weight: 600; font-size: 17px; }

/* Biến thể ghost — nền trong, viền mực (nút phụ, vd macOS trên nav) */
.btn-store--ghost {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line-22);
	box-shadow: none;
}
.btn-store--ghost .btn-store__icon { color: var(--ink); }
.btn-store--ghost:hover { background: rgba(33,28,23,.05); }

.link-underline {
	display: inline-block;
	font-weight: 600;
	font-size: 15px;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1.5px solid var(--son);
	padding-bottom: 3px;
	transition: color .18s ease;
}
.link-underline:hover { color: var(--son); }

.chip {
	display: inline-flex;
	align-items: center;
	font-weight: 500;
	font-size: 13px;
	border-radius: 22px;
	padding: 9px 20px;
	background: var(--card-2);
	border: 1px solid var(--line-14);
	color: var(--ink-nav);
	cursor: pointer;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.chip--son {
	font-weight: 600;
	font-size: 12.5px;
	padding: 8px 14px;
	border-radius: 20px;
	background: rgba(165,56,43,.1);
	border: none;
	color: var(--son);
}
.chip--filter { font-family: var(--sans); }
.chip--filter.is-active,
.chip--filter:hover { background: var(--son); color: var(--on-dark-2); border-color: transparent; }
.chip--filter.is-active { font-weight: 600; }

.hairline { flex: 1; height: 1px; background: var(--line-12); }

/* -------------------------------------------------- Header / nav */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
	background: rgba(231,221,198,.86);
	backdrop-filter: saturate(1.2) blur(10px);
	box-shadow: 0 8px 24px -20px rgba(40,28,12,.6);
}
.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 26px;
	padding-bottom: 26px;
}
/* Nút tải trong nav (iOS + macOS) */
.site-nav__cta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

/* Nút hamburger — chỉ hiện trên mobile */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px; height: 42px;
	padding: 10px;
	background: transparent;
	border: 1px solid var(--line-18);
	border-radius: 12px;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.brand {
	display: flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
}
.brand__mark {
	width: 44px; height: 44px;
	border-radius: 11px;
	background: var(--son);
	color: var(--on-dark-2);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px -6px rgba(165,56,43,.7), inset 0 0 0 1px rgba(255,255,255,.14);
	flex: none;
}
.brand__logo { width: 48px; height: 48px; object-fit: contain; flex: none; display: block; }
.brand__text { line-height: 1.05; }
.brand__name {
	display: block;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: .02em;
	color: var(--ink);
}
.brand__tag {
	display: block;
	font-weight: 500;
	font-size: 10px;
	letter-spacing: .2em;
	color: var(--ink-3);
}
.brand--sm .brand__mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: none; }
.brand--sm .brand__logo { width: 36px; height: 36px; }
.brand--sm .brand__name { font-size: 15px; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.nav-menu {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-menu a {
	font-weight: 500;
	font-size: 14px;
	color: var(--ink-nav);
	text-decoration: none;
	transition: color .18s ease;
}
.nav-menu a:hover { color: var(--son); }

/* -------------------------------------------------- Hero */
.hero {
	display: grid;
	grid-template-columns: 1.06fr .94fr;
	gap: 48px;
	align-items: center;
	padding-top: 52px;
	padding-bottom: 40px;
}
.hero__title { margin-top: 24px; }
.hero__lead { max-width: 460px; margin: 22px 0 0; }
.hero__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 34px;
}
.hero__points {
	display: flex;
	gap: 26px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	font-weight: 500;
	font-size: 13px;
	color: var(--ink-3);
}

.hero__device { position: relative; display: flex; justify-content: center; }
.hero__halo {
	position: absolute;
	top: 20px; right: 34px;
	width: 118px; height: 118px;
	border-radius: 50%;
	border: 1px solid rgba(165,56,43,.3);
	display: flex; align-items: center; justify-content: center;
	transform: rotate(-6deg);
	color: rgba(165,56,43,.16);
	pointer-events: none;
}

/* -------------------------------------------------- Feature strip */
.feature-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	border-top: 1px solid var(--line-14);
	border-bottom: 1px solid var(--line-14);
	padding: 34px 0;
	margin-top: 26px;
}
.feature { padding: 0 6px; }
.feature__icon {
	width: 46px; height: 46px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 14px;
}
.feature__icon--son { background: rgba(165,56,43,.1); color: var(--son); }
.feature__icon--jade { background: rgba(86,107,84,.14); color: var(--jade); }
.feature__title { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); margin: 0; }
.feature__desc { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 7px 0 0; }

/* -------------------------------------------------- Calendar board */
.board {
	max-width: 960px;
	margin: 0 auto;
	background: var(--board-grad);
	border: 1px solid var(--line-12);
	border-radius: 22px;
	padding: 22px 24px 26px;
	box-shadow: var(--sh-board);
}
.board__head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line-14);
}
.board__month { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; color: var(--ink); }
.board__year { font-size: 18px; color: var(--ink-3); }
.board__nav { display: flex; align-items: center; gap: 8px; }
.board__arrow {
	width: 34px; height: 34px;
	border-radius: 10px;
	border: 1px solid var(--line-18);
	background: transparent;
	display: flex; align-items: center; justify-content: center;
	color: var(--ink-2);
	cursor: pointer;
	transition: background .18s ease;
}
.board__arrow:hover { background: rgba(34,28,23,.05); }

.board.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s ease; }
.board__canchi-label { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; }

.canchi {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background: var(--line-16);
	border: 1px solid var(--line-22);
	border-radius: 16px;
	overflow: hidden;
}
.canchi__cell { background: var(--card-2); padding: 12px 8px; text-align: center; }
.canchi__label { font-weight: 600; font-size: 9.5px; letter-spacing: .1em; color: var(--ink-3); }
.canchi__value { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; color: var(--ink); margin-top: 5px; }
.canchi__sub { font-weight: 500; font-size: 10px; color: var(--ink-3); margin-top: 3px; }

.weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin: 16px 0 8px;
	font-weight: 600; font-size: 11.5px;
	color: var(--ink-3);
	text-align: center;
}

.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}
.cal-cell {
	position: relative;
	min-height: 62px;
	border-radius: 11px;
	background: var(--card);
	border: 1px solid var(--line-22);
	padding: 8px 10px;
}
.cal-cell--out { background: rgba(34,28,23,.02); border-color: var(--line-12); opacity: .55; }
.cal-cell--today { background: rgba(165,56,43,.1); border: 2px solid var(--son); }

/* Ô ngày bấm được → xem can chi ngày đó */
.cal-cell[data-day] {
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cal-cell[data-day]:hover {
	border-color: rgba(34,28,23,.45);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px -12px rgba(40,28,12,.5);
}

/* Vòng viền mực cho ô đang chọn — dùng ::after nên KHÔNG bị :hover đè,
   hiện ngay lúc bấm dù con trỏ còn nằm trên ô. Kèm hiệu ứng "pop". */
.cal-cell--selected::after {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid var(--ink);
	border-radius: 14px;
	pointer-events: none;
	animation: lbv-day-pick .3s ease;
}
/* Hôm nay đã có viền son sẵn → không vẽ thêm vòng mực */
.cal-cell--today.cal-cell--selected::after { content: none; }

@keyframes lbv-day-pick {
	0%   { opacity: 0; transform: scale(.9); }
	55%  { opacity: 1; transform: scale(1.04); }
	100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.cal-cell--selected::after { animation: none; }
}

.board__canchi-hint {
	font-weight: 500;
	font-size: 11px;
	color: var(--ink-3);
	white-space: nowrap;
}
.cal-cell__solar { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); }
.cal-cell--today .cal-cell__solar { font-weight: 500; }
.cal-cell__solar.is-son { color: var(--son); }
.cal-cell__today { font-weight: 600; font-size: 9px; letter-spacing: .08em; color: var(--son); margin-top: 1px; }
.cal-cell__lunar {
	position: absolute;
	bottom: 7px; right: 9px;
	font-weight: 500; font-size: 10.5px;
	color: var(--ink-3);
}
.cal-cell__lunar.is-son { font-weight: 600; color: var(--son); }
.cal-cell__lunar.is-jade { font-weight: 600; color: var(--jade); }
.cal-cell__dot {
	position: absolute;
	top: 11px; right: 12px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--son);
}
.cal-badge {
	display: inline-block;
	margin-top: 2px;
	font-weight: 600; font-size: 9px;
	padding: 1px 6px;
	border-radius: 20px;
}
.cal-badge--newmoon { color: var(--son); background: rgba(165,56,43,.12); }
.cal-badge--fullmoon { color: var(--jade); background: rgba(86,107,84,.14); }

.cal-legend {
	display: flex;
	gap: 22px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 24px;
	font-weight: 500; font-size: 12px;
	color: var(--ink-3);
}
.cal-legend__item { display: flex; align-items: center; gap: 6px; }
.cal-legend__box { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--son); background: rgba(165,56,43,.09); }
.cal-legend__dot { width: 8px; height: 8px; border-radius: 50%; }
.cal-legend__dot--son { background: var(--son); }
.cal-legend__dot--jade { background: var(--jade); }
.cal-legend__son { font-weight: 500; color: var(--son); }

/* -------------------------------------------------- Bands */
.band-paper {
	position: relative;
	z-index: 2;
	background: var(--paper-strip);
	border-top: 1px solid var(--line-10);
	border-bottom: 1px solid var(--line-10);
	padding: 76px 0;
	margin-top: 44px;
}

/* -------------------------------------------------- Tools grid */
.tool-filters {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 26px 0 30px;
}
.tool-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.tool-card {
	position: relative;
	background: var(--card);
	border: 1px solid var(--line-10);
	border-radius: 20px;
	padding: 24px 18px;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
	box-shadow: var(--sh-tool);
	transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(40,28,12,.55); }
a.tool-card { text-decoration: none; color: inherit; cursor: pointer; }
.tool-card.is-hidden { display: none; }
.tool-card__icon {
	width: 58px; height: 58px;
	border-radius: 16px;
	background: rgba(165,56,43,.09);
	display: flex; align-items: center; justify-content: center;
	color: var(--son);
}
.tool-card__text { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--son); }
.tool-card__name { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink); }

/* -------------------------------------------------- Widgets dark band */
.band-dark {
	position: relative;
	z-index: 2;
	background: var(--dark-grad);
	color: var(--on-dark);
	padding: 78px 0;
	overflow: hidden;
}
.band-dark__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	flex-wrap: wrap; gap: 20px;
	margin-bottom: 38px;
}
.band-dark__intro { max-width: 560px; }
.band-dark__lead { font-size: 16px; line-height: 1.7; color: rgba(237,228,206,.72); margin: 16px 0 0; }
.badge-soft {
	font-weight: 500; font-size: 12.5px;
	color: rgba(237,228,206,.7);
	border: 1px solid rgba(237,228,206,.22);
	background: rgba(237,228,206,.05);
	padding: 8px 16px;
	border-radius: 22px;
}
.widget-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	justify-items: center;
	max-width: 1000px;
	margin: 0 auto;
}
.widget-col { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.widget-col__label { font-weight: 500; font-size: 13px; color: rgba(237,228,206,.7); text-align: center; max-width: 240px; }

/* -------------------------------------------------- Khung thiết bị (dùng chung) */
.iphone-shot {
	position: relative;
	width: 100%;
	max-width: 250px;
	aspect-ratio: 1320 / 2868;
	border-radius: 42px;
	background: var(--bezel);
	padding: 8px;
	box-shadow: var(--sh-phone);
}
.iphone-shot img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 34px;
	display: block;
}
.iphone-shot__ph {
	position: absolute; inset: 8px;
	border-radius: 34px;
	display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 20px;
	background: rgba(237,228,206,.06);
	color: rgba(237,228,206,.55);
	font-weight: 500; font-size: 13px;
}
.iphone-shot--sm { max-width: 210px; border-radius: 36px; }
.iphone-shot--hero { max-width: 300px; flex: none; }

.mac-shot {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--line-12);
	box-shadow: 0 30px 60px -32px rgba(40,28,12,.55);
	background: var(--card);
}
.mac-shot img { width: 100%; display: block; }

/* Hàng ảnh + chú thích */
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.shot__cap {
	font-weight: 500; font-size: 13.5px;
	color: var(--ink-2);
	text-align: center;
	max-width: 260px;
	line-height: 1.5;
}
.shot-row--phones {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	align-items: start;
	justify-items: center;
}

/* -------------------------------------------------- Events */
.event-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.event-card {
	background: var(--card-grad);
	border: 1px solid var(--line-12);
	border-radius: 20px;
	padding: 24px;
	display: flex; gap: 18px; align-items: flex-start;
	transition: transform .18s ease, box-shadow .18s ease;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--sh-tool); }
.event-card__date { text-align: center; flex: none; }
.event-card__day { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; color: var(--son); }
.event-card__month { font-weight: 600; font-size: 10px; letter-spacing: .1em; color: var(--ink-3); margin-top: 2px; }
.event-card__body { min-width: 0; }
.event-card__title { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-card__desc { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin: 5px 0 0; }
.event-card__count { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 12.5px; color: var(--son); }
.event-badge {
	font-family: var(--sans);
	font-weight: 700; font-size: 9px; letter-spacing: .04em;
	padding: 2px 6px; border-radius: 5px;
	flex: none;
}
.event-badge--lunar { color: var(--son); background: rgba(165,56,43,.12); }
.event-badge--solar { color: var(--jade); background: rgba(86,107,84,.14); }

/* -------------------------------------------------- macOS (thanh menu) */
.mac {
	display: grid;
	grid-template-columns: 1.02fr .98fr;
	gap: 48px;
	align-items: center;
}
.mac__title { margin-top: 12px; }
.mac__lead { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); max-width: 460px; margin: 18px 0 0; }
.mac__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.mac__points li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--ink); }
.mac__check {
	width: 22px; height: 22px; border-radius: 50%;
	background: rgba(86,107,84,.16); color: var(--jade);
	display: flex; align-items: center; justify-content: center; flex: none;
}
.mac__actions { margin-top: 28px; }

/* Ảnh chụp macOS thật — 1 cửa sổ gọn (bên trái) */
.mac__media { display: flex; justify-content: center; }
.mac-window {
	margin: 0;
	width: 100%;
	max-width: 380px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--line-12);
	box-shadow: 0 34px 64px -34px rgba(40,28,12,.55);
	background: var(--card);
}
.mac-window img { width: 100%; height: auto; display: block; }

/* -------------------------------------------------- CTA */
.cta {
	position: relative;
	overflow: hidden;
	background: var(--son);
	border-radius: 28px;
	padding: 56px 48px;
	text-align: center;
	box-shadow: var(--sh-son);
	color: var(--card);
}
.cta__decor { position: absolute; color: #fff; pointer-events: none; }
.cta__decor--moon { top: -30px; left: -20px; opacity: .1; }
.cta__decor--compass { bottom: -50px; right: -30px; opacity: .08; }
.cta__title {
	position: relative;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(30px, 1.3vw + 26px, 40px);
	line-height: 1.15;
	color: var(--card);
	margin: 0;
}
.cta__title em { font-style: italic; font-weight: 500; }
.cta__lead {
	position: relative;
	font-size: 16px; line-height: 1.6;
	color: rgba(245,238,221,.85);
	max-width: 420px;
	margin: 16px auto 0;
}
.cta__actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* -------------------------------------------------- Footer */
.site-footer { position: relative; z-index: 2; }
.site-footer__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px;
	padding-top: 40px; padding-bottom: 40px;
	border-top: 1px solid var(--line-14);
}
.footer-menu, .site-footer .nav-menu {
	display: flex; gap: 26px;
	list-style: none; margin: 0; padding: 0;
	font-weight: 500; font-size: 13px;
}
.footer-menu a, .site-footer .nav-menu a { color: var(--ink-3); text-decoration: none; }
.footer-menu a:hover, .site-footer .nav-menu a:hover { color: var(--son); }
.site-footer__copy { font-size: 12px; color: var(--ink-3); }

/* -------------------------------------------------- Article (single/page/blog) */
.page-hero { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.page-hero__desc { font-size: 16px; color: var(--ink-2); margin-top: 12px; }

.article { max-width: 760px; margin: 0 auto; }
.article__header { text-align: center; margin-bottom: 28px; }
.article__title { margin: 10px 0 0; }
.article__meta {
	display: flex; gap: 14px; justify-content: center;
	margin-top: 14px;
	font-size: 13px; color: var(--ink-3);
}
.article__thumb {
	margin: 0 0 32px;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--line-12);
	box-shadow: var(--sh-tool);
}
.article__tags { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.article__tags a {
	font-size: 12px;
	background: var(--card-2);
	border: 1px solid var(--line-14);
	color: var(--ink-2);
	padding: 5px 12px; border-radius: 20px;
	text-decoration: none;
}

.prose { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3, .prose h4 {
	font-family: var(--serif); font-weight: 500; color: var(--ink);
	line-height: 1.25; margin-top: 1.8em;
}
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.4em 0; }
.prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--son);
	color: var(--ink);
	font-family: var(--serif); font-style: italic; font-size: 20px;
}
.prose code {
	background: var(--card-2);
	border: 1px solid var(--line-12);
	border-radius: 6px;
	padding: 2px 6px; font-size: .9em;
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }

.post-nav {
	max-width: 760px; margin: 40px auto 0;
	display: flex; justify-content: space-between; gap: 20px;
	padding-top: 24px; border-top: 1px solid var(--line-14);
	font-weight: 500; font-size: 14px;
}
.post-nav a { color: var(--ink); text-decoration: none; }
.post-nav a:hover { color: var(--son); }
.post-nav__next { text-align: right; margin-left: auto; }

/* Blog list */
.post-list { display: grid; gap: 40px; max-width: 820px; margin: 0 auto; }
.post-card {
	background: var(--card);
	border: 1px solid var(--line-12);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--sh-tool);
}
.post-card__thumb { display: block; }
.post-card__thumb img { width: 100%; object-fit: cover; max-height: 340px; }
.post-card__body { padding: 26px 28px 28px; }
.post-card__meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.post-card__meta a { color: inherit; text-decoration: none; }
.post-card__title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; margin: 10px 0 12px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--son); }
.post-card__excerpt { color: var(--ink-2); margin-bottom: 16px; }

.no-results { text-align: center; max-width: 560px; margin: 40px auto; }

/* Trang template Tiện Ích — nội dung khổ rộng, chữ thường vẫn dễ đọc */
.tienich-content { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.tienich-content > p { max-width: 720px; margin-left: auto; margin-right: auto; }
.tienich-content .tools-block { margin-top: 8px; }

/* Pagination */
.pagination { max-width: 820px; margin: 44px auto 0; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--line-18);
	color: var(--ink-2); text-decoration: none;
	font-weight: 500; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--son); color: var(--on-dark-2); border-color: transparent; }
.pagination a.page-numbers:hover { background: rgba(34,28,23,.05); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }
.search-form__field {
	flex: 1;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--line-18);
	background: var(--card);
	font: inherit;
	color: var(--ink);
}
.search-form__submit {
	padding: 12px 20px;
	border-radius: 12px;
	border: none;
	background: var(--ink);
	color: var(--on-dark-2);
	font-weight: 600; cursor: pointer;
}

/* Comments */
.comments-area { max-width: 760px; margin: 48px auto 0; }
.comments-title, .comment-reply-title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 24px;
	color: var(--ink);
}
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list ol.children { list-style: none; padding-left: 28px; }
.comment-list .comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--line-12);
	font-size: 15px;
	color: var(--ink-2);
}
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 14px; }
.comment-list .comment-metadata { font-size: 12px; }
.comment-list .comment-metadata a { color: var(--ink-3); text-decoration: none; }
.comment-list .fn { font-style: normal; font-weight: 600; color: var(--ink); }
.comment-list .reply a {
	font-size: 12.5px; font-weight: 600;
	color: var(--son); text-decoration: none;
}
.comment-form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--line-18);
	background: var(--card);
	color: var(--ink);
	font: inherit;
	margin-bottom: 14px;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .comment-submit,
.comment-form input[type="submit"] {
	padding: 13px 26px;
	border: none;
	border-radius: 14px;
	background: var(--ink);
	color: var(--on-dark-2);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	box-shadow: var(--sh-cta);
	transition: transform .18s ease;
}
.comment-form input[type="submit"]:hover { transform: translateY(-2px); }

/* -------------------------------------------------- Reveal khi cuộn (JS thêm class) */
.will-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s ease, transform .55s ease;
}
.will-reveal.is-revealed { opacity: 1; transform: none; }

/* -------------------------------------------------- Contact Form 7 (trang Liên hệ) */
.wpcf7 {
	max-width: 600px;
	margin: 8px auto 0;
}
.wpcf7-form p { margin: 0 0 18px; }
.wpcf7-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
	line-height: 1.5;
}
.wpcf7-form label br { display: none; }            /* bỏ <br> mặc định, dùng margin */
.wpcf7-form-control-wrap { display: block; margin-top: 7px; }

.wpcf7-form input.wpcf7-form-control:not(.wpcf7-submit),
.wpcf7-form textarea.wpcf7-form-control,
.wpcf7-form select.wpcf7-form-control {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--line-18);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	font: 400 15.5px/1.5 var(--sans);
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.wpcf7-form textarea.wpcf7-form-control { min-height: 150px; resize: vertical; }
.wpcf7-form .wpcf7-form-control::placeholder { color: var(--ink-3); }
.wpcf7-form input.wpcf7-form-control:not(.wpcf7-submit):focus,
.wpcf7-form textarea.wpcf7-form-control:focus,
.wpcf7-form select.wpcf7-form-control:focus {
	outline: none;
	border-color: var(--son);
	box-shadow: 0 0 0 3px rgba(165,56,43,.14);
}

.wpcf7-form .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center;
	width: auto;
	padding: 14px 30px;
	border: none;
	border-radius: 14px;
	background: var(--ink);
	color: var(--on-dark-2);
	font: 600 15px var(--sans);
	cursor: pointer;
	box-shadow: var(--sh-cta);
	transition: transform .18s ease;
}
.wpcf7-form .wpcf7-submit:hover { transform: translateY(-2px); }

/* Trạng thái xác thực */
.wpcf7-form .wpcf7-not-valid { border-color: var(--son) !important; }
.wpcf7-not-valid-tip { color: var(--son); font: 500 12.5px var(--sans); margin-top: 6px; }
.wpcf7-response-output {
	margin: 10px 0 0 !important;
	padding: 12px 16px !important;
	border-width: 1px !important;
	border-radius: 12px !important;
	font: 500 14px/1.5 var(--sans);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--son) !important;
	background: rgba(165,56,43,.07);
	color: var(--son);
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--jade) !important;
	background: rgba(86,107,84,.1);
	color: var(--jade);
}
.wpcf7-spinner { background-color: var(--ink-3); }

/* -------------------------------------------------- Responsive */
@media (max-width: 1024px) {
	.hero { gap: 32px; }
}

@media (max-width: 900px) {
	:root { --gutter: 24px; }
	.hero { grid-template-columns: 1fr; }
	.hero__device { margin-top: 20px; }
	.feature-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
	.mac { grid-template-columns: 1fr; gap: 32px; }
	.mac__copy { order: -1; }
	.tool-grid { grid-template-columns: repeat(2, 1fr); }
	.event-grid { grid-template-columns: 1fr; }
	.band-dark__head { align-items: flex-start; }
	.shot-row--phones { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 1100px) {
	/* Nhiều link + 2 nút tải → thu gọn thành menu hamburger sớm để không tràn */
	.nav-toggle { display: flex; }
	.site-nav {
		position: absolute;
		top: calc(100% - 8px);
		left: var(--gutter);
		right: var(--gutter);
		z-index: 40;
		display: none;
		background: var(--card);
		border: 1px solid var(--line-14);
		border-radius: 18px;
		box-shadow: var(--sh-board);
		padding: 10px;
	}
	.site-nav.is-open { display: block; }
	.site-nav .nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.site-nav .nav-menu a {
		display: block;
		padding: 13px 16px;
		border-radius: 12px;
		font-size: 15px;
	}
	.site-nav .nav-menu a:hover { background: rgba(165,56,43,.07); }
	/* Nút tải trong dropdown: xếp dọc, đủ nhãn, full-width */
	.site-nav__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 8px;
		padding-top: 10px;
		border-top: 1px solid var(--line-12);
	}
	.site-nav__cta .btn-store { justify-content: center; width: 100%; }
}

@media (max-width: 680px) {
	.site-header__inner { padding-top: 18px; padding-bottom: 18px; }
	.section { padding-top: 54px; }
	.board { padding: 20px 16px 24px; }
	.board__month { font-size: 32px; }
	.canchi { grid-template-columns: repeat(2, 1fr); }
	.tool-grid { grid-template-columns: 1fr 1fr; }
	.weekdays, .cal-grid { gap: 5px; }
	.cal-cell { min-height: 58px; padding: 6px 8px; }
	.cal-cell__solar { font-size: 17px; }
	.cta__title { font-size: clamp(26px, 6vw, 30px); }
	.site-footer__inner { flex-direction: column; text-align: center; gap: 16px; }
	.hero__points { flex-wrap: wrap; gap: 12px 20px; }

	/* Gallery ảnh: cuộn ngang có snap trên mobile */
	.shot-row--phones, .widget-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 16px;
		padding-bottom: 10px;
		margin-left: calc(var(--gutter) * -1);
		margin-right: calc(var(--gutter) * -1);
		padding-left: var(--gutter);
		padding-right: var(--gutter);
		-webkit-overflow-scrolling: touch;
	}
	.shot-row--phones > *, .widget-grid > * {
		flex: 0 0 auto;
		width: 66vw; max-width: 250px;
		scroll-snap-align: center;
	}
}

@media (max-width: 420px) {
	.tool-grid { grid-template-columns: 1fr; }
	.canchi { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
