/* SubMac homepage — quiet Apple design language, two layouts (2026-11-14).
   Loaded last on index.html only; site.css, audit.css and dark.css still serve every
   other page. One semantic DOM, two compositions switched by CSS:
     • mobile  (≤899px): app shell — large title, grouped inset lists, a fixed
       bottom tab bar, and sheet-style dialogs.
     • desktop (≥900px): workspace — split hero, sticky section index, 3-up steps,
       2-up features, 3-up pricing cards, 2-up reading cards.
   Same payload for both, so there is no duplicate site to ship or keep in sync.

   Palette: the page and every surface share ONE tone — pure white in light, true
   black (OLED) in dark. Nothing is separated by a fill difference; each panel is
   told apart by a glossy edge: a hairline rim, a specular highlight, a soft inner
   shade and a single soft lift. ONE muted steel-blue accent marks meaning only
   (links, the emphasized word, focus). Primary actions are graphite. No navy.

   Anti-slop (frontend-slop-guard): no eyebrow kickers or section numbers, no
   decorative colored dots, no colored glows. The only gradient is the gloss that
   draws an edge. */

:root {
  --ios-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ios-bg: #f8f7f4;
  --ios-card: #ffffff;
  --ios-label: #1d1d1f;
  --ios-label-2: #6e6e73;
  --ios-label-3: #a1a1a6;
  --ios-sep: rgba(0, 0, 0, 0.09);
  --ios-fill: rgba(29, 29, 31, 0.05);
  --ios-fill-2: rgba(29, 29, 31, 0.09);
  --ios-tint: #34618f;
  --ios-action: #1d1d1f;
  --ios-action-ink: #ffffff;
  --ios-cta-bg: #1d1d1f;
  --ios-cta-ink: #f5f5f7;
  --ios-r: 12px;
  --ios-r-lg: 20px;
  --ios-pill: 980px;
  /* Motion: one iOS curve family — a fast ease-out for micro feedback, a slightly
     longer one for surfaces, and a from-the-bottom rise for sheets. */
  --ios-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ios-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ios-dur-1: 0.2s;
  --ios-dur-2: 0.32s;
  --ios-dur-3: 0.44s;
  /* Modern glass: the surface fill equals the page, and a specular gradient rim — bright
     where the light lands, dim on the far edge — does the separating. No blur panels. */
  --ios-nav: rgba(255, 255, 255, 0.72);
  --ios-edge: rgba(0, 0, 0, 0.10);
  --ios-rim: linear-gradient(160deg, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0.075) 45%, rgba(0, 0, 0, 0.13) 100%);
  --ios-btn-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0.02) 100%);
  --ios-btn-rim-lite: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 0, 0, 0.07) 42%, rgba(0, 0, 0, 0.14) 100%);
  --ios-cta-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0.02) 100%);
  --ios-gloss-top: rgba(255, 255, 255, 0.7);
  --ios-gloss-bot: rgba(0, 0, 0, 0.05);
  --ios-surface-bg: linear-gradient(var(--ios-card), var(--ios-card)) padding-box, var(--ios-rim) border-box;
  --ios-ring: inset 0 1px 0 var(--ios-gloss-top), inset 0 -1px 1px var(--ios-gloss-bot);
  --ios-field: inset 0 0 0 1px var(--ios-edge), inset 0 2px 5px -2px rgba(0, 0, 0, 0.09);
  --ios-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  /* the shared card/lift shadows from audit.css also land on this page; near-zero them too */
  --ios-shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 1px 2px rgba(18, 17, 16, 0.03);
  --shadow-lift: 0 2px 6px rgba(18, 17, 16, 0.05);
  --ios-glass: rgba(255, 255, 255, 0.72);
  --ios-glass-edge: rgba(255, 255, 255, 0.85);
  --ios-gloss: rgba(255, 255, 255, 0.9);
  --ios-gloss-soft: rgba(255, 255, 255, 0.55);
}
html[data-theme="dark"] {
  --ios-bg: #0a0a0b;
  --ios-card: #000000;
  --ios-label: #f5f5f7;
  --ios-label-2: #a1a1a6;
  --ios-label-3: #6e6e73;
  --ios-sep: rgba(255, 255, 255, 0.14);
  --ios-fill: rgba(255, 255, 255, 0.08);
  --ios-fill-2: rgba(255, 255, 255, 0.14);
  --ios-tint: #9ab8d6;
  --ios-action: rgba(255, 255, 255, 0.10);
  --ios-action-ink: #f5f5f7;
  --ios-cta-bg: #000000;
  --ios-cta-ink: #f5f5f7;
  --ios-nav: rgba(0, 0, 0, 0.66);
  --ios-edge: rgba(255, 255, 255, 0.16);
  --ios-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.22) 22%, rgba(255, 255, 255, 0.07) 56%, rgba(255, 255, 255, 0.20) 100%);
  --ios-btn-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.24) 26%, rgba(255, 255, 255, 0.09) 58%, rgba(255, 255, 255, 0.22) 100%);
  --ios-btn-rim-lite: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.16) 100%);
  --ios-cta-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.14) 30%, rgba(255, 255, 255, 0.05) 64%, rgba(255, 255, 255, 0.16) 100%);
  --ios-gloss-top: rgba(255, 255, 255, 0.12);
  --ios-gloss-bot: rgba(255, 255, 255, 0.03);
  --ios-ring: inset 0 1px 0 var(--ios-gloss-top), inset 0 -1px 1px var(--ios-gloss-bot);
  --ios-field: inset 0 0 0 1px var(--ios-edge), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --ios-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --ios-shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 3px 10px rgba(0, 0, 0, 0.45);
  --ios-glass: rgba(28, 28, 30, 0.66);
  --ios-glass-edge: rgba(255, 255, 255, 0.12);
  --ios-gloss: rgba(255, 255, 255, 0.09);
  --ios-gloss-soft: rgba(255, 255, 255, 0.05);
}

/* ---------- base ---------- */
html { background: var(--ios-bg); }
html body {
  background: var(--ios-bg);
  color: var(--ios-label);
  font-family: var(--ios-font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}
html ::selection { background: rgba(52, 97, 143, 0.2); color: var(--ios-label); }
html :focus-visible { outline: 3px solid rgba(52, 97, 143, 0.55); outline-offset: 2px; border-radius: 6px; }
html .wrap { max-width: 72rem; padding: 0 clamp(1rem, 0.5rem + 2.5vw, 2rem); }

/* keep in-page anchors clear of the sticky header and (on desktop) the index */
html main section[id], html main #resume, html main #try { scroll-margin-top: 76px; }

/* ---------- navigation bar ---------- */
html .site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--ios-nav);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
  backdrop-filter: saturate(140%) blur(22px);
  border-bottom: 1px solid var(--ios-sep);
  box-shadow: inset 0 -1px 0 var(--ios-gloss-bot);
}
html .wordmark { font-family: var(--ios-font); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--ios-label); }
html .wordmark .dot { background: currentColor; }
html .menu-btn { border: 0; background: var(--ios-fill); color: var(--ios-label); border-radius: var(--ios-pill); font-family: var(--ios-font); font-weight: 600; font-size: 0.9375rem; }
html .menu-btn:hover, html .menu-btn[aria-expanded="true"] { background: var(--ios-fill-2); color: var(--ios-label); }
html .site-nav { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--ios-r-lg); box-shadow: var(--ios-ring), 0 6px 18px -14px rgba(0, 0, 0, 0.14); }
html .nav-list a { border-radius: var(--ios-r); }
html .nav-list a:hover, html .nav-list a:focus-visible { background: var(--ios-fill); color: var(--ios-label); }
html .nav-kicker, html .nav-t { color: var(--ios-label); }
html .nav-d { color: var(--ios-label-2); }

/* theme control: an iOS switch */
html .theme-toggle {
  width: 50px; height: 30px; padding: 2px; flex: none;
  display: inline-flex; align-items: center; justify-content: flex-start;
  border: 0; border-radius: var(--ios-pill);
  background: var(--ios-fill-2);
  box-shadow: inset 0 0 0 1px var(--ios-sep);
  cursor: pointer;
  transition: background var(--ios-dur-1) var(--ios-ease);
}
html .theme-toggle::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition: transform var(--ios-dur-2) var(--ios-ease);
}
html .theme-toggle[aria-pressed="true"] { background: var(--ios-tint); box-shadow: inset 0 0 0 1px transparent; }
html .theme-toggle[aria-pressed="true"]::before { transform: translateX(20px); }
html .theme-toggle:hover { background: var(--ios-fill-2); }
html .theme-toggle[aria-pressed="true"]:hover { background: var(--ios-tint); filter: brightness(1.05); }
html .theme-toggle svg { display: none; }

/* ---------- buttons ---------- */
html .btn {
  font-family: var(--ios-font); font-weight: 600; font-size: 1.0625rem;
  border: 1px solid transparent; border-radius: var(--ios-pill);
  background: linear-gradient(var(--ios-action), var(--ios-action)) padding-box, var(--ios-btn-rim) border-box;
  color: var(--ios-action-ink);
  min-height: 50px; padding: 0 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 6px -5px rgba(0, 0, 0, 0.22);
}
html .btn:hover { background: linear-gradient(var(--ios-action), var(--ios-action)) padding-box, var(--ios-btn-rim) border-box; filter: brightness(1.1); color: var(--ios-action-ink); }
html .btn:active { transform: scale(0.96); transition-duration: 0.09s; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22); }
html .btn:focus-visible { outline: 3px solid rgba(52, 97, 143, 0.55); outline-offset: 2px; }
html .btn[disabled] { background: var(--ios-fill); color: var(--ios-label-3); border-color: transparent; box-shadow: none; }
html .btn-ghost { background: var(--ios-surface-bg); color: var(--ios-label); box-shadow: var(--ios-ring); }
html .btn-ghost:hover { background: var(--ios-surface-bg); color: var(--ios-label); filter: brightness(0.985); }
html .btn-link { color: var(--ios-tint); text-decoration: none; font-family: var(--ios-font); font-weight: 500; }
html .btn-link:hover { color: var(--ios-tint); text-decoration: underline; }
html .btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
html .head-cta { color: var(--ios-action-ink); }

/* ---------- hero (mobile = single column) ---------- */
html main .hero { padding: clamp(1.75rem, 1rem + 3vw, 2.5rem) 0 clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
html main .hero-grid { display: block; max-width: 42rem; margin: 0 auto; }
html main .hero-grid > div { display: block; }
html main .hero .display {
  font-family: var(--ios-font); font-weight: 700;
  font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3rem);
  line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; margin: 0 0 0.75rem;
}
html main .hero .display em { font-style: normal; color: var(--ios-tint); background: none; }
html main .hero .lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.4; color: var(--ios-label-2); max-width: 40rem; margin: 0 0 1.5rem; }

html main .hs-form {
  background: var(--ios-surface-bg);
  border: 1px solid transparent;
  border-radius: var(--ios-r-lg);
  box-shadow: var(--ios-ring), var(--ios-shadow);
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  gap: 1rem; margin: 0;
}
html main .hs-form::before { display: none; }
/* keep the near-zero shadow even while the form has focus (site.css lifts it otherwise) */
html main .hs-form:focus-within { box-shadow: var(--ios-ring), var(--ios-shadow); }
html main .hs-head { gap: 0.5rem; align-items: baseline; }
html main .hs-title { font-family: var(--ios-font); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ios-label); }
html main .hs-pill { background: var(--ios-fill); color: var(--ios-label-2); border-radius: var(--ios-pill); font: 600 0.75rem/1 var(--ios-font); padding: 0.3rem 0.55rem; }
html main .hs-field label, html main .hs-label-row > label { font-family: var(--ios-font); font-weight: 600; font-size: 0.8125rem; color: var(--ios-label-2); text-transform: uppercase; letter-spacing: 0.04em; }
html main .hs-step { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--ios-label); color: var(--ios-card); font: 700 0.75rem/1 var(--ios-font); margin-right: 0.45rem; display: inline-flex; align-items: center; justify-content: center; }
html main .hs-form textarea {
  background: var(--ios-card); border: 0; border-radius: var(--ios-r);
  box-shadow: var(--ios-field);
  font-family: var(--ios-font); font-size: 1.0625rem; line-height: 1.4; color: var(--ios-label);
  padding: 0.75rem 0.85rem;
}
html main .hs-form textarea::placeholder { color: var(--ios-label-3); }
html main .hs-form textarea:focus { outline: none; box-shadow: var(--ios-field), 0 0 0 3px rgba(52, 97, 143, 0.28); }
html main .hs-file-btn { color: var(--ios-tint); font-weight: 600; font-family: var(--ios-font); }
html main .hs-actions { gap: 0.75rem 1rem; }
html main .hs-actions .btn { width: auto; }
html main .hs-alt { color: var(--ios-label-2); }
html main .hs-alt a { color: var(--ios-tint); }
html main .trust-row { gap: 0.5rem; margin-top: 1.25rem; font-size: 0.875rem; }
html main .trust-row li { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--ios-pill); box-shadow: var(--ios-ring), var(--ios-shadow); color: var(--ios-label); font-weight: 500; padding: 0.5rem 0.9rem; }
html main .tr-ico .a, html main .tr-ico path { stroke: var(--ios-label-2); }

/* neutralize shared-palette leftovers that still reach this page */
html .theme-toggle { color: var(--ios-label-2); }
html .wordmark .dot { background: var(--ios-label); }
html .nav-list a { color: var(--ios-label); }
html .nav-link { color: var(--ios-label-2); }
html .nav-kicker .dot { background: var(--ios-label-3); }
html main .muted,
html main .small.muted,
html main .hs-note,
html main .hs-file-status { color: var(--ios-label-2); }
html main .hs-sub { color: var(--ios-label-2); }
html main .hs-note { background: var(--ios-fill); border: 0; border-radius: var(--ios-r); padding: 0.6rem 0.75rem; color: var(--ios-label-2); }
html main .hs-note b { color: inherit; }
html main .hs-err { color: #a3352c; }
html[data-theme="dark"] main .hs-err { color: #ff9e95; }
html main .tpl-fallback { color: var(--ios-label-3); }
html main .trust-row { color: var(--ios-label-2); }

/* ---------- section heads ---------- */
html main .section-head { display: block; max-width: 46rem; border-top: 0; padding-top: 0; margin: 0 0 clamp(1rem, 0.8rem + 1vw, 1.5rem); }
html main .section-head .sh-main { display: grid; gap: 0.5rem; }
html main .h2 { font-family: var(--ios-font); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
html main .section-head .sh-main .lede { margin: 0; max-width: 46rem; color: var(--ios-label-2); }

/* ---------- rhythm ---------- */
html main > section.rule-top { border-top: 0; }
html main > section { padding: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem) 0; }

/* ---------- statement ---------- */
html main .statement { background: transparent; color: var(--ios-label); padding-block: clamp(1.5rem, 1rem + 2vw, 2.25rem) !important; }
html main .statement .wrap { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--ios-r-lg); box-shadow: var(--ios-ring), var(--ios-shadow-soft); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; gap: 0.6rem; }
html main .statement-k { font-family: var(--ios-font); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ios-label-2); margin: 0; }
html main .statement-seal { display: none; }
html main .statement-t { max-width: 44rem; font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.75rem); line-height: 1.18; letter-spacing: -0.02em; }
html main .statement-t em { font-style: normal; color: var(--ios-tint); background: none; }

/* ---------- contents index (desktop only) ---------- */
html main .toc { display: none; }

/* ---------- grouped list cards ---------- */
html main #how .steps,
html main #features .teaser-list,
html main .faq,
html main .price-list,
html main #blog .from-blog-grid {
  display: block; background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--ios-r-lg);
  box-shadow: var(--ios-ring), var(--ios-shadow);
  overflow: hidden; list-style: none; margin: 0; padding: 0; max-width: none;
}
html main #how .steps li,
html main #features .teaser-list li,
html main .price-row,
html main #blog .from-blog-grid > a {
  border-top: 1px solid var(--ios-sep); border-bottom: 0; padding: 0.95rem 1.1rem; display: flex; align-items: center; gap: 0.9rem; border-left: 0; background: transparent;
}
html main #how .steps li:first-child,
html main #features .teaser-list li:first-child,
html main .price-row:first-child,
html main #blog .from-blog-grid > a:first-child { border-top: 0; }

html main b { background: none; }

html main #how .steps li { align-items: flex-start; }
html main #how .steps .n { font: 700 1.0625rem/1.35rem var(--ios-font); color: var(--ios-card); background: var(--ios-label); border-radius: 50%; width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center; flex: none; margin: 0; box-shadow: inset 0 1px 0 var(--ios-gloss-soft); }
html main #how .steps .h3 { font: 600 1.0625rem/1.3 var(--ios-font); margin: 0 0 0.15rem; }
html main #how .steps p { margin: 0; color: var(--ios-label-2); font-size: 0.9375rem; }

html main #features .teaser-list li { display: block; }
html main #features .teaser-list b { display: block; font: 600 1.0625rem/1.3 var(--ios-font); }
html main #features .teaser-list span { color: var(--ios-label-2); font-size: 0.9375rem; }

html main .price-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name amt' 'blurb blurb'; gap: 0.4rem 1rem; align-items: start; padding: 1.1rem; }
html main .price-name { grid-area: name; font: 600 1.0625rem/1.3 var(--ios-font); }
html main .price-amt { grid-area: amt; font: 700 1.5rem/1 var(--ios-font); letter-spacing: -0.03em; text-align: right; }
html main .price-amt small { display: block; font: 400 0.75rem/1.3 var(--ios-font); color: var(--ios-label-2); margin-top: 0.15rem; }
html main .price-blurb { grid-area: blurb; margin: 0; color: var(--ios-label-2); font-size: 0.9375rem; }
html main .price-flag { background: var(--ios-fill); color: var(--ios-label-2); border-radius: var(--ios-pill); font: 600 0.625rem/1 var(--ios-font); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.3rem 0.45rem; }

/* faq */
html main .faq details { border-top: 1px solid var(--ios-sep); border-bottom: 0; padding: 0; display: block; background: transparent; }
html main .faq details:first-child { border-top: 0; }
html main .faq summary { font: 600 1.0625rem/1.35 var(--ios-font); padding: 0.95rem 2rem 0.95rem 1.1rem; display: list-item; list-style: none; }
html main .faq summary::-webkit-details-marker { display: none; }
html main .faq summary::before { display: none; }
html main .faq summary::after { content: ''; position: absolute; right: 1.15rem; top: 1.25rem; width: 8px; height: 8px; border-right: 2px solid var(--ios-label-3); border-bottom: 2px solid var(--ios-label-3); transform: rotate(45deg); transition: transform var(--ios-dur-2) var(--ios-ease); }
html main .faq details[open] summary::after { transform: rotate(-135deg); }
html main .faq details p { margin: 0 1.1rem 1rem; color: var(--ios-label-2); font-size: 0.9375rem; max-width: 60ch; }

/* blog */
html main #blog .from-blog-grid > a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'cat chev' 'title title'; gap: 0.25rem 0.75rem; align-items: center; padding: 1rem 1.1rem; border-left: 0; }
html main #blog .fb-cat { grid-area: cat; font: 600 0.75rem/1 var(--ios-font); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ios-label-2); }
html main #blog .fb-title { grid-area: title; font: 600 1.0625rem/1.3 var(--ios-font); letter-spacing: -0.01em; color: var(--ios-label); }
html main #blog .fb-meta { display: none; }
html main #blog .from-blog-grid > a::after { content: ''; grid-area: chev; width: 8px; height: 8px; border-right: 2px solid var(--ios-label-3); border-bottom: 2px solid var(--ios-label-3); transform: rotate(-45deg); }

/* templates */
html main .seg-wrap { margin: 0 0 1rem; }
html main .seg { display: inline-flex; gap: 2px; padding: 2px; border: 0; border-radius: 10px; background: var(--ios-fill); overflow: hidden; }
html main .seg a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 0.9rem; border-radius: 8px; font: 600 0.875rem/1 var(--ios-font); color: var(--ios-label-2); text-decoration: none; }
html main .seg a[aria-current] { background: var(--ios-surface-bg); border: 1px solid transparent; color: var(--ios-label); box-shadow: var(--ios-ring); }
html main .seg a:hover { color: var(--ios-label); }

html main #templates .tpl-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
html main #templates .tpl-strip li { min-width: 0; }
html main #templates .tpl-strip a { display: grid; gap: 0.6rem; text-decoration: none; }
html main #templates .tpl-thumb { border: 1px solid var(--ios-edge); border-radius: var(--ios-r); box-shadow: var(--ios-shadow); }
html main #templates .tpl-strip-name b { font: 600 1.0625rem/1.2 var(--ios-font); }
html main #templates .tpl-strip-name span { color: var(--ios-label-2); font-size: 0.8125rem; }
html main .tpl-stylish-link { color: var(--ios-tint); }

/* CTA */
html main .cta-band { background: transparent; color: var(--ios-label); padding-block: clamp(1.5rem, 1rem + 2vw, 2.25rem) !important; }
html main .cta-band .wrap { background: linear-gradient(var(--ios-cta-bg), var(--ios-cta-bg)) padding-box, var(--ios-cta-rim) border-box; border: 1px solid transparent; color: var(--ios-cta-ink); border-radius: var(--ios-r-lg); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); display: grid; gap: 1rem; box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.18); }
html main .cta-band .h2 { color: var(--ios-cta-ink); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); max-width: 22ch; margin: 0; }
html main .cta-band .btn { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; border: 1px solid transparent; color: var(--ios-cta-bg); justify-self: start; }
html main .cta-band .btn:hover { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; filter: brightness(0.96); color: var(--ios-cta-bg); }

/* formatting */
html main .teaser-more { margin-top: 1rem; }
html main .teaser-more .btn { min-height: 44px; }

/* footer */
html .seo-links { background: transparent; border-top: 0; }
html .seo-links .foot-links a { color: var(--ios-label-2); text-decoration: none; }
html .seo-links .foot-links a:hover { color: var(--ios-label); text-decoration: underline; }
html .site-foot { background: transparent; border-top: 1px solid var(--ios-sep); color: var(--ios-label-2); }
html .site-foot .wordmark { color: var(--ios-label); }
html .site-foot .foot-links a { color: var(--ios-label-2); text-decoration: none; }
html .site-foot .foot-links a:hover { color: var(--ios-label); text-decoration: underline; }

/* fixed bars: hidden by default, enabled per platform */
html .hs-sticky { display: none !important; }
html .tabbar { display: none; }

/* dialog base */
html .ex-dlg {
  background: var(--ios-surface-bg);
  color: var(--ios-label);
  border: 1px solid transparent;
  border-radius: var(--ios-r-lg);
  box-shadow: var(--ios-ring), 0 12px 30px -22px rgba(0, 0, 0, 0.22);
  width: min(720px, calc(100vw - 24px));
}
html .ex-dlg::backdrop { background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html .ex-wrap { padding: clamp(1.25rem, 1rem + 2vw, 2rem); font-family: var(--ios-font); }
html .ex-wrap > .kicker { display: none; }
html .ex-wrap .x {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--ios-fill); color: var(--ios-label-2);
  font: 400 1.5rem/1 var(--ios-font); cursor: pointer;
}
html .ex-wrap .x:hover { background: var(--ios-fill-2); color: var(--ios-label); }
html .ex-title { font-family: var(--ios-font); font-weight: 700; letter-spacing: -0.03em; color: var(--ios-label); }
html .ex-wrap .small.muted { color: var(--ios-label-2); }
html .ex-score { font-family: var(--ios-font); font-weight: 700; }
html .ex-score .after { color: var(--ios-label); }
html .ex-score .before { color: var(--ios-label-3); text-decoration-color: var(--ios-label-3); }
html .ex-score .arr { color: var(--ios-label-2); }
html .ex-score .unit { font-family: var(--ios-font); color: var(--ios-label-2); }
html .ex-rows { border-top: 1px solid var(--ios-sep); }
html .ex-rows li { border-bottom: 1px solid var(--ios-sep); }
html .ex-k { color: var(--ios-label-2); }
html .ex-old { color: var(--ios-label-3); text-decoration-color: var(--ios-label-3); }
html .ex-new { color: var(--ios-label); }
html .ex-dlg .ex-new b { background: var(--ios-fill); color: inherit; border-radius: 4px; padding: 0 0.18em; font-weight: 600; }
html .ex-why { color: var(--ios-label-2); }
html .ex-why b { color: var(--ios-label); }
html .gap-note { background: var(--ios-fill); color: var(--ios-label-2); border: 0; border-radius: var(--ios-r); padding: 0.75rem 0.9rem; }
html .gap-note b { color: var(--ios-label); }
html .ex-gap { color: var(--ios-label-2); }

/* =====================================================================
   MOBILE — app shell (≤899px): bottom tabs, no desktop index, sheets.
   ===================================================================== */
@media (max-width: 899px) {
  html body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* the tab bar is the primary navigation on touch screens */
  html .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--ios-nav);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
    backdrop-filter: saturate(140%) blur(20px);
    border-top: 1px solid var(--ios-sep);
  }
  html .tabbar .tab {
    flex: 1; display: grid; justify-items: center; gap: 3px;
    padding: 6px 4px; min-height: 48px;
    text-decoration: none; color: var(--ios-label-2);
    font: 500 0.6875rem/1 var(--ios-font);
    border-radius: 10px;
  }
  html .tabbar .tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  html .tabbar .tab[aria-current] { color: var(--ios-tint); }
  html .tabbar .tab-primary { flex: 1.15; margin-left: 4px; border: 1px solid transparent; border-radius: 14px; background: linear-gradient(var(--ios-action), var(--ios-action)) padding-box, var(--ios-btn-rim) border-box; color: var(--ios-action-ink); justify-content: center; }
  html .tabbar .tab-primary, html .tabbar .tab-primary[aria-current] { color: var(--ios-action-ink); }
  html .tabbar .tab-primary svg { stroke: var(--ios-action-ink); }

  /* the header keeps only the wordmark, the theme switch and the menu */
  html .site-head .acct,
  html .site-head .head-cta { display: none; }
  html .menu-lbl { display: none; }
  html .menu-btn { width: 44px; padding: 0; }

  /* the bottom tabs replace both the old sticky CTA and the in-page index */
  html main .toc { display: none; }

  /* pricing uses one action for the whole block */
  html main .pricing-cta { display: grid; gap: 0.6rem; justify-items: start; }
  html main .pricing-cta .btn { width: 100%; }

  /* dialogs rise from the bottom as sheets */
  html .ex-dlg {
    position: fixed; inset: auto 0 0 0; margin: 0;
    width: 100%; max-width: none; max-height: 88dvh;
    border-radius: 20px 20px 0 0;
  }
  html .ex-dlg::before {
    content: ''; display: block; width: 40px; height: 5px;
    margin: 8px auto 0; border-radius: 3px; background: var(--ios-label-3);
  }
  html .ex-wrap { padding-top: 1.1rem; }
}

/* =====================================================================
   DESKTOP — workspace (≥900px): split hero, sticky index, multi-column.
   ===================================================================== */
@media (min-width: 900px) {
  html main section[id], html main #resume, html main #try { scroll-margin-top: 118px; }

  /* split hero: promise on the left, the tool on the right.
     The hero shares the page measure, so it lines up with the header and the
     rest of the page instead of stretching edge to edge on a wide screen. */
  html main .hero { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 clamp(2.5rem, 1.6rem + 2vw, 3.5rem); }
  html main .hero-grid { max-width: 72rem; margin-inline: auto; }
  html main .hero-grid > div {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      'h1    form'
      'lede  form'
      'alt   form'
      'trust trust';
    column-gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
  }
  html main .hero-grid > div > * { min-width: 0; }
  html main .hero .display { grid-area: h1; font-size: clamp(2.6rem, 2rem + 2.6vw, 4rem); }
  html main .hero .lede { grid-area: lede; }
  html main .hero .hs-form { grid-area: form; }
  html main .hero .hs-alt { grid-area: alt; }
  html main .hero .trust-row { grid-area: trust; margin-top: 1.75rem; }

  /* sticky section index across the top, like an app tab strip */
  html main .toc {
    display: block; position: sticky; top: 60px; z-index: 40;
    background: var(--ios-nav);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    backdrop-filter: saturate(140%) blur(18px);
    border-bottom: 1px solid var(--ios-sep);
    padding: 0.4rem 0 !important;
  }
  html main .toc-list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem; margin: 0; padding: 0; list-style: none; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  html main .toc-list li { display: flex; }
  html main .toc-list li + li { border-left: 0; }
  html main .toc-list a { display: inline-flex; align-items: center; gap: 0.35rem; border-top: 0 !important; border-radius: var(--ios-pill); padding: 0.45rem 0.85rem; text-decoration: none; }
  html main .toc-list a:hover { background: var(--ios-fill); }
  html main .toc-list a::after { display: none; }
  html main .toc-list span { color: var(--ios-label-3); font: 600 0.8125rem/1 var(--ios-font); font-variant-numeric: tabular-nums; }

  /* statement: the brand mark sits in the left column, so the row is never empty */
  html main .statement .wrap {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 'k t' 'seal t';
    gap: 0.9rem 2.25rem; align-items: start;
  }
  html main .statement-k { grid-area: k; padding-top: 0.45rem; }
  html main .statement-seal {
    grid-area: seal; position: relative; align-self: center; justify-self: start;
    display: grid; place-items: center; aspect-ratio: 1;
    width: clamp(6rem, 4rem + 5vw, 8.75rem);
    border-radius: clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
    background: var(--ios-surface-bg);
    box-shadow: var(--ios-ring), var(--ios-shadow);
    color: var(--ios-label);
  }
  html main .statement-seal .seal-s { font-family: var(--ios-font); font-weight: 700; font-size: clamp(2.6rem, 1.7rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
  html main .statement-seal .seal-dot { position: absolute; right: 18%; bottom: 18%; width: clamp(0.45rem, 0.3rem + 0.5vw, 0.7rem); height: clamp(0.45rem, 0.3rem + 0.5vw, 0.7rem); border-radius: 50%; background: var(--ios-tint); }
  html main .statement-t { grid-area: t; max-width: none; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.14; }

  /* steps: three cards */
  html main #how .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; background: transparent; box-shadow: none; overflow: visible; }
  html main #how .steps li { display: block; border: 1px solid transparent; background: var(--ios-surface-bg); border-radius: var(--ios-r-lg); box-shadow: var(--ios-ring), var(--ios-shadow); padding: 1.5rem; }
  html main #how .steps .n { margin-bottom: 0.9rem; }

  /* features: a 2×2 of cards */
  html main #features .teaser-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; background: transparent; box-shadow: none; overflow: visible; }
  html main #features .teaser-list li { display: block; border: 1px solid transparent; background: var(--ios-surface-bg); border-radius: var(--ios-r-lg); box-shadow: var(--ios-ring), var(--ios-shadow); padding: 1.25rem 1.35rem; }

  /* templates: three across */
  html main #templates .tpl-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

  /* pricing: three comparison cards */
  html main .price-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; background: transparent; box-shadow: none; overflow: visible; }
  html main .price-row {
    display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr;
    grid-template-areas: 'name' 'amt' 'blurb';
    gap: 0.5rem; align-items: start; padding: 1.5rem;
    border: 1px solid transparent; background: var(--ios-surface-bg); border-radius: var(--ios-r-lg);
    box-shadow: var(--ios-ring), var(--ios-shadow);
  }
  html main .price-amt { font-size: 2rem; text-align: left; }

  /* faq stays a readable measure */
  html main .faq { max-width: 52rem; }

  /* reading cards: two across */
  html main #blog .from-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; background: transparent; box-shadow: none; overflow: visible; }
  html main #blog .from-blog-grid > a { border: 1px solid transparent; background: var(--ios-surface-bg); border-radius: var(--ios-r-lg); box-shadow: var(--ios-ring), var(--ios-shadow); padding: 1.25rem; }

  /* CTA: one horizontal bar */
  html main .cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
  html main .cta-band .btn { justify-self: auto; }

  /* footer: brand left, links right */
  html .site-foot .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
  html .site-foot .foot-links { justify-content: flex-end; max-width: 34rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- dark theme: reclaim the homepage surfaces ----------
   dark.css is loaded before this file and reaches the OLED sheet, the form, the step
   badges and the menu with html[data-theme="dark"] selectors that paint the older navy
   and marker yellow. home.css is last, so the same reach here wins by order and keeps
   the homepage true-black, glossy and colourless. */
html[data-theme="dark"] body { background: var(--ios-bg); color: var(--ios-label); }
html[data-theme="dark"] .site-head { background: var(--ios-nav); border-bottom-color: var(--ios-sep); box-shadow: inset 0 -1px 0 var(--ios-gloss-bot); }
html[data-theme="dark"] .site-nav { background: var(--ios-surface-bg); border: 1px solid transparent; box-shadow: var(--ios-ring), 0 6px 18px -14px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .nav-list a:hover,
html[data-theme="dark"] .nav-list a:focus-visible { background: var(--ios-fill); color: var(--ios-label); }
html[data-theme="dark"] .acct-pop { background: var(--ios-surface-bg); border: 1px solid transparent; }
html[data-theme="dark"] .acct-pop a:hover,
html[data-theme="dark"] .acct-pop button:hover { background: var(--ios-fill); }
html[data-theme="dark"] .site-foot { background: transparent; border-top-color: var(--ios-sep); }
html[data-theme="dark"] main .hs-form { background: var(--ios-surface-bg); border: 1px solid transparent; box-shadow: var(--ios-ring), var(--ios-shadow); }
html[data-theme="dark"] main .hs-form::before { display: none; }
html[data-theme="dark"] main .hs-form textarea,
html[data-theme="dark"] main .hs-form textarea:focus { background: var(--ios-card); border: 0; box-shadow: var(--ios-field); }
html[data-theme="dark"] main .hs-form .btn:hover { background: linear-gradient(var(--ios-action), var(--ios-action)) padding-box, var(--ios-btn-rim) border-box; color: var(--ios-action-ink); }
html[data-theme="dark"] main .hs-step { background: var(--ios-label); color: var(--ios-card); box-shadow: none; }
html[data-theme="dark"] main .hs-pill { background: var(--ios-fill); color: var(--ios-label-2) !important; }
html[data-theme="dark"] main .btn-ghost { background: var(--ios-surface-bg); color: var(--ios-label); box-shadow: var(--ios-ring); }
html[data-theme="dark"] main .btn-ghost:hover { background: var(--ios-surface-bg); color: var(--ios-label); border-color: transparent; }
html[data-theme="dark"] main .cta-band { background: transparent; color: var(--ios-label); }
html[data-theme="dark"] main .cta-band .wrap { background: linear-gradient(var(--ios-cta-bg), var(--ios-cta-bg)) padding-box, var(--ios-cta-rim) border-box; border: 1px solid transparent; color: var(--ios-cta-ink); box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] main .cta-band .btn,
html[data-theme="dark"] main .cta-band .btn:hover { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; color: var(--ios-cta-bg); }
html[data-theme="dark"] .ex-dlg { background: var(--ios-surface-bg); border: 1px solid transparent; box-shadow: var(--ios-ring), 0 12px 30px -22px rgba(0, 0, 0, 0.5); }

/* ---------- motion: Apple iOS ----------
   Every transition on the page uses the same curve family so feedback feels native:
   micro states ease out over 0.2s, the menu and surfaces over 0.32s, and sheets rise
   from the bottom over 0.44s. This section is last, so it retunes the shared rules in
   site.css too; the reduced-motion block above already flattens all of it. */
html .menu-btn { transition: background var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease); }
html .menu-btn .bars,
html .menu-btn .bars::before,
html .menu-btn .bars::after { transition: transform var(--ios-dur-2) var(--ios-ease), background var(--ios-dur-2) var(--ios-ease); }

html .site-head .site-nav { transform-origin: top right; transition: opacity var(--ios-dur-2) var(--ios-ease), transform var(--ios-dur-2) var(--ios-ease), visibility 0s linear var(--ios-dur-2); }
html .site-head.menu-open .site-nav { transition: opacity var(--ios-dur-2) var(--ios-ease), transform var(--ios-dur-2) var(--ios-ease), visibility 0s; }
html .nav-list a { transition: background var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease); }

html .btn { transition: transform 0.14s var(--ios-ease), background-color var(--ios-dur-1) var(--ios-ease), box-shadow var(--ios-dur-1) var(--ios-ease), filter var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease); }
html .btn-link { transition: color var(--ios-dur-1) var(--ios-ease); }
html .tabbar .tab { transition: color var(--ios-dur-1) var(--ios-ease), background-color var(--ios-dur-1) var(--ios-ease), transform 0.12s var(--ios-ease); }
html .tabbar .tab:active { transform: scale(0.94); }
html main .toc-list a { transition: background var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease); }
html main .seg a { transition: background var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease), box-shadow var(--ios-dur-1) var(--ios-ease); }
html main .hs-form { transition: box-shadow var(--ios-dur-2) var(--ios-ease), border-color var(--ios-dur-2) var(--ios-ease); }
html .ex-wrap .x { transition: background var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease), transform 0.12s var(--ios-ease); }
html .ex-wrap .x:active { transform: scale(0.92); }
html .hs-sticky { transition: transform var(--ios-dur-2) var(--ios-ease), opacity var(--ios-dur-2) var(--ios-ease), visibility 0s linear var(--ios-dur-2); }

/* sheets and dialogs rise like iOS: a small lift on desktop, from the bottom on phones */
html .ex-dlg[open] { animation: ios-dlg-rise var(--ios-dur-3) var(--ios-ease) both; }
html .ex-dlg[open]::backdrop { animation: ios-fade var(--ios-dur-3) var(--ios-ease) both; }
@keyframes ios-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ios-dlg-rise { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes ios-sheet-rise { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  html .ex-dlg[open] { animation-name: ios-sheet-rise; }
}

/* ---------- no sideways scroll ----------
   The layout is built to fit the viewport, so any stray wide element is clipped
   instead of turning the page into a horizontal scroller. `clip` (not `hidden`)
   keeps the sticky section index working, because it creates no scroll container. */
html, body { overflow-x: clip; max-width: 100%; }

/* Rows inside the form may shrink and wrap rather than push the form wider. */
html main .hs-form > *,
html main .hs-field > *,
html main .hs-head > *,
html main .hs-label-row > *,
html main .hs-actions > * { min-width: 0; }
html main .hs-head,
html main .hs-label-row,
html main .hs-actions { flex-wrap: wrap; }

/* ---------- scrollbars: quiet and glassy, matched to the theme ----------
   Chromium and Safari get a thin, padded, rounded thumb on a transparent track,
   so the page edge stays as clean as the surfaces. The thumb is near-black on
   paper and near-white on true black. */
html::-webkit-scrollbar,
html *::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
html::-webkit-scrollbar-track,
html::-webkit-scrollbar-track-piece,
html::-webkit-scrollbar-corner,
html *::-webkit-scrollbar-track,
html *::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-thumb,
html *::-webkit-scrollbar-thumb {
  background: rgba(29, 29, 31, 0.24);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover,
html *::-webkit-scrollbar-thumb:hover { background: rgba(29, 29, 31, 0.4); background-clip: padding-box; }
html::-webkit-scrollbar-thumb:active,
html *::-webkit-scrollbar-thumb:active { background: rgba(29, 29, 31, 0.55); background-clip: padding-box; }
html[data-theme="dark"]::-webkit-scrollbar-thumb,
html[data-theme="dark"] *::-webkit-scrollbar-thumb { background: rgba(245, 245, 247, 0.28); background-clip: padding-box; }
html[data-theme="dark"]::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover { background: rgba(245, 245, 247, 0.44); background-clip: padding-box; }

/* Firefox has no scrollbar pseudo-elements: a thin native bar in the same tone. */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(29, 29, 31, 0.3) transparent; }
  html[data-theme="dark"] { scrollbar-color: rgba(245, 245, 247, 0.32) transparent; }
}