/* Plancake website
   Layout: one centred column (max 1120px); home page alternates cream and sage bands; legal pages are a 720px reading column. */

@font-face { font-family: "Lora"; src: url("fonts/Lora-Variable.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --cream: #F6F3EB;
  --paper: #FFFFFF;
  --sage: #4E6E54;
  --sage-deep: #3A5640;
  --sage-wash: #DFE8DC;
  --terra: #B5532F;
  --terra-wash: #F4E1D6;
  --ink: #1F2A22;
  --muted: #5B665E;
  --line: #E1DDD2;
  --freeze: #3E7CB1;
  --phone: #1F2A22;
  --screen: #FBFAF6;
  --ph-bg: #FFF1B8;
  --ph-ink: #6B4E00;
  --f-display: "Lora", Georgia, "Times New Roman", serif;
  --f-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
/* One light look on every device, whatever the visitor's dark-mode setting */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 14px; z-index: 10; }

/* Placeholder marker: anything still to be filled in before launch */
.ph { background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed currentColor; border-radius: 4px; padding: 0 4px; font-weight: 500; white-space: normal; }

/* Header */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sage); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--sage); }
.nav a[aria-current="page"] { color: var(--sage); font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 500; text-decoration: none; font-size: 1rem; line-height: 1.2; min-height: 48px; }
.btn-primary { background: var(--terra); color: #FFFFFF; }
.btn-primary:hover { background: var(--ink); color: var(--cream); }
.btn-quiet { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--sage); color: var(--sage); }
.btn small { display: block; font-size: 0.72rem; font-weight: 400; opacity: .85; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store { background: var(--ink); color: var(--cream); padding: 10px 20px; border-radius: 12px; min-width: 180px; }
.btn-store:hover { background: var(--sage-deep); color: var(--cream); }
.btn-store svg { width: 24px; height: 24px; flex: none; }
.btn-store span { display: flex; flex-direction: column; }
.btn-store span small { font-size: 0.7rem; }
.btn-store span strong { font-size: 1.05rem; font-weight: 600; }
.fine { font-size: 0.85rem; color: var(--muted); }

/* Hero */
.hero { padding-block: 32px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy h1 span { color: var(--sage); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .phone { margin: 0 auto; } }

/* Phone mock-up (illustrative, drawn in HTML) */
.phone { width: min(330px, 100%); aspect-ratio: 9 / 19; background: var(--phone); border-radius: 46px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(31, 42, 34, .45); }
.screen { height: 100%; border-radius: 37px; background: var(--screen); overflow: hidden; padding: 34px 16px 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.screen-top { display: flex; justify-content: space-between; align-items: center; }
.screen-top b { color: var(--sage); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.screen-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--sage-wash); }
.week-box { background: var(--sage-wash); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.week-box small { color: var(--sage); font-weight: 500; font-size: 10px; letter-spacing: .1em; }
.week-box strong { font-family: var(--f-display); font-size: 16px; }
.week-box em { align-self: flex-start; font-style: normal; background: var(--sage); color: #FFFFFF; padding: 4px 12px; border-radius: 999px; font-size: 11px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.days span { border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; font-size: 10px; color: var(--muted); background: var(--paper); line-height: 1.3; }
.days span b { display: block; font-size: 13px; color: var(--ink); }
.days .on { background: var(--terra); border-color: var(--terra); color: #FFFFFF; }
.days .on b { color: #FFFFFF; }
.day-title { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.meal { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.meal small { color: var(--terra); font-weight: 600; font-size: 9px; letter-spacing: .1em; }
.meal span { font-weight: 500; }
.meal i { font-style: normal; color: var(--sage); font-size: 11px; }

/* Leftovers explainer */
.band { padding-block: 72px; }
.band-sage { background: var(--sage-wash); }
.band-paper { background: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40em; margin-bottom: 36px; }
.leftovers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .leftovers { grid-template-columns: 1fr; } }
.cook-card { background: var(--paper); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); }
.cook-card h3 { font-size: 1.4rem; }
.portions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.portions li { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cream); }
.portions .n { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #FFFFFF; font-weight: 600; font-size: .85rem; }
.portions .tag { font-size: .8rem; color: var(--muted); }
.portions .freeze .n { background: var(--freeze); }
.list-note { display: flex; flex-direction: column; gap: 14px; }
.receipt { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-variant-numeric: tabular-nums; }
.receipt h3 { font-size: 1.1rem; margin-bottom: 10px; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.receipt li:last-child { border-bottom: 0; }
.receipt li span:last-child { color: var(--muted); white-space: nowrap; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 30px; height: 30px; color: var(--sage); }
.feature p { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 420px; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.plan.best { border: 2px solid var(--sage); position: relative; }
.plan .badge { align-self: flex-start; background: var(--sage); color: #FFFFFF; font-size: .75rem; font-weight: 600; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--f-body); font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan p { color: var(--muted); }
.trial-note { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Closing band */
.closing { background: var(--sage-wash); padding-block: 64px; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { max-width: 18em; }

/* Food waste */
.waste { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .waste { grid-template-columns: 1fr; gap: 32px; } }
.waste-stat { background: var(--terra-wash); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.stat-big { font-family: var(--f-display); font-weight: 600; font-size: clamp(3.4rem, 8vw, 5rem); line-height: 1; color: var(--terra); font-variant-numeric: tabular-nums; }
.stat-text { font-size: 1.1rem; }
.source { font-size: .82rem; color: var(--muted); }
.waste-how { display: flex; flex-direction: column; gap: 16px; }
.waste-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.waste-list li { position: relative; padding-left: 34px; color: var(--muted); }
.waste-list li strong { color: var(--ink); font-weight: 600; }
.waste-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Official store badges (artwork from Apple and Google; keep their proportions, don't recolour) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge-link { display: inline-flex; border-radius: 9px; }
.badge-img.apple { height: 52px; width: auto; }
.badge-img.google { height: 52px; width: auto; }
.badge-slot { display: inline-flex; align-items: center; justify-content: center; height: 52px; border-radius: 9px; border: 1px dashed var(--muted); padding: 0 10px; font-size: .75rem; text-align: center; }
.badge-slot.apple { width: 156px; }
.badge-slot.google { width: 175px; }

/* App screenshots */
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.shot img, .shot-frame { width: 100%; aspect-ratio: 1290 / 2796; border-radius: 28px; }
.shot img { height: auto; object-fit: cover; box-shadow: 0 24px 48px -28px rgba(31, 42, 34, .35); border: 1px solid var(--line); }
.shot-frame { display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; background: var(--paper); border: 2px dashed var(--line); font-size: .9rem; }
.shot-hero { width: min(320px, 100%); justify-self: center; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shots .shot { max-width: 300px; justify-self: center; width: 100%; }
.shot figcaption { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: .95rem; text-align: center; }
.shot figcaption strong { color: var(--ink); font-weight: 600; font-size: 1rem; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; gap: 36px; }
  .shots .shot, .shot-hero { width: min(270px, 78%); }
}

/* Footer */
.site-footer { padding-block: 40px 56px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--sage); }

/* Reading pages (privacy, terms, support, press) */
.page-head { padding-block: 28px 32px; }
.page-head .wrap { max-width: 800px; display: flex; flex-direction: column; gap: 12px; }
.doc { padding-bottom: 72px; }
.doc .wrap { max-width: 800px; }
.doc-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.doc-body h2 { font-size: 1.5rem; margin-top: 18px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.12rem; margin-top: 8px; font-family: var(--f-body); font-weight: 600; }
.doc-body p, .doc-body li { max-width: 68ch; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { font-weight: 500; color: var(--muted); font-size: .85rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 540px; }
.doc-body th, .doc-body td { overflow-wrap: normal; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-size: .85rem; text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); }
.toc a:hover { border-color: var(--sage); color: var(--sage); }
.updated { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--cream); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 500; list-style-position: outside; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p + p { margin-top: 8px; }
.contact-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: var(--sage-wash); border-radius: var(--radius); padding: 22px 26px; }

/* Press */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.asset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.asset img { width: 72px; height: 72px; }
blockquote { margin: 0; padding: 18px 22px; border-radius: 14px; background: var(--terra-wash); font-family: var(--f-display); font-size: 1.15rem; }
blockquote footer { font-family: var(--f-body); font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* 404 */
.lost { padding-block: 80px 120px; text-align: center; }
.lost .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lost img { width: 96px; height: 96px; }

/* Long words (emails, links, placeholders) wrap instead of widening the page */
.doc-body, .lead, .ph, .facts dd, .contact-card { overflow-wrap: anywhere; }

/* Phones */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-header { padding-block: 12px; }
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 32px; height: 32px; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 0 12px; font-size: .92rem; }
  .badges { gap: 10px; }
  .badge-img.apple, .badge-img.google, .badge-slot { height: 46px; }
  .badge-slot.apple { width: 138px; } .badge-slot.google { width: 155px; }
  .nav a:not(.btn) { padding-block: 12px; }
  .nav .btn { padding: 10px 16px; min-height: 44px; }
  .hero { padding-block: 12px 48px; }
  .hero .wrap { gap: 36px; }
  .hero-copy { gap: 18px; }
  .lead { font-size: 1.04rem; }
  .store-buttons .btn-store { flex: 1 1 100%; justify-content: center; }
  .phone { width: min(300px, 84%); border-radius: 40px; }
  .screen { border-radius: 32px; padding: 28px 12px 0; gap: 10px; font-size: 12px; }
  .band { padding-block: 52px; }
  .section-head { margin-bottom: 26px; }
  .cook-card, .feature, .plan { padding: 20px; }
  .portions li { grid-template-columns: 2em 1fr auto; gap: 10px; padding: 10px 12px; }
  .plans { max-width: none; }
  .closing { padding-block: 48px; }
  .closing .store-buttons { width: 100%; }
  .site-footer .wrap { flex-direction: column; }
  .page-head { padding-block: 16px 24px; }
  .doc-body { border-radius: 14px; }
  .doc-body h2 { font-size: 1.32rem; }
  .doc-body table { font-size: .88rem; }
  .doc-body th, .doc-body td { padding: 8px 10px; }
  .faq details { padding: 12px 14px; }
  .faq summary { padding-block: 4px; }
  .contact-card { padding: 18px; }
  .contact-card .btn { width: 100%; justify-content: center; }
  .toc a { padding: 8px 12px; }
  .site-footer nav a { padding-block: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .toc a { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}

/* Coming-soon page */
.soon-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--cream); }
.soon { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-block: 48px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.soon-logo { width: clamp(88px, 18vw, 120px); height: auto; border-radius: 26px; box-shadow: 0 18px 40px -22px rgba(31, 42, 34, .45); }
.soon-word { color: var(--sage); font-weight: 600; font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.soon h1 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); max-width: 16em; margin-top: 18px; }
.soon h1 span { color: var(--sage); }
.soon-badge { margin-top: 18px; display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--sage-wash); color: var(--sage-deep); font-weight: 500; }
.soon-foot { text-align: center; padding-block: 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.soon-foot a { color: var(--muted); }
