/* Sumina website — shared styles */

@font-face { font-family: "Newsreader"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/Newsreader-300.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Newsreader-400.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 600; font-style: italic; font-display: swap; src: url("/fonts/Newsreader-600i.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/Newsreader-400i.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --ink: #0F0F0F;
  --text: #1A1A1A;
  --muted: rgba(0, 0, 0, 0.6);
  --line: #E3E3E3;
  --pill: #EBEBEB;
  --caret: #2F7BF2;
  --margin-red: #F2949E;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.4; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Zero-width blue caret: moves with the text without changing line breaks */
.caret { position: relative; }
.caret::after {
  content: ""; position: absolute; left: 3px; top: 0.04em; width: 3px; height: 0.96em;
  background: var(--caret); animation: blink 1.1s steps(1) infinite;
}
.caret.typing::after { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* Get App pill */
.get-app {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 68px; padding: 0 30px 0 26px; border-radius: 999px;
  background: #000; color: #fff; text-decoration: none;
  font-family: var(--ui); font-weight: 500; font-size: 27px; letter-spacing: -0.01em;
  transition: background-color .2s ease, transform .15s ease;
}
.get-app:hover { background: #262626; }
.get-app:active { transform: scale(.97); }
.get-app svg { width: 23px; height: 27px; fill: currentColor; margin-top: -3px; }

/* Outlined Get App (home header) */
.get-app.outline { height: 46px; padding: 0 22px; gap: 7px; background: #fff; color: #000; border: 1px solid #DCDCDC; font-size: 19.7px; letter-spacing: -0.02em; }
.get-app.outline:hover { background: #F6F6F6; }
.get-app.outline svg { width: 15px; height: 18px; margin-top: -2px; }

/* =========================================================
   Home: red margin lines, icon top left, app demo in the middle.
   The space between the two lines opens into the sidebar.
   ========================================================= */
@property --open  { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --intro { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --x1    { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --x2    { syntax: "<length>"; inherits: true; initial-value: 0px; }

body.home { background: #FFFFFF; }
.stage {
  /* Line positions: closed (a fixed gap after the icon), intro, and the sidebar width when open */
  --W: min(100vw, 1680px);
  --l1c: 163px;
  --l1i: calc(var(--W) / 2 - 221px);
  --gapo: clamp(340px, calc(295px + var(--W) * .0847), 470px);
  --x1: calc(var(--l1c) + (var(--l1i) - var(--l1c)) * var(--intro));
  --x2: calc(var(--x1) + 4.5px + (var(--gapo) - 4.5px) * var(--open));
  --ease: cubic-bezier(.33, 1, .68, 1);
  position: relative; max-width: 1680px; margin: 0 auto; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  transition: --open .75s var(--ease), --intro 1.15s cubic-bezier(.65, 0, .35, 1);
}
.js.intro .stage, .js.intro-hold .stage { --intro: 1; }
.stage.open { --open: 1; }

/* ---- Red margin lines ---- */
.margin-lines { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.margin-lines path { fill: none; stroke: var(--margin-red); stroke-width: 1.3; stroke-linecap: round; }

/* ---- App icon (134 x 138 at its intro size, scaled down top left) ---- */
.icon-box {
  --k: calc(134 / 212);
  --ox: max(0px, calc((100vw - 1680px) / 2));
  position: fixed; z-index: 8; left: calc(var(--ox) + 45px); top: 27px; width: 134px; height: 138px;
  transform: translate3d(0, 0, 0) scale(.578); transform-origin: 0 0;
  transition: transform 1.15s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.js.intro .icon-box, .js.intro-hold .icon-box { transform: translate3d(calc(var(--l1i) - 213px), calc(50vh - 96px), 0) scale(1); }
.icon-art { position: absolute; left: 0; top: 0; width: 212px; height: 217px; transform: scale(var(--k)); transform-origin: 0 0; }
.icon-art > img { width: 100%; height: 100%; border-radius: 22%; }
.js .icon-art > img { visibility: hidden; }
/* The icon fills 958 x 980 of the 1546 x 1512 animation frame */
.sumina-stage { --s: calc(212 / 958); position: absolute; left: calc(-295px * var(--s)); top: calc(-284.5px * var(--s)); width: calc(1546px * var(--s)); aspect-ratio: 1546 / 1512; pointer-events: none; }
.sumina-icon, .sumina-icon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .sumina-stage { opacity: 0; }
.js .sumina-stage.shown { opacity: 1; transition: opacity .45s ease-out; }

/* ---- Top right links ---- */
.top-nav { position: fixed; z-index: 8; top: 33px; right: calc(max(0px, (100vw - 1680px) / 2) + 50px); display: flex; gap: 24px; }
.top-nav button { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--sans); font-size: 14px; line-height: 17px; letter-spacing: -0.02em; color: #000; }
.top-nav { align-items: center; }
.x-link { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; color: #000; }
.x-link svg { width: 14px; height: 14px; fill: currentColor; }
.x-link:hover { opacity: .6; }
.top-nav button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Sidebar between the lines ---- */
.sidebar {
  position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--x1); width: calc(var(--x2) - var(--x1));
  overflow: hidden; opacity: var(--open); visibility: hidden;
}
.stage.open .sidebar, .stage.closing .sidebar { visibility: visible; }
.side-close {
  position: absolute; z-index: 2; top: 33px; right: 22px; display: flex; align-items: center; gap: 5px;
  padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--sans); font-size: 14px; line-height: 19px; color: #000; white-space: nowrap;
}
.side-close svg { width: 12px; height: 12px; fill: none; stroke: #000; stroke-width: 1.25; stroke-linecap: round; }
.side-close:hover { text-decoration: underline; text-underline-offset: 3px; }
.side-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.side-scroll::-webkit-scrollbar { display: none; }
/* Fixed width, centred between the lines; the opening lines reveal it */
.side-inner { position: relative; width: 318px; margin-left: 28px; padding: clamp(96px, 14vh, 152px) 0 72px; }

/* ---- Accordion (sidebar) ---- */
.acc h2 { margin: 0; font: inherit; }
.acc h2 button {
  display: block; width: 100%; padding: 16px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 27px; letter-spacing: -0.02em; color: var(--ink);
}
.acc .acc-item:first-child h2 button { padding-top: 0; }
.acc h2 button:hover { color: #000; }
.acc h2 button:focus-visible, .faq .q:focus-visible, .top-nav button:focus-visible, .side-close:focus-visible { outline: 2px solid var(--caret); outline-offset: 2px; border-radius: 4px; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2,.75,.15,1); }
.acc-panel > .acc-inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .25s ease; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-item.open .acc-panel > .acc-inner { opacity: 1; transition: opacity .45s .12s ease; }
.acc-inner > :first-child { margin-top: 4px; }
.acc-inner > :last-child { margin-bottom: 32px; }

/* Features: check marks */
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 0 0 0 16px; font-size: 14px; line-height: 19px; color: #000; white-space: nowrap; }
.feature-list li + li { margin-top: 11px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M1 4.9l2.25 2.4L8 1.4' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 9px; font-size: 12px; line-height: 16px; text-transform: uppercase; color: #000; opacity: .4; vertical-align: -1px; }
.tag svg { width: 12.5px; height: 14px; }
.tag .hex { fill: none; stroke: #000; stroke-width: 1.1; stroke-linejoin: round; }
.tag .star { fill: #000; }

/* Pricing */
.plan { padding: 0 0 14px; }
.plan + .plan { padding-top: 14px; border-top: 1px solid var(--line); }
.plan-head { margin: 0 0 6px; font-size: 14px; line-height: 20px; color: #000; }
.plan-head strong { font-weight: 600; margin-right: 8px; }
.plan-head .or { font-style: italic; color: #8A8A8A; margin: 0 4px; }
.plan-desc { margin: 0; font-size: 14px; line-height: 20px; color: #333; }
.plan-note { margin: 4px 0 0; font-size: 13px; line-height: 19px; color: var(--muted); }

/* FAQs */
.faq .q {
  display: block; width: 100%; padding: 6px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--sans); font-style: italic; font-size: 14px; line-height: 20px; color: #222;
}
.faq:first-child .q { padding-top: 0; }
.faq .q:hover { color: #000; }
.faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.75,.15,1); }
.faq .a > div { overflow: hidden; min-height: 0; }
.faq.open .a { grid-template-rows: 1fr; }
.faq .a p { margin: 4px 0 12px; font-size: 14px; line-height: 20px; color: var(--text); }
.faq .a a { text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }
.faq .a a:hover { text-decoration-color: currentColor; }

/* Stay updated */
.loop-lede { margin: 0 0 14px; font-size: 14px; line-height: 20px; color: #222; }
.loop-form { display: flex; align-items: center; height: 46px; padding: 3px; border: 1px solid rgba(0,0,0,.2); border-radius: 38px; background: #fff; transition: border-color .2s; }
.loop-form:focus-within { border-color: rgba(0,0,0,.45); }
.loop-form input { flex: 1; min-width: 0; height: 100%; padding: 0 0 0 14px; border: 0; background: none; outline: none; font-family: var(--sans); font-size: 14px; color: var(--text); }
.loop-form input::placeholder { color: #9A9A9A; }
.loop-form button { flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(0,0,0,.08); font-family: var(--sans); font-weight: 600; font-size: 14px; color: #1A1A1A; transition: background-color .2s; }
.loop-form button:hover { background: rgba(0,0,0,.14); }
.loop-thanks { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---- The app demo, centred (moves aside while the sidebar is open) ---- */
.main {
  /* Vertical rhythm: the demo block is centred between the top bar and the footer with small
     margins, so the phone keeps its size as long as possible when the window gets shorter */
  --edge-t: clamp(72px, 9svh, 140px);
  --edge-b: clamp(60px, 7svh, 120px);
  --g2: clamp(20px, calc(1.262svh + 11.6px), 30px);
  --g3: clamp(30px, calc(4.89svh - 6px), 65px);
  --g4: clamp(18px, calc(1.89svh + 2.5px), 30px);
  --caph: 99px;
  --ph: clamp(300px, calc(100svh - var(--edge-t) - var(--edge-b) - var(--g2) - 4px - var(--g3) - var(--caph) - var(--g4) - 52px - 29px), 797px);
  position: absolute; z-index: 2; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--edge-t) 0 var(--edge-b);
  transform: translateX(calc(var(--open) * (var(--l1c) + var(--gapo)) / 2));
}
.get-app.solid { position: relative; z-index: 1; width: 189px; height: 52px; margin-top: var(--g4); padding: 0 22px; gap: 7px; background: #000; color: #fff; border: 1px solid #E2E2E2; font-size: 19.7px; letter-spacing: -0.02em; }
.get-app.solid { overflow: hidden; isolation: isolate; }
.get-app.solid:hover { background: #000; }
/* Soft light that follows the pointer on hover */
.get-app.solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.2), rgba(255,255,255,0) 70%);
  opacity: 0; transition: opacity .35s ease;
}
.get-app.solid:hover::before { opacity: 1; }
.trial { margin: 12px 0 0; font-size: 14px; line-height: 17px; color: #808080; text-align: center; }
.get-app.solid svg { width: 17.5px; height: 21.9px; margin-top: -3px; }
.demo { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta { display: contents; }
.phone-row { position: relative; z-index: 1; width: calc(var(--ph) * 436 / 908); }
.phone { position: relative; width: 100%; aspect-ratio: 436 / 908; }
.phone-face { position: absolute; inset: 0; }
/* Side buttons, just peeking out of the band */
.pbtn { position: absolute; width: .75%; background: linear-gradient(90deg, #8B8A8F, #F1F1F3 40%, #B9B9BD); }
.pbtn.l { left: -.6%; border-radius: 1.5px 0 0 1.5px; }
.pbtn.r { right: -.6%; border-radius: 0 1.5px 1.5px 0; background: linear-gradient(270deg, #8B8A8F, #F1F1F3 40%, #B9B9BD); }
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen { position: absolute; left: 3.899%; top: 1.872%; width: 92.202%; height: 96.256%; overflow: hidden; clip-path: url(#screen-clip); background: #FCFCFC; }
.phone-island { position: absolute; left: 35.55%; top: 3.414%; width: 28.9%; height: auto; pointer-events: none; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.shot.on { opacity: 1; }

/* Soft dot box behind the bottom of the phone and the caption (a flat image for now) */
.dots {
  position: absolute; z-index: 0; left: 50%; top: calc(var(--ph) * .413); bottom: clamp(-40px, calc(-2.75svh), -20px);
  width: calc(var(--ph) * 1.2); max-width: 100vw; transform: translateX(-50%);
  /* corners shrink as the card nears the screen edges and are square once it touches them */
  border-radius: clamp(0px, calc((100vw - var(--ph) * 1.2) / 2), 32px);
  background: url("/img/dots.png") center / cover no-repeat; mix-blend-mode: multiply; pointer-events: none;
}
.dots.live { background: none; mix-blend-mode: normal; }
/* Preview only: background style picker */
.bg-pick { position: fixed; z-index: 9; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border: 1px solid #E2E2E2; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 12px; line-height: 16px; white-space: nowrap; }
.bg-pick[hidden] { display: none; }
.bg-pick span { opacity: .45; margin-right: 4px; }
.bg-pick button { font: inherit; letter-spacing: inherit; border: 0; background: none; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: #000; }
.bg-pick button[aria-pressed="true"] { background: #000; color: #fff; }
.bg-pick .bg-tint { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 0 6px; padding-left: 12px; border-left: 1px solid #E2E2E2; opacity: 1; }
.bg-pick .bg-tint[hidden] { display: none; }
.bg-pick .bg-tint label { display: inline-flex; align-items: center; gap: 6px; opacity: 1; cursor: pointer; }
.bg-pick .bg-tint input { width: 24px; height: 24px; padding: 0; border: 1px solid #D0D0D0; border-radius: 50%; background: none; cursor: pointer; overflow: hidden; -webkit-appearance: none; appearance: none; }
.bg-pick .bg-tint input::-webkit-color-swatch-wrapper { padding: 0; }
.bg-pick .bg-tint input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.bg-pick .bg-tint input::-moz-color-swatch { border: 0; border-radius: 50%; }
.bg-pick .bg-tint code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; user-select: all; }
.bg-pick .bg-reset { padding: 3px 8px; border: 1px solid #E2E2E2; }
@media (max-width: 859px) { .bg-pick { display: none; } }

/* Progress, under the phone */
.progress { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 4px; margin-top: var(--g2); }
.progress button {
  position: relative; flex: none; width: 6px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: #C6C6C6; cursor: pointer; overflow: visible;
  transition: width .5s cubic-bezier(.2,.7,.2,1), background-color .3s;
}
.progress button::before { content: ""; position: absolute; inset: -12px -3px; }
.progress button:hover { background: #9C9C9C; }
.progress button.on { width: 42px; background: #DADADA; }
.progress .fill { position: absolute; inset: 0; background: #0F0F0F; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(0); }
.progress button.on .fill { transform: scaleX(var(--p, 0)); }
.progress button:focus-visible { outline: 2px solid var(--caret); outline-offset: 3px; }

/* Caption: the intro line lands here, then it follows the demo */
.caption-wrap { position: relative; z-index: 1; width: min(663px, calc(100vw - 48px)); min-height: var(--caph); margin-top: var(--g3); }
#title {
  margin: 0; text-align: center;
  font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 33px; letter-spacing: -0.03em; color: var(--ink);
}
#title .w { display: inline-block; white-space: pre; }
.caret::after { height: 1.2em; top: -0.06em; }
/* During the intro the line sits beside the red line, left aligned */
/* Same line breaks as the caption, at 24 px: 663 x 24 / 28 = 568 px wide */
.js.intro #title { position: fixed; left: calc(var(--l1i) + 51px); top: calc(50% - 46.5px); width: 568px; text-align: left; font-size: 24px; line-height: 31px; }
.js .caption-wrap { visibility: hidden; }
.js .stage.ready .caption-wrap { visibility: visible; }
.js .icon-box { visibility: hidden; }
.js .stage.ready .icon-box { visibility: visible; }
.caption-measure { position: absolute; left: 0; top: 0; width: 100%; margin: 0; visibility: hidden; pointer-events: none; text-align: center; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 33px; letter-spacing: -0.03em; }

/* ---- Footer ---- */
.home-footer {
  position: fixed; z-index: 5; bottom: 0; left: max(0px, calc((100vw - 1680px) / 2)); width: min(100vw, 1680px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 50px 25px 45px;
}
/* On pages that scroll, text passes softly under the footer */
.doc-page .home-footer { background: linear-gradient(to top, #fff 62%, rgba(255,255,255,0)); }
.home-footer nav { display: flex; align-items: center; gap: 32px; }
.home-footer nav a, .home-footer .copy { font-family: var(--sans); font-size: 14px; line-height: 17px; letter-spacing: -0.02em; color: #000; text-decoration: none; }
.home-footer .copy { opacity: .4; }
.home-footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Intro (page load) ---- */
.fade { transition: opacity .8s ease, visibility 0s; }
.js.intro .fade, .js.intro-hold .fade { opacity: 0; visibility: hidden; transition: none; }

/* ---- Small screens: one column; the sidebar becomes a sheet ---- */
@media (max-width: 859px) {
  .stage { height: auto; min-height: 100svh; overflow: visible; padding-bottom: 0; }
  .margin-lines { display: none; }
  .icon-box, .js.intro .icon-box, .js.intro-hold .icon-box { left: 20px; top: 18px; transform: scale(.42); }
  .top-nav { top: 30px; right: 20px; gap: 18px; }
  /* On phones the icon, links and footer scroll with the page instead of staying on screen */
  .icon-box, .js.intro .icon-box, .js.intro-hold .icon-box, .top-nav { position: absolute; }
  /* The phone fills the width (24px gutters). When the screen is too short for all of it, only its top part
     shows (never less than 58%) and the bottom fades softly into the page; the phone also shrinks so the
     caption and Get App still fit. On tall screens the whole phone shows, with no fade. */
  .main { position: relative; inset: auto; transform: none; box-sizing: border-box; min-height: 100svh; justify-content: center; padding: 96px 0 0; --caph: 75px;
    --avail: calc(100svh - var(--caph) - 285px);
    --ph: max(min(760px, calc((100vw - 48px) * 908 / 436 * .72)), min(760px, calc((100vw - 48px) * 908 / 436), calc(var(--avail) / .58)));
    --rowh: min(var(--ph), max(calc(var(--ph) * .58), var(--avail)));
    --cut: calc(var(--ph) - var(--rowh));
    --fade: clamp(0px, calc(var(--cut) * 1.2), calc(var(--rowh) * .2));
    --ext: calc(44px - clamp(0px, calc(var(--cut) * 4), 44px)); }
  .demo { width: 100%; }
  .phone-row { height: var(--rowh); clip-path: inset(-20px -20px 0 -20px); }
  .demo::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--rowh) - var(--fade)); height: calc(var(--fade) + 1px);
    background: linear-gradient(rgba(255,255,255,0), #fff 92%); pointer-events: none; }
  .dots { top: calc(var(--ph) * .3); bottom: auto; height: calc(var(--rowh) - var(--ph) * .3 + var(--ext)); width: 100vw; border-radius: 0; }
  .progress { margin-top: 18px; }
  /* Caption and Get App follow the demo; they only pin to the bottom on screens too short for everything */
  .cta { display: flex; flex-direction: column; align-items: center; position: sticky; z-index: 6; bottom: 0; width: 100%; margin-top: 0; padding: 22px 20px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; background: linear-gradient(rgba(255,255,255,0), #fff 22px); }
  .caption-wrap { width: min(569px, calc(100vw - 40px)); margin-top: 0; }
  .get-app.solid { margin-top: 16px; }
  #title, .caption-measure { font-size: 22px; line-height: 25px; }
  .js.intro #title { position: static; width: auto; transform: none; text-align: center; font-size: 22px; line-height: 25px; }
  .home-footer, .doc-page .home-footer { position: relative; left: auto; width: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 20px 24px; background: none; }
  .home-footer nav { gap: 20px; }
  .home-footer nav a, .home-footer .copy { white-space: nowrap; }
  .sidebar { position: fixed; z-index: 20; inset: 0; left: 0; width: auto; background: #FBFBFB; opacity: var(--open); transform: translateY(calc((1 - var(--open)) * 24px)); }
  .side-close { top: 24px; right: 20px; }
  .side-inner { width: auto; margin: 0; padding: 84px 24px 48px; }
  .feature-list li { white-space: normal; }
}

/* =========================================================
   Document pages (privacy, terms, support)
   ========================================================= */
/* Same top links, red lines and footer as the home page */
.doc-page { --x1: 163px; --x2: 167.5px; background: #FFFFFF; }
.doc-lines { position: fixed; z-index: 7; top: 0; bottom: auto; left: max(0px, calc((100vw - 1680px) / 2)); width: min(100vw, 1680px); height: 100vh; height: 100lvh; }
.doc-top { position: sticky; z-index: 6; top: 0; max-width: 1680px; height: 118px; margin: 0 auto; background: linear-gradient(#fff 82%, rgba(255,255,255,0)); }
.doc-icon { position: absolute; left: 45px; top: 27px; }
.doc-icon img { width: 77.5px; height: 80px; border-radius: 22%; }
.doc-top .top-nav { position: absolute; right: 50px; }
.doc-top .top-nav a { font-family: var(--sans); font-size: 14px; line-height: 17px; color: #000; text-decoration: none; }
.doc-top .top-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-footer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 859px) {
  .doc-lines { display: none; }
  .doc-top { position: relative; height: 92px; background: none; }
  .doc-icon { left: 20px; top: 18px; }
  .doc-icon img { width: 56px; height: 58px; }
  .doc-top .top-nav { top: 30px; right: 20px; gap: 18px; }
}

/* Document text: the home page's type (Newsreader headings, Inter 14 px text) */
.doc { max-width: 1680px; margin: 0 auto; padding: 46px 0 140px; }
.doc-inner { width: min(600px, calc(100% - 260px)); margin-left: max(220px, calc(50% - 300px)); }
@media (max-width: 380px) { .home-footer, .doc-page .home-footer { padding-left: 16px; padding-right: 16px; } .home-footer nav { gap: 14px; } .home-footer nav a, .home-footer .copy { font-size: 13px; } }
@media (max-width: 345px) { .home-footer nav { gap: 10px; } .home-footer nav a, .home-footer .copy { font-size: 12px; } }
@media (max-width: 859px) { .doc { padding: 24px 0 24px; } .doc-inner { width: auto; margin: 0 24px; } }
.doc-head { margin-bottom: 36px; }
.doc-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 44px; letter-spacing: -0.03em; color: var(--ink); }
.doc-head .updated { margin: 10px 0 0; font-size: 14px; line-height: 19px; color: rgba(0,0,0,.5); }
.doc p, .doc li { font-family: var(--sans); font-size: 14px; line-height: 22px; color: #000; }
.doc p { margin: 0 0 14px; }
.doc strong { color: #000; font-weight: 600; }
.doc a { color: #000; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: #000; }
.doc h2 { margin: 44px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 27px; letter-spacing: -0.02em; color: var(--ink); }
.doc h3 { margin: 26px 0 8px; font-family: var(--sans); font-size: 14px; line-height: 20px; font-weight: 600; color: #000; }
.doc h4 { margin: 20px 0 6px; font-family: var(--sans); font-size: 14px; line-height: 20px; font-weight: 600; color: #000; }
.doc ul { padding-left: 18px; margin: 0 0 14px; }
.doc li { margin: 5px 0; }
.doc li::marker { color: rgba(0,0,0,.35); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); line-height: 20px; color: #000; }
.doc th { font-weight: 600; }
.doc .callout { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 18px 0; background: #FAFAFA; }
.doc .callout p:last-child { margin-bottom: 0; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; text-decoration: none; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 22%; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: 16px; color: var(--muted); text-decoration: none; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-header .get-app { justify-self: end; height: 42px; padding: 0 18px 0 16px; font-size: 17px; gap: 8px; }
.site-header .get-app svg { width: 15px; height: 18px; margin-top: -2px; }
@media (max-width: 640px) {
  .site-header .bar { grid-template-columns: 1fr auto; padding: 0 16px; height: 64px; }
  .site-nav { display: none; }
}

.site-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 40px 32px 34px; }
.site-footer nav { display: flex; gap: 32px; flex-wrap: wrap; }
.site-footer nav a { font-size: 14px; color: #222; text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copy { font-family: var(--ui); font-size: 14px; color: rgba(0,0,0,.6); }
@media (max-width: 640px) { .site-footer { padding: 32px 20px; flex-direction: column-reverse; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .caret::after { animation: none; }
  .acc-panel, .acc-panel > .acc-inner, .faq .a, .shot, .fade, .progress button, .stage, .icon-box { transition: none !important; }
}
