/* DuoBite — shared stylesheet. No external fonts, no frameworks. */

:root {
  --green: #28B977;
  --green-ink: #0F7A4B;      /* brandText: green as text on light bg */
  --teal: #0D8C8C;
  --teal-ink: #0A6E6E;
  --bg: #F4F6F1;             /* tokens from the app design (DSColor) */
  --bg-alt: #E9EDE5;
  --card: #FFFFFF;
  --text: #10201A;
  --muted: #4A5A52;
  --line: #DDE2DA;
  --shadow: 0 10px 30px rgba(15, 60, 40, .10), 0 2px 6px rgba(15, 60, 40, .06);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-ink: #4FD99A;
    --teal-ink: #5CCFCF;
    --bg: #0C1310;
    --bg-alt: #161F1A;
    --card: #161F1A;
    --text: #F1F5F0;
    --muted: #B4C2B9;
    --line: #2A362F;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}
h1, h2, h3 { font-family: var(--font-round); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-round); font-weight: 800; font-size: 1.25rem;
  color: var(--text); text-decoration: none; letter-spacing: -.02em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: grid; place-items: center; font-size: 19px;
  box-shadow: 0 4px 12px rgba(40, 185, 119, .35);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 10px; border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav .lang {
  border: 1px solid var(--line); color: var(--text);
}
.nav .hide-sm { display: none; }
@media (min-width: 760px) { .nav .hide-sm { display: inline-block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 16px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 0; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-store { background: #000; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
@media (prefers-color-scheme: dark) { .btn-store { background: #fff; color: #000; } }
.btn-store .store-small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; line-height: 1.1; }
.btn-store .store-big { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store span.txt { text-align: left; }
.btn-primary { background: var(--green); color: #05301C; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 40px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(40,185,119,.22), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 72px; }
  .hero .container { grid-template-columns: 1.1fr .9fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 .hl {
  background: linear-gradient(90deg, var(--green-ink), var(--teal-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 14px; }
.fine { font-size: .9rem; color: var(--muted); }

/* ---------- Phone mockup ---------- */
.mock-wrap { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; width: 100%; max-width: 440px; margin: 0 auto; }
.phone {
  width: 290px; aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px;
  background: #0d0f0e; box-shadow: 0 30px 60px rgba(10, 50, 35, .28), inset 0 0 0 2px #2a2d2c;
  position: relative;
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #3FD08E 0%, #1aa08a 45%, #0D6F80 100%);
  padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 12px;
}
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 20px; }
.status { position: absolute; top: 14px; left: 26px; right: 26px; display: flex; justify-content: space-between; color: #fff; font-size: 12px; font-weight: 700; }
.clock { text-align: center; color: rgba(255,255,255,.95); font-family: var(--font-round); }
.clock .date { font-size: 12px; font-weight: 600; opacity: .9; }
.clock .time { font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }

.widget {
  background: rgba(255,255,255,.94); color: #0F1A16; border-radius: 22px; padding: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.widget-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: #4A5B54; margin-bottom: 8px; }
.widget-head .streak { color: #C2410C; }
.widget-body { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; }
.meal-photo {
  aspect-ratio: 1; border-radius: 14px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 35% 38%, #F6C453 0 14%, transparent 15%),
    radial-gradient(circle at 62% 58%, #E2553B 0 16%, transparent 17%),
    radial-gradient(circle at 40% 66%, #5DBB4C 0 13%, transparent 14%),
    radial-gradient(circle at 66% 32%, #8BD46A 0 10%, transparent 11%),
    radial-gradient(circle at 50% 50%, #FFF8EC 0 44%, #E9DCC6 45% 48%, transparent 49%),
    linear-gradient(135deg, #8C5A3C, #6B412A);
}
.grade {
  position: absolute; right: 4px; bottom: 4px; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--green); color: #05301C; font-family: var(--font-round);
}
.widget-info .who { font-size: 12px; font-weight: 700; }
.widget-info .kcal { font-size: 15px; font-weight: 800; font-family: var(--font-round); }
.widget-info .quip { font-size: 11px; color: #4A5B54; line-height: 1.35; margin-top: 2px; }
.reactions { display: flex; gap: 6px; margin-top: 8px; }
.reactions span {
  flex: 1; text-align: center; background: #EEF7F2; border-radius: 10px; padding: 4px 0; font-size: 15px;
}
.reactions span.on { background: #D4F2E3; box-shadow: inset 0 0 0 1.5px #28B977; }

.notif {
  background: rgba(255,255,255,.86); color: #0F1A16; border-radius: 18px; padding: 10px 12px;
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.notif .ico { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--green), var(--teal)); display: grid; place-items: center; font-size: 15px; }
.notif b { font-size: 12px; display: block; }
.notif small { font-size: 11px; color: #4A5B54; display: block; line-height: 1.3; }

.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600;
  display: none; z-index: 2;
}
.float-card .big { font-family: var(--font-round); font-size: 1.3rem; font-weight: 800; color: var(--green-ink); display: block; line-height: 1.1; }
@media (min-width: 420px) {
  .float-card { display: block; }
  .float-1 { left: 0; top: 16%; }
  .float-2 { right: 0; bottom: 14%; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-block; font-weight: 700; color: var(--green-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }

.steps { display: grid; gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); position: relative;
}
.step .num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--teal)); color: #fff;
  font-weight: 800; font-family: var(--font-round); font-size: 1.2rem; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 18px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.feature .icon { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }
.feature .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.chip.g { color: var(--green-ink); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.plan.premium { border: 2px solid var(--green); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--green); color: #05301C; font-size: .8rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--green-ink); font-weight: 800; }
.plan .price-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--green-ink); font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #1E9E66, #0D7F80); color: #fff; border-radius: 28px;
  padding: 44px 28px; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 34em; margin: 0 auto 22px; }
.cta-band .btn-store { background: #fff; color: #000; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.site-footer .container { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.site-footer small { display: block; }

/* ---------- Legal pages ---------- */
.legal { padding: 44px 0 64px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal .meta { color: var(--muted); font-size: .95rem; }
.legal .note {
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 14px 18px; margin: 1.2em 0;
}
.legal .caps { text-transform: none; font-weight: 600; }
.placeholder { background: #FFF3C4; color: #5A4500; padding: 0 4px; border-radius: 4px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .placeholder { background: #4A3B00; color: #FFE58A; } }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 22px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
@media (min-width: 760px) { .toc ol { columns: 2; column-gap: 32px; } }
.table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }

/* ---------- Join page ---------- */
.join { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 0 64px; }
.join-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  padding: 32px 24px; max-width: 520px; width: 100%; text-align: center;
}
.join-card .emoji { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.code-box {
  margin: 18px auto 10px; padding: 16px 20px; border-radius: 18px;
  background: var(--bg-alt); border: 2px dashed var(--green);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 800;
  font-size: clamp(2rem, 11vw, 3.2rem); letter-spacing: .14em; color: var(--text);
  word-break: break-all;
}
.code-box.empty { font-size: 1.1rem; letter-spacing: 0; font-family: var(--font); font-weight: 600; color: var(--muted); border-style: solid; border-color: var(--line); }
.join-actions { display: grid; gap: 10px; margin: 18px 0 8px; }
.join-steps { text-align: left; margin: 22px 0 0; padding-left: 1.3em; color: var(--muted); }
.join-steps li { margin-bottom: .5em; }
.copy-status { min-height: 1.4em; font-size: .9rem; color: var(--green-ink); font-weight: 600; margin: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0; }
.notfound .big { font-size: 4.5rem; line-height: 1; margin-bottom: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

[hidden] { display: none !important; }

/* New logo mark (two plates) replaces the emoji */
svg.brand-mark { width: 34px; height: 22px; border-radius: 0; background: none; box-shadow: none; display: inline-block; }
