/* SwitchStation - site styles. State colors mirror switchstation-rail-mac/Sources/SwitchStationRail/UI/Theme/RailTokens.swift;
   brand orange (Switch Light) only for brand, eyebrows and the highlighted plan (brand.md B9). */
:root {
  --bg: #FBFBFA;
  --raised: #FFFFFF;
  --border: #E3E3E0;
  --hover: #F0F0EE;
  --text: #1C1C1E;
  --text-2: #6B6B70;
  --text-3: #9C9CA1;
  --input: #D99A06;
  --feedback: #E5484D;
  --working: #2F7BF5;
  --ok: #30A46C;
  --accent: #1C1C1E;
  --brand: #F26A12;
  --brand-text: #C2510C;
  --link: #1C1C1E;
  --radius: 10px;
  --max: 1040px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1B1E;
    --raised: #2C2C30;
    --border: #3A3A3F;
    --hover: #323237;
    --text: #F2F2F4;
    --text-2: #A1A1A8;
    --text-3: #6E6E75;
    --input: #F5B83D;
    --feedback: #FF6369;
    --working: #4D94FF;
    --accent: #F2F2F4;
    --brand: #FF8A3D;
    --brand-text: #FF9A55;
    --link: #F2F2F4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand em { font-style: normal; color: var(--brand); }
.brand img { width: 28px; height: 28px; }
nav.links { display: flex; gap: 20px; font-size: 14px; }
nav.links a { color: var(--text-2); text-decoration: none; }
nav.links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--raised);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn:hover { filter: brightness(1.05); }

/* Hero */
.hero { padding: 80px 0 40px; text-align: center; }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 800; }
.hero p.lead { font-size: 20px; color: var(--text-2); margin: 0 auto 28px; max-width: 620px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .hero-shot { margin-top: 48px; box-shadow: none; border-radius: 0; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* Screenshots: exported from switchstation-meta/design/sidepulse.pen, group "MKT · SwitchStation site & store" (transparent, shadow baked in) */
.shot { display: block; width: 100%; height: auto; }
.showcase .wrap { display: flex; flex-direction: column; gap: 72px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.feature.flip > img { order: 2; }
.feature h2 { font-size: 28px; margin: 0 0 12px; letter-spacing: -0.01em; }
.feature p { color: var(--text-2); margin: 0; font-size: 17px; }
.products .product img { display: block; margin-bottom: 14px; }
.card .tag { color: var(--text); font-weight: 600; margin: 0 0 8px; }
.works { margin: 28px 0 0; color: var(--text-2); }
.badge-pro { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 5px; background: var(--accent); color: #fff; transform: translateY(-3px); }


/* Scenes (full desktop images, opaque) */
.scene { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 1px 0 var(--border), 0 24px 60px rgba(0,0,0,.14); }
.hero { padding-bottom: 24px; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 52px auto 0; max-width: 900px; text-align: left; }
.hero-points li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; height: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); color: var(--text); }
.hero-points img { grid-row: span 2; }
.hero-points span { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.scene[hidden], picture[hidden] { display: none; }
picture { display: block; }

/* Problem */
.problem { background: var(--raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 0; }
.problem h2, .solution h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 14px; }
.problem p.sub, .solution p.sub { font-size: 18px; max-width: 760px; }
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.pain .dot { display: block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 12px; }
.pain h3 { margin: 0 0 6px; font-size: 17px; }
.pain p { margin: 0; color: var(--text-2); font-size: 15px; }
.bridge { margin: 44px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* Solutions */
.solution { padding: 88px 0 40px; }
.eyebrow .num { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; letter-spacing: 0; vertical-align: 1px; }
.solution .points { margin: 36px 0 8px; }
.points h3 { margin: 0 0 6px; font-size: 17px; }
.points p { margin: 0; color: var(--text-2); font-size: 15px; }
.solution > .wrap > .shot { margin-top: 8px; }
.solution .feature { margin-top: 56px; }
.feature-title { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em; }
#harness h2 { font-size: 34px; }
#harness p { color: var(--text-2); }

.viewer-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); }
.viewer-tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; }
.viewer-tabs button[aria-selected="true"] { background: var(--accent); color: var(--bg); }

.hosts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.hosts-label { font-weight: 700; }
.hosts ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hosts li { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--raised); font-size: 14px; font-weight: 600; }
.hosts-note { color: var(--text-2); font-size: 14px; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 10px; }
section p.sub { color: var(--text-2); margin: 0 0 32px; max-width: 720px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.states { display: flex; flex-direction: column; gap: 10px; }
.state { display: flex; gap: 12px; align-items: baseline; }
.state .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; transform: translateY(1px); }
.state b { min-width: 140px; }
.state span { color: var(--text-2); }

/* Pricing */
.trial { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; background: var(--raised); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; }
.trial span { color: var(--text-2); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 18px 40px rgba(242,106,18,.12); }
.plan .ribbon { position: absolute; top: -11px; left: 22px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .btn { text-align: center; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 38px; font-weight: 700; margin: 10px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-2); }
.plan .terms { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.plan li.muted { color: var(--text-3); }
.plan li.muted::before { content: "·"; color: var(--text-3); }
.fine { color: var(--text-3); font-size: 14px; margin: 18px 0 0; }
.compare { margin-top: 24px; border-top: 1px solid var(--border); }
.table-scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.compare th:last-child { color: var(--brand-text); }
.compare tr.group td { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 18px; }
.compare td.muted { color: var(--text-3); font-style: italic; }
.early { text-align: center; }
.early p.sub { margin-left: auto; margin-right: auto; }
.early .note, .hero .note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--text-2); margin: 10px 0 0; }

/* Legal pages */
.legal { max-width: 760px; padding: 48px 20px 72px; margin: 0 auto; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text-2); }

/* Blog (built by tools/build.py) */
.post { max-width: 720px; padding: 40px 20px 72px; margin: 0 auto; }
.post .crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }
.post .crumbs a { color: var(--text-2); text-decoration: none; }
.post h1 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
.post .meta { color: var(--text-3); font-size: 14px; margin: 0 0 24px; }
.post .tldr { font-size: 18px; color: var(--text); background: var(--raised); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 32px; }
.post h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.post h3 { font-size: 19px; margin: 28px 0 8px; }
.post p, .post li { color: var(--text-2); }
.post article strong { color: var(--text); }
.post article img { border-radius: var(--radius); border: 1px solid var(--border); margin: 8px 0; }
.post code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--hover); border-radius: 5px; padding: 1px 5px; }
.post pre { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
.post pre code { background: none; padding: 0; }
.post blockquote { margin: 20px 0; padding: 2px 18px; border-left: 3px solid var(--border); }
.post .table { overflow-x: auto; margin: 20px 0; }
.post table { border-collapse: collapse; width: 100%; font-size: 15px; }
.post th, .post td { border-bottom: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top; }
.post th { color: var(--text); }
.post-cta { margin-top: 48px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--raised); }
.post-cta b { font-size: 18px; }
.post-cta p { margin: 6px 0 14px; }
.blog-index .lead { color: var(--text-2); font-size: 18px; margin: 0 0 28px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--border); }
.post-list a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; }
.post-list b { font-size: 19px; color: var(--text); }
.post-list span { color: var(--text-2); }
.post-list time { color: var(--text-3); font-size: 14px; }
.post-list a:hover b { color: var(--brand-text); }
@media (max-width: 820px) { .post h1 { font-size: 30px; } }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--text-3); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--text-2); text-decoration: none; }
footer .legal-links a + a { margin-left: 18px; }

@media (max-width: 820px) {
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 40px; }
  .hero .hero-shot { margin-top: 32px; }
  .grid3 { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr 1fr; }
  .hero-points { grid-template-columns: 1fr; }
  .problem h2, .solution h2 { font-size: 30px; }
  .problem h2 br, .solution h2 br { display: none; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip > img { order: 0; }
  .showcase .wrap { gap: 48px; }
  .plans { grid-template-columns: 1fr; gap: 24px; }
  header.top .btn.small { display: none; }
  nav.links { display: none; }
  .state { flex-direction: column; gap: 2px; }
}

@media (max-width: 520px) { .pains { grid-template-columns: 1fr; } }

/* Animated stages: overlays positioned in % of the 1600x1000 scene, sized with container units */
.stage { position: relative; container-type: inline-size; }
.stage[hidden] { display: none; }
.stage [data-step] { position: absolute; opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.stage [data-step].on { opacity: 1; transform: none; }
.stage .tag { display: inline-flex; align-items: center; gap: .6cqw; padding: .6cqw 1cqw; border-radius: 999px; background: #fff; color: #1C1C1E; font-size: 1.06cqw; font-weight: 600; white-space: nowrap; box-shadow: 0 .5cqw 1.5cqw rgba(0,0,0,.2); transform: translateY(.8cqw) scale(.92); }
.stage .tag i { width: .62cqw; height: .62cqw; border-radius: 50%; }
.stage .layer.slide { transform: translateX(6cqw); }
.stage .pulse { border-radius: 22%; box-shadow: 0 0 0 0 rgba(217,154,6,.7); }
.stage .pulse.on { animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,154,6,.75); } 100% { box-shadow: 0 0 0 1.2cqw rgba(217,154,6,0); } }
.stage .callout { display: flex; flex-direction: column; gap: .2cqw; padding: .8cqw 1.1cqw; border-radius: .8cqw; background: #fff; color: #1C1C1E; box-shadow: 0 .5cqw 1.5cqw rgba(0,0,0,.16); transform: translateX(-1cqw); }
.stage .callout b { font-size: .95cqw; }
.stage .callout small { font-size: .82cqw; color: #6B6B70; }
.stage .callout::after { content: "→"; position: absolute; right: -2cqw; top: 50%; transform: translateY(-50%); font-size: 1.6cqw; color: #1C1C1E; }
.stage .pointer { width: 2cqw; transform: translate(-4cqw, 5cqw); transition: opacity .3s, transform .9s cubic-bezier(.3,.7,.2,1); }
.stage .pointer svg { width: 100%; display: block; filter: drop-shadow(0 .2cqw .3cqw rgba(0,0,0,.3)); }
.stage .pointer.on { animation: click .35s .9s ease-out 1; }
@keyframes click { 50% { transform: scale(.82); } }
.stage .ring { border-radius: .6cqw; box-shadow: 0 0 0 .25cqw var(--brand), 0 0 2cqw rgba(242,106,18,.45); transform: scale(1.04); }
.stage .focus { border-radius: .7cqw; box-shadow: 0 0 0 .3cqw var(--brand), 0 0 0 100vmax rgba(10,10,14,.28); transform: scale(1.02); }
.stage .focus em { position: absolute; left: 50%; top: -1.2cqw; transform: translate(-50%, -100%); padding: .5cqw 1cqw; border-radius: 999px; background: var(--brand); color: #fff; font-style: normal; font-weight: 700; font-size: 1cqw; white-space: nowrap; }
.stage { overflow: hidden; border-radius: 16px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.stagger { opacity: 1; transform: none; }
.reveal.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.stagger.in > * { opacity: 1; transform: none; }
.reveal.stagger.in > :nth-child(2) { transition-delay: .12s; }
.reveal.stagger.in > :nth-child(3) { transition-delay: .24s; }
.reveal.stagger.in > :nth-child(4) { transition-delay: .36s; }
.reveal.stagger.in > :nth-child(5) { transition-delay: .48s; }
.reveal.stagger.in > :nth-child(6) { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.stagger > * { opacity: 1; transform: none; transition: none; } .stage [data-step] { transition: none; } .stage .pulse.on, .stage .pointer.on { animation: none; } .stage .pointer { display: none; } }

/* Harness */
.harness-map { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; gap: 0; margin: 44px 0 0; }
.hm-col { display: grid; grid-template-rows: auto repeat(3, 1fr); gap: 12px; }
.hm-col > .hm-card { display: flex; flex-direction: column; justify-content: center; }
.hm-col > .hm-core { grid-row: 2 / span 3; }
.hm-arrow { align-self: center; margin-top: 22px; }
.hm-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.hm-card { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); }
.hm-card b { display: block; font-size: 15px; }
.hm-card small, .hm-card code { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; }
.hm-card code { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: 12px; }
.hm-card.base { box-shadow: inset 3px 0 0 var(--brand); }
.hm-core { align-items: center; text-align: center; padding: 18px; border: 1px solid var(--brand); background: var(--raised); box-shadow: 0 18px 40px rgba(242,106,18,.14); }
.hm-core small { color: var(--text-2); }
.hm-core ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.hm-arrow { height: 2px; background: linear-gradient(90deg, var(--border), var(--brand)); position: relative; }
.hm-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--brand); }
.points.four { grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--border); }
#harness .feature { margin-top: 64px; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.packs span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); }

/* Remote */
.soon { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--text-2); font-size: 11px; letter-spacing: .06em; vertical-align: 1px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 7px 0 7px 26px; color: var(--text-2); }
.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.checks b { color: var(--text); }
.phone-wrap { display: flex; justify-content: center; }
#remote .feature { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
#remote .eyebrow { white-space: nowrap; }
#remote .sub { max-width: none; }
#remote h2 { font-size: 36px; white-space: nowrap; }
/* iPhone 15/16 Pro proportions: screen 393 x 852 pt, bezel ~3%, screen corner ~0.14 of width */
.phone { position: relative; width: 300px; padding: 10px; border-radius: 50px; background: #0E0E10; box-shadow: 0 30px 70px rgba(0,0,0,.28), inset 0 0 0 1.5px #3A3A3E, inset 0 0 0 4px #1A1A1C; }
.phone::before, .phone::after { content: ""; position: absolute; left: -3px; width: 3px; border-radius: 2px 0 0 2px; background: #2A2A2E; }
.phone::before { top: 118px; height: 26px; }
.phone::after { top: 158px; height: 48px; box-shadow: 0 60px 0 #2A2A2E; }
.phone-screen { position: relative; aspect-ratio: 393 / 852; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; padding: 46px 12px 0; background: linear-gradient(170deg, #2A3B5C, #4A3B5E 55%, #7A4B3A); color: #fff; text-align: center; }
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 32%; height: 25px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.ph-date { font-size: 14px; font-weight: 600; opacity: .9; }
.ph-time { font-size: 72px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: auto; }
.phone [data-step] { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1); }
.phone [data-step].on { opacity: 1; transform: none; }
.ph-note { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; margin-bottom: 7px; padding: 10px 11px; border-radius: 20px; background: rgba(255,255,255,.8); color: #1C1C1E; text-align: left; backdrop-filter: blur(10px); }
.ph-note img { width: 30px; height: 30px; }
.ph-note b { display: block; font-size: 13px; }
.ph-note span { display: block; font-size: 12px; line-height: 1.3; color: #3A3A40; }
.ph-note small { align-self: start; font-size: 11px; color: #6B6B70; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ph-actions span { padding: 9px; border-radius: 14px; background: rgba(255,255,255,.8); color: #1C1C1E; font-weight: 600; font-size: 13px; }
.ph-actions span:first-child { background: var(--brand); color: #fff; }
.ph-home { width: 36%; height: 5px; margin: 40px auto 8px; border-radius: 3px; background: rgba(255,255,255,.85); }

@media (max-width: 820px) {
  .harness-map { grid-template-columns: 1fr; gap: 14px; }
  .hm-arrow { width: 2px; height: 24px; margin: 0 auto; align-self: auto; background: linear-gradient(180deg, var(--border), var(--brand)); }
  .hm-arrow::after { right: -4px; top: auto; bottom: -6px; border: 5px solid transparent; border-top-color: var(--brand); }
  .points.four { grid-template-columns: 1fr; }
  #remote .feature { grid-template-columns: 1fr; }
  #remote .eyebrow, #remote h2 { white-space: normal; }
}

/* Intro: loader + hero sequence (only when JS runs: html.js-intro) */
.loader { display: none; }
.js-intro .loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 22px; justify-items: center; background: var(--bg); transition: opacity .5s ease .1s, visibility 0s linear .6s; }
.js-intro.intro-done .loader { opacity: 0; visibility: hidden; }
.ld-mark { position: relative; width: 64px; height: 44px; }
.ld-mark i { position: absolute; left: 8px; width: 48px; height: 17px; border-radius: 4px; transform: skewX(-32deg); }
.ld-top { top: 0; background: linear-gradient(180deg, #FFB25A, #FF7A1F 60%, #EE5212); animation: ld-in-left .55s cubic-bezier(.2,.8,.2,1) both; }
.ld-bottom { top: 23px; left: 2px !important; background: var(--text); animation: ld-in-right .55s .12s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ld-in-left { from { opacity: 0; transform: translateX(-26px) skewX(-32deg); } to { opacity: 1; transform: skewX(-32deg); } }
@keyframes ld-in-right { from { opacity: 0; transform: translateX(26px) skewX(-32deg); } to { opacity: 1; transform: skewX(-32deg); } }
.ld-bar { width: 120px; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 40%; background: var(--brand); animation: ld-bar 1s ease-in-out infinite; }
@keyframes ld-bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-glow { position: absolute; left: 50%; top: -120px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(242,106,18,.16), rgba(242,106,18,0)); pointer-events: none; animation: glow 7s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .55; transform: translateX(-50%) scale(1.06); } }
.h1-line { display: inline-block; }
.lit { background: linear-gradient(100deg, var(--text) 0%, var(--text) 40%, #FF9A3C 50%, var(--text) 60%, var(--text) 100%); background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }

.js-intro .hero .eyebrow, .js-intro .hero .h1-line, .js-intro .hero .lead, .js-intro .hero .cta, .js-intro .hero .note, .js-intro .hero-points > li, .js-intro .hero-lang { opacity: 0; transform: translateY(18px); }
.js-intro.intro-done .hero .eyebrow, .js-intro.intro-done .hero .h1-line, .js-intro.intro-done .hero .lead, .js-intro.intro-done .hero .cta, .js-intro.intro-done .hero .note, .js-intro.intro-done .hero-points > li, .js-intro.intro-done .hero-lang { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js-intro.intro-done .hero .eyebrow { transition-delay: .35s; }
.js-intro.intro-done .hero .h1-line:nth-child(1) { transition-delay: .45s; }
.js-intro.intro-done .hero .h1-line:nth-of-type(2) { transition-delay: .6s; }
.js-intro.intro-done .hero .lead { transition-delay: .8s; }
.js-intro.intro-done .hero .cta { transition-delay: .95s; }
.js-intro.intro-done .hero .note { transition-delay: 1.05s; }
.js-intro.intro-done .hero-points > li:nth-child(1) { transition-delay: 1.15s; }
.js-intro.intro-done .hero-points > li:nth-child(2) { transition-delay: 1.27s; }
.js-intro.intro-done .hero-points > li:nth-child(3) { transition-delay: 1.39s; }
.js-intro.intro-done .hero-lang { transition-delay: 1.55s; }
.js-intro.intro-done .lit { animation: sweep 1.6s 1.1s ease-in-out both; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }

@media (prefers-reduced-motion: reduce) {
  .js-intro .loader { display: none; }
  .js-intro .hero .eyebrow, .js-intro .hero .h1-line, .js-intro .hero .lead, .js-intro .hero .cta, .js-intro .hero .note, .js-intro .hero-points > li, .js-intro .hero-lang { opacity: 1; transform: none; }
  .hero-glow, .js-intro.intro-done .lit { animation: none; }
}

/* Language switcher + per-script typography */
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600; }
.lang a { padding: 3px 7px; border-radius: 5px; color: var(--text-2); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--accent); color: var(--bg); }
:lang(zh) body, body:lang(zh) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(ko) body, body:lang(ko) { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; word-break: keep-all; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3 { letter-spacing: 0; }
html:lang(zh) .eyebrow, html:lang(ko) .eyebrow { letter-spacing: .04em; }
.hero-lang { width: max-content; margin: 88px auto 0; }
