/* Self-hosted (no requests to Google): Instrument Serif + Inter, latin, latin-ext, cyrillic. */
/* Instrument Serif latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Serif latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* StashMind – neutral, system-like palette (same values as the app's Brand.swift): Apple greys, near-black ink,
   one indigo accent. Light by default, true black in Dark Mode. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --navy: #1d2233;
  --midnight: #0b0d14;
  --amber: #6e7bf2;     /* accent, light (name kept from the first palette) */
  --orange: #4f46e5;    /* accent, deep */
  --grad: linear-gradient(120deg, #7c8bff 0%, #5b4fe0 55%, #8b5cf6 100%);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .28), 0 10px 20px -12px rgba(0, 0, 0, .10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px -12px rgba(0, 0, 0, .12);
  --radius: 24px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  /* category colours – same as the app */
  --c-recipe: #a8592b; --c-home: #3e6a6b; --c-stock: #2f5872; --c-finance: #55704c;
  --c-quote: #6e5a7e; --c-travel: #3a6a86; --c-article: #4a5568; --c-event: #9a4636; --c-music: #7a4e5e;
  --stone: #f2f2f7; --stone-2: #e5e5ea;
  color-scheme: light dark;
}

* { box-sizing: border-box; }
/* clip, not hidden: overflow hidden on html/body breaks position: sticky and makes iOS Safari's scrolling jumpy */
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 var(--sans); letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
em { font-style: normal; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ───────── Nav ───────── */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
/* Mobile menu (built by site.js) */
.menu-toggle { all: unset; display: none; }
.nav-sheet { display: none; }
@media (max-width: 760px) {
  .menu-toggle { display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; margin-right: -8px; cursor: pointer; border-radius: 12px; }
  .menu-toggle:focus-visible { outline: 2px solid var(--orange); }
  .menu-toggle span { display: block; width: 18px; height: 1.75px; border-radius: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .nav.open .menu-toggle span:first-child { transform: translateY(3.4px) rotate(45deg); }
  .nav.open .menu-toggle span:last-child { transform: translateY(-3.4px) rotate(-45deg); }
  .nav-links { gap: 14px; }
  .nav-sheet { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .18);
    opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
  .nav.open .nav-sheet { opacity: 1; transform: none; pointer-events: auto; }
  .nav .nav-sheet .wrap { display: grid; height: auto; align-items: stretch; justify-content: stretch; padding-top: 6px; padding-bottom: 14px; }
  .nav-sheet a { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 500; padding: 14px 0; border-top: 1px solid var(--line); }
  .nav-sheet a:first-child { border-top: 0; }
}

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-size: 17px;
  font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s ease, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--orange); color: #fff; }
.btn-dark:hover { background: #4338ca; }
.btn-ghost { border: 1px solid var(--orange); color: var(--orange); background: transparent; }
.btn-sm { padding: 5px 13px; font-size: 13px; font-weight: 500; }
.link-arrow { color: var(--orange); text-decoration: none; font-size: 17px; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }
.store-badge { display: inline-block; padding: 13px; margin: -13px; }
.store-badge img { height: 52px; width: auto; }

.glow { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.g1 { width: 520px; height: 520px; left: -120px; top: -80px; background: rgba(124, 139, 255, .16); }
.g2 { width: 460px; height: 460px; right: -100px; top: 120px; background: rgba(139, 92, 246, .10); animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 18px; font-weight: 700; }
h1 em, h2 em, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); max-width: 540px; margin: 0 0 32px; line-height: 1.55; }

@keyframes blink { 50% { opacity: 0; } }

@keyframes spin { to { transform: rotate(360deg); } }

.pill { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  color: var(--cat, var(--c-recipe)); background: var(--stone); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fact { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; font-size: 13px; font-weight: 600; }
.fact small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

   

@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.step .num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--orange); margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); }

  

 

@keyframes scan { 0% { top: -40px; } 70%, 100% { top: 140px; } }

  
@keyframes wave { 0%, 100% { height: 12px; } 50% { height: 64px; } }

/* Real screens: a sticky deck. Each scroll step sends the front screen away and brings the next one up. */
.screens-sec { padding: 40px 0 24px; }
/* /get: a simple snapping row of Store slides */
.screens { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(20px, calc((100vw - 1160px) / 2 + 20px)) 30px; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens img { flex: none; width: 300px; height: auto; scroll-snap-align: center; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .screens img { width: 250px; } }

   

/* ───────── Footer ───────── */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
footer .wrap > span { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
footer .wrap > span::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: url(/assets/icon-168.png) center / cover; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--ink); }
footer .legal { flex-basis: 100%; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; opacity: .75; max-width: 760px; }
@media (max-width: 760px) {
  footer { padding: 28px 0 36px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer nav { gap: 10px 22px; }
  footer .legal { margin-top: 4px; }
}

/* ───────── Reveal on scroll ───────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .lead { margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  section { padding: 68px 0; }
}
@media (max-width: 420px) {
  .eyebrow { white-space: normal; }
}
@media (max-width: 350px) { .nav .btn-sm { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────── Guides ───────── */
.guides-teaser { padding-top: 24px; }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc .guide-list { grid-template-columns: 1fr; margin-top: 28px; }
.guide-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-decoration: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.guide-card:hover { transform: translateY(-3px); }
.guide-card h2, .guide-card h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.guide-card span { color: var(--orange); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .guide-list { grid-template-columns: 1fr; } }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.guide h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; margin-top: 14px; }
.guide .answer { font-size: 18px; }

.doc .faq { margin: 18px 0 0; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; display: block; overflow-x: auto; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare td:last-child, .compare th:last-child { font-weight: 600; color: var(--ink); }
.guide-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 40px 0 8px; padding: 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.guide-cta img { width: 64px; height: 64px; border-radius: 15px; }
.guide-cta div { flex: 1 1 200px; }
.guide-cta p { margin: 4px 0 0; color: var(--muted); }
.related { padding-left: 20px; }
.related li { margin-bottom: 8px; }
.doc .summary h3.q { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.doc code { font-size: .9em; background: var(--stone); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ───────────── Dark Mode – true black, like Apple's Pro pages ───────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #101012;
    --paper: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #86868b;
    --line: #2c2c2e;
    --stone: #1c1c1e; --stone-2: #2c2c2e;
    --amber: #9ba3ff;
    --orange: #8b85ff;
    --grad: linear-gradient(120deg, #a5b0ff 0%, #8b85ff 50%, #c4a1ff 100%);
    --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .9);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --c-recipe: #d98a5b; --c-home: #74a5a6; --c-stock: #6f9cbb; --c-finance: #8fae86;
    --c-quote: #a993bb; --c-travel: #74a7c4; --c-article: #9aa6b8; --c-event: #d27c6b; --c-music: #c08ba0;
  }
  .nav { background: rgba(22, 22, 23, .72); border-bottom-color: rgba(255, 255, 255, .08); }
  .eyebrow { background: rgba(28, 28, 30, .75); }
  .btn-dark { background: #f5f5f7; color: #1d1d1f; }
  .btn-dark:hover { background: #fff; }
  .nav-links .btn.btn-dark { color: #1d1d1f; }
}

/* ───────── FAQ ───────── */
:root { interpolate-size: allow-keywords; }   /* lets <details> animate to its natural height where supported */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 0 24px;
  transition: box-shadow .35s ease, border-color .35s ease; }
.faq details:hover { border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.75px no-repeat,
              linear-gradient(var(--ink), var(--ink)) center / 1.75px 12px no-repeat, var(--bg-2);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .35s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 8px; }
.faq details p { margin: 0; padding: 0 44px 22px 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s cubic-bezier(.2,.8,.2,1), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ───────── Mobile: shorter page, fewer boxes ───────── */
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 17px; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; background: none; border: 0; border-top: 1px solid var(--line);
    border-radius: 0; box-shadow: none; padding: 18px 0; text-align: left; }
  .step:last-child { border-bottom: 1px solid var(--line); }
  .step .num { grid-row: span 2; font-size: 32px; margin: 0; }
  .step h3 { font-size: 18px; margin-bottom: 2px; }
  .step p { font-size: 15px; }

  /* Bento and guides: swipe sideways, one card at a time */
  .bento, .guide-list { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none;
    margin: 0 -20px; padding: 4px 20px 18px; scroll-padding: 0 20px; }
  .bento::-webkit-scrollbar, .guide-list::-webkit-scrollbar { display: none; }
  .guide-list > .guide-card { flex: 0 0 72%; scroll-snap-align: start; }

  .faq { gap: 8px; }
  .faq details { padding: 0 18px; border-radius: 18px; }
  .faq summary { font-size: 16.5px; padding: 18px 0; }
  .faq summary::after { width: 28px; height: 28px; }
  .faq details p { padding-right: 0; font-size: 15.5px; }
}

/* ───────── Final call to action ───────── */
.cta-final { padding: 40px 0 96px; }
.cta-final .wrap > * { position: relative; }
.cta-final .wrap { position: relative; overflow: hidden; text-align: center; border-radius: 36px; padding: 72px 32px 64px;
  background: #000; color: #f5f5f7; max-width: 1080px; }
.cta-final img { width: 76px; height: 76px; border-radius: 18px; display: block; margin: 0 auto 26px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.cta-final h2 { color: #f5f5f7; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 14px; }
.cta-final h2 em { background: linear-gradient(120deg, #a5b0ff, #c4a1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-final .lead { color: #a1a1a6; margin: 0 auto 30px; max-width: 30em; font-size: 18px; }
.cta-final .btn-dark { background: #f5f5f7; color: #1d1d1f; }
@media (max-width: 760px) {
  .cta-final { padding: 8px 0 56px; }
  .cta-final .wrap { margin: 0 16px; padding: 48px 22px 40px; border-radius: 28px; }
  .cta-final img { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 20px; }
  .cta-final .lead { font-size: 16px; margin-bottom: 24px; }
  .cta-final .btn { width: 100%; justify-content: center; }
}

/* ═════════════════════ Home (Apple-style product page) ═════════════════════ */
.sec-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -.03em; font-weight: 700; margin: 0 0 28px; }
.sec-sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); margin: -14px 0 32px; max-width: 36em; }

/* Hero: one line of promise, one action, the product. */
.hx { padding: 64px 0 0; text-align: center; overflow: clip; }
.hx-icon { width: 84px; height: 84px; border-radius: 19px; margin: 0 auto 18px; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .45); }
.hx h1 { font-size: clamp(42px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -.04em; margin: 0 auto 16px; max-width: 12em; }
.hx-sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; color: var(--muted); margin: 0 auto 26px; max-width: 26em; font-weight: 500; }
.hx-cta { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hx .fine { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.hx-stage { position: relative; margin: 48px auto 0; width: min(330px, 76vw); }
.device { position: relative; aspect-ratio: 600 / 1304; border-radius: 15% / 7%; padding: 2.6%; background: #1d1d1f;
  box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 50px 90px -40px rgba(0, 0, 0, .45); }
.device img, .device video { width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.8%; background: var(--bg-2); display: block; }
.hx .device { animation: rise 1.1s var(--ease) both .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.96); } }
/* Saved cards floating next to the phone */
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; text-align: left;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 13px; line-height: 1.25; white-space: nowrap;
  animation: rise 1s var(--ease) both, float 6s ease-in-out infinite alternate; }
.chip img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; }
.chip b { display: block; font-size: 14px; color: var(--ink); }
.chip span { color: var(--muted); }
.chip .q { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #1d1d1f; color: #fff; font-size: 22px; font-weight: 700; }
.chip-1 { left: -62%; top: 18%; animation-delay: .5s, 0s; }
.chip-2 { right: -66%; top: 42%; animation-delay: .7s, -2s; }
.chip-3 { left: -52%; top: 70%; animation-delay: .9s, -4s; }
@keyframes float { to { translate: 0 -10px; } }
@media (max-width: 760px) {
  .hx { padding-top: 40px; }
  .hx-icon { width: 68px; height: 68px; border-radius: 15px; }
  .hx-stage { margin-top: 36px; }
  .chip { padding: 7px 10px 7px 7px; font-size: 11px; border-radius: 14px; }
  .chip img, .chip .q { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; }
  .chip b { font-size: 12px; }
  .chip-1 { left: -11%; top: 14%; }
  .chip-2 { right: -11%; top: 46%; }
  .chip-3 { left: -9%; top: 76%; }
}

/* Highlights gallery: swipe, dots and play/pause – like apple.com product pages. */
.hl { padding-top: 96px; }
.gallery { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(20px, calc((100vw - 1160px) / 2 + 20px)); scroll-padding: 0 max(20px, calc((100vw - 1160px) / 2 + 20px)); list-style: none; margin: 0; }
.gallery::-webkit-scrollbar { display: none; }
.g-card { position: relative; flex: 0 0 min(86vw, 1000px); height: clamp(520px, 62vw, 680px); border-radius: 28px; overflow: hidden;
  background: var(--bg-2); scroll-snap-align: start; isolation: isolate; }
.g-card.dark { background: #000; color: #f5f5f7; }
.g-cap { position: relative; z-index: 2; margin: 0; padding: 30px 32px 0; max-width: 30em; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.25;
  font-weight: 600; letter-spacing: -.02em; color: var(--muted); }
.g-cap b { color: var(--ink); font-weight: 600; }
.g-card.dark .g-cap { color: #a1a1a6; } .g-card.dark .g-cap b { color: #f5f5f7; }
.g-shot { position: absolute; left: 50%; bottom: -8%; width: min(320px, 62%); translate: -50% 0; aspect-ratio: 600 / 1304; border-radius: 15% / 7%;
  padding: 2.4%; background: #1d1d1f; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); transition: transform .8s var(--ease); }
.g-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.8%; }
.g-card:not(.on) .g-shot { transform: translateY(16px) scale(.97); }
.g-photo { position: absolute; inset: auto 0 0 0; height: 62%; object-fit: cover; width: 100%; z-index: 0;
  mask-image: linear-gradient(transparent, #000 30%); -webkit-mask-image: linear-gradient(transparent, #000 30%); }
.g-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.g-dots { display: flex; align-items: center; gap: 2px; height: 56px; padding: 0 16px; border-radius: 999px; background: rgba(0, 0, 0, .06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.g-dots button { all: unset; cursor: pointer; padding: 12px 5px; display: flex; }
.g-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(0, 0, 0, .28); transition: width .45s var(--ease), background .3s; }
.g-dots button.on::before { width: 40px; background: rgba(0, 0, 0, .28) linear-gradient(var(--ink), var(--ink)) left / var(--p, 100%) 100% no-repeat; }
.g-dots button:focus-visible::before, .g-play:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.g-play { all: unset; cursor: pointer; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .06); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.g-play svg { width: 20px; height: 20px; fill: currentColor; }
.g-play .i-play { display: none; } .g-play.paused .i-play { display: block; } .g-play.paused .i-pause { display: none; }
/* Same layout on every width (like the phone): caption on top, the screen below it in the flow. */
.g-card { display: flex; flex-direction: column; height: clamp(540px, 52vw, 640px); }
/* Centered cards with the neighbours peeking in, like apple.com galleries */
.gallery { --cw: min(86vw, 760px); position: relative; padding-inline: calc((100vw - var(--cw)) / 2); scroll-padding-inline: calc((100vw - var(--cw)) / 2); }
.gallery > .g-card { flex: 0 0 var(--cw); scroll-snap-align: center; scroll-snap-stop: always; transition: opacity .5s ease; }
.gallery > .g-card:not(.on) { opacity: .55; cursor: pointer; }
.g-arrow { all: unset; cursor: pointer; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .06); color: var(--ink); }
.g-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.g-arrow:disabled { opacity: .35; cursor: default; }
.g-arrow:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 760px) { .g-arrow { display: none; } }
@media (prefers-color-scheme: dark) { .g-arrow { background: rgba(255, 255, 255, .12); } }
.g-shot { position: relative; left: auto; bottom: auto; translate: none; flex: none; width: min(62%, 290px); margin: 28px auto 0; }
@media (min-width: 761px) { .g-cap { padding: 40px 48px 0; text-align: center; max-width: none; } }
@media (max-width: 760px) {
  .hl { padding-top: 72px; }
  .gallery { gap: 12px; }
  /* Phone layout: caption on top, the screen below it in the flow – never on top of the text. */
  .g-card { height: 620px; border-radius: 24px; display: flex; flex-direction: column; }
  .g-cap { padding: 24px 24px 0; font-size: 19px; }
  .g-shot { position: relative; left: auto; bottom: auto; translate: none; flex: none; width: min(62%, 230px); margin: 22px auto 0; }
  .g-dots { height: 48px; padding: 0 12px; } .g-play { width: 48px; height: 48px; }
}

/* A paragraph that lights up as you read it */
.mf { padding: 120px 0; }
.mf p { margin: 0 auto; max-width: 980px; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.22; font-weight: 600; letter-spacing: -.025em; color: var(--muted); }
.mf p span { transition: color .6s ease; }
.mf p span.on { color: var(--ink); }
html:not(.js) .mf p span { color: var(--ink); }
@media (max-width: 760px) { .mf { padding: 80px 0; } }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { background: var(--bg-2); border-radius: 28px; padding: 30px; }
.how-card .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.how-card h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.how-card p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; gap: 12px; } .how-card { padding: 24px; border-radius: 22px; } }

/* Features: one row you swipe through instead of a long grid */
.ft-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.paddles { display: flex; gap: 12px; margin-bottom: 30px; }
.paddles button { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .06); color: var(--ink); transition: opacity .2s; }
.paddles button:disabled { opacity: .35; cursor: default; }
.paddles svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ft-track { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0;
  padding: 0 max(20px, calc((100vw - 1160px) / 2 + 20px)) 8px; scroll-padding: 0 max(20px, calc((100vw - 1160px) / 2 + 20px)); }
.ft-track::-webkit-scrollbar { display: none; }
.ft-card { flex: 0 0 272px; min-height: 250px; background: var(--bg-2); border-radius: 26px; padding: 26px; scroll-snap-align: start;
  display: flex; flex-direction: column; }
.ft-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: auto; color: #fff; background: var(--grad); }
.ft-card .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ft-card h3 { margin: 26px 0 6px; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.ft-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 760px) { .paddles { display: none; } .ft-card { flex-basis: 70vw; min-height: 220px; } .ft-track { gap: 12px; } }

/* Privacy: a black band in both appearances */
.pv { background: #000; color: #f5f5f7; text-align: center; padding: 120px 0; }
.pv .zero { font-size: clamp(140px, 22vw, 260px); line-height: .82; font-weight: 700; letter-spacing: -.06em; margin: 0;
  background: linear-gradient(160deg, #c7cdff, #7c8bff 45%, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pv h2 { color: #f5f5f7; margin: 18px 0 14px; }
.pv p { color: #a1a1a6; font-size: clamp(17px, 1.7vw, 21px); max-width: 32em; margin: 0 auto; }
@media (max-width: 760px) { .pv { padding: 88px 0; } }

/* The 16-second film */
.film-grid { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; max-width: 940px; margin: 0 auto; }
.film .device { width: 300px; }
.film ol { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: d; }
.film li { counter-increment: d; display: flex; gap: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.4; }
.film li::before { content: counter(d); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); font-size: 13px; font-weight: 700; color: var(--ink); }
.film .toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-size: 17px; }
@media (max-width: 820px) { .film-grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; } .film .device { width: min(260px, 70vw); } }

/* Shared surfaces in dark mode */
@media (prefers-color-scheme: dark) {
  .chip { background: rgba(44, 44, 46, .72); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
  .g-card { background: #1c1c1e; }
  .g-dots, .g-play, .paddles button { background: rgba(255, 255, 255, .12); }
  .g-dots button::before { background: rgba(255, 255, 255, .35); }
  .g-dots button.on::before { background: rgba(255, 255, 255, .35) linear-gradient(#f5f5f7, #f5f5f7) left / var(--p, 100%) 100% no-repeat; }
  .how-card, .ft-card { background: #1c1c1e; }
  .g-card.dark { background: linear-gradient(165deg, #262a4a, #0e0f1a); }
  .device { box-shadow: 0 0 0 1.5px #48484a inset, 0 50px 90px -40px rgba(0, 0, 0, .9); }
}
@media (prefers-reduced-motion: reduce) { .chip, .hx .device { animation: none; } }

/* ───────── Articles: guides, privacy, terms, support ───────── */
main.doc { max-width: 720px; margin: 0 auto; padding: 36px 20px 80px; font-size: 18px; line-height: 1.6; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 16px 0 12px; }
.doc h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -.025em; margin: 48px 0 12px; }
.doc h3 { font-size: 20px; letter-spacing: -.015em; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc a { color: var(--orange); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc .crumbs a { color: var(--muted); }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc .summary { background: var(--bg-2); border-radius: 20px; padding: 20px 22px; margin: 8px 0 8px; }
.doc .guide-card span { color: inherit; }
.doc .guide-cta a.btn { color: #fff; }
.doc .btn-dark { color: #fff; }
@media (prefers-color-scheme: dark) { .doc .guide-cta a.btn-dark { color: #1d1d1f; } }

/* ───────── Screenshots without a heavy bezel ─────────
   The screens already contain the iPhone status bar; a thick black frame only covered the app's own UI.
   Thin hairline + soft shadow, full screenshot always visible (never cropped). */
.device { padding: 0; background: none; border-radius: 34px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 40px 80px -36px rgba(0, 0, 0, .35); }
.device img, .device video { border-radius: 34px; object-fit: contain; background: var(--paper); }
.gallery > .g-card { min-height: 0; }
.g-shot { flex: 1 1 auto; min-height: 0; width: auto; aspect-ratio: auto; height: auto; padding: 0; background: none; box-shadow: none;
  margin: 24px auto 28px; display: flex; justify-content: center; transform: none; }
.g-card:not(.on) .g-shot { transform: none; }
.g-shot img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 50px -28px rgba(0, 0, 0, .4); }
@media (max-width: 760px) { .g-shot { margin: 18px auto 22px; } .g-shot img { border-radius: 22px; } .device, .device img, .device video { border-radius: 28px; } }
@media (prefers-color-scheme: dark) {
  .device { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -36px rgba(0, 0, 0, .9); }
  .g-shot img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 50px -28px rgba(0, 0, 0, .9); }
}

/* Thin black iPhone bezel around the screenshot – drawn outside the picture (border), so nothing is cropped. */
.g-shot img { border: 7px solid #1d1d1f; border-radius: 32px; background: #1d1d1f; }
.device { padding: 8px; background: #1d1d1f; border-radius: 40px; }
.device img, .device video { border-radius: 32px; object-fit: contain; }
@media (max-width: 760px) {
  .g-shot img { border-width: 5px; border-radius: 26px; }
  .device { padding: 6px; border-radius: 34px; } .device img, .device video { border-radius: 28px; }
}
@media (prefers-color-scheme: dark) { .g-shot img, .device { border-color: #2c2c2e; } .device { background: #2c2c2e; } }
/* The frame follows the picture's own height – a fixed aspect ratio left black bars above and below. */
.device { aspect-ratio: auto; height: auto; }
.device img, .device video { height: auto; aspect-ratio: auto; display: block; }
/* Reserve the video's height before poster/metadata load (preload="none"), otherwise it starts 150px tall and jumps. */
.device video { aspect-ratio: auto 440 / 956; }

/* Match the film's screen proportions and Dynamic Island. */
.g-shot { flex: none; width: min(185px, 55%); position: relative; }
.g-shot img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.hx .device { position: relative; }
.hx .device::after, .g-shot::after {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 1.6%;
  transform: translateX(-50%); width: 31%; aspect-ratio: 3.4 / 1;
  background: #000; border-radius: 999px; pointer-events: none;
}
