/* Shared stylesheet for the guide pages (/ai-cooking-assistant,
   /hands-free-cooking, /video-to-recipe, /tiktok-recipe-importer).

   index.html keeps its own inline <style> on purpose: it is the store-review
   URL and the one page Apple's support link points at, so it is not worth
   refactoring for these. The tokens below are copied from it verbatim — when
   one changes there, change it here too. Everything else is this file's own:
   a guide is a column of prose, not the landing page's alternating art grid. */

:root {
  --ink: #0f2458;
  --body: #3e4c69;
  --muted: #778096;
  --blue: #3f91e8;
  --pale-blue: #e7f5fc;
  --orange: #c94e08;
  --orange-pressed: #a93f04;
  --paper: #ffffff;
  --warm-paper: #fcfaf7;
  --line: #dce8f2;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", Avenir, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  background: var(--paper);
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fraunces-600.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./plus-jakarta-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("./plus-jakarta-sans-700.ttf") format("truetype");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

/* Header — the same lockup and proportions as the landing page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { width: 34px; height: auto; }
.brand-wordmark { width: 128px; height: auto; }

/* Primary navigation — the same markup on every page. From 720px up: a
   Guides dropdown and FAQ. Below it: one menu button that opens a sheet with
   the same links. Both are <details>/<summary>, so they work with no script;
   an open menu closes when its button is pressed again. */
.site-nav { display: flex; align-items: center; }
.site-nav summary { list-style: none; cursor: pointer; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::marker { content: ""; }
.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary,
.nav-desktop > a {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav-dropdown > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-dropdown[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.nav-dropdown > summary:hover,
.nav-desktop > a:hover { color: var(--orange); }
.nav-dropdown-list {
  position: absolute;
  top: 100%;
  right: -12px;
  z-index: 20;
  min-width: 240px;
  margin: 4px 0 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(20, 47, 87, 0.12);
}
.nav-dropdown-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav-dropdown-list a:hover { background: var(--pale-blue); color: var(--orange); }
.nav-mobile > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.site-nav summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-burger,
.nav-burger::before,
.nav-burger::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 150ms ease, background 150ms ease;
}
.nav-burger { position: relative; }
.nav-burger::before,
.nav-burger::after { content: ""; position: absolute; left: 0; }
.nav-burger::before { top: -6px; }
.nav-burger::after { top: 6px; }
.nav-mobile[open] .nav-burger { background: transparent; }
.nav-mobile[open] .nav-burger::before { transform: translateY(6px) rotate(45deg); }
.nav-mobile[open] .nav-burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav-sheet {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 8px 20px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(20, 47, 87, 0.12);
}
.nav-sheet-label {
  margin: 12px 0 2px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-sheet ul { margin: 0; padding: 0; list-style: none; }
.nav-sheet a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.nav-sheet a.nav-sheet-top { margin-top: 10px; border-bottom: 0; }
@media (min-width: 720px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* The column of prose. */
.guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.breadcrumb {
  padding: 28px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }

.guide-header { padding: 20px 0 8px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  margin: 44px 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

h3 {
  margin: 30px 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

p { margin: 0 0 18px; }

.lede {
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--body);
}

.guide ul,
.guide ol { margin: 0 0 20px; padding-left: 22px; }
.guide li { margin: 0 0 10px; }

strong { color: var(--ink); }

figure {
  margin: 28px 0;
  text-align: center;
}

figure img {
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 47, 87, 0.13);
}

figure.phone img { max-width: 260px; }

figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* "What you can say" and similar quoted lists, as on the landing page. */
.quote-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.quote-list li {
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--pale-blue);
  color: var(--ink);
  font-weight: 600;
}

/* A plain-spoken aside: what the app does not do, limits, caveats. */
.note {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--warm-paper);
  font-size: 0.97rem;
}

.note p:last-child { margin-bottom: 0; }

.faq { margin-top: 12px; }

.faq h3 { margin-top: 26px; }

/* The /faq page: a row of topic links under the header, so the privacy
   answers are one tap away instead of a long scroll. */
.faq-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.faq-groups a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.faq-groups a:hover { border-color: var(--blue); color: var(--blue); }

/* Numbered how-to steps, matching the landing page's import steps. */
.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0 0 16px;
  padding-left: 44px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* Email capture — the only CTA on this site until a store listing resolves. */
.notify {
  margin: 48px 0 0;
  padding: 30px 26px;
  border-radius: 20px;
  background: var(--warm-paper);
  border: 1px solid var(--line);
  text-align: center;
}

.notify h2 { margin-top: 0; }

.notify-inner {
  max-width: 480px;
  margin: 0 auto;
}

/* Kept identical to index.html's copy of these rules, for the same reason the
   tokens above are: the badge row is byte-identical in all five pages, so it
   has to look the same in both stylesheets.

   The two badges are sized by their *artwork*, not by their file box. Apple's
   SVG fills its viewBox (119.664 × 40), so the 10%-of-height clear space its
   guidelines require is added here as padding on the link. Google's PNG ships
   41px of transparent clear space on all four sides of a 564 × 168 artwork,
   so it needs none — and that padding is why the 250/168 factor exists: give
   both files the same box height and Google's badge reads visibly smaller. */
.store-badges {
  --badge-artwork: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.store-badge { display: inline-flex; border-radius: 9px; }
.store-badge img { display: block; width: auto; }
.store-badge-apple { padding: calc(var(--badge-artwork) * 0.1); }
.store-badge-apple img { height: var(--badge-artwork); }
.store-badge-google img { height: calc(var(--badge-artwork) * 250 / 168); }

.store-badge:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Where to go next — keeps the guides linked to each other and to the app. */
.read-next {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.read-next h2 { margin-top: 0; font-size: 1.15rem; }

.read-next ul { list-style: none; padding: 0; margin: 0; }

.read-next li { margin: 0 0 10px; }

.read-next a {
  font-weight: 700;
  color: var(--ink);
}

.read-next a:hover { color: var(--orange); }

/* Footer — the landing page's, trimmed to what a guide needs. */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--warm-paper);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* /about: the story video, its transcript, and the founder's note. */
.about-video { margin: 20px 0 0; }
.about-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0f2458;
}
.about-video figcaption {
  margin-top: 10px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}
.about-transcript {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.about-transcript > summary {
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.about-transcript-body { padding: 0 18px 8px; }
.about-transcript-body p { margin: 0 0 12px; font-size: 15px; }
.about-note { margin-top: 40px; }
.about-signature {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}
