/*
  ResidentStep website (residentstep.app).
  Colors are Moss, ResidentStep's default theme, from the "Green card holder app — screens" canvas
  (theme.css: .th-moss.m-light and .th-moss.m-dark), light and dark. The light backdrop is a shade deeper
  than the app’s #3A6B22 (#305B1B) and the glows stay faint, so captions and gradient titles keep 4.5:1
  wherever they sit. Type is Inter only, served from /fonts. Layout and components follow StepCivics' site.
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #305B1B;
  --glow-a: rgba(228, 249, 184, 0.08);
  --glow-b: rgba(255, 230, 163, 0.07);
  --glow-c: rgba(27, 115, 82, 0.40);
  --on-bg: #FFFFFF;
  --on-bg-2: rgba(255, 255, 255, 0.86);
  --nav-bg: rgba(48, 91, 27, 0.86);
  --frame-bg: rgba(255, 255, 255, 0.05);

  --title-grad: linear-gradient(90deg, #E4F9B8 0%, #C2F2D8 55%, #FFE6A3 100%);
  --heading-grad: linear-gradient(90deg, #2F5A16 0%, #1B5E44 55%, #704B05 100%);
  --primary-grad: linear-gradient(135deg, #1B7352 0%, #44791F 55%, #6B7012 100%);
  --sec-fill: linear-gradient(90deg, #C5D6C6 0%, #C8D2B8 100%);
  --sec-edge: linear-gradient(90deg, #1B7352 0%, #44791F 55%, #6B7012 100%);
  --sec-text: linear-gradient(90deg, #2C5515 0%, #19563F 55%, #674505 100%);
  --sel: linear-gradient(135deg, rgba(27, 115, 82, 0.12) 0%, rgba(107, 112, 18, 0.14) 100%);

  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(234, 245, 222, 0.86) 100%);
  --glass-thick: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(238, 247, 228, 0.94) 100%);
  --glass-border: rgba(255, 255, 255, 0.60);
  --glass-hl: rgba(255, 255, 255, 0.90);
  --glass-clear: rgba(255, 255, 255, 0.10);
  --glass-clear-border: rgba(255, 255, 255, 0.32);
  --surface-solid: #F3F8EE;

  --text: #0F172A;
  --text-strong: #2E3442;
  --text-2: #3F4656;
  --divider: rgba(15, 23, 42, 0.10);
  --chip: rgba(15, 23, 42, 0.07);
  --fill: rgba(15, 23, 42, 0.06);

  --primary: #1B7352;
  --glow: rgba(68, 121, 31, 0.38);
  --link: #2E561B;
  --highlight: #FBBF24;
  --on-highlight: #0C1947;
  --cta-bg: #FFFFFF;
  --cta-fg: #2E561B;
  --shadow: rgba(24, 41, 17, 0.24);
  --focus: #FBBF24;

  --done-bg: #E5F4EB; --done-fg: #1B6239;
  --danger-bg: #FEE4E2; --danger-fg: #B42318;
  --action-bg: #FEF3C7; --action-fg: #92400E;
  --progress-bg: #ECF3FF; --progress-fg: #1839A5;
  --neutral-bg: #F0F2F5; --neutral-fg: #3B4452;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15290E;
    --glow-a: rgba(27, 115, 82, 0.40);
    --glow-b: rgba(134, 227, 190, 0.08);
    --glow-c: rgba(107, 112, 18, 0.22);
    --on-bg-2: rgba(255, 255, 255, 0.78);
    --nav-bg: rgba(21, 41, 14, 0.86);
    --frame-bg: rgba(255, 255, 255, 0.03);

    --title-grad: linear-gradient(90deg, #B5EC7E 0%, #86E3BE 55%, #FFD98A 100%);
    --heading-grad: linear-gradient(90deg, #BDEB95 0%, #9BE8CB 55%, #FFE19A 100%);
    --sec-fill: linear-gradient(90deg, #15351D 0%, #2C390F 100%);
    --sec-edge: linear-gradient(90deg, #B5EC7E 0%, #86E3BE 55%, #FFD98A 100%);
    --sec-text: linear-gradient(90deg, #BDEB95 0%, #9BE8CB 55%, #FFE19A 100%);
    --sel: linear-gradient(135deg, rgba(68, 121, 31, 0.32) 0%, rgba(107, 112, 18, 0.26) 100%);

    --glass: linear-gradient(135deg, rgba(33, 60, 19, 0.80) 0%, rgba(18, 34, 14, 0.82) 100%);
    --glass-thick: linear-gradient(135deg, rgba(30, 56, 18, 0.88) 0%, rgba(18, 34, 14, 0.90) 100%);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-hl: rgba(255, 255, 255, 0.12);
    --glass-clear: rgba(255, 255, 255, 0.08);
    --glass-clear-border: rgba(255, 255, 255, 0.20);
    --surface-solid: #142110;

    --text: #F1F2F8;
    --text-strong: #D6D8E8;
    --text-2: #B4B6CE;
    --divider: rgba(255, 255, 255, 0.10);
    --chip: rgba(255, 255, 255, 0.10);
    --fill: rgba(255, 255, 255, 0.08);

    --link: #B9E68F;
    --shadow: rgba(0, 0, 0, 0.45);

    --done-bg: #12301F; --done-fg: #86EFAC;
    --danger-bg: #3D1414; --danger-fg: #F97066;
    --action-bg: #3A2A0A; --action-fg: #FCD34D;
    --progress-bg: #1D2B61; --progress-fg: #BED5FE;
    --neutral-bg: #1D254B; --neutral-fg: #C9CBE0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15290E;
  --glow-a: rgba(27, 115, 82, 0.40);
  --glow-b: rgba(134, 227, 190, 0.08);
  --glow-c: rgba(107, 112, 18, 0.22);
  --on-bg-2: rgba(255, 255, 255, 0.78);
  --nav-bg: rgba(21, 41, 14, 0.86);
  --frame-bg: rgba(255, 255, 255, 0.03);

  --title-grad: linear-gradient(90deg, #B5EC7E 0%, #86E3BE 55%, #FFD98A 100%);
  --heading-grad: linear-gradient(90deg, #BDEB95 0%, #9BE8CB 55%, #FFE19A 100%);
  --sec-fill: linear-gradient(90deg, #15351D 0%, #2C390F 100%);
  --sec-edge: linear-gradient(90deg, #B5EC7E 0%, #86E3BE 55%, #FFD98A 100%);
  --sec-text: linear-gradient(90deg, #BDEB95 0%, #9BE8CB 55%, #FFE19A 100%);
  --sel: linear-gradient(135deg, rgba(68, 121, 31, 0.32) 0%, rgba(107, 112, 18, 0.26) 100%);

  --glass: linear-gradient(135deg, rgba(33, 60, 19, 0.80) 0%, rgba(18, 34, 14, 0.82) 100%);
  --glass-thick: linear-gradient(135deg, rgba(30, 56, 18, 0.88) 0%, rgba(18, 34, 14, 0.90) 100%);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-hl: rgba(255, 255, 255, 0.12);
  --glass-clear: rgba(255, 255, 255, 0.08);
  --glass-clear-border: rgba(255, 255, 255, 0.20);
  --surface-solid: #142110;

  --text: #F1F2F8;
  --text-strong: #D6D8E8;
  --text-2: #B4B6CE;
  --divider: rgba(255, 255, 255, 0.10);
  --chip: rgba(255, 255, 255, 0.10);
  --fill: rgba(255, 255, 255, 0.08);

  --link: #B9E68F;
  --shadow: rgba(0, 0, 0, 0.45);

  --done-bg: #12301F; --done-fg: #86EFAC;
  --danger-bg: #3D1414; --danger-fg: #F97066;
  --action-bg: #3A2A0A; --action-fg: #FCD34D;
  --progress-bg: #1D2B61; --progress-fg: #BED5FE;
  --neutral-bg: #1D254B; --neutral-fg: #C9CBE0;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--on-bg);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 30%, var(--glow-a), transparent 70%),
    radial-gradient(50% 45% at 92% 8%, var(--glow-b), transparent 70%),
    radial-gradient(70% 60% at 72% 95%, var(--glow-c), transparent 72%);
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.glass, .glass-thick { --focus: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 12px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

/* Gradient text */
.grad-title, .grad-heading, .grad-sec { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.grad-title { background-image: var(--title-grad); }
.grad-heading { background-image: var(--heading-grad); }
.grad-sec { background-image: var(--sec-text); }

/* Glass */
.glass { background: var(--glass); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hl), 0 22px 44px -22px var(--shadow); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); border-radius: 24px; color: var(--text); }
.glass-thick { background: var(--glass-thick); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hl), 0 24px 48px -24px var(--shadow); -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%); color: var(--text); }
.glass-clear { background: var(--glass-clear); border: 1px solid var(--glass-clear-border); color: var(--on-bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px/1.2 "Inter", system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-light { background: var(--cta-bg); color: var(--cta-fg); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5); }
.btn-primary { background: var(--primary-grad); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px var(--glow); }
.btn-secondary { border: 1.5px solid transparent; background: var(--sec-fill) padding-box, var(--sec-edge) border-box; color: var(--text); }
.btn-clear { background: var(--glass-clear); border: 1px solid var(--glass-clear-border); color: var(--on-bg); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 700; padding: 3px 9px; border-radius: 8px; white-space: nowrap; letter-spacing: 0.01em; }
.badge-pro { background: var(--action-bg); color: var(--action-fg); }
.badge-free { background: var(--done-bg); color: var(--done-fg); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--nav-bg); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--glass-clear-border); }
.nav-inner { max-width: 1240px; margin-inline: auto; padding: 0 24px; min-height: 70px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--on-bg); font-weight: 800; font-size: 20px; letter-spacing: -0.025em; }
.mark { display: block; width: 36px; height: 36px; flex-shrink: 0; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.mark-lg { width: 88px; height: 88px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 14px 32px rgba(0, 0, 0, 0.22); }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 10px 12px; border-radius: 999px; color: var(--on-bg-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--on-bg); background: var(--glass-clear); }
.nav-links a[aria-current] { color: var(--on-bg); background: var(--glass-clear); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--glass-clear-border); background: var(--glass-clear); color: var(--on-bg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.menu-btn { display: none; }
.menu-btn .ico-close { display: none; }
.menu-open .menu-btn .ico-close { display: block; }
.menu-open .menu-btn .ico-burger { display: none; }
.menu { display: none; }
@media (max-width: 1060px) {
  .js .nav-links { display: none; }
  .js .menu-btn { display: inline-flex; }
  .js .menu-open .menu { display: block; }
  html:not(.js) .nav-inner { flex-wrap: wrap; }
  html:not(.js) .nav-links { order: 3; width: 100%; overflow-x: auto; margin: 0 0 8px; }
}
.menu { border-top: 1px solid var(--glass-clear-border); padding: 8px 16px 20px; }
.menu nav { display: flex; flex-direction: column; gap: 2px; max-width: 640px; margin-inline: auto; }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 14px; color: var(--on-bg); text-decoration: none; font-size: 17px; font-weight: 600; }
.menu nav a:hover { background: var(--glass-clear); }
.menu nav a .ico { color: var(--on-bg-2); width: 18px; height: 18px; }
.menu .btn { display: flex; width: 100%; max-width: 640px; margin: 14px auto 0; }
@media (min-width: 561px) { .menu .btn { display: none; } }
@media (max-width: 560px) {
  .js .nav-actions .btn-get { display: none; }
  .nav-inner { padding-inline: 16px; gap: 10px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section + .section { border-top: 1px solid var(--glass-clear-border); }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-bg-2); }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--highlight); flex-shrink: 0; }
.eyebrow .badge { letter-spacing: 0.02em; text-transform: none; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 5.3vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-weight: 800; font-size: clamp(2.05rem, 4.2vw, 3.35rem); line-height: 1.05; letter-spacing: -0.04em; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--on-bg-2); max-width: 42em; }
.note-on-bg { font-size: 14px; line-height: 1.55; color: var(--on-bg-2); max-width: 64em; }
.note-on-bg a { color: var(--on-bg); font-weight: 600; text-underline-offset: 3px; }

/* Grids and tiles */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-3 { grid-column: span 2; } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
}
.tile { padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile h3 { font-size: 1.28rem; line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; align-self: flex-start; }
.tile p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ico-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-grad); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 16px var(--glow); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.list-check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.list-check li .ico { color: var(--link); margin-top: 2px; }
.list-check li b { color: var(--text); font-weight: 600; }
.list-dot { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-dot li { position: relative; padding-inline-start: 20px; color: var(--on-bg-2); font-size: 15.5px; line-height: 1.55; }
.list-dot li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); }
.list-dot li b { color: var(--on-bg); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.hero-device { display: flex; justify-content: center; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.soon { display: inline-flex; align-items: center; gap: 9px; color: var(--on-bg-2); font-size: 15px; font-weight: 500; }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22); }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--on-bg-2); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Premium ---------- */
.pro-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .pro-grid { grid-template-columns: minmax(0, 1fr); } }
.table-box { padding: 8px 24px 12px; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
@media (max-width: 640px) { .cmp { min-width: 0; } .cmp td, .cmp th { font-size: 14px; } .table-box { padding-inline: 16px; } }
.cmp th { text-align: start; padding: 16px 12px 12px 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.cmp th:not(:first-child), .cmp td:not(:first-child) { width: 25%; }
.cmp td { padding: 13px 12px 13px 0; border-top: 1px solid var(--divider); font-size: 15px; line-height: 1.45; color: var(--text); vertical-align: top; }
.cmp td:not(:first-child) { color: var(--text-2); }
.cmp .yes { display: inline-flex; align-items: center; gap: 6px; color: var(--done-fg); font-weight: 600; }
.cmp .no { color: var(--text-2); }
.cmp .hl { color: var(--text); font-weight: 600; }
.price { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.price .amount { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.price .sub { font-size: 15px; color: var(--text-2); }


/* ---------- Privacy ---------- */
.more-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }


/* ---------- Languages ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .chips span { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--fill); border: 1px solid var(--divider); color: var(--text); }
.chips li.on, .chips span.on { background: var(--primary-grad); color: #FFFFFF; border-color: transparent; box-shadow: 0 4px 12px var(--glow); }
.sample { border-radius: 18px; padding: 18px; background: var(--fill); display: flex; flex-direction: column; gap: 6px; }
.sample .en { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }
.sample .tr { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.4; color: var(--text-2); }
.sample small { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.swatches span { aspect-ratio: 1; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); position: relative; }
.swatches span.on { box-shadow: 0 0 0 3px var(--link), inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.sw-cobalt { background: linear-gradient(135deg, #2148C4, #0B6FB0, #0E7C86); }
.sw-indigo { background: linear-gradient(135deg, #4F46E5, #7C3AED, #C026D3); }
.sw-moss { background: linear-gradient(135deg, #1B7352, #44791F, #6B7012); }
.sw-hibiscus { background: linear-gradient(135deg, #B0224B, #C2410C, #B45309); }
.sw-terracotta { background: linear-gradient(135deg, #9A4022, #B45309, #A16207); }
.sw-cloud { background: linear-gradient(135deg, #F0EEE9, #E6E1F5); }
.swatch-names { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; font-size: 11.5px; color: var(--text-2); text-align: center; }
@media (max-width: 420px) { .swatch-names { display: none; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 20px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 15px; background: var(--fill); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--link); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.62; max-width: 66ch; }

/* ---------- Get ---------- */
.get { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.store-ph { width: 190px; min-height: 60px; border-radius: 14px; border: 1.5px dashed var(--glass-clear-border); background: var(--glass-clear); color: var(--on-bg); display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 16px; text-align: start; }
.store-ph small { font-size: 12px; color: var(--on-bg-2); }
.store-ph b { font-size: 17px; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { padding-block: 52px 40px; border-top: 1px solid var(--glass-clear-border); background: var(--frame-bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.1fr); gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--on-bg-2); font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-h { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-bg-2); margin-bottom: 6px; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--on-bg); text-decoration: none; font-size: 15px; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col a .ico { width: 14px; height: 14px; opacity: 0.75; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--glass-clear-border); font-size: 13.5px; line-height: 1.6; color: var(--on-bg-2); }
.footer-legal p:first-child { max-width: 66ch; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 44px); }
.legal-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.legal-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 20px; background: var(--glass-clear); border: 1px solid var(--glass-clear-border); }
.legal-tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 16px; font-size: 14.5px; font-weight: 600; color: var(--on-bg); text-decoration: none; }
.legal-tabs a[aria-current="page"] { background: var(--primary-grad); color: #FFFFFF; box-shadow: 0 4px 12px var(--glow); }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chips span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--glass-clear); border: 1px solid var(--glass-clear-border); font-size: 13.5px; color: var(--on-bg); }
.meta-chips .ico { width: 15px; height: 15px; color: var(--on-bg-2); }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin-top: 10px; width: 100%; }
@media (max-width: 1040px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .glance { grid-template-columns: minmax(0, 1fr); } }
.glance .tile h3 { font-size: 1.08rem; }
.glance .tile p { font-size: 14.5px; }
.glance .ico-tile { width: 34px; height: 34px; border-radius: 10px; }
.doc-wrap { padding-bottom: clamp(56px, 8vw, 100px); }
.doc-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.toc { flex: 1 1 240px; max-width: 290px; border-radius: 20px; padding: 6px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 12px; list-style: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0 0 6px; display: flex; flex-direction: column; gap: 1px; }
.toc ol a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 12px; border-radius: 12px; font-size: 14.5px; color: var(--text); text-decoration: none; }
.toc ol a span { width: 18px; font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.toc ol a[aria-current] { background: var(--sel); font-weight: 600; }
@media (max-width: 860px) { .toc { max-width: none; flex-basis: 100%; } }
.doc { flex: 999 1 560px; min-width: 0; border-radius: 28px; padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.68; color: var(--text-2); }
.doc section { display: flex; flex-direction: column; gap: 14px; }
.doc section + section { border-top: 1px solid var(--divider); padding-top: 32px; margin-top: 18px; }
.doc h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 800; }
.doc h2 .n { width: 34px; height: 34px; border-radius: 17px; background: var(--sel); color: var(--link); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; letter-spacing: 0; flex-shrink: 0; -webkit-text-fill-color: currentColor; }
.doc h3 { font-size: 1.06rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin-top: 6px; }
.doc p b, .doc li b { color: var(--text); font-weight: 600; }
.doc ul, .doc ol.steps { padding-inline-start: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc ul li { position: relative; padding-inline-start: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--link); opacity: 0.55; }
.doc ol.steps { counter-reset: step; }
.doc ol.steps li { position: relative; padding-inline-start: 42px; min-height: 30px; counter-increment: step; }
.doc ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 15px; background: var(--primary-grad); color: #FFFFFF; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.doc a { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
.callout { border-radius: 16px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; background: var(--action-bg); color: var(--action-fg); }
.callout b { display: block; color: var(--action-fg) !important; margin-bottom: 4px; }
.callout p { color: var(--action-fg); font-size: 15px; line-height: 1.6; }
.callout .ico { margin-top: 3px; }
.callout-info { background: var(--sel); color: var(--text); }
.callout-info b, .callout-info p { color: var(--text) !important; }
.callout-info .ico { color: var(--link); }
.doc-table-box { overflow-x: auto; border-radius: 16px; border: 1px solid var(--divider); }
.doc-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; line-height: 1.5; }
.doc-table th { text-align: start; padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--text); background: var(--fill); }
.doc-table td { padding: 12px 14px; border-top: 1px solid var(--divider); vertical-align: top; color: var(--text-2); }
.doc-table td:first-child { color: var(--text); font-weight: 600; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; padding: 16px 18px; border-radius: 16px; background: var(--fill); font-size: 15px; }
.kv dt { color: var(--text-2); }
.kv dd { color: var(--text); font-weight: 600; }
@media (max-width: 480px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } }
.doc-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--divider); font-size: 14.5px; }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
.mail { font-size: 1.25rem; font-weight: 700; color: var(--link) !important; text-decoration: none; word-break: break-word; }

/* 404 */
.nf { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.nf-card { width: 100%; max-width: 560px; border-radius: 28px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.nf-card .q { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .grad-title, .grad-heading, .grad-sec { -webkit-text-fill-color: CanvasText; color: CanvasText; background: none; } }
.toc-phone { display: none; }
@media (max-width: 860px) { .toc-desk { display: none; } .toc-phone { display: block; } }
@media (max-width: 640px) {
  .doc-table { min-width: 0; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr + tr { border-top: 1px solid var(--divider); }
  .doc-table tr { padding: 12px 0; }
  .doc-table td { border-top: 0; padding: 2px 14px; }
  .doc-table td:first-child { padding-bottom: 4px; }
}

/* ---------- Site build additions ---------- */

/* Inter, self-hosted (SIL Open Font License, fonts/OFL.txt). One variable file per subset, weights 400–800. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400 800; src: url("fonts/inter-vietnamese-wght-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400 800; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400 800; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Skip link */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; border-radius: 12px; background: var(--cta-bg); color: var(--cta-fg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* Appearance button: one icon per choice (System, Light, Dark) */
.theme-btn .ico { display: none; }
:root:not([data-theme]) .theme-btn .ico-auto, :root[data-theme="light"] .theme-btn .ico-sun, :root[data-theme="dark"] .theme-btn .ico-moon { display: block; }
.ico-auto path.fill { fill: currentColor; stroke: none; }


/* Small layout helpers (the canvas's inline styles) */
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.col-10 { display: flex; flex-direction: column; gap: 10px; }
.col-4 { display: flex; flex-direction: column; gap: 4px; }
.divider { height: 1px; background: var(--divider); flex-shrink: 0; }
.grow { flex-grow: 1; }
.split-top { align-items: start; }
.stack-12 { gap: 12px; }
.tile-table { padding-bottom: 12px; }
.small-note { font-size: 14px; color: var(--text-2); }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.after-grid { margin-top: 28px; max-width: 900px; }
.split-wide { gap: clamp(24px, 4vw, 56px); }
.price h3 { font-size: 1.28rem; font-weight: 700; }
.card-h2 { font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 700; align-self: flex-start; }
.mt-section { margin-top: clamp(48px, 7vw, 88px); }
.btn-end { align-self: flex-start; margin-top: auto; }
.text-2 { color: var(--text-2); }
.footer-min { padding-block: 24px; }
.footer-min .footer-legal { margin-top: 0; padding-top: 0; border-top: 0; }
.glance .tile { margin: 0; }

/* Legal pages: the contents list stays in view on wide screens */
@media (min-width: 861px) { .toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; } }
.toc summary .ico { transition: transform 0.2s; }
.toc[open] summary .ico { transform: rotate(180deg); }
@media (min-width: 861px) { .toc summary .ico { display: none; } }
.doc section { scroll-margin-top: 96px; }
.section { scroll-margin-top: 64px; }

/* Reduce Transparency: every surface solid, as in the app */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-thick { background: var(--surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body::before { display: none; }
}

/* Lists drawn as rows of chips or choices */
.chips, .choices, .badges { list-style: none; padding: 0; margin: 0; }
.cmp tbody th { text-align: start; text-transform: none; letter-spacing: 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--text); padding: 13px 12px 13px 0; border-top: 1px solid var(--divider); vertical-align: top; }
@media (max-width: 640px) { .cmp tbody th { font-size: 14px; } }
.tile .tile-h { font-size: 1.08rem; line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; align-self: flex-start; }


/* ---------- ResidentStep: the home page's samples ---------- */
.sample-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.sample-card { width: 100%; max-width: 400px; padding: 22px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.sample-card figcaption, .sample-card .sample-label { align-self: flex-start; }
.sample-card h2, .sample-card h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; align-self: flex-start; }
.clock { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--fill); }
.clock small { font-size: 14px; line-height: 20px; color: var(--text-2); }
.clock b { font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.status-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.status-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--divider); }
.status-list li:first-child { border-top: 0; padding-top: 4px; }
.status-list li > span:first-child { flex: 1 1 12em; min-width: 0; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.status-list li small { display: block; font-size: 13.5px; color: var(--text-2); }
.badge-done { background: var(--done-bg); color: var(--done-fg); }
.badge-progress { background: var(--progress-bg); color: var(--progress-fg); }
.badge-action { background: var(--action-bg); color: var(--action-fg); }
.badge-danger { background: var(--danger-bg); color: var(--danger-fg); }
.stages { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stages li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.stages li + li::before { content: ""; width: 14px; height: 2px; border-radius: 1px; background: var(--divider); }
.stages .badge { font-size: 13px; padding: 5px 10px; }
.statements { list-style: none; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.statements li { counter-increment: st; position: relative; padding: 14px 16px 14px 54px; border-radius: 16px; background: var(--fill); font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--text); }
.statements li::before { content: counter(st); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 14px; background: var(--primary-grad); color: #FFFFFF; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.free-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--done-fg); background: var(--done-bg); padding: 6px 12px; border-radius: 999px; align-self: flex-start; }
.lang-soon { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.store-ph { list-style: none; }
.badges-start { justify-content: flex-start; margin-top: 0; }
.hero .sample-card { justify-self: center; }
@media (max-width: 860px) { .hero .sample-card { justify-self: stretch; max-width: none; } }
.cmp .yes-text { color: var(--done-fg); font-weight: 600; }
.sample-card h4 { font-size: 1.1rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; align-self: flex-start; }
.legal-hero .summary { width: 100%; max-width: 900px; margin-top: 6px; }
.legal-hero .summary .small-note { margin-top: 2px; }
.footer-grid-5 { grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 0.85fr)); }
@media (max-width: 1100px) { .footer-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid-5 .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid-5 { grid-template-columns: minmax(0, 1fr); } }
.tile .callout { margin-top: 4px; }
.mini-card { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--fill); border: 1px solid var(--divider); }
.tile.sample-card { max-width: none; }
.hero .sample-card { max-width: 400px; }
/* Text on clear glass is always --on-bg (4.5:1 over the light backdrop); 44-px targets for every link list. */
.store-ph small { color: var(--on-bg); }
.footer-col a, .toc ol a, .legal-tabs a, .link { min-height: 44px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.doc-end a, a.mail { display: inline-flex; align-items: center; min-height: 44px; }
