/* The hero uses configuration text and proof typography, never a recreated application screen. */
.swell { position: absolute; inset: 0 0 auto; height: 880px; z-index: -1; overflow: hidden; pointer-events: none; }
.swell svg { display: block; width: 100%; height: 100%; }
.swell-a { fill: var(--wave); opacity: 0.95; }
.swell-b { fill: var(--wave); opacity: 0.7; }
.swell-c { fill: var(--wave); opacity: 0.55; }
.hero {
  min-height: clamp(680px, calc(100vh - var(--nav-h) - 44px), 820px);
  display: flex;
  align-items: center;
  overflow-x: clip;
}
.hero .shell { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 60px; align-items: center; }
.hero-copy { max-width: 480px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  max-width: 100%;
  padding: 4px 14px 4px 12px;
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-chip);
  font-size: var(--fs-xs);
  font-weight: var(--weight-semibold);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--warn); box-shadow: 0 0 0 4px var(--warn-ring); }
.eyebrow-sep { color: var(--muted); }
.hero-title {
  margin-top: 26px;
  font-size: clamp(30px, 2.2vw + 16px, 48px);
  font-weight: var(--weight-heavy);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.t-line { display: block; }
.t-latin { letter-spacing: -0.035em; }
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::before {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.05em;
  height: 0.38em;
  border-radius: var(--r-small);
  background: var(--hl);
  z-index: -1;
}
.hero-lede { margin-top: 28px; max-width: 470px; font-size: var(--fs-body); line-height: 1.75; color: var(--muted); }
.hero-lede strong { color: var(--text); }
.devices { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 0; list-style: none; }
.devices li, .devices a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--weight-semibold); text-decoration: none; }
.devices a:hover { color: var(--accent); }
.devices svg, .device-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.devices .dev-sep { width: 1px; height: 16px; background: var(--border); }
.store-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--panel-2); color: var(--text); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: var(--weight-bold); }
.stage-wrap { justify-self: end; }
.stage { position: relative; width: 740px; height: 540px; }
.mac { position: absolute; top: 28px; right: 0; width: 680px; z-index: 1; }
.mac-lid {
  position: relative;
  width: 600px;
  height: 388px;
  margin-inline: auto;
  padding: 11px 11px 17px;
  border-radius: var(--r-device) var(--r-device) var(--r-small) var(--r-small);
  background: var(--bezel);
  color: var(--on-ink);
  box-shadow: 0 0 0 2px var(--alu-3), inset 0 0 0 1px var(--bezel-edge), var(--shadow-mac);
}
.mac-lid::before { content: ""; position: absolute; top: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: var(--r-pill); background: var(--bezel-edge); }
.mac-screen { position: relative; height: 100%; border-radius: var(--r-mark) var(--r-mark) var(--r-small) var(--r-small); background: var(--panel); color: var(--text); overflow: hidden; }
.mac-base { position: relative; width: 680px; height: 16px; border-radius: var(--r-small) var(--r-small) var(--r-mark) var(--r-mark); background: linear-gradient(to bottom, var(--alu-1) 0%, var(--alu-2) 42%, var(--alu-3) 80%, var(--alu-4) 100%); }
.mac-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 104px; height: 6px; margin-left: -52px; border-radius: 0 0 var(--r-mid) var(--r-mid); background: linear-gradient(to bottom, var(--alu-3), var(--alu-2)); }
.mac-ground { position: absolute; left: 3%; right: 3%; bottom: -24px; height: 28px; border-radius: var(--r-pill); background: radial-gradient(ellipse at center, var(--ground), var(--clear) 70%); filter: blur(3px); z-index: -1; }
.cfg { padding: 30px 28px 0 66px; font-family: var(--font-mono); font-size: 12.5px; line-height: 23px; color: var(--muted); }
.cfg-row { position: relative; z-index: 1; display: grid; grid-template-columns: 30px 1fr; gap: 16px; white-space: nowrap; }
.cfg-no { text-align: right; color: var(--muted); border-right: 1px solid var(--border); padding-right: 10px; font-size: var(--fs-xs); }
.cfg-rules { position: relative; }
.cfg-scan { position: absolute; top: 0; left: -8px; right: -12px; height: 23px; border-radius: var(--r-mid); background: var(--hl); z-index: 0; animation: rule-scan 6s steps(5, end) infinite; }
.cfg-scan::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: var(--r-small); background: var(--accent); }
@keyframes rule-scan { from { transform: translateY(0); } to { transform: translateY(115px); } }
.tk-c, .tk-o, .tk-v { color: var(--muted); }
.tk-s, .tk-k { color: var(--accent); font-weight: var(--weight-bold); }
.tk-key { color: var(--accent-dark); }
.tk-p { color: var(--text); font-weight: var(--weight-bold); }
.phone { position: absolute; left: 4px; bottom: 12px; width: 190px; height: 392px; transform: rotate(-3deg); transform-origin: 50% 100%; z-index: 3; }
.phone-body { position: relative; width: 100%; height: 100%; padding: 7px; border-radius: var(--r-phone); background: var(--bezel); color: var(--on-ink); box-shadow: 0 0 0 1.5px var(--ti-edge), inset 0 0 0 1px var(--bezel-edge), var(--shadow-phone); }
.key { position: absolute; width: 3px; border-radius: var(--r-small); background: var(--ti-edge); }
.key-action { left: -4px; top: 76px; height: 22px; }
.key-up { left: -4px; top: 112px; height: 40px; }
.key-down { left: -4px; top: 160px; height: 40px; }
.key-side { right: -4px; top: 122px; height: 62px; }
.phone-screen { position: relative; height: 100%; border-radius: var(--r-screen); overflow: hidden; background: linear-gradient(to bottom, var(--hl), var(--panel) 80%); color: var(--text); padding: 64px 16px 24px; }
.island { position: absolute; top: 11px; left: 50%; width: 62px; height: 18px; margin-left: -31px; border-radius: var(--r-pill); background: var(--bezel); }
.proof { display: flex; flex-direction: column; gap: 16px; }
.proof div + div { padding-top: 16px; border-top: 1px solid var(--hl-edge); }
.proof dt { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: 0.04em; color: var(--accent-dark); }
.proof dd { margin-top: 6px; font-family: var(--font-display); font-weight: var(--weight-heavy); color: var(--text); }
.proof-dev { font-size: var(--fs-lead); line-height: 1.16; letter-spacing: -0.02em; }
.proof-id, .proof-store { font-size: 23px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.phone-ground { position: absolute; left: 6px; bottom: -2px; width: 204px; height: 26px; border-radius: var(--r-pill); background: radial-gradient(ellipse at center, var(--ground-deep), var(--clear) 70%); filter: blur(2px); z-index: 2; }
.ticker { padding-bottom: 0; }
.ticker-band { display: flex; align-items: center; gap: 26px; height: 50px; padding-inline: 28px; border-radius: var(--r-pill); background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.ticker-band > span { flex-shrink: 0; }
.ticker-key { color: var(--accent); font-weight: var(--weight-semibold); margin-right: 8px; }
.ticker-sep { color: var(--muted); }
.flip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 22px; margin-right: 2px; border-radius: var(--r-small); background: var(--panel); color: var(--text); border: 1px solid var(--border); font-weight: var(--weight-semibold); }

.tabs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
[role="tablist"] { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
[role="tab"] {
  display: block;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: var(--weight-semibold);
  text-align: left;
}
[role="tab"]:hover { background: var(--panel-2); color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn-soft); }
.tab-panel { padding: 40px; border-radius: var(--r-panel); background: var(--panel); color: var(--text); box-shadow: var(--shadow-panel); border: 1px solid var(--border); }
.tab-panel p { margin-top: 18px; color: var(--muted); }
.rule-band { margin-top: 28px; background: var(--panel-2); color: var(--text); border-radius: var(--r-mark); }
.rule-band pre { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 16px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border-radius: var(--r-pill); background: var(--panel-2); color: var(--muted); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover, .toc a[aria-current] { background: var(--ink); color: var(--on-ink); }
.toc-sticky { position: sticky; top: 0; z-index: 10; background: var(--bg); color: var(--text); }
.faq-list { border-radius: var(--r-panel); background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-panel); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 24px 64px 24px 28px; font-weight: var(--weight-semibold); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 28px; top: 24px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 28px 28px; color: var(--muted); }
.faq-answer p + p { margin-top: 14px; }
.term-card { padding: 28px; border-radius: var(--r-panel); background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-btn-soft); }
.term-card dt { font-family: var(--font-mono); font-weight: var(--weight-bold); color: var(--accent-dark); font-size: var(--fs-lead); }
.term-card dd { margin-top: 14px; color: var(--muted); }
.badge, .tag, .fact-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; overflow-wrap: anywhere; }
.tag { background: var(--hl); color: var(--accent-dark); border-color: var(--hl-edge); }
.badge-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: var(--r-pill); background: var(--success); }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.fact-pill strong { color: var(--text); }
.appstore-button { min-height: 54px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn); }
.appstore-button:hover { background: var(--ink-hover); color: var(--on-ink); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.appstore-copy { display: flex; flex-direction: column; text-align: left; gap: 1px; }
.appstore-copy small { font-size: var(--fs-xs); font-weight: var(--weight-medium); }
.appstore-copy strong { font-size: var(--fs-body); }
.appstore-button.two-line svg { width: 24px; height: 24px; }
.official-shot { width: min(100%, 280px); margin-inline: auto; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot figcaption { margin-top: 14px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.7; }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); outline-offset: -1px; }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--r-shot); background: var(--panel-2); color: var(--muted); padding: 24px; text-align: center; }
.shot-placeholder span { max-width: 180px; }
.shot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.device-card { position: relative; display: flex; align-items: flex-start; gap: 24px; padding: 32px; border-radius: var(--r-panel); border: 1px solid var(--border); background: var(--panel); color: var(--text); box-shadow: var(--shadow-panel); text-decoration: none; }
.device-card:hover { color: var(--text); border-color: var(--hl-edge); }
.device-card svg { width: 44px; height: 56px; flex: 0 0 44px; color: var(--muted); }
.device-card p { margin-top: 12px; color: var(--muted); }
.device-card .text-link { display: inline-block; margin-top: 20px; color: var(--accent); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.article-card h3 { margin-top: 20px; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.article-card .text-link { margin-top: auto; padding-top: 24px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-xs); }
.callout { padding: 24px 28px; margin-block: 24px; border-left: 3px solid var(--accent); border-radius: var(--r-small) var(--r-mark) var(--r-mark) var(--r-small); background: var(--hl); color: var(--text); }
.callout p + p { margin-top: 12px; }
.group-list { list-style: none; padding: 0; border-radius: var(--r-panel); background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-panel); }
.group-list li + li { border-top: 1px solid var(--border); }
.group-list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px; min-height: 64px; color: var(--text); text-decoration: none; }
.group-list a::after { content: "›"; color: var(--accent); flex-shrink: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--panel); color: var(--text); font-size: var(--fs-sm); }
.data-table :is(th, td), .prose table :is(th, td) { min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { background: var(--panel-2); color: var(--text); font-weight: var(--weight-semibold); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; background: var(--panel); color: var(--text); }
.prose table code, .data-table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); min-height: 54px; padding: 12px 22px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn); font-size: var(--fs-sm); font-weight: var(--weight-semibold); text-decoration: none; }
.dl-fab:hover { background: var(--ink-hover); color: var(--on-ink); }
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; }
.has-article-fab { padding-bottom: 100px; }
.article-store-card { margin-top: 64px; padding: 32px; border-radius: var(--r-panel); background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.article-store-card p { margin-block: 16px 24px; color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.swatch { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-mark); background: var(--panel); color: var(--text); font-size: var(--fs-xs); }
.swatch-color { display: block; height: 60px; margin-bottom: 10px; border-radius: var(--r-mid); border: 1px solid var(--border); }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--panel); }
.sw-panel2 { background: var(--panel-2); }
.sw-border { background: var(--border); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-text { background: var(--text); }
.sw-muted { background: var(--muted); }
.sw-faint { background: var(--faint); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-hl { background: var(--hl); }
.sw-hl-edge { background: var(--hl-edge); }
.sw-ink { background: var(--ink); }
.sw-ink-hover { background: var(--ink-hover); }
.sw-bezel { background: var(--bezel); }
.sw-bezel-edge { background: var(--bezel-edge); }
.sw-ti { background: var(--ti-edge); }
.sw-alu1 { background: var(--alu-1); }
.sw-alu2 { background: var(--alu-2); }
.sw-alu3 { background: var(--alu-3); }
.sw-alu4 { background: var(--alu-4); }
.sw-ground { background: var(--ground); }
.sw-ground-deep { background: var(--ground-deep); }
.sw-warn-ring { background: var(--warn-ring); }
.sw-focus { background: var(--focus-ring); }
.sw-veil { background: var(--veil); }
.preview-stack > * + * { margin-top: 24px; }
.preview-fab { position: static; margin-top: 24px; }

@media (max-width: 1240px) {
  .hero .shell { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding-top: 40px; padding-bottom: 72px; min-height: 0; }
  .stage-wrap { justify-self: center; width: 600px; height: 444px; }
  .stage { transform: scale(0.81); transform-origin: top left; }
}
@media (max-width: 860px) {
  .tabs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  [role="tablist"] { flex-direction: row; overflow-x: auto; padding: 4px 4px 12px; }
  [role="tab"] { flex-shrink: 0; white-space: nowrap; }
  .shot-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 30px; }
  .fact-row { justify-content: center; }
}
@media (max-width: 640px) {
  .stage-wrap { width: 340px; height: 252px; }
  .stage { transform: scale(0.46); }
  .hero-copy { width: 100%; }
  .hero-title { font-size: 30px; }
  .tab-panel { padding: 24px; }
  .device-card { padding: 24px; gap: 18px; }
  .device-card svg { width: 32px; flex-basis: 32px; }
  .official-shot { width: min(100%, 280px); }
  .ticker-band { padding-inline: 20px; }
  .devices { gap: 10px 16px; }
  .faq-item summary { padding-left: 22px; }
  .faq-answer { padding-inline: 22px; }
  .dl-fab { right: 20px; }
}
@media (max-width: 374px) {
  .stage-wrap { width: 280px; height: 210px; }
  .stage { transform: scale(0.378); }
  .hero-title { font-size: 28px; }
  .eyebrow { gap: 7px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-scan { animation: none; transform: translateY(92px); }
}