/* Potful website pages (landing, recipes, legal). The app itself lives at /app/. */
:root {
  --counter: #f6efe2;
  --paper: #fffbf3;
  --paper-deep: #fbf3e4;
  --line: #eee3d2;
  --ink: #3a2a20;
  --ink-soft: #6b5545;
  --ink-faint: #7a6656;
  --orange: #af521c;
  --orange-soft: #f6ddc5;
  --green: #56683d;
  --green-soft: #dfe5d0;
  --tomato: #a93624;
  --tomato-soft: #f3d3ca;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--counter); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header + footer */
.top { position: sticky; top: 0; z-index: 5; background: rgba(246, 239, 226, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 24px var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--orange); color: #fff !important; font: 700 17px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.big { min-height: 58px; padding: 0 30px; font-size: 19px; border-radius: 16px; }
.btn.ghost { background: var(--paper); color: var(--ink) !important; border: 1.5px solid var(--line); }
.btn.dark { background: var(--ink); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }
.foot { margin-top: 80px; background: var(--paper); border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-soft); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot a { color: var(--ink-soft); }
.foot .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }

/* landing */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero small { color: var(--ink-faint); }
.phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.phone { width: 230px; border-radius: 34px; border: 8px solid #2b1f18; overflow: hidden; background: #2b1f18; box-shadow: 0 24px 60px rgba(90, 59, 34, 0.25); }
.phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: 46%; max-width: 230px; }
}
.section { padding: 56px 0 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h3 { margin-top: 8px; }
.card p { color: var(--ink-soft); margin: 0; }
.emoji { font-size: 30px; line-height: 1; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; } }
.price .card { padding: 28px; }
.price .amount { font: 700 44px var(--serif); margin: 6px 0 2px; }
.price ul { padding-left: 1.2em; color: var(--ink-soft); }
.price .featured { border: 2px solid var(--orange); background: #fff8ef; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 2px; color: var(--ink-soft); }

/* recipe pages */
.crumbs { font-size: 14px; color: var(--ink-faint); margin: 24px 0 8px; }
.crumbs a { color: var(--ink-faint); }
.recipe-hero { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--orange-soft); margin: 12px 0 20px; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.facts span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 500; }
.ingredients { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 24px; }
.ingredients li { margin: 4px 0; }
ol.steps { padding-left: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font: 700 17px/36px var(--serif); text-align: center; }
.tip { display: block; background: #fbf0d2; border-radius: 12px; padding: 8px 12px; margin-top: 8px; font-size: 15px; color: #5c4510; }
.cook-cta { position: sticky; bottom: 16px; margin-top: 24px; background: var(--ink); color: #fff; border-radius: 20px; padding: 18px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 12px 30px rgba(58, 42, 32, 0.25); }
.cook-cta p { margin: 0; flex: 1; min-width: 200px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.rcard { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.rcard .ph { aspect-ratio: 4 / 3; background: var(--orange-soft); position: relative; }
.rcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.rcard .lock { position: absolute; left: 10px; top: 10px; background: rgba(58, 42, 32, 0.85); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.rcard .free { position: absolute; left: 10px; top: 10px; background: var(--green); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.rcard .body { padding: 12px 14px 16px; }
.rcard h3, .rcard h2 { font-size: 18px; margin: 0 0 4px; }
.rcard small { color: var(--ink-faint); }

/* legal pages */
.legal-page { padding-top: 24px; }
.legal-page h2 { font-size: 24px; margin-top: 1.6em; }
.legal-page h3 { font-size: 19px; margin-top: 1.2em; }
.legal-page .box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.legal-page table { border-collapse: collapse; }
.legal-page td { padding: 4px 16px 4px 0; vertical-align: top; }
.form { display: grid; gap: 12px; max-width: 520px; }
.form label { font-weight: 700; font-size: 15px; }
.form input { width: 100%; min-height: 50px; border-radius: 12px; border: 1.5px solid #9c8674; background: var(--paper); padding: 0 14px; font: inherit; }
.notice { border-radius: 14px; padding: 14px 18px; background: var(--green-soft); }
.notice.err { background: var(--tomato-soft); }
.muted { color: var(--ink-faint); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-page td { overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal-page td { display: block; padding: 0; } .legal-page td:first-child { font-weight: 700; margin-top: 10px; } }
.legal-page p, .legal-page .box { overflow-wrap: anywhere; }
.phone img { width: 100%; height: auto; }
@media (max-width: 900px) { .phones { margin-top: 8px; } .phone { max-width: 180px; border-width: 6px; border-radius: 26px; } }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rcard h3, .rcard h2 { font-size: 16px; }
  .rcard .body { padding: 10px 12px 12px; }
  .rcard small { font-size: 13px; }
}
@media (max-width: 560px) { .cook-cta { padding: 10px; bottom: 10px; } .cook-cta p { display: none; } .cook-cta .btn { width: 100%; } }
.section, section[id] { scroll-margin-top: 72px; }
.price .card { display: flex; flex-direction: column; align-items: flex-start; }
.price .card .btn { margin-top: auto; }
