/* Kitchen Memoir — website stylesheet.
   Tokens mirror the app's lib/core/theme/ (colours, Lora + Nunito Sans,
   radii, shadows) so the site and the app read as one thing. Light only:
   the app has no dark theme. No JavaScript anywhere. */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Lora-Regular.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Lora-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/Lora-Italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/NunitoSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/NunitoSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/NunitoSans-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #FCF9F4;
  --linen: #F6F3EE;
  --white: #FFFFFF;
  --container: #F0EDE9;
  --high: #EAE8E3;
  --highest: #E5E2DD;
  --ink: #1C1C19;
  --ink-2: #434840;
  --outline: #74796F;
  --outline-2: #C3C8BD;
  --olive: #284221;
  --olive-2: #3F5A36;
  --olive-light: #CCECBD;
  --olive-on: #082104;
  --saffron: #FDBF40;
  --saffron-on: #6F4E00;
  --saffron-light: #FFDEA8;
  --saffron-brown: #7C5800;
  --sage: #D9E7C9;
  --sage-on: #141F0C;
  --peach: #F3E4D8;
  --warm-white: #FDFAF6;
  --error: #BA1A1A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-card: 0 2px 8px rgba(40, 66, 33, .04);
  --shadow-raised: 0 4px 20px rgba(40, 66, 33, .06);
  --shadow-top: 0 1px 8px rgba(40, 66, 33, .04);
  --shadow-float: 0 8px 30px rgba(0, 0, 0, .12);
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;
  --wrap: 1120px;
  --gutter: 20px;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive-2); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); color: var(--olive); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
small, .small { font-size: 14px; color: var(--ink-2); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--saffron-brown); margin: 0 0 .75em;
}
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.caption { font-family: var(--font-head); font-style: italic; color: var(--ink-2); font-size: 15px; margin: .75em 0 0; }
.text-link { font-weight: 700; }
.skip {
  position: absolute; left: 0; top: 0; transform: translateY(-150%); padding: 10px 16px;
  background: var(--olive); color: #fff; border-radius: 0 0 var(--r-md) 0; z-index: 100;
}
.skip:focus { transform: none; }

/* --- header ------------------------------------------------------------ */
.site-header { background: var(--linen); box-shadow: var(--shadow-top); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 20px; text-decoration: none; color: var(--olive); margin-right: auto; }
.brand img { border-radius: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.site-nav a:hover { background: var(--container); color: var(--olive); }
.site-nav-wide { display: none; }
.nav-toggle { position: relative; }
.nav-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary:hover { background: var(--container); }
.nav-toggle summary span, .nav-toggle summary span::before, .nav-toggle summary span::after {
  display: block; width: 20px; height: 2px; background: var(--olive); border-radius: 2px; content: ""; position: relative;
}
.nav-toggle summary span::before { position: absolute; top: -6px; }
.nav-toggle summary span::after { position: absolute; top: 6px; }
.nav-toggle .site-nav { position: absolute; right: 0; top: 52px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-float); padding: 8px; min-width: 200px; }
.nav-toggle .site-nav ul { flex-direction: column; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--olive); background: var(--white); box-shadow: var(--shadow-sm); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary span { display: none; }
.lang-menu ul { position: absolute; right: 0; top: 46px; z-index: 20; list-style: none; margin: 0; padding: 8px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-float); min-width: 220px; }
.lang-menu li { margin: 0; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.lang-menu a:hover { background: var(--container); color: var(--olive); }
.lang-menu a[aria-current="true"] { background: var(--sage); color: var(--sage-on); }
@media (min-width: 900px) {
  .site-nav-wide { display: block; }
  .nav-toggle { display: none; }
  .lang-menu summary span { display: inline; }
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border: 0; cursor: pointer; text-align: left;
}
.btn-primary { background: var(--saffron); color: var(--saffron-on); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #F5B52F; color: var(--saffron-on); }
.btn-store { background: var(--olive); color: #fff; box-shadow: var(--shadow-md); }
.btn-store:hover { background: var(--olive-2); color: #fff; }
.btn-store.is-soon { background: var(--high); color: var(--ink-2); box-shadow: none; cursor: default; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 20px; }
.store-buttons.centered { justify-content: center; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* --- hero -------------------------------------------------------------- */
.hero { background: var(--linen); padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy, .hero-art, .feature-copy, .feature-art { min-width: 0; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-art { position: relative; padding-bottom: 60px; }
.hero-photo img { border-radius: var(--r-xl); box-shadow: var(--shadow-raised); aspect-ratio: 4 / 3; object-fit: cover; }
.app-card {
  width: min(88%, 340px); margin: -90px 0 0 auto; position: relative; z-index: 2;
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-float); overflow: hidden;
  font-size: 14px; line-height: 1.4;
}
.app-card-photo { position: relative; }
.app-card-photo img { aspect-ratio: 16 / 10; object-fit: cover; }
.app-card .tag { display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); background: var(--sage); color: var(--sage-on); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.app-card .tag-photo { position: absolute; left: 12px; bottom: 12px; background: var(--saffron-light); color: #271900; }
.app-card-body { padding: 14px 16px 16px; }
.app-card .tags { display: flex; gap: 6px; margin: 0 0 8px; }
.app-card h3 { font-size: 18px; margin: 0 0 10px; }
.story-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-lg); background: var(--peach); margin-bottom: 12px; }
.story-row .play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--saffron); color: var(--saffron-on); display: grid; place-items: center; }
.story-row .wave { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; height: 36px; overflow: hidden; }
.story-row .wave i { display: block; width: 3px; border-radius: 2px; background: var(--outline-2); }
.story-row .wave i:nth-child(-n+11) { background: var(--olive); }
.story-label { font-size: 11px; font-weight: 700; color: var(--saffron-brown); white-space: nowrap; }
.app-card .overline { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--saffron-brown); margin: 0 0 4px; }
.app-card .ingredients { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.app-card .ingredients li { margin: 0; padding-left: 12px; position: relative; }
.app-card .ingredients li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); }
.app-card .note { margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--warm-white); font-family: var(--font-head); font-style: italic; font-size: 13px; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(195, 200, 189, .5); }
.app-card .note span { display: block; font-family: var(--font-body); font-style: normal; font-size: 11px; margin-top: 4px; color: var(--outline); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .hero-art { padding-bottom: 0; padding-left: 40px; }
  .app-card { position: absolute; left: 0; bottom: -28px; margin: 0; width: 320px; }
}

/* --- sections ---------------------------------------------------------- */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.pull-quote { padding: 40px 0; }
.pull-quote blockquote { margin: 0 auto; max-width: 720px; text-align: center; font-family: var(--font-head); font-style: italic; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45; color: var(--olive); }
.pull-quote p { margin: 0; }
.how { padding-top: 32px; }
.how h2 { text-align: center; margin-bottom: 1.2em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.steps li { margin: 0; background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 24px; }
.step-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sage); color: var(--olive); margin-bottom: 14px; }
.steps h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--olive); color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.feature-art picture img { border-radius: var(--r-xl); box-shadow: var(--shadow-raised); aspect-ratio: 4 / 3; object-fit: cover; }
.feature-copy > p { color: var(--ink-2); }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .feature-grid-reverse .feature-copy { order: 2; }
  .feature-grid-reverse .feature-art { order: 1; }
}
.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 18px 20px; margin-top: 8px; }
.callout > svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--saffron-light); color: var(--saffron-brown); }
.callout p { margin: 0 0 .35em; }
.callout p:last-child { margin: 0; }
.callout-warm { background: var(--saffron-light); }
.callout-warm > svg { background: var(--white); }
.note-line { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 15px; max-width: 760px; }
.note-line svg { flex: none; margin-top: 4px; color: var(--saffron-brown); }

.feature-prompts { background: var(--linen); }
.feature-prompts .feature-copy { max-width: 760px; }
.themes-title { font-weight: 700; margin: 1.2em 0 .5em; color: var(--ink); }
.themes { list-style: none; margin: 0 0 1.5em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.themes li { margin: 0; padding: 7px 14px; border-radius: var(--r-pill); background: var(--olive); color: #fff; font-size: 14px; font-weight: 600; }
.samples-title { font-size: 18px; margin: 1.5em 0 .8em; }
.prompt-cards { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.prompt-card { margin: 0; background: var(--peach); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-sm); }
.prompt-theme { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron-brown); margin: 0 0 10px; }
.prompt-q { font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.prompt-hint { font-family: var(--font-head); font-style: italic; font-size: 15px; color: var(--ink-2); margin: 0; }
@media (min-width: 720px) { .prompt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .6em; }
.checklist svg { flex: none; margin-top: 4px; color: var(--olive); }
.privacy .wrap { max-width: 800px; }
.privacy .checklist { font-size: 18px; }

.pricing { background: var(--linen); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 8px 0 24px; }
.plan { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 26px; }
.plan h3 { font-size: 24px; margin-bottom: .6em; }
.plan-unlock { box-shadow: var(--shadow-raised); border-top: 6px solid var(--saffron); }
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: var(--saffron-light); color: #271900; font-size: 12px; font-weight: 700; letter-spacing: .04em; margin: 0 0 12px; }
@media (min-width: 720px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }

.languages .wrap { max-width: 800px; }
.lang-grid { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lang-grid li { margin: 0; }
.lang-grid a { display: block; padding: 10px 16px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang-grid a:hover { background: var(--sage); color: var(--sage-on); }

.faq .wrap { max-width: 800px; }
.faq-item { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-card); margin-bottom: 10px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-family: var(--font-body); font-size: 26px; font-weight: 400; color: var(--olive); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }
.faq-item ul { padding: 0 20px 18px 40px; margin: 0; color: var(--ink-2); }

.closing { background: var(--olive); color: #fff; text-align: center; }
.closing .eyebrow { color: var(--saffron); }
.closing h2, .closing .lead { color: #fff; }
.closing .lead { max-width: 640px; margin-inline: auto; color: rgba(255, 255, 255, .85); }
.closing .btn-store { background: var(--saffron); color: var(--saffron-on); }
.closing .btn-store:hover { background: #F5B52F; }
.closing .btn-store.is-soon { background: rgba(255, 255, 255, .14); color: #fff; }

/* --- footer ------------------------------------------------------------ */
.site-footer { background: var(--linen); padding: 48px 0 32px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--olive); margin-bottom: .4em; }
.footer-brand img { border-radius: 7px; }
.footer-quote { font-family: var(--font-head); font-style: italic; margin-bottom: 1.2em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links li { margin: 0; }
.footer-links a { font-weight: 700; }
.footer-title { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron-brown); margin: 0 0 .8em; }
dl.company { margin: 0; display: grid; gap: 6px 16px; }
dl.company div { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 8px; }
dl.company dt { font-weight: 700; color: var(--ink); }
dl.company dd { margin: 0; }
.footer-langs { border-top: 1px solid var(--outline-2); padding-top: 18px; line-height: 2; }
.footer-langs span { font-weight: 700; }
.legal-note { font-size: 13px; color: var(--outline); }
.footer-rights { margin: 0; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }

/* --- legal, support, 404 --------------------------------------------- */
.legal, .support, .notfound { padding: 40px 0 72px; }
.legal h1, .support h1, .notfound h1 { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: .3em; }
.updated { color: var(--outline); font-size: 14px; margin-bottom: 1.5em; }
.summary { background: var(--sage); border-radius: var(--r-xl); padding: 22px 24px 8px; margin: 0 0 32px; }
.summary h2 { font-size: 20px; margin-bottom: .6em; color: var(--sage-on); }
.summary .checklist { font-size: 16px; }
.summary .checklist svg { color: var(--olive); }
.toc { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 18px 22px; margin: 0 0 36px; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: 15px; }
.toc li { break-inside: avoid; margin-bottom: .3em; }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }
.legal section { padding: 0; margin: 0 0 32px; }
.legal section h2 { font-size: 24px; margin: 0 0 .6em; scroll-margin-top: 24px; }
.legal section p, .legal section li { color: var(--ink-2); }
.legal dl.company, .support dl.company { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 18px 22px; margin: 0 0 1.2em; font-size: 15px; }
.support h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.support .lead { margin-bottom: .4em; }
.plain { padding-left: 1.2em; color: var(--ink-2); }
.notfound { text-align: center; }
.notfound .lang-grid { justify-content: center; margin-top: 32px; }
@media (max-width: 599px) { .toc ol { columns: 1; } }

@media print {
  .site-header, .site-footer .footer-langs, .lang-menu, .skip, .store-buttons { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .legal section p, .legal section li { color: #000; }
  a { color: #000; text-decoration: none; }
}
