/* ==========================================================
   Clancy Mobile — shared styles
   Palette pulled from the logo (navy + field green), grounded
   with wet-soil browns and cool after-rain mist.
   ========================================================== */

:root {
  /* Brand */
  --navy: #162940;          /* logo box */
  --navy-2: #1f3653;
  --field: #0d6941;         /* logo bars */
  --field-2: #11834f;
  --sprout: #6fb38a;        /* light green for dark backgrounds */

  /* Earth + rain */
  --soil: #2e241b;
  --soil-2: #43362a;
  --slate: #5e6e70;
  --lichen: #a9c2b4;
  --mist: #e9efec;
  --dew: #f6f9f7;

  --ink: #17232c;
  --ink-soft: #46555a;
  --line: rgba(22, 41, 64, 0.14);

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --pill: 999px;

  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Grain tile (SVG noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0 0.1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fine soil grain across the whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: .16;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: var(--field); text-underline-offset: 3px; }
a:hover { color: var(--field-2); }

:focus-visible {
  outline: 3px solid var(--field-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: .5rem;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 200;
}
.skip:focus { left: .5rem; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 .6em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 105%; line-height: 1.2; }
h4 { font-size: var(--step-0); font-stretch: 100%; }

p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.small { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Preview banner ---------- */

.preview-bar {
  background: var(--soil);
  color: #e9e1d6;
  font-size: var(--step--1);
  text-align: center;
  padding: .55rem 1rem;
}
.preview-bar strong { color: #fff; font-weight: 700; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233, 239, 236, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.brand img { height: 40px; width: auto; }
.primary-nav { display: flex; gap: .25rem; margin-left: auto; }
.primary-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: .5rem .8rem; border-radius: var(--pill); font-size: .98rem; white-space: nowrap;
}
.primary-nav a:hover { background: rgba(13, 105, 65, .09); color: var(--field); }
.primary-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.primary-nav .nav-cta { display: none; }
.lang-btn {
  background: none; border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: var(--pill); cursor: pointer;
}
.lang-btn:hover { border-color: var(--field); color: var(--field); }

.menu-btn {
  display: none; background: var(--navy); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .primary-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: .2rem;
    background: var(--dew); padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(22, 41, 64, .35);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a.nav-cta { display: inline-flex; margin-top: .75rem; color: #fff; padding: .7rem 1.4rem; }
  .primary-nav a { padding: .85rem 1rem; font-size: 1.1rem; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
  .header-inner { gap: .75rem; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand img { height: 32px; }
  .lang-btn { padding: .4rem .6rem; }
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--field); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bg); color: var(--fg);
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  min-height: 48px; padding: .7rem 1.4rem;
  border-radius: var(--pill);
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px rgba(13, 105, 65, .7);
}
.btn:hover { background: var(--field-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-navy { --bg: var(--navy); box-shadow: 0 6px 16px -8px rgba(22, 41, 64, .8); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost {
  --bg: transparent; --fg: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { --bg: var(--dew); --fg: var(--navy); box-shadow: none; }
.btn-light:hover { background: #fff; color: var(--field); }
.btn-sm { min-height: 40px; padding: .45rem 1.05rem; font-size: .92rem; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.band-soil {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(111, 179, 138, .14), transparent 55%),
    linear-gradient(170deg, var(--soil-2), var(--soil));
  color: #ede6dc;
  position: relative;
}
.band-soil h2, .band-soil h3 { color: #fff; }
.band-soil p { color: #d9cfc2; }

.band-navy {
  background:
    radial-gradient(circle at 85% 20%, rgba(13, 105, 65, .35), transparent 50%),
    var(--navy);
  color: #dbe5ee;
}
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p { color: #c4d1dd; }

.band-dew { background: var(--dew); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(169, 194, 180, .55), transparent 70%),
    linear-gradient(180deg, #dfe8e4, var(--mist));
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 56ch; }
.page-hero::after {
  /* Ripple rings: raindrop in a puddle */
  content: "";
  position: absolute; right: -120px; bottom: -220px;
  width: 520px; height: 520px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(13, 105, 65, .12) 35px 36px);
  pointer-events: none;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%, rgba(246, 249, 247, .95), transparent 70%),
    radial-gradient(ellipse 80% 70% at 10% 100%, rgba(169, 194, 180, .6), transparent 70%),
    linear-gradient(180deg, #d8e3df 0%, var(--mist) 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem); max-width: 13ch; }
.hero .lede { max-width: 40ch; }

.globe-wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}
.globe-wrap canvas { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.globe-wrap::before {
  /* soft atmosphere, like fog lifting */
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255,255,255,.9), rgba(233,239,236,.2) 55%, transparent 72%);
  box-shadow: 0 40px 80px -40px rgba(22, 41, 64, .45), inset 0 -30px 60px -20px rgba(13, 105, 65, .18);
}
.globe-caption {
  position: absolute; z-index: 2; left: 50%; bottom: 2%; transform: translateX(-50%);
  background: rgba(246, 249, 247, .9);
  border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: var(--pill);
  font-size: .85rem; color: var(--ink-soft); white-space: nowrap;
  display: flex; gap: 1rem; align-items: center;
}
.key { display: inline-flex; align-items: center; gap: .45rem; }
.key::before { content: ""; width: 18px; height: 0; border-top: 2.5px solid; border-radius: 2px; }
.key-green::before { border-color: #0d6941; }
.key-blue::before { border-color: #2563ab; border-top-style: dashed; }
@media (max-width: 420px) { .globe-caption { font-size: .78rem; gap: .7rem; padding: .35rem .75rem; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .globe-wrap { order: -1; max-width: 340px; margin-bottom: -1rem; }
  .hero h1 { max-width: 14ch; }
}

/* ---------- ZIP ripple checker ---------- */

.zip-form { margin-top: 2rem; max-width: 480px; }
.zip-form label { display: block; font-weight: 700; margin-bottom: .5rem; color: var(--navy); }
.zip-field {
  position: relative;
  display: flex; align-items: center;
  background: #fff;
  border-radius: var(--pill);
  padding: .4rem .4rem .4rem 1.4rem;
  box-shadow: 0 0 0 1.5px var(--line), 0 18px 40px -24px rgba(22, 41, 64, .55);
  transition: box-shadow .3s var(--ease);
  isolation: isolate;
}
.zip-field:focus-within { box-shadow: 0 0 0 2.5px var(--field), 0 18px 40px -24px rgba(22, 41, 64, .55); }
.zip-field input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font: inherit; font-size: 1.3rem; font-weight: 600; letter-spacing: .08em;
  color: var(--navy);
}
.zip-field input::placeholder { color: #9aa8ab; letter-spacing: .02em; font-weight: 500; }
.zip-field .btn { flex-shrink: 0; }

/* Ripple rings when someone starts typing */
.zip-field::before, .zip-field::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--pill);
  border: 2px solid var(--field); opacity: 0; z-index: -1; pointer-events: none;
}
.zip-field.rippling::before { animation: ripple 1.6s var(--ease) forwards; }
.zip-field.rippling::after { animation: ripple 1.6s .35s var(--ease) forwards; }
@keyframes ripple {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.18, 1.6); opacity: 0; }
}
.zip-msg { min-height: 1.6em; margin-top: .55rem; font-size: .95rem; color: var(--ink-soft); }
.zip-msg.error { color: #a3361f; font-weight: 600; }

/* ---------- Plan card (hero) ---------- */

.plan-chip {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem;
  padding: .75rem 1.1rem .75rem .75rem;
  background: var(--navy); color: #fff;
  border-radius: var(--pill);
}
.plan-chip .price {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 78px; height: 78px; flex-shrink: 0; border-radius: 50%;
  background: var(--field); font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.5rem; line-height: 1; text-align: center;
}
.plan-chip .price small { display: block; font-size: .64rem; line-height: 1.1; font-style: normal; font-weight: 600; font-family: var(--font-body); opacity: .9; white-space: nowrap; }
.plan-chip ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.45; }

/* ---------- Eligibility paths ---------- */

.paths {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}
.path {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--dew);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6px;
  border: 1px solid var(--line);
}
.path-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(13, 105, 65, .1); color: var(--field);
}
.path-icon svg { width: 28px; height: 28px; }
.path ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.path li { margin-bottom: .25rem; }
.or-divider { display: none; }
@media (max-width: 880px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Grass / signal story ---------- */

.roots-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.blades { position: relative; height: 320px; display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.blade {
  width: 46px; border-radius: 46px 46px 6px 6px;
  background: linear-gradient(180deg, var(--sprout), var(--field) 60%, #0a4f31);
  transform-origin: bottom center;
  transform: skewX(-14deg) scaleY(.08);
  transition: transform 1.4s var(--ease);
  box-shadow: inset 4px 0 0 rgba(255,255,255,.15);
}
.blade:nth-child(1) { height: 42%; transition-delay: 0s; }
.blade:nth-child(2) { height: 70%; transition-delay: .18s; }
.blade:nth-child(3) { height: 100%; transition-delay: .36s; }
.blades.grown .blade { transform: skewX(-14deg) scaleY(1); }
.blades::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -14px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%);
}
.roots-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.roots-list li { display: grid; grid-template-columns: 14px 1fr; gap: 1rem; align-items: start; }
.roots-list li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; margin-top: .45rem;
  background: var(--sprout); box-shadow: 0 0 0 5px rgba(111, 179, 138, .18);
}
.roots-list strong { color: #fff; display: block; }
@media (max-width: 880px) {
  .roots-grid { grid-template-columns: 1fr; }
  .blades { height: 200px; }
}

/* ---------- Two-path split (free vs prepaid) ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem;
}
.split-card {
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; overflow: hidden;
  min-height: 280px; display: flex; flex-direction: column;
}
.split-card .btn { margin-top: auto; align-self: flex-start; }
.split-free { background: var(--field); color: #e5f2ea; }
.split-free h3 { color: #fff; }
.split-free p { color: #d7ebde; }
.split-prepaid { background: var(--dew); border: 1px solid var(--line); }
.split-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(255,255,255,.12) 23px 24px);
}
.split-prepaid::after { background: repeating-radial-gradient(circle, transparent 0 22px, rgba(22,41,64,.07) 23px 24px); }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: var(--pill);
  background: rgba(22, 41, 64, .08); color: var(--navy); margin-bottom: 1rem; align-self: flex-start;
}
.split-free .tag { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ / accordion ---------- */

.faq { margin-top: 2rem; display: grid; gap: .75rem; max-width: 860px; }
.faq details {
  background: var(--dew);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 1.4rem;
  transition: background-color .3s var(--ease);
}
.faq details[open] { background: #fff; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(13, 105, 65, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6941' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 1.25rem; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Generic layout helpers ---------- */

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1rem; }

.panel {
  background: var(--dew); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
}
.panel-white { background: #fff; }

.check-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .65rem; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; }
.check-list li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; margin-top: .1rem;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

.notice {
  display: grid; grid-template-columns: 26px 1fr; gap: .8rem;
  background: rgba(13, 105, 65, .08);
  border-left: 4px solid var(--field);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .97rem;
}
.notice svg { width: 24px; height: 24px; color: var(--field); }
.notice p { margin: 0; }

/* ---------- Plans & devices ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; align-items: stretch; }
.plan {
  background: var(--dew); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column;
}
.plan.featured { background: var(--navy); color: #c9d6e2; border-color: var(--navy); }
.plan.featured h3, .plan.featured .plan-price { color: #fff; }
.plan.featured .check-list li::before { background-color: var(--field-2); }
.plan-price { font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: 110%; font-size: 2.6rem; color: var(--navy); line-height: 1; margin: .5rem 0 .25rem; }
.plan-price span { font-size: 1rem; font-family: var(--font-body); font-style: normal; font-weight: 600; opacity: .7; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; } }

.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.device {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--line); text-align: center;
}
.device-art {
  height: 200px; display: grid; place-items: center; margin-bottom: 1rem;
  background: radial-gradient(circle at 50% 60%, var(--mist), transparent 70%);
}
.phone {
  width: 92px; height: 180px; border-radius: 20px; position: relative;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 20px 30px -16px rgba(22, 41, 64, .6), inset 0 0 0 3px rgba(255,255,255,.12);
}
.phone::before {
  content: ""; position: absolute; inset: 7px; border-radius: 14px;
  background: radial-gradient(circle at 70% 25%, rgba(111,179,138,.6), transparent 50%), linear-gradient(180deg, #1a3248, #0c1824);
}
.phone::after {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 6px; border-radius: 6px; background: #05090d;
}
@media (max-width: 900px) { .devices { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- Apply flow ---------- */

.flow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.flow-steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 100px; }
.flow-steps li {
  display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: center;
  padding: .55rem 0; color: var(--ink-soft); font-weight: 600; position: relative;
}
.flow-steps li .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); background: var(--dew); font-size: .9rem; color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.flow-steps li + li::before {
  content: ""; position: absolute; left: 16px; top: -10px; height: 20px; width: 2px; background: var(--line);
}
.flow-steps li.active { color: var(--navy); }
.flow-steps li.active .dot { border-color: var(--field); background: var(--field); color: #fff; box-shadow: 0 0 0 6px rgba(13,105,65,.14); }
.flow-steps li.done .dot { border-color: var(--field); color: var(--field); background: #fff; }

.flow-panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: 0 30px 60px -40px rgba(22,41,64,.5); }
.flow-panel { scroll-margin-top: 120px; }
.flow-panel[hidden] { display: none; }
.flow-panel h2 { font-size: var(--step-2); }
.flow-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 2rem; flex-wrap: wrap; }
.progress-mobile { display: none; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-steps { display: none; }
  .progress-mobile { display: block; margin-bottom: 1rem; font-weight: 700; color: var(--navy); }
  .progress-mobile .bar { height: 8px; background: rgba(22,41,64,.1); border-radius: 8px; margin-top: .5rem; overflow: hidden; }
  .progress-mobile .bar span { display: block; height: 100%; background: var(--field); border-radius: 8px; transition: width .4s var(--ease); }
}

/* Form controls */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label, .legend { font-weight: 700; color: var(--navy); }
.field .hint { font-size: .9rem; color: var(--ink-soft); margin-top: -.15rem; }
.input, select.input, textarea.input {
  font: inherit; font-size: 1.05rem;
  padding: .8rem 1rem; min-height: 50px;
  border: 1.5px solid #c3cfcb; border-radius: var(--radius-sm);
  background: var(--dew); color: var(--ink); width: 100%;
  transition: border-color .2s, background-color .2s;
}
.input:focus { outline: none; border-color: var(--field); background: #fff; box-shadow: 0 0 0 4px rgba(13,105,65,.12); }
textarea.input { min-height: 140px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.error-text { color: #a3361f; font-weight: 600; font-size: .95rem; min-height: 1.4em; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start;
  padding: 1rem 1.1rem; border-radius: var(--radius-md);
  border: 1.5px solid #c3cfcb; background: var(--dew);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  height: 100%;
}
.choice span::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #9aa8ab; margin-top: .1rem; background: #fff;
}
.choice input[type="checkbox"] + span::before { border-radius: 6px; }
.choice input:checked + span { border-color: var(--field); background: rgba(13,105,65,.07); }
.choice input:checked + span::before { border-color: var(--field); background: var(--field); box-shadow: inset 0 0 0 4px #fff; }
.choice input[type="checkbox"]:checked + span::before {
  box-shadow: none;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.choice input:focus-visible + span { outline: 3px solid var(--field-2); outline-offset: 2px; }
.choice small { display: block; color: var(--ink-soft); font-size: .88rem; margin-top: .15rem; }

.result-ring {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.25rem;
  display: grid; place-items: center; color: #fff;
  background: var(--field);
  box-shadow: 0 0 0 12px rgba(13,105,65,.14), 0 0 0 26px rgba(13,105,65,.07);
}
.result-ring svg { width: 54px; height: 54px; }

.review-list { margin: 0; display: grid; gap: .1rem; }
.review-list div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.review-list dt { font-weight: 700; color: var(--navy); }
.review-list dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .review-list div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Roadmap (sequence) ---------- */

.roadmap { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: phase; position: relative; }
.roadmap::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px;
  background: linear-gradient(90deg, var(--sprout), rgba(111,179,138,.15));
}
.roadmap li { position: relative; counter-increment: phase; }
.roadmap li::before {
  content: counter(phase);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--soil); border: 2px solid var(--sprout); color: #fff;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.3rem;
  margin-bottom: 1rem; position: relative;
}
.roadmap li.now::before { background: var(--field); border-color: var(--field); box-shadow: 0 0 0 8px rgba(111,179,138,.2); }
.roadmap h3 { margin-bottom: .35rem; }
.roadmap p { font-size: .97rem; }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--sprout), rgba(111,179,138,.15)); }
  .roadmap li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; }
  .roadmap li::before { grid-row: span 2; margin: 0; }
}

/* ---------- Help center ---------- */

.help-search { max-width: 560px; margin-top: 1.5rem; position: relative; }
.help-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--slate); }
.help-search .input { padding-left: 3rem; border-radius: var(--pill); background: #fff; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.topic {
  display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; background: var(--dew); border: 1px solid var(--line);
  border-radius: var(--radius-md); text-decoration: none; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.topic:hover { border-color: var(--field); background: #fff; color: var(--ink); }
.topic .path-icon { margin: 0; width: 48px; height: 48px; }
.topic strong { display: block; color: var(--navy); }
.topic span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topic-grid { grid-template-columns: 1fr; } }
.article { scroll-margin-top: 110px; }
.article ol, .article ul { padding-left: 1.3rem; max-width: 64ch; }
.article li { margin-bottom: .45rem; }
.no-results { display: none; padding: 1rem 0; color: var(--ink-soft); }

/* ---------- Legal ---------- */

.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.legal-nav a {
  text-decoration: none; padding: .45rem .95rem; border-radius: var(--pill);
  background: var(--dew); border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .92rem;
}
.legal-nav a:hover { border-color: var(--field); color: var(--field); }
.legal-section { scroll-margin-top: 110px; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 0; }
.draft-flag {
  display: inline-block; font-size: .82rem; font-weight: 700; color: #7a4a12;
  background: #f4e4c9; padding: .2rem .65rem; border-radius: var(--pill); margin-bottom: .75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background:
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(13,105,65,.25), transparent 60%),
    linear-gradient(180deg, var(--soil-2), var(--soil) 40%);
  color: #cfc4b6;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  font-size: .95rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: #b9ad9e; max-width: 34ch; }
.site-footer h4 { color: #fff; font-style: normal; font-stretch: 100%; font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #e3d9cc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.disclosure { padding-block: 1.75rem; font-size: .85rem; color: #a99d8e; line-height: 1.6; }
.disclosure p { max-width: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 2rem; font-size: .85rem; color: #a99d8e; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Modal + toast ---------- */

.modal {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(23, 35, 44, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(480px, 100%);
  background: var(--dew); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  transform: translateY(16px) scale(.98); transition: transform .35s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  position: relative; overflow: hidden;
}
.modal.open .modal-card { transform: none; }
.modal-card::before {
  content: ""; position: absolute; left: 50%; top: -140px; transform: translateX(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(13,105,65,.1) 27px 28px);
  pointer-events: none;
}
.modal-card > * { position: relative; }
.modal-card h2 { font-size: var(--step-2); }
.modal-card p { margin-inline: auto; color: var(--ink-soft); }
.modal-mark {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--field); color: #fff;
}
.modal-mark svg { width: 30px; height: 30px; }
.modal-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 30px);
  background: var(--navy); color: #fff; padding: .85rem 1.3rem; border-radius: var(--pill);
  font-weight: 600; font-size: .95rem; z-index: 160;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.45);
  max-width: calc(100% - 2rem); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .blade { transform: skewX(-14deg) scaleY(1); }
}

/* Help articles divided by a soft line (works with search filtering) */
.article { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.article:first-of-type { padding-top: 0; }

/* Language picker + non-Latin tweaks */
.sr-only { position: absolute; left: -999px; }
select.lang-btn { appearance: none; -webkit-appearance: none; padding-right: 1.7rem; background: var(--dew) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317232c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right .6rem center/14px no-repeat; cursor: pointer; }
html[lang="zh"] body { font-family: var(--font-body), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4, html[lang="zh"] .plan-price, html[lang="zh"] .roadmap li::before { font-style: normal; font-stretch: normal; letter-spacing: 0; }
html[lang="zh"] .hero h1 { max-width: 12ch; }
html:not([lang="en"]) .primary-nav a { font-size: .9rem; padding: .5rem .65rem; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { word-break: keep-all; }
html[lang="hi"] body { font-family: var(--font-body), "Noto Sans Devanagari", "Mangal", "Nirmala UI", "Kohinoor Devanagari", sans-serif; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4 { font-style: normal; font-stretch: normal; letter-spacing: 0; line-height: 1.25; }
.form-note { margin: .9rem 0 0; line-height: 1.5; }
.site-footer .disclosure strong { color: #e3d9cc; }
