/* Harmony Landing — design tokens
   Porcelain ground, indigo ink, jade for action, one "metro line" red used only for the route. */
@font-face { font-family: "Familjen Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/familjen-500.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/familjen-600.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/familjen-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/atkinson-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/atkinson-400i.woff2") format("woff2"); }

:root {
  --porcelain: #eef3f3;
  --paper: #ffffff;
  --ink: #18233f;
  --ink-soft: #4a5571;
  --jade: #24685a;
  --jade-deep: #1a4f44;
  --jade-wash: #dcebe6;
  --line-red: #c0392b;
  --brass: #a87a2c;
  --rule: #cbd7d6;
  --focus: #1f6fd1;
  --danger: #a3241a;
  --ok: #1d6b3a;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--jade-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--step-5); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: var(--step-4); letter-spacing: -0.025em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1em; }
.measure { max-width: 38rem; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 36rem; }
.small { font-size: var(--step--1); color: var(--ink-soft); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
section + section { border-top: 1px solid var(--rule); }
.band { background: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--porcelain) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--jade-deep); text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 8px; padding: .45rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1rem; display: none; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: .75rem; text-align: center; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem/1 var(--display); padding: .95rem 1.35rem; border-radius: 999px; border: 2px solid var(--jade); background: var(--jade); color: #fff; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--jade-deep); border-color: var(--jade-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small-btn { padding: .65rem 1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* The arrival card: the hero's signature object */
.arrival { background: var(--paper); border-radius: 18px; border: 1px solid var(--rule); padding: 1.4rem 1.4rem 1.1rem; position: relative; }
.arrival-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--rule); padding-bottom: .8rem; margin-bottom: .8rem; }
.arrival-head strong { font-family: var(--display); font-size: 1.15rem; }
.arrival .track { position: relative; }
.arrival ol { list-style: none; padding: 0; margin: 0; position: relative; }
.arrival li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; padding: .55rem 0; align-items: start; }
.arrival li .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line-red); background: var(--paper); margin-top: .35rem; position: relative; z-index: 1; justify-self: center; }
.arrival li b { display: block; font-family: var(--display); font-weight: 600; }
.arrival li span { color: var(--ink-soft); font-size: .95rem; }
.arrival .rail { position: absolute; left: calc(.8rem - 2px); top: 1rem; bottom: 1.6rem; width: 4px; background: var(--line-red); border-radius: 2px; transform-origin: top; }
.arrival-foot { font-size: var(--step--1); color: var(--ink-soft); margin-top: .6rem; }
@media (prefers-reduced-motion: no-preference) {
  .arrival .rail { animation: rail 1.4s cubic-bezier(.6,.05,.2,1) .2s both; }
  .arrival li .dot { animation: pop .35s ease-out both; }
  .arrival li:nth-child(1) .dot { animation-delay: .35s; }
  .arrival li:nth-child(2) .dot { animation-delay: .65s; }
  .arrival li:nth-child(3) .dot { animation-delay: .95s; }
  .arrival li:nth-child(4) .dot { animation-delay: 1.2s; }
  .arrival li:nth-child(5) .dot { animation-delay: 1.45s; }
}
@keyframes rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Persona chooser */
.chooser { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-top: 1.5rem; }
.chooser button { text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 14px; padding: 1rem; cursor: pointer; min-height: 6.5rem; }
.chooser button b { display: block; font-family: var(--display); font-size: 1.08rem; margin-bottom: .2rem; }
.chooser button span { font-size: .92rem; color: var(--ink-soft); }
.chooser button:hover { border-color: var(--jade); }
.chooser button[aria-pressed="true"] { border-color: var(--jade); background: var(--jade-wash); }
.chooser-result { margin-top: 1.25rem; background: var(--paper); border-left: 4px solid var(--jade); padding: 1.1rem 1.25rem; border-radius: 0 12px 12px 0; }
.chooser-result[hidden] { display: none; }
@media (max-width: 960px) { .chooser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .chooser { grid-template-columns: 1fr; } .chooser button { min-height: 0; } }

/* Route (Plan → Land → Settle): a metro line with stations — a real sequence */
.route { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.route::before { content: ""; position: absolute; left: 10%; right: 10%; top: 11px; height: 4px; background: var(--line-red); border-radius: 2px; }
.route li { position: relative; padding: 2.2rem .6rem 0; text-align: left; }
.route li::before { content: ""; position: absolute; top: 2px; left: .6rem; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--line-red); }
.route li.interchange::before { border-color: var(--ink); width: 26px; height: 26px; top: 0; }
.route h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.route p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.route .stop-num { font-family: var(--display); font-size: .85rem; color: var(--line-red); font-weight: 600; }
@media (max-width: 820px) {
  .route { grid-template-columns: 1fr; }
  .route::before { left: 9px; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; }
  .route li { padding: 0 0 1.5rem 2.75rem; }
  .route li::before { left: 0; top: 2px; }
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* City entries: a departures-board style list, not cards */
.cities { border-top: 2px solid var(--ink); margin-top: 1.5rem; }
.city { display: grid; grid-template-columns: 12rem 1fr 13rem; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.city h3 { margin: 0; font-size: var(--step-3); }
.city .zh { font-family: var(--body); color: var(--ink-soft); font-size: 1rem; display: block; margin-top: .2rem; letter-spacing: .1em; }
.city p { margin: 0 0 .4rem; }
.coverage { font-size: .92rem; border-radius: 999px; padding: .3rem .8rem; display: inline-block; font-weight: 700; }
.coverage.full { background: var(--jade-wash); color: var(--jade-deep); }
.coverage.remote { background: #f3ead8; color: #6b4a12; }
@media (max-width: 820px) { .city { grid-template-columns: 1fr; gap: .5rem; } }

/* Products */
.product { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; }
.product.featured { border: 2px solid var(--jade); }
.product .price { font-family: var(--display); font-size: var(--step-3); font-weight: 700; margin: .25rem 0 .75rem; letter-spacing: -0.02em; }
.product .price small { font-size: 1rem; color: var(--ink-soft); font-weight: 500; }
.product ul { padding-left: 1.1rem; }
.product li { margin-bottom: .35rem; }
.product .btn { margin-top: auto; align-self: flex-start; }
.product .for { color: var(--ink-soft); }
.tag { font-size: .85rem; color: var(--jade-deep); font-weight: 700; }

/* Spec tables for service detail */
.spec { width: 100%; border-collapse: collapse; margin: 1rem 0 0; background: var(--paper); border-radius: 12px; overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--rule); }
.spec th { width: 11rem; font-family: var(--display); font-weight: 600; background: #f6f9f9; }
@media (max-width: 640px) { .spec th, .spec td { display: block; width: auto; } .spec th { border-bottom: 0; padding-bottom: .2rem; } }

/* Boundaries */
.boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.boundary > div { background: var(--paper); border-radius: 14px; padding: 1.5rem; border: 1px solid var(--rule); }
.boundary h3 { font-size: var(--step-1); }
.boundary ul { padding-left: 1.1rem; margin: 0; }
.boundary li { margin-bottom: .45rem; }
.boundary .no { border-top: 4px solid var(--brass); }
.boundary .yes { border-top: 4px solid var(--jade); }
@media (max-width: 760px) { .boundary { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--jade); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; max-width: 42rem; }

/* Notices */
.notice { background: #fff8e8; border: 1px solid #e8d4a4; border-radius: 12px; padding: 1rem 1.2rem; font-size: .96rem; }
.notice strong { font-family: var(--display); }
.updated { font-size: var(--step--1); color: var(--ink-soft); }

/* Forms */
form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: .35rem; }
.hint { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid #9fb0b0; border-radius: 10px; padding: .75rem .85rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
textarea { min-height: 8rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error-text { color: var(--danger); font-size: .92rem; margin-top: .3rem; display: block; }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; align-items: start; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--jade); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; }
.form-status[data-kind="error"] { background: #fbe9e7; color: var(--danger); }
.form-status[data-kind="ok"] { background: #e6f3ea; color: var(--ok); }
.form-status[data-kind="busy"] { background: var(--jade-wash); color: var(--jade-deep); }
.form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* Article / guides */
.article { max-width: 44rem; }
.article h2 { font-size: var(--step-3); margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article li { margin-bottom: .4rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--jade); border-radius: 4px; }
.guide-list { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 2px solid var(--ink); }
.guide-list li { border-bottom: 1px solid var(--rule); }
.guide-list a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.guide-list a:hover h3 { text-decoration: underline; color: var(--jade-deep); }
.guide-list h3 { margin: 0 0 .2rem; font-size: var(--step-1); }
.guide-list p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.guide-list .read { align-self: center; font-size: .9rem; color: var(--jade-deep); white-space: nowrap; }

.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1.5rem; }
.page-head h1 { font-size: var(--step-4); max-width: 20ch; }
.crumb { font-size: .92rem; margin-bottom: 1rem; display: block; }

.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band p { color: #c9d1e3; margin: 0; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--jade-wash); border-color: var(--jade-wash); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn.ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #c9d1e3; padding: 3rem 0 2rem; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-legal { border-top: 1px solid #34406a; margin-top: 2rem; padding-top: 1.25rem; font-size: .88rem; color: #9fa9c4; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.order-summary { background: var(--jade-wash); border-radius: 14px; padding: 1.25rem; }
.order-summary .price { font-family: var(--display); font-size: var(--step-3); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .btn-row, .cta-band { display: none; } body { background: #fff; } }
