/* ==========================================================================
   Pages
   ========================================================================== */

/* ---------- Scroll-linked reveal (never blocks scrolling; visible at rest) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes reveal-up { from { transform: translateY(36px); opacity: .35; } to { transform: none; opacity: 1; } }

/* ---------- Ruled paper utility ---------- */
.ruled {
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule-2) 31px 32px);
  background-position: 0 12px;
}

/* ==========================================================================
   HOME HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 5.5vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-grid { position: relative; }
.hero-copy {
  --h1: clamp(2.6rem, 1.35rem + 4.5vw, 4.9rem);
  --gap: calc(var(--h1) * .55);
  position: relative; max-width: 60rem;
  padding-left: clamp(22px, 4.2vw, 64px);
}
/* ruled lines: aligned so the headline sits on them */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: -100vw; right: -100vw;
  height: calc(var(--gap) * 13);
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--rule) calc(100% - 1px));
  background-size: 100% var(--gap);
  background-position: 0 calc(var(--h1) * -0.205);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  opacity: .8;
  animation: rules-in 1.3s cubic-bezier(.2, .7, .2, 1) both;
}
/* the margin line */
.hero-copy::after {
  content: ""; position: absolute; left: 0; top: calc(clamp(32px, 5.5vw, 80px) * -1); bottom: -40px; width: 2px;
  background: linear-gradient(to bottom, var(--margin) 80%, transparent);
  opacity: .75; transform-origin: top;
  animation: margin-in 1.1s .15s cubic-bezier(.3, .7, .2, 1) both;
}
@keyframes rules-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes margin-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero-title { font-size: var(--h1); line-height: calc(var(--gap) * 2); letter-spacing: -.022em; text-wrap: initial; }
.hero-title span { display: block; animation: line-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-title span:nth-child(2) { animation-delay: .1s; }
.hero-title span:nth-child(3) { animation-delay: .2s; color: var(--ink); }
@keyframes line-in { from { opacity: 0; transform: translateY(.25em); } }
.hero-lede { margin-top: calc(var(--gap) * .9); max-width: 34em; animation: line-in .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hero-actions { margin-top: 32px; animation: line-in .9s .4s cubic-bezier(.2, .7, .2, 1) both; }
.hero-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; animation: line-in .9s .5s both; }
.hero-meta span:first-child { color: var(--margin-ink); }

.hero-shot-wrap { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.hero-shot { animation: shot-in 1.1s .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(40px) scale(.985); } }
.hero-notes { position: relative; height: 0; }
.hero-hand { position: absolute; z-index: 2; white-space: nowrap; font-size: 1.5rem; animation: line-in .8s 1.3s both; }
.hero-hand::after { content: ""; position: absolute; width: 46px; height: 40px; background: no-repeat center / contain; }
.hero-hand-1 { left: 26%; top: -52px; }
.hero-hand-1::after { left: -48px; top: 18px; transform: scaleX(-1) rotate(10deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 40'%3E%3Cpath d='M4 4c14 2 26 10 30 28M26 27l8 6 4-10' fill='none' stroke='%23E0533D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero-hand-2 { right: 6%; top: -56px; }
.hero-hand-2::after { right: -40px; top: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 40'%3E%3Cpath d='M4 4c14 2 26 10 30 28M26 27l8 6 4-10' fill='none' stroke='%23E0533D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.shot-caption { margin-top: 14px; font-size: var(--t-micro); color: var(--ink-3); text-align: right; }
@media (max-width: 1000px) { .hero-notes { display: none; } }

/* hero live choreography */
.typed-live { color: var(--app-ink); transition: opacity .6s ease; }
.typed-live.fade { opacity: 0; }
.comment-new { animation: comment-in .5s cubic-bezier(.2, .8, .2, 1) both; transition: opacity .6s ease; }
.comment-new.fade { opacity: 0; }
@keyframes comment-in { from { opacity: 0; transform: translateY(10px); } }
.app-status.pulse { animation: pulse-ok 1s ease-out; }
@keyframes pulse-ok { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 100% { box-shadow: 0 0 0 .7em transparent; } }
.cursor { animation: caret 1.1s steps(1) infinite; }
.cursor-flag { animation: none; }
@keyframes caret { 50% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* ==========================================================================
   HOME SECTIONS
   ========================================================================== */
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); position: relative; }
.how-steps::before { content: ""; position: absolute; top: 15px; left: 32px; right: 32px; height: 1px; background: repeating-linear-gradient(to right, var(--rule) 0 6px, transparent 6px 12px); }
.how-step { position: relative; display: grid; gap: 12px; align-content: start; }
.how-num { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--margin); color: var(--margin-ink); font-family: var(--f-mono); font-size: .8125rem; transition: background-color .35s ease, color .35s ease, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.how-step.is-reached .how-num { background: var(--margin); color: #fff; transform: scale(1.08); }
.how-wrap { position: relative; }
.how-track { position: absolute; z-index: 0; top: 15px; left: 32px; right: 32px; height: 2px; margin-top: -.5px; pointer-events: none; }
.how-fill { position: absolute; inset: 0; background: var(--margin); transform-origin: left center; transform: scaleX(0); }
.how-wrap .how-step { z-index: 1; }
.how-art > * { transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .45s ease; }
.how-wrap .how-step:not(.is-reached) .how-art > * { transform: translateY(6px) scale(.96); opacity: .55; }
.section-tint .how-num { background: var(--paper-2); }
.how-art { height: 64px; display: flex; align-items: center; }
@media (max-width: 800px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .how-steps::before { top: 16px; bottom: 16px; left: 15px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(to bottom, var(--rule) 0 6px, transparent 6px 12px); }
  .how-step { padding-left: 52px; }
  .how-num { position: absolute; left: 0; top: 0; }
  .how-track { top: 16px; bottom: 16px; left: 15px; right: auto; width: 2px; height: auto; margin: 0 0 0 -.5px; }
  .how-fill { transform-origin: center top; transform: scaleY(0); }
}
.mini-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--rule); font-weight: 600; font-size: .9375rem; box-shadow: var(--shadow-1); }
.mini-pill svg { width: 16px; height: 16px; color: var(--ok); }
.mini-people { display: inline-flex; align-items: center; font-size: 15px; }
.mini-people .av { box-shadow: 0 0 0 3px var(--paper); width: 36px; height: 36px; font-size: 14px; }
.mini-people .av + .av { margin-left: -8px; }
.mini-people em { font-style: normal; font-weight: 600; font-size: .875rem; margin-left: 12px; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--ink-3); color: var(--ink-2); }
.mini-cipher { display: inline-block; padding: 10px 14px; border-radius: 10px; background: var(--inverse); color: var(--inverse-fg-2); font-size: .8125rem; letter-spacing: .06em; }

/* share sheet vignette */
.share-stage { display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); border-radius: var(--radius-l); background: radial-gradient(120% 90% at 70% 0%, var(--margin-wash), transparent 60%), var(--paper); border: 1px solid var(--rule-2); }
.share-sheet { width: 100%; max-width: 460px; background: var(--app-bg); color: var(--app-ink); border: 1px solid var(--app-rule); border-radius: 16px; box-shadow: var(--shadow-3); padding: 20px; display: grid; gap: 16px; font-size: .9375rem; }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-title { font-weight: 700; }
.share-head svg { width: 18px; height: 18px; color: var(--app-ink-3); }
.share-invite { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.share-input { padding: 9px 12px; border-radius: 9px; border: 1.5px solid var(--focus); color: var(--app-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-role { display: inline-flex; align-items: center; gap: 4px; color: var(--app-ink-2); font-weight: 600; font-size: .875rem; }
.share-role svg { width: 14px; height: 14px; }
.share-send { padding: 9px 14px; border-radius: 9px; background: var(--app-ink); color: var(--app-bg); font-weight: 700; }
.share-people { list-style: none; display: grid; gap: 4px; }
.share-people li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--app-rule); }
.share-people .av { width: 34px; height: 34px; font-size: 13px; box-shadow: none; }
.share-people strong { display: block; font-size: .9375rem; }
.share-people em { font-style: normal; font-size: .8125rem; color: var(--app-ink-3); }
.share-tag { font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--app-side); color: var(--app-ink-2); white-space: nowrap; }
.share-tag.free { background: color-mix(in srgb, var(--ok) 13%, var(--app-bg)); color: var(--ok); }
.share-foot { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--app-side); color: var(--app-ink-2); font-size: .875rem; }
.share-foot svg { width: 18px; height: 18px; flex: none; color: var(--app-ink); margin-top: 1px; }
@media (max-width: 480px) { .share-invite { grid-template-columns: minmax(0, 1fr) auto; } .share-role { display: none; } }

/* ---------- Ink band: privacy ---------- */
.band-ink { background: var(--inverse); color: var(--inverse-fg); padding-block: var(--section); position: relative; overflow: hidden; }
.band-ink::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--inverse-rule) calc(100% - 1px)); background-size: 100% 40px; opacity: .45; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); pointer-events: none; }
.band-ink > .wrap { position: relative; }
.band-ink .label { color: var(--margin); }
.band-ink .lede { color: var(--inverse-fg-2); }
.band-ink .display-l { color: var(--inverse-fg); }
.band-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.band-ink-flush { padding-block: clamp(40px, 6vw, 72px); }
.band-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band-ink .proto-note { background: color-mix(in srgb, var(--proto) 18%, var(--inverse)); border-color: color-mix(in srgb, var(--proto) 55%, transparent); color: var(--inverse-fg-2); }
.band-ink .proto-note::before { color: #C6BAFF; }
.link-arrow.on-ink { color: var(--inverse-fg); border-color: var(--inverse-rule); }

.crypto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(48px, .35fr) minmax(0, 1fr) minmax(48px, .35fr) minmax(0, 1fr); align-items: center; gap: 0; }
.crypto-node { display: grid; gap: 14px; padding: 22px; border-radius: 16px; background: var(--inverse-2); border: 1px solid var(--inverse-rule); min-height: 190px; align-content: start; }
.crypto-service { background: transparent; border-style: dashed; }
.crypto-device { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9375rem; color: var(--inverse-fg); }
.crypto-device svg { width: 22px; height: 22px; color: var(--inverse-fg-2); }
.crypto-text { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.3; color: var(--inverse-fg); min-height: 2.6em; word-break: break-word; }
.crypto-text.mono { font-family: var(--f-mono); font-size: .9375rem; line-height: 1.7; color: var(--inverse-fg-2); letter-spacing: .04em; }
.crypto-state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--inverse-fg-2); }
.crypto-state svg { width: 14px; height: 14px; }
.crypto-wire { position: relative; height: 2px; margin-inline: 8px; background: repeating-linear-gradient(to right, var(--inverse-rule) 0 6px, transparent 6px 12px); }
.packet { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--margin); opacity: 0; }
.crypto.is-live .packet { animation: packet 2.4s linear infinite; }
.crypto.is-live .packet:nth-child(2) { animation-delay: .8s; }
.crypto.is-live .packet:nth-child(3) { animation-delay: 1.6s; }
.crypto.is-scrub .packet { animation: none; left: calc(var(--pos, 0) * (100% - 8px)); transition: opacity .15s linear; }
@keyframes packet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@media (max-width: 900px) {
  .crypto { grid-template-columns: minmax(0, 1fr); }
  .crypto-wire { width: 2px; height: 40px; margin: 6px auto; background: repeating-linear-gradient(to bottom, var(--inverse-rule) 0 6px, transparent 6px 12px); }
  .packet { left: -3px !important; top: 0; }
  .crypto.is-live .packet { animation-name: packet-v; }
  .crypto.is-scrub .packet { top: calc(var(--pos, 0) * (100% - 8px)); }
  .crypto-node { min-height: 0; }
}
@keyframes packet-v { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }

.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--inverse-rule); }
.ledger-col { padding: 28px 28px 8px 0; display: grid; gap: 14px; align-content: start; }
.ledger-col + .ledger-col { padding-left: 28px; border-left: 1px solid var(--inverse-rule); }
.ledger h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.ledger h3 svg { width: 20px; height: 20px; color: var(--margin); }
.ledger ul { list-style: none; display: grid; gap: 8px; color: var(--inverse-fg-2); }
.ledger li { padding-left: 18px; position: relative; }
.ledger li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: currentColor; }
.ledger-light { border-top-color: var(--rule); margin-top: 0; margin-bottom: 24px; }
.ledger-light .ledger-col + .ledger-col { border-left-color: var(--rule); }
.ledger-light ul { color: var(--ink-2); }
.ledger-light h3 svg { color: var(--margin); }
@media (max-width: 800px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger-col, .ledger-col + .ledger-col { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--inverse-rule); }
  .ledger-col:first-child { border-top: 0; }
  .ledger-light .ledger-col + .ledger-col { border-top-color: var(--rule); }
}

/* ---------- Platform switcher ---------- */
.pswitch { display: grid; gap: 32px; }
.pswitch-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pswitch-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font-weight: 600; }
.pswitch-tab svg { width: 18px; height: 18px; }
.pswitch-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.pswitch-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pswitch-panel { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pswitch-shot { view-transition-name: pshot; display: grid; justify-items: center; }
.pswitch-shot.kind-desktop { justify-items: stretch; }
.pswitch-shot.kind-phone .device { max-width: 290px; }
.pswitch-shot.kind-tablet .device { max-width: 620px; }
.pswitch-copy { display: grid; gap: 18px; align-content: center; view-transition-name: pcopy; }
.pswitch-moment { font-family: var(--f-display); font-size: var(--t-display-s); line-height: 1.25; text-wrap: balance; }
@media (max-width: 900px) { .pswitch-panel { grid-template-columns: minmax(0, 1fr); } }
::view-transition-old(pshot), ::view-transition-new(pshot) { animation-duration: .35s; }

/* agent section shot */
.agent-shot .app-desktop { box-shadow: var(--shadow-2); }
.suggestion.is-playing del { background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1.5px; text-decoration: none; animation: strike .6s .2s ease-out forwards; }
.suggestion.is-playing ins { animation: ins-in .8s .8s ease-out both; }
.suggestion.is-playing .suggestion-actions { animation: line-in .5s 1.5s both; }
@keyframes strike { to { background-size: 100% 1.5px; } }
@keyframes ins-in { from { background: color-mix(in srgb, var(--ok) 45%, transparent); opacity: .2; } }

/* price teaser */
.price-teaser-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.price-teaser-head .section-head { margin-bottom: 32px; }
.price-teaser-head .actions { margin-bottom: 40px; }
.price-teaser { border: 1px solid var(--rule); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); margin-bottom: 14px; }
.pt-free { display: grid; grid-template-columns: 120px auto minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 22px 24px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--rule); background-color: var(--paper); background-position: 0 6px; box-shadow: inset 2px 0 0 var(--margin); }
.pt-free:hover .pt-cta { border-color: var(--margin); }
.pt-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.pt-cta svg { width: 16px; height: 16px; }
.pt-paid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-col { display: grid; gap: 10px; align-content: start; padding: 24px; text-decoration: none; color: inherit; transition: background .15s ease; }
.pt-col + .pt-col { border-left: 1px solid var(--rule-2); }
.pt-col:hover { background: var(--paper-2); }
.pt-col.is-featured { box-shadow: inset 0 3px 0 var(--margin); }
.pt-name { font-weight: 700; }
.pt-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pt-price strong { font-family: var(--f-display); font-weight: 400; font-size: 2.5rem; line-height: 1; letter-spacing: -.02em; }
.pt-price em { font-style: normal; font-size: var(--t-micro); color: var(--ink-3); }
.pt-for { color: var(--ink-2); font-size: var(--t-small); }
@media (max-width: 860px) { .pt-free { grid-template-columns: minmax(0, 1fr) auto; } .pt-free .pt-for { grid-column: 1 / -1; } .pt-free .pt-cta { grid-row: 1; grid-column: 2; } }
@media (max-width: 640px) { .pt-paid { grid-template-columns: minmax(0, 1fr); } .pt-col + .pt-col { border-left: 0; border-top: 1px solid var(--rule-2); } }

/* closing band */
.closing { padding-block: var(--section); }
.closing-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-block: 48px; border-left: 2px solid var(--margin); padding-left: clamp(22px, 4.2vw, 64px); background-position: 0 14px; }
.closing-copy .label { margin-bottom: -4px; }
.closing-copy { display: grid; gap: 18px; justify-items: start; }
.closing-platforms { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.closing-platforms a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); text-decoration: none; font-weight: 600; }
.closing-platforms a:hover { border-color: var(--ink-3); }
.closing-platforms svg { width: 18px; height: 18px; color: var(--ink-3); }
@media (max-width: 860px) { .closing-inner { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   INTERIOR PAGES
   ========================================================================== */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-hero-grid { display: grid; gap: 20px; justify-items: start; }
.page-hero-grid > * { max-width: 56rem; }
.page-hero-grid .lede { max-width: 38em; }
.page-hero-grid .actions { margin-top: 8px; }
.page-hero-center .page-hero-grid { margin-inline: auto; justify-items: center; text-align: center; }
.page-hero-compact { padding-block: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.page-hero-compact .stack { max-width: 52rem; }
.page-hero .display-xl { border-left: 2px solid var(--margin); padding-left: clamp(16px, 2.4vw, 28px); margin-left: calc(clamp(16px, 2.4vw, 28px) * -1 - 2px); }
.page-hero-center .display-xl { border: 0; padding: 0; margin: 0; }
@media (max-width: 720px) { .page-hero .display-xl { margin-left: 0; } }

.subnav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--rule-2); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav a { padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover { background: var(--paper-2); color: var(--ink); }

.feature .shot { min-width: 0; }

/* sync explorer */
.sync-explorer { display: grid; gap: 24px; }
.sync-track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.sync-track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 23px; height: 2px; background: var(--rule); }
.sync-step { width: 100%; display: grid; justify-items: center; gap: 10px; padding: 12px 8px; border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-align: center; border-radius: var(--radius); }
.sync-step:hover { color: var(--ink); }
.sync-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
.sync-step.tone-ok .sync-dot { border-color: var(--ok); }
.sync-step.tone-warn .sync-dot { border-color: var(--warn); }
.sync-step.tone-bad .sync-dot { border-color: var(--bad); }
.sync-step[aria-pressed="true"] { color: var(--ink); }
.sync-step[aria-pressed="true"] .sync-dot { background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 10%, transparent); border-color: var(--ink); }
.sync-step.tone-ok[aria-pressed="true"] .sync-dot { background: var(--ok); border-color: var(--ok); }
.sync-step.tone-warn[aria-pressed="true"] .sync-dot { background: var(--warn); border-color: var(--warn); }
.sync-step.tone-bad[aria-pressed="true"] .sync-dot { background: var(--bad); border-color: var(--bad); }
.sync-detail { display: grid; gap: 8px; padding: 24px 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); max-width: 46rem; margin-inline: auto; width: 100%; }
.sync-body { font-family: var(--f-display); font-size: var(--t-display-s); line-height: 1.3; }
.section-tint .sync-step .sync-dot { background: var(--paper-2); }
@media (max-width: 760px) {
  .sync-track { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sync-track::before { left: 30px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .sync-step { grid-template-columns: 22px minmax(0, 1fr); justify-items: start; text-align: left; gap: 14px; padding: 10px 20px; }
}

/* tools diagram */
.tool-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-l); background: var(--paper-2); border: 1px solid var(--rule-2); }
.td-node { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-1); font-weight: 600; }
.td-node svg { width: 20px; height: 20px; color: var(--ink-3); }
.td-node em { font-style: normal; }
.td-notes { flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border-left: 3px solid var(--margin); }
.td-mark { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; font-weight: 400; }
.td-notes em { color: var(--ink-3); font-size: .875rem; }
.td-col { display: grid; gap: 12px; }
.td-links { position: relative; height: 140px; }
.td-links span { position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(to right, var(--ink-3) 0 4px, transparent 4px 8px); opacity: .6; }
.td-links span:nth-child(1) { top: 18%; transform: rotate(-14deg); }
.td-links span:nth-child(2) { top: 50%; }
.td-links span:nth-child(3) { top: 82%; transform: rotate(14deg); }

/* teams */
.story-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guest-strip { display: grid; grid-template-columns: auto minmax(0, 200px) minmax(0, 1fr); gap: 16px 28px; align-items: center; padding: 22px 24px; margin-bottom: 16px; border-radius: var(--radius-l); border: 1px solid var(--rule); background-color: var(--surface); box-shadow: inset 2px 0 0 var(--margin); }
@media (max-width: 760px) { .guest-strip { grid-template-columns: auto minmax(0, 1fr); } .guest-strip > p { grid-column: 1 / -1; } }
.tier { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); }
.tier-strong { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--margin); }
.tiers-note { margin-top: 16px; }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); }
@media (max-width: 720px) { .topic-grid { grid-template-columns: minmax(0, 1fr); } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.free-plan {
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  padding: clamp(24px, 3vw, 36px); padding-left: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-l);
  border: 1px solid var(--rule); background-color: var(--surface); background-position: 0 10px; box-shadow: inset 2px 0 0 var(--margin);
}
.free-plan-head { display: grid; gap: 10px; }
.free-plan-body { display: grid; gap: 12px; }
.free-plan-body .check-list { gap: 8px; font-size: var(--t-small); }
.free-plan-body .plan-copy { border: 0; padding: 0; }
.free-plan-cta { display: grid; gap: 8px; justify-items: center; }
.plans-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin: clamp(40px, 5vw, 64px) 0 24px; }
.plans-bar-copy { display: grid; gap: 6px; }
@media (max-width: 960px) { .free-plan { grid-template-columns: minmax(0, 1fr); } .free-plan-cta { justify-items: start; } }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto auto auto 1fr; gap: 16px; padding: 28px 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); }
.plan.is-featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow-2); }
.plan-flag { position: absolute; top: -12px; left: 24px; padding: 4px 10px; border-radius: 99px; background: var(--margin); color: #fff; font-size: .75rem; font-weight: 700; }
.plan-name { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.plan-for { color: var(--ink-2); font-size: var(--t-small); min-height: 2.9em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan-price strong { font-family: var(--f-display); font-weight: 400; font-size: 3.25rem; line-height: 1; letter-spacing: -.02em; }
.plan-price span { font-size: var(--t-micro); color: var(--ink-3); }
.plan-billed { font-size: var(--t-micro); color: var(--ink-3); margin-top: 6px; }
.plan .btn { width: 100%; }
.plan-copy { font-size: var(--t-small); color: var(--ink-2); padding-top: 4px; border-top: 1px solid var(--rule-2); padding-top: 16px; }
.plan .check-list { font-size: var(--t-small); gap: 8px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.enterprise { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 22px 24px; border-radius: var(--radius-l); border: 1px dashed var(--rule); }
.compare th[scope="row"] { font-weight: 500; color: var(--ink); min-width: 220px; }
.compare td, .compare thead th:not(:first-child) { text-align: center; }
.compare thead th { font-size: .9375rem; color: var(--ink); }
.compare .group th { background: var(--paper-2); font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; padding-block: 10px; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-wash); color: var(--ok); }
.tick svg { width: 15px; height: 15px; }
.dash { color: var(--ink-3); }
.cell-text { font-size: .875rem; color: var(--ink-2); }
.compare-notes { display: grid; gap: 14px; margin-top: 16px; }

/* downloads */
.detected { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 18px 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-1); }
.detected-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); }
.detected-icon svg { width: 26px; height: 26px; }
.detected .btn { margin-top: 8px; }
.dl-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.dl-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); }
.dl-card.is-current { border-color: var(--ink); }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head .pill { margin-left: auto; }
.dl-list { list-style: none; display: grid; gap: 6px; font-size: var(--t-small); color: var(--ink-2); }
.dl-list li { padding-left: 16px; position: relative; }
.dl-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--margin); }
@media (max-width: 960px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.related-wrap { margin-top: 40px; }

.platform-hero .split { align-items: center; }
.platform-shot { display: grid; justify-items: center; }
.platform-shot.kind-phone .device { max-width: 300px; }
.platform-detail { align-items: start; }
.other-platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.other-platforms a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--rule); background: var(--surface); text-decoration: none; font-weight: 600; }
.other-platforms svg { width: 18px; height: 18px; color: var(--ink-3); }

/* use-case pillars */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 80px); }
.pillar { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
@media (max-width: 760px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* crafted family */
.family { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .38fr); grid-template-rows: auto auto; gap: 24px; align-items: end; }
.family-desktop { grid-row: 1 / span 2; }
.family-tablet { display: none; }
.family-phone { display: grid; justify-items: center; }
.family-phone .device { max-width: 270px; }
@media (max-width: 760px) { .family { grid-template-columns: minmax(0, 1fr); } .family-desktop { grid-row: auto; } }
.platform-table { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-bottom: 24px; }
.pt-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.pt-name-cell { display: flex; align-items: center; gap: 14px; }
.pt-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--ink-2); font-size: var(--t-small); }
@media (max-width: 760px) { .pt-row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* walkthrough */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.demo-stage { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.demo-stage .shot { view-transition-name: demoshot; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-steps { list-style: none; display: grid; gap: 4px; }
.demo-step { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px solid transparent; background: none; color: var(--ink-2); }
.demo-step strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.demo-step > span:last-child > span { font-size: var(--t-small); line-height: 1.5; }
.demo-step:hover { background: var(--paper-2); }
.demo-step[aria-current="step"] { background: var(--surface); border-color: var(--rule); box-shadow: var(--shadow-1); }
.demo-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); background: var(--paper); }
.demo-step[aria-current="step"] .demo-num { background: var(--margin); border-color: var(--margin); color: #fff; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } .demo-stage { position: static; } }

/* screens */
.screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.screen-card { display: grid; gap: 12px; text-decoration: none; color: inherit; }
.screen-frame { height: 300px; border-radius: var(--radius-l); background: var(--paper-2); border: 1px solid var(--rule-2); display: grid; place-items: start center; padding: 22px 22px 0; overflow: hidden; transition: border-color .15s ease; }
.screen-frame.kind-phone, .screen-frame.kind-tablet { place-items: center; padding-bottom: 22px; }
.screen-card:hover .screen-frame { border-color: var(--ink-3); }
.screen-frame .shot { width: 100%; display: grid; justify-items: center; }
.screen-frame .device-phone { zoom: .42; max-width: 300px; }
.screen-label { display: flex; align-items: center; justify-content: space-between; }
.screen-label svg { width: 18px; height: 18px; color: var(--ink-3); }
@media (max-width: 960px) { .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .screen-grid { grid-template-columns: minmax(0, 1fr); } }
.screen-single { display: grid; justify-items: center; }
.screen-single.kind-phone .device { max-width: 320px; }
body.is-capture .ribbon, body.is-capture .site-footer { display: none; }

.two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 640px) { .two-cards { grid-template-columns: minmax(0, 1fr); } }

/* releases & empty states */
.releases { display: grid; gap: 32px; }
.releases-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.field-inline { display: flex; align-items: center; gap: 12px; }
.field-inline .select { width: auto; min-width: 180px; }
.select-sm { min-height: 38px; padding-block: 6px; font-size: .9375rem; }
.empty-state { display: grid; gap: 14px; justify-items: start; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-l); border: 1px solid var(--rule); background-color: var(--surface); }
.empty-state.ruled { border-left: 2px solid var(--margin); background-position: 0 22px; }
.info-pair { align-items: start; }

/* status */
.status-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.status-board { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); }
.status-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-board ul { list-style: none; display: grid; }
.status-board li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule-2); }
.status-board li svg { width: 20px; height: 20px; color: var(--ink-3); }
.status-val { font-family: var(--f-mono); color: var(--ink-3); }
.status-help { display: grid; gap: 28px; }
.status-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--radius-l); background: var(--paper-2); }
@media (max-width: 860px) { .status-wrap { grid-template-columns: minmax(0, 1fr); } }

/* review */
.review-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.review-stats { gap: 0; }
.review-stats div { display: grid; padding: 4px 28px 4px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.review-stats div:last-child { border-right: 0; }
.review-stats strong { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.review-stats span { font-size: var(--t-micro); color: var(--ink-3); }
.review-table td:last-child { min-width: 210px; }
.review-note { display: block; margin-top: 6px; font-size: .8125rem; color: var(--ink-3); }
.review-table th[scope="row"] { min-width: 180px; }

.notfound { display: grid; gap: 18px; justify-items: start; padding: clamp(32px, 6vw, 72px); border-left: 2px solid var(--margin); }
.notfound .related { width: 100%; max-width: 760px; }

/* ==========================================================================
   HELP & DOCS
   ========================================================================== */
.help-hero { padding-block: clamp(48px, 6vw, 88px) clamp(28px, 3vw, 40px); background: var(--paper-2); border-bottom: 1px solid var(--rule-2); }
.help-hero-inner { display: grid; gap: 20px; justify-items: start; }
.search { position: relative; width: 100%; max-width: 44rem; }
.search > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.search-input { width: 100%; min-height: 60px; padding: 14px 18px 14px 54px; border-radius: 14px; border: 1px solid var(--rule); background: var(--surface); font-size: 1.125rem; box-shadow: var(--shadow-1); }
.search-input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.help-quick { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.help-quick a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink-2); font-size: .9375rem; }
.help-quick a:hover { color: var(--ink); text-decoration: underline; }
.help-quick svg { width: 18px; height: 18px; }
.help-layout { display: grid; gap: 28px; }
#help-results { display: grid; gap: 36px; }
.article-group { display: grid; gap: 12px; }
.article-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.article-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); text-decoration: none; color: inherit; height: 100%; }
.article-row:hover { border-color: var(--ink-3); }
.article-row > svg { width: 18px; height: 18px; color: var(--ink-3); }
.article-row-text strong { display: block; }
.article-row-text span { display: block; font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.result-count { margin-bottom: -20px; }
@media (max-width: 760px) { .article-list { grid-template-columns: minmax(0, 1fr); } }
.person-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-l); border: 1px solid var(--rule); border-left: 2px solid var(--margin); }

.doc-page { padding-block: clamp(32px, 5vw, 64px) var(--section); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 28px; }
.toc { display: grid; gap: 2px; }
.toc .label { margin-bottom: 8px; }
.toc a { padding: 6px 10px; margin-left: -10px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; line-height: 1.4; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--paper-2); }
.aside-help { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.doc-main { display: grid; gap: 20px; max-width: 44rem; }
.doc-sections { display: grid; gap: 32px; margin-top: 16px; }
.doc-sections section { display: grid; gap: 10px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-sections p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.doc-action { padding-top: 8px; }
.doc-related { display: grid; gap: 12px; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--rule-2); }
.summary-box { padding: 20px 22px; border-radius: var(--radius-l); background: var(--paper-2); display: grid; gap: 8px; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } .doc-aside { position: static; order: 2; } }

.policy-list { list-style: none; display: grid; border-top: 1px solid var(--rule); }
.policy-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.policy-list a:hover strong { text-decoration: underline; text-decoration-color: var(--margin); }
.policy-list strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.policy-list span span { display: block; color: var(--ink-2); font-size: var(--t-small); margin-top: 4px; }
.policy-list > li > a > svg { width: 18px; height: 18px; color: var(--ink-3); }

/* ==========================================================================
   FORMS: CONTACT / PRIVACY / SECURITY
   ========================================================================== */
.intake { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.intake-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.reason-list { display: grid; gap: 8px; }
.reason { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font-size: var(--t-small); }
.reason strong { color: var(--ink); font-size: 1rem; }
.reason:hover { border-color: var(--ink-3); }
.reason[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--margin); }
.reason-links { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.reason-links a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 12px 4px; text-decoration: none; color: var(--ink-2); font-size: var(--t-small); }
.reason-links a strong { display: block; color: var(--ink); }
.reason-links svg { width: 20px; height: 20px; color: var(--ink-3); margin-top: 2px; }
.reason-links a:hover strong { text-decoration: underline; }
.intake-guide { display: grid; gap: 14px; }
.intake-main { display: grid; gap: 16px; }
.intake-card { padding: clamp(20px, 3vw, 32px); }
.intake-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.optional-context { border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 0 16px; }
.optional-context summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: .9375rem; }
.optional-context[open] { padding-bottom: 16px; }
.before-send { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper-2); color: var(--ink-2); font-size: var(--t-small); }
.before-send svg { width: 20px; height: 20px; color: var(--ink-3); margin-top: 2px; }
.intake-result { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px 22px; border-radius: var(--radius-l); border: 1px solid var(--rule); background: var(--surface); }
.intake-result > div { display: grid; gap: 8px; justify-items: start; }
.intake-result p { color: var(--ink-2); }
.result-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
.result-icon svg { width: 20px; height: 20px; }
.intake-result.tone-ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.intake-result.tone-ok .result-icon { background: var(--ok-wash); color: var(--ok); }
.intake-result.tone-warn .result-icon { background: var(--warn-wash); color: var(--warn); }
.intake-result.tone-bad { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.intake-result.tone-bad .result-icon { background: var(--bad-wash); color: var(--bad); }
@media (max-width: 900px) { .intake { grid-template-columns: minmax(0, 1fr); } .intake-aside { position: static; } }

.review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; }
.review-fields div { display: grid; gap: 2px; }
.review-fields dt { font-size: .75rem; color: var(--ink-3); }
.review-fields dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.message-review { padding: 14px 16px; border-radius: var(--radius); background: var(--paper-2); color: var(--ink-2); white-space: pre-wrap; max-height: 180px; overflow: auto; font-size: .9375rem; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.code { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--inverse); color: var(--inverse-fg); font-family: var(--f-mono); font-size: .8125rem; overflow-x: auto; }
.quote { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper-2); }
.quote strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }

/* ==========================================================================
   ACCOUNT PORTAL
   ========================================================================== */
.portal-banner { background: var(--proto-wash); border-bottom: 1px dashed var(--proto-rule); font-size: var(--t-micro); color: var(--ink-2); }
.portal-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-block: 10px; }
.portal { padding-block: clamp(28px, 4vw, 48px) var(--section); }
.portal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.portal-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.identity { display: grid; gap: 10px; }
.identity-card { display: flex; align-items: center; gap: 12px; }
.identity-card .av { width: 40px; height: 40px; font-size: 15px; box-shadow: none; }
.identity-card strong { display: block; line-height: 1.3; }
.identity-card div span { font-size: .8125rem; color: var(--ink-3); }
.portal-nav { display: grid; gap: 2px; }
.portal-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9375rem; }
.portal-nav a svg { width: 18px; height: 18px; }
.portal-nav a:hover { background: var(--paper-2); color: var(--ink); }
.portal-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 2px 0 0 var(--margin), var(--shadow-1); }
.portal-nav .divider { margin: 10px 0; }
.portal-main { display: grid; gap: 20px; min-width: 0; }
.portal-head { display: grid; gap: 8px; padding-bottom: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pgrid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pcard { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--rule); min-width: 0; }
.pcard-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pcard-strong { border-color: var(--ink); }
.pcard-danger { border-color: color-mix(in srgb, var(--bad) 35%, var(--rule)); }
.big-price { font-family: var(--f-display); font-size: 2.25rem; line-height: 1.1; }
.attention { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radius-l); background: var(--margin-wash); border: 1px solid color-mix(in srgb, var(--margin) 30%, transparent); }
.attention h2 { display: flex; align-items: center; gap: 8px; }
.attention h2 svg { width: 18px; height: 18px; color: var(--margin-ink); }
.attention-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; }
.attention-row strong { display: block; }
.plist { list-style: none; display: grid; }
.plist li > a, .plist-plain li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule-2); text-decoration: none; color: inherit; }
.plist li:first-child > a, .plist-plain li:first-child { border-top: 0; }
.plist strong { display: block; }
.plist li > a:hover strong { text-decoration: underline; }
.plist-plain li > span:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plist-plain svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.plist-plain .micro { display: block; }
.plist-cards { gap: 8px; }
.plist-cards li > a { padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.plist-cards li:first-child > a { border-top: 1px solid var(--rule); }
.note-block { display: grid; gap: 8px; justify-items: start; padding: 20px 22px; border-radius: var(--radius-l); background: var(--paper-2); }
.receipt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--ok-wash); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); animation: comment-in .4s ease-out both; }
.receipt svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.receipt p { color: var(--ink-2); font-size: var(--t-small); }
.inline-alert { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-wash); }
.inline-alert svg { width: 20px; height: 20px; color: var(--warn); }
.inline-alert .actions { margin-top: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }
.choice-grid a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: var(--t-small); }
.choice-grid a:hover { border-color: var(--ink-3); }
.choice-grid svg { width: 20px; height: 20px; color: var(--ink-3); }
.perm-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.perm-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--paper-2); color: var(--ink-3); font-size: var(--t-small); font-weight: 600; }
.perm-list li.yes { background: var(--ok-wash); color: var(--ok); }
.perm-list svg { width: 15px; height: 15px; }
.toolbar { margin-bottom: 4px; }
.convo { list-style: none; display: grid; gap: 14px; }
.convo li { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; max-width: 90%; }
.convo .from-you { background: var(--paper-2); justify-self: end; }
.convo .from-support { border: 1px solid var(--rule); }
.convo-who { font-size: .75rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.convo p { color: var(--ink-2); }
.table-wrap-flat { border-radius: var(--radius); }
@media (max-width: 900px) { .portal-grid { grid-template-columns: minmax(0, 1fr); } .portal-side { position: static; } .portal-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; } .portal-nav .divider { display: none; } }

/* Single-column grids that start-align children: keep intrinsic sizing from widening them. */
.page-hero-grid, .notfound, .closing-copy, .empty-state, .note-block, .help-hero-inner, .pcard, .intake-result > div, .doc-main, .portal-main { grid-template-columns: minmax(0, 1fr); }
.screen-frame .shot > .app-desktop, .pswitch-shot > .app-desktop, .platform-shot > .app-desktop { width: 100%; }


/* ==========================================================================
   HOME FLOW: the margin line as the page's thread
   ========================================================================== */
.home-flow { --indent: clamp(22px, 4.2vw, 64px); position: relative; }
.home-flow .flow > .wrap { padding-left: calc(var(--gutter) + var(--indent)); }
.home-flow .hero-copy::after { display: none; }
.home-flow .hero-shot-wrap { z-index: 2; }
.home-flow .closing-inner { border-left: 0; padding-left: 0; }
.flow-rail {
  position: absolute; z-index: 1; top: 0; bottom: 0; width: 2px; pointer-events: none;
  left: calc(max(0px, (100% - var(--max) - var(--gutter) * 2) / 2) + var(--gutter) - 1px);
  background: color-mix(in srgb, var(--margin) 22%, transparent);
}
.flow-fill { position: absolute; inset: 0; background: var(--margin); transform-origin: center top; transform: scaleY(0); transition: transform 1.2s cubic-bezier(.3, .7, .2, 1) .15s; will-change: transform; }
.home-flow.is-ready .flow-fill { transition: none; }
.flow-end { position: absolute; left: 50%; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--margin); transform: translate(-50%, 50%); }
.home-flow.is-static .flow-fill { transform: none; transition: none; }

.home-flow .flow-stop { position: relative; }
.home-flow .flow-stop::before {
  content: ""; position: absolute; z-index: 2; left: calc(var(--indent) * -1 - 7px); top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; border: 2px solid var(--margin); background: var(--stop-bg, var(--paper));
  transition: background-color .3s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease;
}
.home-flow .flow-stop.is-reached::before { background: var(--margin); transform: scale(1.15); box-shadow: 0 0 0 5px color-mix(in srgb, var(--margin) 18%, transparent); }
.home-flow .section-tint { --stop-bg: var(--paper-2); }
.home-flow .band-ink { --stop-bg: var(--inverse); }

.flow-token { position: fixed; top: 55%; left: 0; z-index: 30; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease; will-change: transform; }
.flow-token.is-visible { opacity: 1; }
.flow-token-dot {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--margin); color: var(--margin-ink); box-shadow: var(--shadow-2);
}
.flow-token-dot svg { width: 17px; height: 17px; }
.flow-token.swap .flow-token-dot { animation: token-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes token-pop { from { transform: scale(.55) rotate(-25deg); } }
.flow-token-label {
  position: absolute; right: 26px; top: 0; transform: translateY(-50%); visibility: hidden; white-space: nowrap;
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .07em; text-transform: uppercase; color: var(--margin-ink);
  padding: 4px 7px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule);
}
.flow-token.show-label .flow-token-label { visibility: visible; }
.flow-token.swap .flow-token-label { animation: label-in .4s ease-out; }
@keyframes label-in { from { opacity: 0; transform: translate(6px, -50%); } }
.flow-token.on-ink .flow-token-dot { background: var(--inverse-2); color: var(--inverse-fg); }
.flow-token.on-ink .flow-token-label { background: var(--inverse); border-color: var(--inverse-rule); color: var(--inverse-fg); }
@media (max-width: 720px) {
  .flow-token-dot { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .flow-token-dot svg { width: 14px; height: 14px; }
  .home-flow .flow-stop::before { width: 12px; height: 12px; margin-top: -6px; left: calc(var(--indent) * -1 - 6px); }
}
[data-parallax] { will-change: transform; }
.hero-shot .app-desktop { transform-origin: center top; will-change: transform; }
