/* Reading Journey preview site. Colours are the app's asset-catalog values (light and dark),
   fonts are the app's own (Crimson Pro, Open Sans, Caveat, Courier Prime, IBM Plex Mono), self-hosted. */

@font-face { font-family: "Crimson Pro"; src: url("fonts/CrimsonPro-var.woff2?v=12635680e9") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-var.woff2?v=2f855c1bb0") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Italic-var.woff2?v=d6fa1a545a") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/Caveat-var.woff2?v=405907de54") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Bold.woff2?v=dd4aa0f03d") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2?v=0f706a2f3a") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* headerBand, headerBandDeep, headerInk, headerInkMuted */
  --band: #49534C; --band-deep: #212E2D; --band-ink: #FFFFFF; --band-ink-muted: #CCE2D4;
  /* teal300 (Home sheet), sheetBackground, neutral0, neutral100 */
  --sheet: #BED9C8; --sheet-soft: #E6EEE9; --card: #FFFFFF; --card-2: #F9F9F9;
  /* teal900, dimgray900, dimgray800, dimgray200, dimgray300 */
  --ink: #212E2D; --ink-2: #49534C; --muted: #636B66; --line: #DAE2DD; --line-strong: #BEC4C0;
  /* tea700, teal500, teal250, ochre500, ochre600, ochre200, coral700, coral500, coral200, coral100, notesPaper */
  --teal: #496E6C; --teal-500: #79A6A3; --teal-250: #CCE2D4; --ochre: #E5B36A; --ochre-600: #C89A59; --ochre-soft: #FFF5E6;
  --coral: #D27E48; --coral-500: #E7926C; --coral-soft: #F9E5D7; --coral-100: #FFF7F1; --notes: #FFFBCC;
  --on-ochre: #212E2D;
  /* heatEmpty, heat1-heat5 (Reading Calendar year view) */
  --heat0: #EEF1EF; --heat1: #F7E7CB; --heat2: #EFCD95; --heat3: #E5B36A; --heat4: #C4914A; --heat5: #93682C;
  --code-bg: #212E2D; --code-ink: #ECE6DA;
  --shadow-card: 0 1px 2px rgba(33,46,45,.06), 0 8px 24px rgba(33,46,45,.08);
  --shadow-lift: 0 2px 6px rgba(33,46,45,.10), 0 24px 60px rgba(33,46,45,.22);
  --font-display: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --font-body: "Open Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-type: "Courier Prime", "Courier New", monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-sheet: 28px;
  --top: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --band: #1F2A28; --band-deep: #18211F; --band-ink: #ECE6DA; --band-ink-muted: #CCE2D4;
    --sheet: #121A19; --sheet-soft: #161F1D; --card: #1E2826; --card-2: #1B2422;
    --ink: #ECE6DA; --ink-2: #C9D0CB; --muted: #A2ACA7; --line: #2C3734; --line-strong: #4E5A56;
    --teal: #8FBDB8; --teal-500: #82B0AC; --teal-250: #2C3B38; --ochre: #D3A15A; --ochre-600: #C4934F; --ochre-soft: #283533;
    --coral: #EC9E6C; --coral-500: #EBA383; --coral-soft: #2E3B38; --coral-100: #283533; --notes: #1E2826;
    --on-ochre: #121A19;
    --heat0: #222C2A; --heat1: #3A3426; --heat2: #5E4E2E; --heat3: #8E703C; --heat4: #C89A59; --heat5: #E5B36A;
    --code-bg: #0E1514; --code-ink: #ECE6DA;
    --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.28);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 20px); }
body { margin: 0; background: var(--band-deep); /* the canvas below the footer (iPhone home-indicator area, overscroll) matches the footer */ color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ochre); color: var(--on-ochre); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.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; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; text-wrap: balance; color: var(--ink); }
p { text-wrap: pretty; }
.hand { font-family: var(--font-hand); font-weight: 600; letter-spacing: 0; }

/* ---------- Buttons (the app's ochre primary, the band's ghost) ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font: 600 0.95rem/1 var(--font-body); text-decoration: none; border: 0; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ochre); color: var(--on-ochre); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 16px rgba(200,154,89,.28); }
.btn-primary:hover { background: color-mix(in srgb, var(--ochre) 88%, white); color: var(--on-ochre); }
.btn-ghost { background: color-mix(in srgb, var(--band-ink) 12%, transparent); color: var(--band-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-ink) 26%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--band-ink) 20%, transparent); color: var(--band-ink); }
.btn-quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { color: var(--ink); background: var(--card-2); }

/* Official store badges: supplied artwork, unmodified, 10px clear space, at least 40px tall. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 -10px; }
.stores a { display: inline-block; padding: 10px; border-radius: 12px; line-height: 0; }
.stores img { height: 48px; width: auto; display: block; }
/* Same height, ink and frame as the official store badges. */
.web-badge { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px 0 12px; box-sizing: border-box; background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 9px; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1; text-align: left; }
.web-badge > span { display: flex; flex-direction: column; gap: 2px; }
.web-badge small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.web-badge b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Top bar: the condensed header band ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 4vw, 40px); color: var(--band-ink); background: color-mix(in srgb, var(--band) 86%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--band-ink) 10%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--band-ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-hand); font-size: 1.3rem; color: var(--band-ink-muted); margin-left: -2px; }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav a { color: var(--band-ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; opacity: .88; }
.topnav a:hover { opacity: 1; background: color-mix(in srgb, var(--band-ink) 10%, transparent); color: var(--band-ink); }
.topnav a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--band-ink) 14%, transparent); }
.topnav .btn { min-height: 38px; padding: 0 14px; font-size: 0.88rem; opacity: 1; margin-left: 6px; }
.topnav .btn:hover { background: color-mix(in srgb, var(--ochre) 88%, white); color: var(--on-ochre); }


/* ---------- Leaves: the Home header art over the band ---------- */
.leaves { position: relative; isolation: isolate; background-color: var(--band); color: var(--band-ink); }
.leaves::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/leaves.webp?v=8f035714e0") repeat-x; background-size: auto 520px; background-position: 50% 0; opacity: .42; }
@media (prefers-color-scheme: dark) { .leaves::before { opacity: .26; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px) calc(var(--radius-sheet) + clamp(40px, 6vw, 72px)); }
.hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-logo { display: block; width: 132px; height: auto; margin: 0 0 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.hero h1 { color: var(--band-ink); font-size: clamp(2.6rem, 6.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.022em; font-weight: 500; margin: 0 0 20px; }
.section h2 .hand, .feature-copy h3 .hand, .cta h2 .hand, .assistant h2 .hand { margin-inline: .06em; }
.nowrap { white-space: nowrap; }
.hero h1 .hand { font-size: 1.12em; color: var(--ochre); font-weight: 700; display: inline-block; transform: rotate(-2deg); margin: 0 .04em; }
.hero h1 .hand.plain { color: inherit; }
.hero .hero-sub { color: var(--band-ink); font: 500 clamp(1.6rem, 3.1vw, 2.35rem)/1.15 var(--font-display); letter-spacing: -0.012em; max-width: 18em; margin: -4px 0 28px; text-wrap: balance; }
.hero .lede { color: color-mix(in srgb, var(--band-ink) 90%, transparent); font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 34em; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero-note { margin: 14px 0 0; font-size: .9rem; color: var(--band-ink-muted); }
.hero-note a { color: var(--band-ink); font-weight: 600; }
.hero-note a:hover { color: var(--ochre); }

/* Phone stack: three real screens, fanned like books on a table */
.stack { position: relative; height: clamp(420px, 52vw, 640px); }
.phone { position: absolute; margin: 0; width: clamp(180px, 22vw, 290px); aspect-ratio: 640 / 1391; border-radius: clamp(28px, 3.4vw, 44px); padding: clamp(5px, .6vw, 8px); background: #0E1514; box-shadow: var(--shadow-lift); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: clamp(23px, 2.9vw, 37px); }
.stack .p1 { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.stack .p2 { left: 4%; top: 9%; transform: rotate(-8deg); z-index: 2; }
.stack .p3 { right: 2%; top: 11%; transform: rotate(7deg); z-index: 1; }
.stack .p2, .stack .p3 { width: clamp(150px, 18.5vw, 244px); }

/* ---------- The sheet: rises over the band like the app's Home ---------- */
.sheet { position: relative; z-index: 2; background: var(--sheet); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; margin-top: calc(-1 * var(--radius-sheet) - 24px); padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 40px) 0; }
.wrap { max-width: 1180px; margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section-head { max-width: 760px; margin: 0 0 clamp(24px, 4vw, 40px); }
.eyebrow { width: 28px; height: 2px; border-radius: 2px; background: var(--ochre-600); margin: 0 0 14px; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 500; }
.section h2 .hand { color: var(--teal); font-size: 1.1em; font-weight: 700; }
.section-head p { font-size: 1.08rem; color: var(--ink-2); margin: 0; max-width: 40em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ochre); padding-bottom: 2px; }
.more::after { content: "\2192"; transition: transform 200ms var(--ease-out); }
.more:hover { color: var(--ink); }
.more:hover::after { transform: translateX(3px); }

/* ---------- Stats card (big light numbers, like the app's goal cards) ---------- */
.proof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; }
.stat { padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 32px); position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat-label { display: block; margin-top: 8px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.stat-stars { color: var(--ochre-600); letter-spacing: 2px; font-size: 1.05rem; margin-left: 4px; vertical-align: .9em; }
.proof-note { font-family: var(--font-hand); font-size: 1.45rem; color: var(--ink-2); margin: 12px 4px 0; transform: rotate(-1deg); display: inline-block; }

/* ---------- Reviews: notes pinned to the sheet ---------- */
.reviews { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 4px 18px; scrollbar-width: none; align-items: start; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; margin: 0; background: var(--card); border-radius: 18px; padding: 20px 22px 18px; box-shadow: var(--shadow-card); position: relative; }
.review:nth-child(3n+2) { background: var(--ochre-soft); }
.review:nth-child(5n+4) { background: var(--coral-100); }
.review .stars { color: var(--ochre-600); letter-spacing: 2px; font-size: 1rem; line-height: 1; margin: 0 0 10px; }
.review h3 { font-size: 1.32rem; line-height: 1.2; margin: 0 0 8px; font-weight: 600; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.58; color: var(--ink); }
.review blockquote p { margin: 0; }
.review blockquote strong { font-weight: 700; }
.review figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.review .who { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; color: var(--ink); font-weight: 600; }
.review .where { font-size: .82rem; color: var(--ink-2); }

/* ---------- Editorial showcase ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(28px, 5vw, 56px) 0; }
.feature-row + .feature-row { border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.feature-row.flip .feature-media { order: 2; }
.feature-copy h3 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 500; }
.feature-copy h3 .hand { color: var(--teal); font-weight: 700; font-size: 1.08em; }
.feature-copy p { font-size: 1.06rem; color: var(--ink-2); margin: 0 0 14px; max-width: 32em; }
.feature-copy p u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.feature-copy .note { font-family: var(--font-hand); font-size: 1.55rem; line-height: 1.15; color: var(--ink); margin: 18px 0 0; display: inline-block; transform: rotate(-1.5deg); }
.feature-media { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 300px; }
.feature-media .phone { position: relative; width: clamp(200px, 24vw, 300px); }
.feature-media .phone + .phone { width: clamp(170px, 20vw, 250px); margin-left: clamp(-90px, -6vw, -48px); margin-top: clamp(48px, 7vw, 96px); transform: rotate(4deg); }
.feature-media .phone:first-child { z-index: 2; transform: rotate(-3deg); }
.feature-media .single { transform: rotate(-2.5deg); }

/* Shelf row: the Edit Shelf phone with the real widget renders on a soft Home Screen wallpaper.
   The renders are @3x of the 170 pt small and 364 x 170 pt medium widgets with the Home Screen's
   continuous corner already cut, so the grid keeps iOS's proportions: two smalls plus their 24 pt
   gap are exactly one medium wide. */
.widget-home {
  --inner: clamp(230px, 22vw, 316px); --pad: calc(var(--inner) * .075);
  flex: none; position: relative; z-index: 3; margin: clamp(110px, 13vw, 170px) 0 0 clamp(-140px, -9vw, -64px);
  width: calc(var(--inner) + 2 * var(--pad)); padding: var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--inner) * 24 / 364);
  border-radius: calc(var(--pad) + var(--inner) * 22 / 364);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ochre) 30%, transparent), transparent 60%),
    radial-gradient(110% 90% at 100% 100%, color-mix(in srgb, var(--coral-500) 26%, transparent), transparent 62%),
    linear-gradient(160deg, var(--ochre-soft), var(--coral-soft));
  box-shadow: var(--shadow-lift); transform: rotate(3deg);
}
.widget-home img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.10)) drop-shadow(0 6px 12px rgba(0,0,0,.16)); }
.widget-home .w-medium { grid-column: 1 / -1; }

/* Reading Calendar: the month screenshot with the year view as a card beside it */
.calendar-media { padding-bottom: clamp(40px, 6vw, 72px); }
.heat-card { position: absolute; z-index: 3; right: clamp(-24px, -1vw, 0px); bottom: 0; width: max-content; padding: 14px 14px 12px; border-radius: 18px; background: var(--card-2); box-shadow: var(--shadow-lift); transform: rotate(1.5deg); --cell: 11px; --gap: 3px; }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.hm-title { font: 600 1.15rem/1 var(--font-display); color: var(--ink); }
.hm-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.hm-toggle span { display: grid; place-items: center; width: 30px; height: 24px; border-radius: 999px; color: var(--teal); }
.hm-toggle span.on { background: var(--ink); color: var(--card-2); }
.hm-months, .hm-weeks { display: grid; grid-auto-flow: column; grid-auto-columns: var(--cell); gap: var(--gap); }
.hm-months span { font: 600 9px/12px var(--font-body); color: var(--teal); white-space: nowrap; height: 12px; }
.hm-months { margin-bottom: var(--gap); }
.hm-week { display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); }
.heat-card i { display: block; width: var(--cell); height: var(--cell); border-radius: 3px; background: var(--heat0); }
.heat-card .h1 { background: var(--heat1); } .heat-card .h2 { background: var(--heat2); }
.heat-card .h3 { background: var(--heat3); } .heat-card .h4 { background: var(--heat4); }
.heat-card .goal { box-shadow: inset 0 0 0 1.5px var(--edge); }
.heat-card .e2 { --edge: var(--heat2); } .heat-card .e3 { --edge: var(--heat3); }
.heat-card .e4 { --edge: var(--heat4); } .heat-card .e5 { --edge: var(--heat5); }
.hm-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 10px; font: 400 10px/1 var(--font-body); color: var(--teal); }
.hm-legend i { width: 10px; height: 10px; }

.ipad-shot { margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.ipad-shot img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-lift); transform: rotate(-1.5deg); }
.ipad-shot figcaption { font-family: var(--font-hand); font-size: 1.4rem; color: var(--ink-2); margin-top: 10px; text-align: center; }

/* ---------- Capabilities ---------- */

/* ---------- Assistant panel ---------- */
.assistant { margin-top: clamp(56px, 8vw, 104px); background: var(--band-deep); color: var(--band-ink); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 64px); align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.assistant::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/leaves.webp?v=8f035714e0") repeat-x; background-size: auto 420px; opacity: .1; }
.assistant h2 { color: var(--band-ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; margin: 0 0 14px; font-weight: 500; }
.assistant h2 .hand { color: var(--ochre); font-weight: 700; }
.assistant p { color: color-mix(in srgb, var(--band-ink) 86%, transparent); margin: 0 0 14px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { align-self: flex-end; max-width: 92%; background: color-mix(in srgb, var(--band-ink) 10%, transparent); border: 1px solid color-mix(in srgb, var(--band-ink) 16%, transparent); color: var(--band-ink); padding: 12px 16px; border-radius: 18px 18px 6px 18px; font-size: .98rem; line-height: 1.45; }
.copy-field { display: flex; align-items: stretch; margin: 18px 0 10px; max-width: 460px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, black 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-ink) 22%, transparent); }
.copy-field code { flex: 1; min-width: 0; padding: 12px 14px; font: 400 .95rem/1.3 var(--font-mono); color: var(--band-ink); white-space: nowrap; overflow-x: auto; background: none; border: 0; }
.copy-field button { border: 0; padding: 0 16px; font: 700 .85rem/1 var(--font-body); background: var(--ochre); color: var(--on-ochre); cursor: pointer; transition: transform 160ms var(--ease-out); }
.copy-field button:active { transform: scale(0.97); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
details.qa { background: var(--card); border-radius: 16px; margin: 0 0 10px; box-shadow: var(--shadow-card); }
details.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms var(--ease-out); }
details.qa[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.qa .a { padding: 0 20px 16px; color: var(--ink-2); }
details.qa .a p { margin: 0 0 10px; }
details.qa .a p:last-child { margin: 0; }

/* ---------- Closing call to action ---------- */
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, color-mix(in srgb, var(--band) 92%, transparent) 30%, transparent 100%); }
.cta { margin-top: clamp(64px, 9vw, 120px); padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px); text-align: center; }
.cta img.icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow-lift); }
.cta h2 { color: var(--band-ink); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; margin: 22px auto 12px; font-weight: 500; max-width: 15em; }
.cta h2 .hand { color: var(--ochre); font-weight: 700; }
.cta p { color: color-mix(in srgb, var(--band-ink) 86%, transparent); margin: 0 auto 22px; max-width: 34em; }
.cta .stores { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--band-deep); color: var(--band-ink-muted); padding: 32px clamp(20px, 5vw, 64px) calc(56px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--band-ink); text-decoration: none; }
.footer a:hover { color: var(--ochre); text-decoration: underline; }
.footer .brand-name { color: var(--band-ink); }

/* ---------- Motion ----------
   Everything is on screen as soon as the page loads: no entrance animation and no reveals on scroll. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn, .more::after, details.qa summary::after { transition: none; }
}

/* Touch screens (and iPhones in Low Power Mode especially): a live blur behind the sticky bar is
   re-rendered on every scrolled frame, so phones get the band colour solid. */
@media (hover: none) {
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--band); }
}

/* ---------- Responsive (marketing) ---------- */
@media (max-width: 860px) {
  .reviews { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .topnav a:not(.btn):not(.keep) { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .stack { height: clamp(340px, 88vw, 520px); max-width: 480px; width: 100%; margin: 8px auto 0; }
  .stack .phone.p1 { width: clamp(150px, 40vw, 230px); }
  .stack .p2, .stack .p3 { width: clamp(124px, 33vw, 190px); }
  .feature-media .phone { width: clamp(170px, 46vw, 250px); }
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-row.flip .feature-media { order: 0; }
  .feature-copy { order: -1; } /* stacked: the heading comes before its screenshots */
  .feature-media .phone { width: clamp(180px, 50vw, 260px); }
  .feature-media .phone + .phone { width: clamp(150px, 42vw, 220px); }
  .widget-home { --inner: clamp(240px, 38vw, 320px); margin-left: clamp(-80px, -7vw, -48px); }
  .assistant, .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .calendar-media { flex-direction: column; align-items: center; padding-bottom: 0; }
  .heat-card { position: relative; right: auto; bottom: auto; margin-top: -48px; transform: rotate(1deg); }
  /* Phones are too narrow for the pair side by side: the widgets overlap the phone's lower half. */
  .shelf-media { flex-direction: column; align-items: flex-start; }
  .shelf-media .phone { width: clamp(160px, 46vw, 240px); margin-left: 4%; }
  .shelf-media .widget-home { --inner: min(calc(100vw - 110px), 320px); --pad: calc(var(--inner) * .065); align-self: flex-end; margin: calc(-0.5 * clamp(160px, 46vw, 240px) * 1391 / 640) 8px 0 0; transform: rotate(2deg); }
  .proof-stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { text-align: center; }
  .stat-num { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .stat-stars { vertical-align: baseline; margin: 0; font-size: 1rem; line-height: 1; }
  .reviews { grid-auto-columns: 84%; gap: 12px; margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .brand-sub { display: none; }
  .stores img, .web-badge { height: 44px; }
  .copy-field code { font-size: .8rem; padding-inline: 10px; }
  .prose .assistant .copy-field code { font-size: .74rem; }
  .copy-field button { padding: 0 12px; }
}
@media (max-width: 440px) {
  .topbar { gap: 8px; }
  .topnav .btn { padding: 0 10px; margin-left: 2px; }
  .topnav a { padding: 8px 8px; }
  .brand-name { display: none; }
}

/* =====================================================================
   Docs layout: sidebar on the sheet, reading column on a white sheet, "On this page" rail.
   ===================================================================== */
body.docs { background: var(--sheet-soft); }
.docs .topbar { background: color-mix(in srgb, var(--band) 92%, transparent); }
.docs-search { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.docs-search input { width: 100%; height: 38px; border-radius: 11px; border: 0; background: color-mix(in srgb, var(--band-ink) 12%, transparent); color: var(--band-ink); padding: 0 12px 0 14px; font: inherit; font-size: .92rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-ink) 18%, transparent); }
.docs-search input::placeholder { color: color-mix(in srgb, var(--band-ink) 70%, transparent); }
.docs-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ochre); }
.results { position: absolute; top: 46px; left: 0; right: 0; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lift); max-height: 62vh; overflow: auto; padding: 6px; }
.results a { display: block; padding: 9px 11px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.results a:hover, .results a.active { background: var(--sheet-soft); }
.results small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.results .empty { padding: 10px; color: var(--muted); font-size: .92rem; }
.menu-btn { display: none; height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: color-mix(in srgb, var(--band-ink) 12%, transparent); color: var(--band-ink); font: 600 .9rem/1 var(--font-body); cursor: pointer; }
.docs .topnav { margin-left: 8px; }

.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; gap: 0; }
.sidenav { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 28px 14px 48px 22px; }
.sidenav h2 { font: 700 .72rem/1 var(--font-type); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px 10px; }
.sidenav ul + h2 { margin-top: 28px; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav > ul > li { margin: 2px 0; }
.sidenav > ul > li > a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.sidenav > ul > li > a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sidenav > ul > li > a[aria-current="page"] { background: var(--card); box-shadow: var(--shadow-card); }
.sidenav ul ul { margin: 4px 0 10px 10px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.sidenav ul ul a { display: block; padding: 4px 8px; color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.35; border-radius: 7px; }
.sidenav ul ul a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.sidenav .side-foot { margin: 26px 10px 0; font-size: .85rem; color: var(--ink-2); }
.sidenav .side-foot a { color: var(--ink); font-weight: 600; }

.docs-main { min-width: 0; padding: 24px 0 0; }
.paper { background: var(--card); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; min-height: calc(100vh - var(--top) - 24px); padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px) 96px; box-shadow: 0 -1px 0 var(--line), 0 10px 30px rgba(33,46,45,.06); }
.prose { max-width: 720px; margin: 0 auto; }
.prose .crumb { font: 700 .74rem/1 var(--font-type); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.prose .crumb a { color: inherit; text-decoration: none; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.022em; font-weight: 500; margin: 0 0 16px; }
.prose .lede { font-size: 1.16rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.15; margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-weight: 600; }
.prose h3 { font-size: 1.38rem; line-height: 1.25; margin: 36px 0 10px; font-weight: 600; }
.prose h2 a.anchor, .prose h3 a.anchor { color: inherit; text-decoration: none; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 5px 0; }
.prose strong { font-weight: 650; }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--sheet-soft); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.pill { display: inline-block; vertical-align: .2em; font: 700 .66rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--coral-soft); color: var(--ink); margin-left: 4px; white-space: nowrap; }
h2 .pill, h3 .pill { font-family: var(--font-body); }

/* UI paths: how the app labels each step */
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; font-weight: 600; }
.path span { background: var(--sheet-soft); border-radius: 7px; padding: 0 7px; }
.path i { font-style: normal; color: var(--muted); font-weight: 400; }

/* Steps */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 18px 0 24px; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 16px 46px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ochre); color: var(--on-ochre); font: 700 .86rem/1 var(--font-body); }
ol.steps > li::after { content: ""; position: absolute; left: 14.5px; top: 36px; bottom: 6px; width: 1px; background: var(--line-strong); }
ol.steps > li:last-child::after { display: none; }

/* Screens beside the steps they follow */
.with-shot { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 8px 44px; align-items: start; margin: 18px 0 8px; }
.with-shot > .ws-body { min-width: 0; }
.with-shot > .ws-body > :first-child { margin-top: 0; }
figure.shot { margin: 4px 0 24px; }
figure.shot .phone { position: relative; width: 100%; }
figure.shot figcaption { font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.15; color: var(--ink-2); margin-top: 10px; text-align: center; }
figure.shot.solo { width: 230px; margin: 26px auto 30px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 700 .72rem/1.3 var(--font-type); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: var(--sheet-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose table:has(th:nth-child(3)) { min-width: 560px; }
.prose td code { white-space: nowrap; }

/* FAQ entries and callouts in docs */
.prose details.qa { box-shadow: inset 0 0 0 1px var(--line); }
.prose .copy-field { background: var(--code-bg); box-shadow: none; }
.prose .copy-field code { color: var(--code-ink); background: none; padding: 12px 14px; border-radius: 0; }
.prose .assistant { margin: 8px 0 36px; padding: clamp(24px, 4vw, 40px); grid-template-columns: minmax(0, 1fr); gap: 22px; }
.prose .assistant h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 18px; padding: 0; border: 0; }
.prose .assistant .server-label { font: 700 .72rem/1 var(--font-type); letter-spacing: .14em; text-transform: uppercase; color: var(--band-ink-muted); }
.prose .assistant .copy-field { margin: 10px 0 0; background: color-mix(in srgb, black 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band-ink) 22%, transparent); }
.prose .assistant .copy-field code { color: var(--band-ink); background: none; }
.prose .assistant p { margin: 0; }
.prose .assistant .bubble { color: var(--band-ink); }
.assistant .chat-hint { font-size: 1.5rem; margin: 0 0 2px; color: var(--band-ink-muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 64px 0 0; }
.pager a { display: block; padding: 16px 18px; border-radius: 16px; background: var(--sheet-soft); text-decoration: none; color: var(--ink); }
.pager a:hover { background: color-mix(in srgb, var(--sheet) 60%, var(--sheet-soft)); color: var(--ink); }
.pager small { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.pager span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }
.docs-foot { max-width: 720px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.docs-foot a { color: var(--ink-2); }

.rail { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 44px 18px 40px 22px; font-size: .86rem; }
.rail h2 { font: 700 .72rem/1 var(--font-type); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.rail a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.rail a.sub { padding-left: 24px; font-size: .82rem; }
.rail a:hover { color: var(--ink); }
.rail a.active { border-left-color: var(--ochre-600); color: var(--ink); font-weight: 600; }

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .rail { display: none; }
  .paper { border-top-right-radius: 0; }
}
@media (max-width: 860px) {
  .docs-shell { display: block; }
  .menu-btn { display: inline-flex; align-items: center; }
  .sidenav { position: fixed; z-index: 45; top: var(--top); left: 0; bottom: 0; width: min(310px, 86vw); height: auto; background: var(--sheet-soft); box-shadow: var(--shadow-lift); transform: translateX(-104%); visibility: hidden; transition: transform 260ms var(--ease-out), visibility 0s linear 260ms; }
  body.nav-open .sidenav { transform: none; visibility: visible; transition: transform 260ms var(--ease-out); }
  .docs-main { padding-top: 12px; }
  .paper { border-radius: 22px 22px 0 0; padding-inline: 18px; }
  .docs .topnav { display: none; }
  .docs-search { max-width: none; }
}
@media (max-width: 640px) {
  .with-shot { grid-template-columns: minmax(0, 1fr); }
  .with-shot > figure.shot { width: min(230px, 70%); margin: 4px auto 28px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .docs .brand-name { display: none; }
}

/* ---------- About ---------- */
.about-hero { padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 64px) calc(var(--radius-sheet) + clamp(32px, 5vw, 56px)); }
.about-hero .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
.about-hero h1 { color: var(--band-ink); font-size: clamp(2.4rem, 5.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 16px; max-width: 14em; }
.about-hero .lede { color: color-mix(in srgb, var(--band-ink) 90%, transparent); font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 34em; margin: 0; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 104px); }
.person { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.person .photo { aspect-ratio: 4 / 5; background: var(--ochre-soft); overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .photo.placeholder { display: grid; place-items: center; color: var(--ink-2); font-family: var(--font-hand); font-size: 1.6rem; }
.person .bio { padding: 22px 24px 26px; }
.person h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; margin: 0 0 4px; font-weight: 500; }
.person .role { margin: 0 0 14px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.person p { margin: 0 0 10px; line-height: 1.6; color: var(--ink); }
@media (max-width: 720px) { .people { grid-template-columns: minmax(0, 1fr); } }
