/* receptli.app: the app's "Spatial Cookbook" tokens (DESIGN.md), plain CSS, no build step.
   Self-hosted fonts and no inline script: the server's CSP allows only same-origin fonts and scripts. */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light dark;
  --canvas: #FFF8F5;
  --surface: #FFFFFF;
  --ink: #1F1B19;
  --secondary: #57423B;
  --line: #CBB8B0;
  --accent: #9F3C16;
  --on-accent: #FFFFFF;
  --accent-soft: #FFDBCF;
  --ticket: #F5ECE8;
  --saffron: #EAD5AA;
  --badge: #1F1B19;
  --on-badge: #FFF8F5;
  --shadow: 0 3px 12px rgba(31, 27, 25, 0.05);
  --lift: 0 24px 60px rgba(31, 27, 25, 0.16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171210;
    --surface: #241E1C;
    --ink: #F8EFEB;
    --secondary: #D8C2BA;
    --line: #69564F;
    --accent: #FFB59C;
    --on-accent: #390C00;
    --accent-soft: #5C2A18;
    --ticket: #342B28;
    --badge: #F8EFEB;
    --on-badge: #171210;
    --shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    --lift: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { color: var(--on-accent); background: var(--accent); }
html { scrollbar-color: var(--line) var(--canvas); }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: 10px 18px; background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; }
.skip-link:focus { top: 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--secondary); max-width: 36ch; text-wrap: pretty; }
.body { color: var(--secondary); max-width: 58ch; text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding-block: clamp(72px, 10vw, 128px); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.top .lang { font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
/* Six languages: a native <details> menu, so no script (the CSP allows no inline script). */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; margin-left: 6px; font-size: 12px; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--lift); }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 8px; }
.lang-menu li a:hover { background: var(--ticket); }
.lang-menu a[aria-current] { color: var(--accent); font-weight: 600; }
@media (max-width: 940px) { .top nav > a:not(.lang):not(.guide-nav) { display: none; } }
@media (max-width: 430px) { .top { flex-wrap: wrap; padding-block: 16px; gap: 12px; } .top nav { margin-left: auto; } .top .lang, .lang-menu summary { padding: 6px 10px; } }

/* Store badges: plain pills until the listings are public, then the official badges with links. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stores li {
  display: grid; background: var(--badge); color: var(--on-badge);
  border-radius: 14px; padding: 10px 20px 11px; flex: 1 1 148px; max-width: 200px; line-height: 1.2;
}
.stores small { font-size: 12px; letter-spacing: 0.02em; opacity: 0.8; }
.stores strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
/* A live store uses the store's official badge, unaltered; its PNG has ~12% transparent margin, so it is drawn
   taller than the 58px pill and pulled back by that margin to line up. */
.stores li.badge { background: none; padding: 0; flex: 0 0 auto; max-width: none; }
.stores li.badge a { display: block; margin-block: -9px; border-radius: 12px; }
.stores li.badge img { display: block; height: 76px; width: auto; }
.stores li.badge a:hover { opacity: 0.85; }
/* Apple's SVG badge has no margin, so it is drawn at the visible height of its neighbour: the 58px pill or the
   SK Play badge's black area. The EN Play PNG carries a wider margin (black area ~51px at 76px). */
.stores li.app-store a { margin-block: 0; }
.stores li.app-store img { height: 58px; }
/* DE, ES and FR pages use the EN badges too until localized ones are added. */
:is(:lang(en), :lang(de), :lang(es), :lang(fr)) .stores li.app-store img { height: 51px; }
.stores li.text-store { padding: 0; }
.stores .text-store a { display: grid; padding: 10px 20px 11px; color: inherit; text-decoration: none; border-radius: 14px; }
.stores .text-store a:hover { text-decoration: underline; }
.free-note { font-size: 15px; line-height: 1.5; color: var(--secondary); max-width: 52ch; }
.demo-note { font-size: 14px; color: var(--secondary); max-width: 56ch; }
.price.price-local { font-size: 1.8rem; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .copy { display: grid; gap: 28px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1.08; }
.hero-visual .page {
  position: absolute; left: 0; top: 10%; width: 56%;
  border-radius: 14px; box-shadow: var(--lift); transform: rotate(-5deg);
}
.hero-visual .phone { position: absolute; right: 2%; top: 0; width: 50%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
}

/* A real screenshot in a plain device frame: the frame is CSS, the screen is the app. */
.phone {
  border-radius: 44px; padding: 9px; background: #1F1B19;
  box-shadow: var(--lift), inset 0 0 0 1.5px #3A3230;
}
.phone img { border-radius: 36px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; object-position: top; background: var(--ticket); }

/* Demo reel: the 9:16 promo, muted, played by site.js only while on screen */
.watch { padding-block: 0 clamp(40px, 6vw, 72px); }
.watch-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; max-width: 980px; }
.watch .copy { display: grid; gap: 18px; }
.reel { display: block; width: min(340px, 78vw); height: auto; aspect-ratio: 9 / 16; border-radius: 28px; background: var(--ticket); box-shadow: var(--lift); }
@media (max-width: 760px) { .watch-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; } .watch .body { margin-inline: auto; } }

/* From notebook to phone */
.scan { text-align: center; }
.scan .intro { display: grid; gap: 18px; justify-items: center; }
.scan .body { margin-inline: auto; }
.pair { margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); max-width: 880px; margin-inline: auto; }
.pair figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.pair figcaption { font-size: 14px; color: var(--secondary); max-width: 30ch; }
.pair .page { border-radius: 14px; box-shadow: var(--lift); transform: rotate(-2deg); width: min(360px, 100%); }
.pair .phone { width: min(300px, 100%); }
.pair .arrow { font: 600 2rem/1 var(--sans); color: var(--accent); }
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
  .pair .arrow { transform: rotate(90deg); justify-self: center; }
}

/* Any source, your language */
.sources { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sources .phone { width: min(300px, 100%); justify-self: center; }
.sources .copy { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--ticket); border-radius: 7px; padding: 6px 12px; font-size: 15px; }
.langs { font-size: 15px; color: var(--secondary); }
.langs strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .sources { grid-template-columns: 1fr; } .sources .phone { order: 2; } }

/* Everyday cooking: bento of real screens and a real cover */
.daily h2 { max-width: 20ch; }
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, auto); gap: 16px; }
.cell { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 28px 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; position: relative; }
.cell p { color: var(--secondary); font-size: 16px; }
/* The top of a real screen rising from the cell's bottom edge, like a phone held up to the camera. */
.cell .shot {
  margin: 20px auto 0; margin-top: auto; width: min(270px, 100%); aspect-ratio: 9 / 11; object-fit: cover; object-position: top;
  border: 7px solid #1F1B19; border-bottom: 0; border-radius: 34px 34px 0 0; box-shadow: var(--lift);
}
.cell.cook { grid-column: span 7; grid-row: span 2; background: var(--saffron); color: #1F1B19; }
.cell.cook p { color: #57423B; }
.cell.cook .shot { width: min(390px, 100%); aspect-ratio: 1320 / 2868; }
.cell.plan { grid-column: span 5; }
.cell.shop { grid-column: span 5; }
.cell.search { grid-column: span 12; display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 32px; padding: 0 0 0 32px; min-height: 260px; }
.cell.search .covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.cell.search .covers img { height: 100%; width: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .cell.cook, .cell.plan, .cell.shop, .cell.search { grid-column: span 12; grid-row: auto; }
  .cell.cook .shot { width: min(300px, 100%); aspect-ratio: 9 / 13; }
  .cell.search { grid-template-columns: 1fr; padding: 28px 28px 0; }
  .cell.search .covers { height: 180px; margin-inline: -28px; }
}

/* Family: the main benefit, one full-width band */
.family { background: var(--accent-soft); }
.family .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.family .copy { display: grid; gap: 24px; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: baseline; }
.facts li { display: contents; }
.facts b { font: 600 2.1rem/1 var(--serif); color: var(--accent); }
.family-news { display: grid; gap: 10px; margin-top: 12px; }
.family .phone { width: min(320px, 100%); justify-self: center; }
@media (max-width: 900px) { .family .wrap { grid-template-columns: 1fr; } }

/* Pricing */
.pricing .intro { display: grid; gap: 16px; }
.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: grid; gap: 18px; align-content: start; }
.plan.premium { border: 2px solid var(--accent); }
.plan .price { font: 600 2.4rem/1.1 var(--serif); }
.plan .price small { font: 400 16px/1.4 var(--sans); color: var(--secondary); display: block; margin-top: 6px; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--secondary); }
.plan ul li::marker { color: var(--accent); }
.note { margin-top: 20px; font-size: 14px; color: var(--secondary); max-width: 70ch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq .wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--accent); transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--secondary); max-width: 65ch; }

/* Closing call and footer */
.closing { text-align: center; }
.closing .wrap { display: grid; gap: 28px; justify-items: center; }
.closing .stores { justify-content: center; }
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14px; color: var(--secondary); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer nav a { color: var(--ink); }
footer address { font-style: normal; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Practical guides inherit the cookbook's type and paper, with a quiet reading column. */
.guides { max-width: 980px; }
.guides > .body { margin-top: 20px; }
.guide-links { list-style: none; padding: 0; margin: 32px 0 0; }
.guide-links li { padding-block: 22px; border-top: 1px solid var(--line); }
.guide-links li:last-child { border-bottom: 1px solid var(--line); }
.guide-links a { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.guide-links p { color: var(--secondary); margin-top: 10px; max-width: 70ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 15px; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding-top: 40px; }
.guide-hero .copy { display: grid; gap: 24px; }
.guide-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.12; }
.guide-hero .lede { max-width: 48ch; }
.guide-hero figure { margin: 0; justify-self: center; max-width: 340px; }
.guide-hero .guide-screen { max-width: 260px; }
.guide-hero img { border-radius: 16px; box-shadow: var(--lift); }
.guide-hero figcaption { margin-top: 16px; font-size: 14px; color: var(--secondary); }
.guide-reading { max-width: 760px; }
.guide-steps { padding-left: 32px; margin: 0; }
.guide-steps li { padding-left: 12px; margin-bottom: 44px; }
.guide-steps li::marker { font: 600 1.5rem/1.3 var(--serif); color: var(--accent); }
.guide-reading h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.25; text-wrap: pretty; }
.guide-reading h2 + p { margin-top: 18px; }
.guide-reading p, .guide-advice li { max-width: 72ch; }
.guide-reading section { padding-block: 48px; }
.guide-advice { border-block: 1px solid var(--line); }
.guide-advice ul { padding-left: 24px; margin-block: 24px; }
.guide-advice li + li { margin-top: 18px; }
.guide-next { display: grid; gap: 24px; }
.guide-next h2 + p { margin-top: 0; }
.guide-related .guide-links { margin-top: 24px; }
@media (max-width: 760px) { .guide-hero { grid-template-columns: 1fr; } .guide-hero figure { max-width: 320px; } .guide-hero .guide-screen { max-width: 240px; } .guide-steps { padding-left: 24px; } .guide-steps li { padding-left: 4px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Motion: one settle on load, one reveal per section as it scrolls in; none with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .phone { animation: settle 700ms cubic-bezier(.23, 1, .32, 1) 120ms both; }
  .hero-visual .page { animation: settle-page 800ms cubic-bezier(.23, 1, .32, 1) both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes settle { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle-page { from { opacity: 0; transform: rotate(-9deg) translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* What's new and switching from another app: the pricing cards, more of them per row */
.whats-new .intro, .switch .intro { display: grid; gap: 16px; }
.whats-new { padding-top: 0; }
.plans.news { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); max-width: none; }
.plan p { color: var(--secondary); }
.switch .plans { max-width: none; }
