/* Pricepan website: the app's "layers" look (design/DESIGN.md). System fonts only, no external files. */
:root {
  --paper: #F5F2ED; --card: #FFFFFF; --ink: #1E1714; --soft: #7A6E64; --rule: #ECE6DE; --link: #9A5530;
  --ingredients: #E3B95F; --work: #A8643A; --overheads: #C9B9A6; --profit: #2E8A57; --top: #55B081;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141010; --card: #211A16; --ink: #F3ECE4; --soft: #A99C90; --rule: #33291F; --link: #E6A27A;
    --ingredients: #E8C171; --work: #C47D4E; --overheads: #8C7E70; --profit: #46B076; --top: #7CCFA1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141010; --card: #211A16; --ink: #F3ECE4; --soft: #A99C90; --rule: #33291F; --link: #E6A27A;
  --ingredients: #E8C171; --work: #C47D4E; --overheads: #8C7E70; --profit: #46B076; --top: #7CCFA1;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
main, header, footer { max-width: 760px; margin: 0 auto; padding-inline: 16px; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
/* Prices go in the system serif, like in the app. */
.serif { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; font-weight: 600; font-variant-numeric: tabular-nums; }

header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; border-radius: 22.4%; }
nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: .95rem; }

footer { padding-block: 32px 48px; color: var(--soft); font-size: .9rem; display: grid; gap: 8px; border-top: 1px solid var(--rule); margin-top: 48px; }

/* Landing */
.hero { display: grid; gap: 16px; padding-block: 24px 8px; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: var(--soft); }
.soon { font-weight: 600; }

/* The recipe card: the price drawn as a slice, like the recipe screen. */
.recipe { margin-block: 32px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 20px; display: grid; gap: 12px; max-width: 420px; }
.recipe .name { font-weight: 700; font-size: 1.1rem; }
.recipe .label { color: var(--soft); font-size: .9rem; }
.recipe svg { display: block; width: 100%; height: auto; }
.recipe .total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.recipe .price { font-size: 2.2rem; line-height: 1.1; }
.slice text { font-size: 7.4px; fill: var(--soft); }
.slice .title { font-size: 8px; font-weight: 600; fill: var(--ink); }
.slice .amount { font-size: 10px; fill: var(--ink); }
.slice .amount.gain { fill: var(--profit); }
.slice .seam { stroke: var(--card); stroke-width: 1.5; stroke-linejoin: round; }
.slice .leader { fill: none; stroke: var(--ink); stroke-opacity: .45; stroke-width: .6; }
.slice .dot { fill: var(--card); stroke: var(--ink); stroke-width: .6; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.features div { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.features h3 { font-size: 1.05rem; }
.features p, .plans p { color: var(--soft); font-size: .98rem; }

.plans { display: grid; gap: 10px; margin-top: 36px; }
.plans h2, .page h2 { font-size: 1.35rem; padding-top: 14px; position: relative; }
/* The four layers as a small bar, the same one the recipe list uses. */
.plans h2::before, .page h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ingredients) 0 40%, var(--work) 40% 65%, var(--overheads) 65% 75%, var(--profit) 75% 100%);
}

/* Policy and support pages */
.page { display: grid; gap: 36px; padding-block: 8px 0; }
.page h1 { font-size: 2rem; line-height: 1.1; }
.intro { display: grid; gap: 10px; }
.page section { display: grid; gap: 12px; }
.page h3 { font-size: 1.05rem; margin-top: 6px; }
.page p, .page li { color: var(--ink); }
.page .muted { color: var(--soft); font-size: .92rem; }

/* Language switch on the landing: English by default; Spanish or Portuguese with ?l=es, ?l=pt or the browser's language. */
html:not([lang="es"]) .es, html:not([lang="pt"]) .pt, html[lang="es"] .en, html[lang="pt"] .en, html[lang="pt"] .intl { display: none; }
