/* Klip landing — white paper + pen lines: fluid type scale, 8pt rhythm, 20/16 radius, one button system */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
:root {
  --paper: #fdf9ef;
  --paper-2: #fffcf6;
  --paper-warm: #f5efe2;
  --ink: #141511;
  --ink-2: #4b4e45;
  --muted: #6b6e63;
  --yellow: #ffd60a;
  --yellow-wash: rgba(255, 214, 10, 0.22);
  --line: rgba(20, 21, 17, 0.14);
  --pen: #141511;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r1: 16px;
  --r2: 20px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --shadow-nav: 0 8px 32px rgba(20, 21, 17, 0.12);
  /* edge polish: light-from-above — 1px top highlight + 1px bottom lowlight.
     Light surfaces: white top / ink bottom; dark surfaces: brighter white top. */
  --hi-light: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --lo-light: inset 0 -1px 0 rgba(20, 21, 17, 0.05);
  --hi-dark: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --lo-dark: inset 0 -1px 0 rgba(0, 0, 0, 0.32);
  --hi-glass: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 96px;
  scrollbar-width: thin; scrollbar-color: rgba(20, 21, 17, 0.28) transparent;
}
body {
  position: relative;
  margin: 0;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.0625rem); line-height: 1.6;
  /* muted warm paper: calmer than --paper, elements keep their own surfaces */
  background: #f1ebdc; color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }

/* ---------- backdrop: matte paper + gaussian blobs + fine grain ---------- */
/* Backdrop scrolls with the page (absolute, feathered only — no masks, no size stops).
   Glare fix (background-only): muted base + visible-but-soft blob color.
   Element surfaces (--paper, cards, buttons, nav) untouched. */
.bg-fixed {
  position: absolute; inset: 0; z-index: -3;
  background-color: #f1ebdc;
  background-image:
    radial-gradient(620px 420px at 14% 8%, rgba(255, 214, 10, 0.2), transparent 70%),
    radial-gradient(720px 520px at 86% 12%, rgba(234, 88, 12, 0.13), transparent 70%),
    radial-gradient(680px 480px at 10% 62%, rgba(236, 72, 153, 0.11), transparent 70%),
    radial-gradient(80% 50% at 50% 0%, rgba(20, 21, 17, 0.03), transparent 70%);
  background-repeat: no-repeat;
}
.bg-sky {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(560px 380px at 82% 22%, rgba(255, 214, 10, 0.12), transparent 70%),
    radial-gradient(640px 420px at 12% 30%, rgba(20, 21, 17, 0.03), transparent 70%),
    radial-gradient(600px 420px at 85% 75%, rgba(236, 72, 153, 0.075), transparent 70%);
  background-repeat: no-repeat;
}
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: none;
}
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type: fluid scale, consistent tracking/leading ---------- */
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
.hero .sub, .lede, .card p, .faq-row .a p, .wall-card figcaption, .wip-card p { text-wrap: pretty; }
.panel h2, .final h2 { font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.card h3 { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem); line-height: 1.3; letter-spacing: -0.015em; }
.lede { color: var(--ink-2); font-size: clamp(1rem, 0.96rem + 0.35vw, 1.125rem); line-height: 1.65; max-width: 680px; margin: 16px 0 0; }
code, kbd { font-family: ui-monospace, "SF Mono", monospace; font-size: 0.86em; background: var(--paper-warm); border: 1px solid var(--pen); border-radius: 8px; padding: 2px 7px; color: var(--ink); }

/* ---------- content links: yellow-underline system, never UA blue/purple ---------- */
.faq-row .a a, .plan-list a, .legal-head .lede a, a.back-top, .plan-for a, .plan-fine a, .plans-note a { color: #7a5c00; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq-row .a a:visited, .plan-list a:visited, .legal-head .lede a:visited, a.back-top:visited, .plan-for a:visited, .plan-fine a:visited, .plans-note a:visited { color: #7a5c00; }
.faq-row .a a:hover, .plan-list a:hover, .legal-head .lede a:hover, a.back-top:hover, .plan-for a:hover, .plan-fine a:hover, .plans-note a:hover,
.faq-row .a a:focus-visible, .plan-list a:focus-visible, .legal-head .lede a:focus-visible, a.back-top:focus-visible, .plan-for a:focus-visible, .plan-fine a:focus-visible, .plans-note a:focus-visible { color: #5c4500; background: var(--yellow-wash); border-radius: 4px; }

/* ---------- ONE button: primary / ghost / small (pen offset, works on <a> + <button>) ---------- */
.dl-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; min-width: 200px;
  background: var(--ink); color: #fff;
  font: 700 15.5px "Inter Tight", sans-serif; text-decoration: none;
  border: 1.5px solid var(--pen); border-radius: 999px; cursor: pointer; overflow: hidden; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--yellow), var(--hi-dark), var(--lo-dark);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
  appearance: none; -webkit-appearance: none;
}
button.dl-btn { font-family: "Inter Tight", sans-serif; }
.dl-btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--yellow), var(--hi-dark), var(--lo-dark); background: #000; }
.dl-btn:focus-visible { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--yellow), var(--hi-dark), var(--lo-dark); }
.dl-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--yellow), var(--hi-dark), var(--lo-dark); }
.dl-btn.ghost { background: var(--paper-2); color: var(--ink); border: 1.5px solid var(--pen); box-shadow: 3px 3px 0 rgba(20, 21, 17, 0.14), var(--hi-light), var(--lo-light); }
.dl-btn.ghost:hover, .dl-btn.ghost:focus-visible { background: var(--yellow-wash); border-color: var(--pen); box-shadow: 4px 5px 0 var(--yellow), var(--hi-light), var(--lo-light); }
.dl-btn.ghost:active { transform: translate(1px, 1px); background: var(--yellow-wash); box-shadow: 1px 1px 0 var(--yellow), var(--hi-light), var(--lo-light); }
.dl-btn.small { height: 42px; padding: 0 22px; min-width: 0; font-size: 14px; }
.dl-btn:disabled, .dl-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.dl-text { transition: opacity 0.15s linear 0.06s; }
.dl-apple { position: absolute; display: flex; color: inherit; transform: scale(0.5); opacity: 0; transition: opacity 0.15s linear, transform 0.25s var(--ease); }
/* Windows visitors: Win10-style mark at rest, flat Win11 grid on hover */
.dl-apple .os-ico { display: inline-flex; }
.dl-apple .os-11 { display: none; }
.dl-btn:focus-visible .dl-apple .os-10 { display: none; }
.dl-btn:focus-visible .dl-apple .os-11 { display: inline-flex; }
@media (hover: hover) {
  .dl-btn:has(.dl-apple):hover .dl-text { opacity: 0; transition-delay: 0.08s; }
  .dl-btn:hover .dl-apple { opacity: 1; transform: scale(1.15); transition: opacity 0.12s linear, transform 0.22s var(--ease); }
  .dl-btn:hover .dl-apple .os-10 { display: none; }
  .dl-btn:hover .dl-apple .os-11 { display: inline-flex; }
}

*:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--yellow); color: var(--ink); }
.dl-btn:focus-visible { outline-offset: 4px; }
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.nav-pill {
  display: flex; align-items: center; gap: 16px;
  height: 68px; padding: 0 12px 0 20px; width: 100%; max-width: 760px; justify-content: space-between;
  background: rgba(255, 252, 246, 0.62);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(20, 21, 17, 0.1);
  border-radius: 999px;
  box-shadow: var(--shadow-nav), var(--hi-glass);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-pill, .nav-mobile { background: rgba(255, 252, 246, 0.94); }
}
.nav-pill.scrolled { background: rgba(255, 252, 246, 0.85); border-color: rgba(255, 252, 246, 0.85); box-shadow: 0 12px 40px rgba(20, 21, 17, 0.16), var(--hi-glass); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 8px; border: 1px solid var(--line); }
/* slight paper cast on our icons (wall product logos untouched) */
.brand img, .app-mini img, .foot-brand img { filter: sepia(0.22) contrast(0.97) brightness(1.02); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { position: relative; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 13px; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); background: rgba(20, 21, 17, 0.06); }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--yellow); border: 1px solid rgba(20, 21, 17, 0.2); transform: scaleX(0); transition: transform 0.28s var(--ease); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(0.55); }
.nav-links a.active::after { transform: scaleX(1); }
/* download expands inline: 0fr -> 1fr grid trick, smooth both ways */
.nav-burger { display: none; background: none; border: 0; border-radius: 12px; color: var(--ink); cursor: pointer; padding: 12px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; transition: background-color 0.2s; }
.nav-burger:hover, .nav-burger:focus-visible { background: rgba(20, 21, 17, 0.06); }
.nav-burger svg { width: 20px; height: 20px; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 200; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--pen); text-decoration: none; transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; margin-top: 8px; padding: 8px; width: 100%; max-width: 760px; background: rgba(255, 252, 246, 0.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--shadow-nav); }
.nav-mobile.open { display: flex; animation: menuIn 0.25s var(--ease); }
.nav-mobile a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: var(--r1); font-size: 15px; font-weight: 500; transition: background-color 0.2s; }
.nav-mobile a:hover, .nav-mobile a:focus-visible { background: var(--yellow-wash); }
.nav-mobile a:active { background: rgba(255, 214, 10, 0.35); }

/* ---------- layout rhythm: 8pt grid ---------- */
main { display: block; }
.panel { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) 20px 0; }
.hero { max-width: 1080px; margin: 0 auto; text-align: center; padding: 150px 20px 0; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; margin: 0 auto; }
.hero h1 u {
  text-decoration: none; padding-bottom: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 20 2 40 7 T 78 7 T 118 5' fill='none' stroke='%23FFE566' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M2 9 Q 20 3 40 8 T 78 8 T 118 6' fill='none' stroke='%23141511' stroke-width='1.4' stroke-linecap='round' opacity='0.85'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left bottom; background-size: 0% 12px;
  transition: background-size 0.9s var(--ease) 1s;
}
.hero h1.in u { background-size: 100% 12px; }
.hero .sub { max-width: 68ch; margin: 24px auto 0; color: var(--ink-2); font-size: clamp(1rem, 0.96rem + 0.35vw, 1.125rem); line-height: 1.65; }
.hero .sub strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow-wash) 62%); padding: 0 2px; }
.app-duo { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin: 0 auto 32px; }
.app-mini { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.app-mini img { width: 72px; height: 72px; border-radius: 22%; border: 1.5px solid var(--pen); transition: transform 0.3s var(--ease); }
.app-mini img:hover { transform: scale(1.06) rotate(-2deg); }
.app-mini .tag { margin: 0; color: var(--ink); font-weight: 600; font-size: 14px; background: linear-gradient(transparent 60%, var(--yellow-wash) 60%); padding: 0 4px; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.badges span { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--ink); border: 1.5px solid var(--pen); color: #fdf9ef; box-shadow: 2px 2px 0 var(--yellow), var(--hi-dark), var(--lo-dark); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s; }
.badges span:hover { transform: translateY(-2px); background: #000; box-shadow: 3px 4px 0 var(--yellow), var(--hi-dark), var(--lo-dark); }

/* flow strip: pen numbers, no cards */
.flow-strip { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 48px auto 0; padding: 24px 0 0; border-top: 2px solid var(--pen); }
.flow-strip div { display: flex; gap: 16px; align-items: center; max-width: 260px; text-align: left; }
.flow-strip .n { flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-family: "Fraunces", serif; font-size: 17px; color: var(--ink); background: var(--yellow); border: 1.5px solid var(--pen); border-radius: 50%; }
.flow-strip p { margin: 0; font-size: 14px; color: var(--ink-2); }
.flow-strip strong { color: var(--ink); }

/* ---------- video spotlight ---------- */
.spot { position: relative; height: 180vh; margin-top: 24px; scroll-margin-top: calc(-12vh - 96px); }
.spot-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; overflow: hidden; padding: 0 20px; }
.spot-veil { position: absolute; inset: 0; background: rgba(253,252,247,0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); -webkit-mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent); mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent); }
/* mảng tối: demo anchors the page as the heavy dark block (hero stays airy) */
.spot-frame { position: relative; z-index: 2; width: min(960px, 92vw); transform: scale(0.96); border-radius: var(--r2); overflow: hidden; border: 2px solid var(--pen); background: #000; box-shadow: 0 32px 80px rgba(20, 21, 17, 0.22), 0 4px 16px rgba(20, 21, 17, 0.12), var(--hi-dark); }
.spot-frame video { display: block; width: 100%; aspect-ratio: 1280 / 832; cursor: pointer; }
.spot-mute { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--pen); background: rgba(255,255,255,0.85); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s var(--ease); }
.spot-mute:hover, .spot-mute:focus-visible { transform: scale(1.08); background: var(--yellow-wash); }
.spot-mute:active { transform: scale(0.95); }
.spot-mute svg { width: 20px; height: 20px; }
.spot-mute .ic-on { display: none; }
.spot-mute.live .ic-on { display: block; }
.spot-mute.live .ic-muted { display: none; }

/* ---------- compatibility wall ---------- */
.wall-panel { max-width: none; padding-left: 0; padding-right: 0; }
.wall-panel h2, .wall-panel .lede { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.wall-panel .lede { margin-top: 16px; }
.wall-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px max(20px, calc((100vw - 1080px) / 2 + 20px)) 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.wall-track::-webkit-scrollbar { display: none; }
/* nhấn theo mảng, theo tone giấy: top-left light → bottom-right warm shade */
.wall-card { flex: 0 0 340px; max-width: 78vw; scroll-snap-align: center; margin: 0; background: linear-gradient(150deg, #fffcf6 0%, #fdf9ef 62%, #f2ecdb 100%); border: 1.5px solid var(--pen); border-radius: var(--r2); padding: 20px; box-shadow: var(--hi-light), var(--lo-light); }
.wall-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #fffcf6 0%, var(--paper) 55%, var(--paper-warm) 100%); border: 1px solid var(--line); border-radius: var(--r1); box-shadow: var(--hi-light), inset 0 -8px 16px rgba(20, 21, 17, 0.05); }
.wall-img img { width: 96px; height: 96px; object-fit: contain; }
/* wide text-mark logos carry padding/letterforms: compensate so all read the same size */
.wall-img img[src*="wps-"],
.wall-img img[src*="googledocs"] { width: 116px; height: 116px; }
.wall-card figcaption { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.wall-card figcaption strong { color: var(--ink); }
.wall-ctrl { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 16px; margin-top: 24px; padding: 0 20px; }
.wall-dots { display: flex; align-items: center; justify-content: flex-start; flex: 0 1 auto; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow: hidden; gap: 8px; background: var(--paper-2); border: 1.5px solid var(--pen); padding: 8px 16px; border-radius: 999px; scrollbar-width: none; }
/* quantized window: JS sizes the pill to exactly `visible` whole dots, so no
   sliced dot ever peeks and both rounded ends keep full padding (strip jumps
   in whole-dot steps, instantly — no glide to trail behind) */
/* auto end-margins: centered while all dots fit, start-aligned + fully
   scrollable on narrow screens (no safe-center support needed, no clipped end) */
.wall-dots > :first-child { margin-left: auto; }
.wall-dots > :last-child { margin-right: auto; }
/* static cutoff strip: fixed grey dots, no highlight, no tracking */
.wall-dots span.dot { flex: 0 0 auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.wall-dots span.dot::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: rgba(20, 21, 17, 0.3); }
.wall-dots::-webkit-scrollbar { display: none; }
.wall-dots button { flex: 0 0 auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: none; cursor: pointer; padding: 0; }
.wall-dots button::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: rgba(20, 21, 17, 0.3); transition: width 0.3s var(--ease), background 0.3s; }
.wall-dots button:hover::after { background: rgba(20, 21, 17, 0.55); }
.wall-dots button.on::after { width: 24px; background: var(--yellow); border: 1px solid var(--pen); }
.wall-btn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--pen); background: var(--paper-2); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s var(--ease), background 0.2s; font-size: 15px; }
.wall-btn:active { transform: scale(0.95); }
.wall-btn:focus-visible { background: var(--yellow-wash); }
/* hover tint only on precise pointers: no retained scale (it rasterizes
   blurry for the whole hover on 1x / fractionally-scaled Windows screens),
   and no stuck highlight on touch laptops */
@media (hover: hover) and (pointer: fine) {
  .wall-btn:hover { background: var(--yellow-wash); }
}
.wall-btn svg { width: 16px; height: 16px; }

/* ---------- features: white bento, pen borders ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 24px; }
.card { position: relative; color: var(--ink); background: linear-gradient(150deg, #fffcf6 0%, #fdf9ef 62%, #f2ecdb 100%); border: 1.5px solid var(--pen); border-radius: var(--r2); padding: 24px; box-shadow: var(--hi-light), var(--lo-light); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.card:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--accent, var(--yellow)), var(--hi-light), var(--lo-light); }
.card:focus-within { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--accent, var(--yellow)), var(--hi-light), var(--lo-light); }
.card h3 { color: var(--ink); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem); line-height: 1.5; letter-spacing: -0.015em; margin: 0 0 8px; }
.card h3::before { content: ""; display: block; width: 28px; height: 6px; border-radius: 999px; background: var(--accent, var(--yellow)); border: 1px solid var(--pen); margin-bottom: 12px; }
.card h3 .hl { background: var(--hl, var(--yellow)); padding: 1px 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.card p { margin: 0; color: #33362e; font-size: 15px; font-weight: 500; line-height: 1.65; }
/* mỗi thẻ một màu ấm: vàng → cam → hồng, lặp lại (khớp FAQ) */
.bento .card:nth-child(1) { --accent: #eab308; --hl: #ffd60a; --wash: rgba(255, 214, 10, 0.22); }
.bento .card:nth-child(2) { --accent: #ea580c; --hl: #f9dcc3; --wash: rgba(234, 88, 12, 0.15); }
.bento .card:nth-child(3) { --accent: #ec4899; --hl: #f6cfe2; --wash: rgba(236, 72, 153, 0.15); }
.bento .card:nth-child(4) { --accent: #eab308; --hl: #ffd60a; --wash: rgba(255, 214, 10, 0.22); }
.bento .card:nth-child(5) { --accent: #ea580c; --hl: #f9dcc3; --wash: rgba(234, 88, 12, 0.15); }
.bento .card:nth-child(6) { --accent: #ec4899; --hl: #f6cfe2; --wash: rgba(236, 72, 153, 0.15); }

/* ---------- FAQ: paper pills, pen ring ---------- */
.faq { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.faq-row { display: flex; }
.faq-row.left { justify-content: flex-start; }
.faq-row.right { justify-content: flex-end; }
.faq-row details { width: 100%; max-width: 560px; }
.faq-row summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.faq-row summary::-webkit-details-marker { display: none; }
.q-pill { flex: 1; min-width: 0; background: rgba(255, 252, 246, 0.85); border: 1.5px solid var(--pen); color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.4; padding: 16px 32px; border-radius: 999px; box-shadow: var(--hi-light), var(--lo-light); transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s; }
.faq-row summary { border-radius: 999px; }
.faq-row summary:focus { outline: none; }
.faq-row details:hover .q-pill, .faq-row summary:focus-visible .q-pill { transform: translateY(-2px); background: var(--yellow-wash); box-shadow: 3px 3px 0 var(--yellow), var(--hi-light), var(--lo-light); }
.faq-row details[open] .q-pill { transform: translateY(-2px); background: linear-gradient(135deg, rgba(255, 214, 10, 0.34), rgba(255, 214, 10, 0.16)); box-shadow: 3px 3px 0 var(--yellow), var(--hi-light), var(--lo-light); }
.q-plus { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--pen); background: var(--paper-2); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 300; line-height: 1; padding-bottom: 3px; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.25s; }
.faq-row summary:hover .q-plus, .faq-row summary:focus-visible .q-plus { background: var(--yellow-wash); box-shadow: 2px 2px 0 var(--yellow); }
/* + ink sits ~1.7px low in Inter Tight: bottom padding lifts content only, ring stays centered; composes with open-state rotate */
.faq-row details[open] .q-plus { transform: rotate(45deg); background: var(--yellow); border-color: var(--pen); color: var(--ink); box-shadow: 2px 2px 0 rgba(20, 21, 17, 0.14); }
.faq-row .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.faq-row details[open] .a { grid-template-rows: 1fr; }
.faq-row .a > div { overflow: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
.faq-row details[open] .a > div { opacity: 1; transform: none; }
.faq-row .a p { margin: 0; padding: 16px 32px 0; color: #33362e; font-size: 15px; font-weight: 500; line-height: 1.65; }
/* mỗi FAQ một màu ấm: vàng → cam → hồng, lặp lại (không qua xanh lạnh) */
.faq-row:nth-child(1) { --accent: #eab308; --wash: rgba(255, 214, 10, 0.22); --open: linear-gradient(135deg, rgba(255, 214, 10, 0.34), rgba(255, 214, 10, 0.16)); --on-ink: #141511; }
.faq-row:nth-child(2) { --accent: #ea580c; --wash: rgba(234, 88, 12, 0.12); --open: linear-gradient(135deg, rgba(234, 88, 12, 0.22), rgba(234, 88, 12, 0.08)); --on-ink: #ffffff; }
.faq-row:nth-child(3) { --accent: #ec4899; --wash: rgba(236, 72, 153, 0.13); --open: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.08)); --on-ink: #ffffff; }
.faq-row:nth-child(4) { --accent: #eab308; --wash: rgba(255, 214, 10, 0.22); --open: linear-gradient(135deg, rgba(255, 214, 10, 0.34), rgba(255, 214, 10, 0.16)); --on-ink: #141511; }
.faq-row:nth-child(5) { --accent: #ea580c; --wash: rgba(234, 88, 12, 0.12); --open: linear-gradient(135deg, rgba(234, 88, 12, 0.22), rgba(234, 88, 12, 0.08)); --on-ink: #ffffff; }
.faq-row:nth-child(6) { --accent: #ec4899; --wash: rgba(236, 72, 153, 0.13); --open: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.08)); --on-ink: #ffffff; }
.faq-row details:hover .q-pill, .faq-row summary:focus-visible .q-pill { background: var(--wash, var(--yellow-wash)); box-shadow: 3px 3px 0 var(--accent, var(--yellow)), var(--hi-light), var(--lo-light); }
.faq-row details[open] .q-pill { background: var(--open); box-shadow: 3px 3px 0 var(--accent, var(--yellow)), var(--hi-light), var(--lo-light); }
.faq-row summary:hover .q-plus, .faq-row summary:focus-visible .q-plus { background: var(--wash, var(--yellow-wash)); box-shadow: 2px 2px 0 var(--accent, var(--yellow)); }
.faq-row details[open] .q-plus { background: var(--accent, var(--yellow)); color: var(--on-ink, var(--ink)); }
/* đang đóng (JS giữ open để animate height): xoay + về và nhả pill ngay
   cùng lúc với nội dung thu lại, thay vì đợi đóng xong mới nhảy */
.faq-row details[data-closing] .q-pill { transform: none; background: rgba(255, 252, 246, 0.85); box-shadow: var(--hi-light), var(--lo-light); }
.faq-row details[data-closing] .q-plus { transform: rotate(0deg); background: var(--paper-2); color: var(--ink); box-shadow: none; }

/* ---------- final ---------- */
.final { text-align: center; padding: clamp(48px, 6vw, 80px) 20px 0; max-width: 720px; margin: 0 auto; }
.final-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- slim footer ---------- */
/* page close-out: footer settles into warm shade, like the dark corner of the ref */
footer { margin-top: clamp(48px, 6vw, 80px); border-top: 2px solid var(--pen); background: linear-gradient(to bottom, #fffcf6 0%, var(--paper-warm) 100%); padding: 40px 20px 0; overflow: hidden; }
.foot-row { max-width: 1080px; margin: 0 auto; display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 16px; font-weight: 700; }
.foot-brand img { border-radius: 8px; border: 1px solid var(--line); }
.foot-brand small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.foot-links { display: flex; gap: 2px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r1); transition: color 0.2s, background 0.2s; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--ink); background: var(--yellow-wash); }
.wordmark { font-family: "Fraunces", serif; font-weight: 700; font-size: clamp(96px, 23vw, 300px); letter-spacing: -0.04em; line-height: 0.85; text-align: center; color: rgba(20, 21, 17, 0.06); margin: 32px 0 -0.12em; user-select: none; }
.copy { text-align: center; color: var(--muted); font-size: 13px; margin: 0; padding: 16px 0 24px; position: relative; }

/* ---------- license plans: symmetric bundle-over-duo ---------- */
.plans { max-width: 1080px; margin: 0 auto; padding: 150px 20px 0; text-align: center; }
.plans-head h1 { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; margin: 0 auto; }
.plans-head .lede { margin-left: auto; margin-right: auto; }
.plans-head .badges { margin-top: 20px; }
.plans-grid { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 36px; }
.plan { position: relative; background: linear-gradient(150deg, #fffcf6 0%, #fdf9ef 62%, #f2ecdb 100%); border: 1.5px solid var(--pen); border-radius: var(--r2); padding: 28px 28px 30px; width: 100%; max-width: 560px; text-align: center; box-shadow: var(--hi-light), var(--lo-light); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.plan:hover { transform: translate(-1px, -3px); box-shadow: 4px 4px 0 var(--yellow), var(--hi-light), var(--lo-light); }
/* liquid-metal flowing border — Best Value only, pure CSS, no WebGL */
.plan.featured.metal {
  --angle: 0deg;
  isolation: isolate;
  overflow: hidden;
  border: 2.5px solid transparent;
  background-image:
    linear-gradient(#fffcf6, #fffcf6),
    conic-gradient(from var(--angle),
      #f8fafc 0deg, #cbd5e1 32deg, #64748b 72deg,
      #e2e8f0 112deg, #ffffff 142deg, #94a3b8 182deg,
      #334155 212deg, #e2e8f0 252deg, #f8fafc 286deg,
      #94a3b8 322deg, #f8fafc 360deg);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: metal-spin 6s linear infinite;
}
.plan.featured.metal::after {
  content: ""; position: absolute; inset: -30%;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 42%, rgba(255,255,255,0.95) 50%, rgba(148,163,184,0.28) 54%, transparent 62%);
  transform: translate(-38%, -38%);
  animation: metal-sheen 1.1s ease-in-out 0.6s 1 forwards;
}
@keyframes metal-spin { to { --angle: 360deg; } }
/* deterministic diagonal: slash enters at top-left, parks past bottom-right (corner sliver) */
@keyframes metal-sheen { from { transform: translate(-38%, -38%); } to { transform: translate(38%, 38%); } }
.plan-badge { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 1.5px solid var(--pen); font-size: 13px; font-weight: 700; }
.plan.wide .dl-btn.ghost:hover, .plan.wide .dl-btn.ghost:focus-visible { background: rgba(37, 99, 235, 0.17); border-color: var(--pen); box-shadow: 4px 5px 0 #aecbfb; }
.plan.wide .dl-btn.ghost:active { background: rgba(37, 99, 235, 0.23); box-shadow: 1px 1px 0 #aecbfb; }
.plan-badge.blue { background: #2563eb; color: #fff; border-color: var(--pen); }
.plan.wide { max-width: 840px; margin-left: auto; margin-right: auto; }
.plan h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.plan-price { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 0; }
.plan-for { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 8px 0 0; text-wrap: pretty; }
.plan-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.plan-list li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.plan-list li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--ink); font-weight: 700; background: var(--yellow); border: 1px solid var(--pen); border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; }
.plans-duo { display: flex; gap: 24px; justify-content: center; align-items: stretch; width: 100%; max-width: 840px; }
.plans-duo .plan { flex: 1 1 0; max-width: none; display: flex; flex-direction: column; }
.plans-duo .plan .plan-list { flex: 1; }
.plan .dl-btn { width: 100%; min-width: 0; margin-top: 22px; }
.plan-fine { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.plans-note { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; }
.plans-fine { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
/* seal buttons: same lift/press as .dl-btn, icon stays visible (no hover swap) */
.dl-seal { display: inline-flex; flex: 0 0 auto; margin-right: 10px; transform-origin: center; }
.dl-seal .seal-shield { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-seal .seal-check { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn.ghost .dl-seal .seal-shield,
.dl-btn.ghost .dl-seal .seal-check { stroke: currentColor; }
.dl-apple .dl-seal { margin-right: 0; }
@media (hover: hover) {
  .dl-btn.has-seal:hover .dl-text { opacity: 1; }
  .dl-btn.has-seal:hover .dl-seal,
  .dl-btn:hover .dl-apple .dl-seal { animation: sealPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
}
/* hover never fires for keyboard/touch: same pop on focus + press (reduced-motion kill below still wins) */
.dl-btn.has-seal:focus-visible .dl-seal,
.dl-btn.has-seal:active .dl-seal,
.dl-btn:focus-visible .dl-apple .dl-seal,
.dl-btn:active .dl-apple .dl-seal { animation: sealPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes sealPop {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.22) rotate(-6deg); }
  75% { transform: scale(0.95) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .dl-btn.has-seal:hover .dl-seal,
  .dl-btn:hover .dl-apple .dl-seal,
  .dl-btn.has-seal:focus-visible .dl-seal,
  .dl-btn:active .dl-apple .dl-seal { animation: none; }
}

/* ---------- license WIP (legacy, unused) ---------- */
.wip { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 140px 20px 60px; }
.wip-card { text-align: center; background: var(--paper-2); border: 1.5px solid var(--pen); border-radius: var(--r2); padding: 56px 48px; max-width: 520px; }
.wip-card h1 { font-size: 40px; margin: 12px 0 10px; }
.wip-card p { color: var(--ink-2); }
.wip-card .dl-btn { margin-top: 18px; }
.wip-card .fine { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; }

/* ---------- page-open choreography ---------- */
@keyframes navDrop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-pill { animation: navDrop 0.7s var(--ease) backwards; }
.hero .app-mini:first-child { animation: popIn 0.55s var(--ease) 0.1s backwards; }
.hero .app-mini:last-child { animation: popIn 0.55s var(--ease) 0.2s backwards; }
.hero h1 { animation: riseIn 0.7s var(--ease) 0.3s backwards; }
.hero .sub { animation: riseIn 0.7s var(--ease) 0.45s backwards; }
.hero .badges { animation: riseIn 0.7s var(--ease) 0.55s backwards; }
.hero .flow-strip { animation: riseIn 0.7s var(--ease) 0.65s backwards; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- webkit scrollbar: thin ink-on-transparent ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(20, 21, 17, 0.22); border-radius: 999px; border: 2px solid #f1ebdc; }
::-webkit-scrollbar-thumb:hover { background: rgba(20, 21, 17, 0.36); }

@media (max-width: 860px) {
  .nav-links, .nav-pill > .dl-btn { display: none; }
  .nav-burger { display: block; }
  .bento { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .faq-row.left, .faq-row.right { justify-content: center; }
  .faq-row details { max-width: none; }
  .q-pill { font-size: 15px; padding: 16px 24px; }
  .app-duo { gap: 24px; }
  .flow-strip { gap: 16px; }
  .wip-card { padding: 40px 24px; }
  .plans { padding-top: 130px; }
  .foot-row { align-items: flex-start; }
}
@media (max-width: 640px) {
  .plans-duo { flex-direction: column; align-items: center; }
  .plans-duo .plan { width: 100%; }
  .plan { padding: 24px 20px 26px; }
  .wall-card { flex-basis: 300px; }
  .wall-ctrl { gap: 8px; padding: 0 16px; }
  .wall-dots { gap: 8px; padding: 8px 16px; }
  .wall-btn { width: 44px; height: 44px; }
  .wall-btn svg { width: 18px; height: 18px; }
  .dl-btn { min-width: 0; width: 100%; max-width: 340px; }
  .final-btns .dl-btn { width: 100%; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .spot { height: auto; }
  .spot-sticky { position: static; height: auto; padding: 40px 20px; }
  .plan.featured.metal, .plan.featured.metal::after { animation: none; }
}
@media (forced-colors: active) {
  .dl-btn, .q-pill, .card, .plan, .nav-pill, .nav-mobile, .wall-card, .wall-dots, .wall-btn, .badges span { border: 1px solid ButtonText; }
}

/* === NHẤN THEO MẢNG: nhịp sáng–tối trên nền giấy ===
   Sáng: hero · wall · features · faq (giấy thoáng, highlight màu giữ lại)
   Tối: demo (khung video đen) · final (khối mực chốt nhịp) */

/* final: khối mực chốt trang — nút chính vàng, nút phụ viền sáng */
.final {
  background:
    radial-gradient(420px 220px at 18% 12%, rgba(255, 214, 10, 0.14), transparent 70%),
    radial-gradient(460px 260px at 85% 88%, rgba(253, 249, 239, 0.07), transparent 70%),
    #171812;
  color: #fdf9ef;
  border: 2px solid var(--pen);
  border-radius: 28px;
  max-width: 880px;
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 48px);
  box-shadow: 6px 6px 0 var(--yellow), 0 24px 64px rgba(20, 21, 17, 0.28), var(--hi-dark);
}
.final h2 { color: #fdf9ef; }
.final .dl-btn { background: var(--yellow); color: var(--ink); border-color: var(--pen); box-shadow: 3px 3px 0 rgba(253, 249, 239, 0.9), var(--hi-dark), var(--lo-dark); }
.final .dl-btn:hover, .final .dl-btn:focus-visible { background: #ffe14d; box-shadow: 4px 5px 0 rgba(253, 249, 239, 0.9), var(--hi-dark), var(--lo-dark); }
.final .dl-btn:active { box-shadow: 1px 1px 0 rgba(253, 249, 239, 0.9), var(--hi-dark), var(--lo-dark); }
.final a.dl-btn:not(:first-child) { background: transparent; color: #fdf9ef; border-color: #fdf9ef; box-shadow: 3px 3px 0 rgba(253, 249, 239, 0.35), var(--hi-dark), var(--lo-dark); }
.final a.dl-btn:not(:first-child):hover, .final a.dl-btn:not(:first-child):focus-visible { background: rgba(253, 249, 239, 0.12); }
.final *:focus-visible { outline-color: #fdf9ef; }

@media (max-width: 640px) {
  .final { border-radius: 22px; box-shadow: 4px 4px 0 var(--yellow), 0 16px 40px rgba(20, 21, 17, 0.25); }
}
