/* Zolia — site styles (2026-10 redesign)
   Matches the App Store screenshots: cream paper, handwritten headings (Kalam / Caveat),
   black-and-white sketches, a single coral accent, and the app itself as the only full
   color on the page. Colors and fonts come from the screenshot generator in the app repo
   (docs/screenshot_concepts/palette.py and fonts/). Body copy stays in a plain sans so
   it remains easy to read. */

:root {
  --paper: #F8F5F1;
  --paper-2: #F1EDE6;
  --sheet: #FFFFFF;
  --ink: #1E2340;
  --text: #2A2D3E;
  --muted: #5B5E70;
  --line: #D9D4CB;
  --coral: #D4573F;
  --coral-ink: #B8442E;
  --coral-soft: #F2C9BC;
  --shade: rgba(30, 35, 64, .10);
  --ink-hover: #000;
  --tape: rgba(241, 237, 230, .92);
  --tape-line: rgba(30, 35, 64, .25);
  --doodle-filter: none;

  --hand: "Kalam", "Comic Sans MS", cursive;
  --script: "Caveat", "Kalam", cursive;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --gutter: 24px;
  color-scheme: light;
}

/* Dark paper: the same sketchbook at night. Warm charcoal rather than navy (so it
   doesn't drift toward Visible), cream ink, and a slightly brighter coral. Follows the
   browser by default; the nav toggle sets data-theme on <html> to override it. */
:root[data-theme="dark"] {
  --paper: #1D1B19;
  --paper-2: #252220;
  --sheet: #2B2826;
  --ink: #EFE9E1;
  --text: #E2DCD3;
  --muted: #B4ADA3;
  --line: #45403B;
  --coral: #E8735B;
  --coral-ink: #F08C76;
  --shade: rgba(0, 0, 0, .35);
  --ink-hover: #FFFFFF;
  --tape: rgba(80, 74, 68, .85);
  --tape-line: rgba(239, 233, 225, .25);
  --doodle-filter: invert(1);     /* the ink doodles are #1E2340 SVGs; inverted they read as cream */
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1D1B19;
    --paper-2: #252220;
    --sheet: #2B2826;
    --ink: #EFE9E1;
    --text: #E2DCD3;
    --muted: #B4ADA3;
    --line: #45403B;
    --coral: #E8735B;
    --coral-ink: #F08C76;
    --shade: rgba(0, 0, 0, .35);
    --ink-hover: #FFFFFF;
    --tape: rgba(80, 74, 68, .85);
    --tape-line: rgba(239, 233, 225, .25);
    --doodle-filter: invert(1);
    color-scheme: dark;
  }
}
.doodle { filter: var(--doodle-filter); }

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 4px; }
p { margin: 0; }
b, strong { font-weight: 600; color: var(--ink); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.hand { font-family: var(--hand); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.hand b { font-weight: 700; color: inherit; }
h1.hand { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.16; }
h2.hand { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3.hand { font-size: 1.55rem; }
.hand-sub { font-family: var(--script); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--ink); margin-top: 6px; }
.coral { color: var(--coral); }

/* A coral word with a hand-drawn coral underline, as in the store screenshots */
.mark { position: relative; display: inline-block; color: var(--coral); font-weight: 700; white-space: nowrap; }
.mark-line { position: absolute; left: -3%; width: 106%; bottom: -0.04em; height: 0.2em; pointer-events: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--sheet); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--script); font-weight: 700; font-size: 1.5rem; color: var(--coral-ink);
  margin-bottom: 4px;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); margin-top: 18px; max-width: 36em; }
.fine { font-size: .92rem; color: var(--muted); margin-top: 18px; }

/* ─── Buttons: black and white, like everything that isn't the app ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 12px 24px; border: 2px solid var(--ink);
  transition: background-color .15s, color .15s, transform .15s;
}
.btn-sm { padding: 7px 16px; font-size: .95rem; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-hover); color: var(--paper); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-buttons-center { justify-content: center; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--hand); font-weight: 700; font-size: 1.45rem; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .98rem; }
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
/* Light/dark toggle: a sketched moon in light mode, a sun in dark mode */
.theme-toggle {
  width: 40px; height: 40px; flex: none; margin-right: -12px;
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { background: var(--paper-2); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner > .theme-toggle { margin-left: auto; }
}

/* ─── Phones: the only full-color objects on the page ─── */
.phone {
  position: relative; z-index: 1;
  width: clamp(220px, 24vw, 280px);
  aspect-ratio: 600 / 1304;
  padding: 8px;
  border-radius: 44px;
  background: var(--sheet);
  border: 3px solid var(--ink);
  box-shadow: 10px 14px 0 -4px var(--shade);
  flex-shrink: 0;
}
/* In dark mode the app screens switch to captures recorded with the app's dark theme:
   <picture> follows the browser, and site.js keeps it (and the video) in step with the toggle. */
.phone picture { display: block; height: 100%; }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone-small { width: clamp(180px, 18vw, 220px); }
.phone-step { width: min(220px, 70%); margin: 0 auto; }
.tilt-right { transform: rotate(4deg); }
.tilt-left { transform: rotate(-3deg); }

.video-toggle {
  position: absolute; right: -54px; bottom: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
  transform: rotate(3deg);
}
.i-pause { display: block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.i-play { display: block; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* ─── Sketch primitives: outlines get a hand-drawn wobble, text stays crisp ─── */
.sketch, .notebook, .folder, .sticky, .founder { position: relative; }
.notebook::before, .folder::before, .sticky::before, .founder::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sheet); border: 2.5px solid var(--ink); border-radius: inherit;
  filter: url(#rough);
}

/* ─── Hero ─── */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 10.5em; }
.hero-art { position: relative; display: flex; justify-content: flex-end; padding: 20px 30px 20px 170px; }
.note {
  font-family: var(--script); font-weight: 500; font-size: 1.55rem; line-height: 1.15; color: var(--ink);
}
.note-hero { position: absolute; left: -18px; bottom: 12%; width: 158px; transform: rotate(-4deg); }
.note-arrow { width: 120px; margin: 0 0 2px 40px; transform: rotate(-20deg); }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { padding: 10px 0 0; justify-content: center; }
  .note-hero { display: none; }
}

/* ─── Sections ─── */
.section { padding: 104px 0; }
.section-paper2 { background: var(--paper-2); }
.section-head { margin-bottom: 56px; }
@media (max-width: 860px) { .section { padding: 76px 0; } }

/* Sessions: three steps that tell the store-screenshot story */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.step { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.step-title { font-size: 1.75rem; min-height: 2.4em; }
.step-num {
  display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: 4px;
  border: 2.5px solid var(--coral); border-radius: 50%; color: var(--coral); font-weight: 700; font-size: .8em;
  vertical-align: .08em;
}

.notebook {
  border-radius: 10px; padding: 22px 22px 22px 52px; transform: rotate(-2deg);
  font-family: var(--hand); font-size: 1.3rem; color: var(--ink);
  max-width: 280px; margin: 0 auto; width: 100%;
}
.notebook::after {      /* spiral rings */
  content: ""; position: absolute; left: 12px; top: 16px; bottom: 16px; width: 22px;
  background: radial-gradient(circle at 11px 9px, transparent 5px, var(--ink) 5.5px, var(--ink) 7.5px, transparent 8px) 0 0 / 22px 26px repeat-y;
}
.notebook ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.notebook li { display: flex; align-items: center; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 2px; }
.notebook li::before { content: ""; width: 18px; height: 18px; border: 2.5px solid var(--ink); border-radius: 3px; flex: none; transform: rotate(-3deg); }

.folders { display: grid; gap: 0; max-width: 280px; margin: 0 auto; width: 100%; padding-top: 22px; }
.folder {
  border-radius: 4px 14px 10px 10px; height: 92px; padding: 12px 22px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  font-family: var(--script); font-weight: 700; font-size: 2rem; line-height: 1.2; color: var(--ink);
  margin-top: -12px; box-shadow: 0 -6px 12px -8px var(--shade);
}
.folder:first-child { margin-top: 0; transform: rotate(-2deg); }
.folder:nth-child(2) { transform: rotate(1.5deg) translateX(10px); }
.folder:nth-child(3) { transform: rotate(-1deg) translateX(-6px); }
.folder::after {        /* the tab */
  content: ""; position: absolute; top: -16px; left: 18px; width: 92px; height: 20px; z-index: -1;
  background: var(--sheet); border: 2.5px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0;
  filter: url(#rough);
}
.folder img { width: 38px; height: 38px; margin-top: 2px; }

.takeaway {
  margin: 72px auto 0; max-width: 760px; text-align: center;
}
.takeaway-big { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink); margin-bottom: 14px; }
.takeaway p:not(.takeaway-big) { color: var(--muted); font-size: 1.12rem; }
.takeaway-claim {
  display: inline-block; margin-top: 22px; padding: 6px 4px;
  font-family: var(--script); font-weight: 700; font-size: 1.7rem !important; color: var(--coral-ink) !important;
  background: url(assets/v2/doodles/underline_coral.svg?v=2) bottom / 100% 10px no-repeat;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step-title { min-height: 0; text-align: center; }
}

/* Customize / privacy: three short columns */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio-item { text-align: center; }
.trio-item h3 { margin-bottom: 8px; }
.trio-item p { color: var(--muted); max-width: 22em; margin: 0 auto; }
.trio-art { height: 84px; display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.trio-art img { width: 60px; height: 60px; }
.trio-art img.wide { width: 90px; height: 76px; }
.scale-art span {
  font-family: var(--hand); font-size: 1rem; color: var(--ink);
  padding: 10px 10px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--sheet);
}
.scale-art span:nth-child(1) { transform: rotate(-5deg); }
.scale-art span:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.scale-art span:nth-child(3) { transform: rotate(6deg); border-color: var(--coral); color: var(--coral-ink); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 44px; } }

/* A review on a taped sticky note */
.sticky {
  margin: 80px auto 0; max-width: 560px; padding: 34px 36px 26px; border-radius: 6px;
  transform: rotate(-1.5deg); text-align: center;
}
.sticky::after {        /* tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px;
  transform: translateX(-50%) rotate(3deg);
  background: var(--tape); border: 1.5px solid var(--tape-line);
}
.sticky blockquote { margin: 0; font-family: var(--hand); font-size: 1.4rem; line-height: 1.4; color: var(--ink); }
.sticky figcaption { margin-top: 12px; font-family: var(--script); font-size: 1.35rem; color: var(--muted); }
.sticky figcaption::before { content: "— "; }

/* Beyond the basics: deliberately small */
.beyond { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; max-width: 920px; }
@media (max-width: 860px) {
  .beyond { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .beyond .phone { margin: 0 auto; }
}

/* Founding member */
.founder { margin: 40px auto 0; max-width: 560px; padding: 30px 32px; border-radius: 12px; transform: rotate(.8deg); }
.founder-title { font-size: 2rem; margin-bottom: 8px; }
.founder p:not(.founder-title) { color: var(--muted); }
.founder-star { position: absolute; top: -22px; right: -18px; width: 52px; transform: rotate(12deg); }

/* ─── FAQ ─── */
.faq { margin-top: 40px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative;
  font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-52%);
  font-family: var(--hand); font-size: 2rem; line-height: 1; color: var(--ink);
}
.faq details[open] summary::after { content: "–"; color: var(--coral); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }

/* ─── CTA & footer ─── */
.cta { padding: 96px 0 104px; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.footer .brand { font-size: 1.25rem; }
.footer-about { flex: 1 1 360px; color: var(--muted); font-size: .95rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { width: 100%; color: var(--muted); font-size: .85rem; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  body { font-size: 17px; }
  .store-buttons .btn { flex: 1 1 100%; justify-content: center; }
  .video-toggle { right: -16px; }
  .founder-star { right: 4px; top: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
