/* Fridgy website — design tokens lifted from the app's Sage theme. */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-1: #fbfaf7;
  --bg-2: #f5f3ee;
  --surface: #ffffff;
  --ink: #1a1a18;
  --ink-sec: #6b6b66;
  --border: #e8e8e3;
  --primary: #4a7c59;
  --primary-deep: #3c6649;
  --primary-soft: #eaf1ec;
  --on-primary: #ffffff;
  --accent: #e8a838;
  --accent-soft: #fbefd6;
  --protein: #d8694b;
  --protein-soft: #fae7e1;
  --carbs: #e8a838;
  --carbs-soft: #fbefd6;
  --fat: #5e7a8c;
  --fat-soft: #e5ebef;
  --track: #ededE8;
  --shadow: 0 18px 40px -22px rgba(30, 28, 24, 0.28);
  --shadow-card: 0 8px 22px -12px rgba(30, 28, 24, 0.18);
  --shadow-soft: 0 6px 16px -12px rgba(30, 28, 24, 0.16);
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(74, 124, 89, 0.07), transparent 60%),
    radial-gradient(900px 480px at 8% 4%, rgba(232, 168, 56, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── header ─────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--primary);
  display: grid; place-items: center;
  flex: none;
}
.mark svg { width: 20px; height: 20px; }
.brand .name { font-family: var(--serif); font-size: 22px; line-height: 1; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-sec); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 14px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -12px var(--primary); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: #d9d9d2; }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 14px;
  transition: transform 0.12s ease, opacity 0.15s;
}
.appstore:hover { opacity: 0.92; }
.appstore:active { transform: scale(0.98); }
.appstore svg { width: 24px; height: 24px; flex: none; }
.appstore .small { display: block; font-size: 10.5px; line-height: 1.15; opacity: 0.82; }
.appstore .big { display: block; font-size: 17px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.appstore.sm { padding: 9px 14px; border-radius: 12px; }
.appstore.sm svg { width: 19px; height: 19px; }
.appstore.sm .big { font-size: 14px; }
.appstore.sm .small { font-size: 9px; }

.soon-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--primary); background: var(--primary-soft);
  padding: 4px 10px; border-radius: 20px;
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.hero p.lede {
  font-size: 17.5px; color: var(--ink-sec); line-height: 1.6; margin-top: 20px; max-width: 460px;
}
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta .link {
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  border-bottom: 1.5px solid var(--border); padding-bottom: 2px;
}
.hero-cta .link:hover { border-color: var(--primary); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--ink-sec);
  box-shadow: var(--shadow-soft);
}
.badge .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--primary); flex: none; }
.badge .dot.amber { background: var(--accent); }
.badge .dot.fat { background: var(--fat); }
.hero-art { display: flex; justify-content: center; }

/* ── phone mockup ───────────────────────────────────────────────────── */
.phone {
  width: 300px; flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 42px;
  box-shadow: var(--shadow);
  padding: 14px;
  position: relative;
}
.phone::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: 4px; background: var(--track);
}
.screen {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border-radius: 30px; padding: 30px 16px 18px; overflow: hidden;
}

.k-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.k-title { font-family: var(--serif); font-size: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-soft); color: var(--ink);
  padding: 6px 11px; border-radius: 18px; font-weight: 800; font-size: 13px;
}
.pill svg { width: 15px; height: 15px; }

.week { display: flex; justify-content: space-between; margin: 16px 2px 0; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.week .d span { font-size: 10px; font-weight: 700; color: var(--ink-sec); }
.week .d i {
  width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink-sec);
  border: 2px solid var(--track);
}
.week .d.on i { background: var(--primary); color: #fff; border-color: var(--primary); }
.week .d.done i { border-color: var(--primary); color: var(--primary); }

.card {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card);
}
.cal {
  margin-top: 14px; padding: 18px 18px; display: flex; align-items: center; justify-content: space-between;
}
.cal .num { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cal .lbl { font-size: 13px; color: var(--ink-sec); font-weight: 600; margin-top: 4px; }

.ring {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--primary) var(--p, 62%), var(--track) 0);
}
.ring .hole {
  width: 64px; height: 64px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center;
}
.ring .hole .dotc { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
.ring .hole svg { width: 22px; height: 22px; }

.macros { display: flex; gap: 9px; margin-top: 11px; }
.macros .m { flex: 1; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 12px 11px 13px; }
.macros .m .v { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.macros .m .k { font-size: 11px; color: var(--ink-sec); font-weight: 600; margin-top: 2px; }
.macros .m .mini {
  width: 38px; height: 38px; border-radius: 50%; margin: 9px auto 0; display: grid; place-items: center;
  background: conic-gradient(var(--c) var(--p, 50%), var(--track) 0);
}
.macros .m .mini i { width: 26px; height: 26px; border-radius: 50%; background: var(--cs); display: grid; place-items: center; font-style: normal; }
.macros .m .mini i svg { width: 14px; height: 14px; }

.water { margin-top: 11px; padding: 14px; }
.water .row { display: flex; align-items: center; gap: 11px; }
.water .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--fat-soft); display: grid; place-items: center; flex: none; }
.water .ic svg { width: 20px; height: 20px; }
.water .t { flex: 1; }
.water .t b { font-size: 14px; }
.water .t small { display: block; font-size: 12px; color: var(--ink-sec); margin-top: 1px; }
.water .btn-r { width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: var(--fat); color: #fff; flex: none; }
.water .btn-r svg { width: 16px; height: 16px; }
.water .bar { height: 7px; border-radius: 4px; background: var(--track); margin-top: 12px; overflow: hidden; }
.water .bar i { display: block; height: 100%; width: 56%; background: var(--fat); border-radius: 4px; }

/* scan + recipe mini screens */
.screen-dark { background: #141513; }
.scan-stage { position: relative; height: 300px; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #2a2c26, #14150f); }
.scan-frame { position: absolute; inset: 18% 14% 30%; }
.scan-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid var(--primary); }
.scan-frame i.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.scan-frame i.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.scan-frame i.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.scan-frame i.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.scan-pill {
  position: absolute; top: 11%; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: rgba(20, 20, 18, 0.6); color: #fff; padding: 7px 13px; border-radius: 18px; font-size: 12px; font-weight: 700;
}
.scan-pill .live { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.scan-sheet { background: var(--surface); border-radius: 22px; margin-top: -22px; position: relative; padding: 18px 16px; }
.scan-sheet h4 { font-family: var(--serif); font-size: 19px; text-align: center; }
.scan-sheet p { text-align: center; font-size: 12px; color: var(--ink-sec); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary); padding: 7px 11px; border-radius: 18px; font-size: 12px; font-weight: 700; }
.chip svg { width: 12px; height: 12px; }

.r-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.r-banner { display: flex; align-items: center; gap: 11px; background: var(--primary-soft); border-radius: 16px; padding: 13px; margin-top: 14px; }
.r-banner .sp { width: 36px; height: 36px; border-radius: 11px; background: var(--primary); display: grid; place-items: center; flex: none; }
.r-banner .sp svg { width: 20px; height: 20px; }
.r-banner span { font-size: 12.5px; line-height: 1.35; }
.r-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 14px; margin-top: 11px; }
.r-card .tag { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-sec); }
.r-card .ttl { font-family: var(--serif); font-size: 18px; margin-top: 5px; }
.r-card .meta { display: flex; gap: 14px; margin-top: 9px; font-size: 11.5px; color: var(--ink-sec); font-weight: 600; }
.r-card .meta b { color: var(--primary); }

/* ── showcase ───────────────────────────────────────────────────────── */
.showcase { padding: 30px 0 20px; }
.showrow {
  display: flex; gap: 30px; justify-content: center; align-items: flex-start;
  overflow-x: auto; padding: 10px 4px 24px; scrollbar-width: none;
}
.showrow::-webkit-scrollbar { display: none; }
.showrow .phone { transform: scale(0.92); transition: transform 0.3s; }
.showrow .phone:hover { transform: scale(0.96); }

/* ── features ───────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-head { max-width: 640px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 14px; }
.section-head p { color: var(--ink-sec); font-size: 16.5px; line-height: 1.6; margin-top: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 26px 24px; box-shadow: var(--shadow-card);
}
.feature .fnum { font-family: var(--serif); font-size: 20px; color: var(--primary); }
.feature .ficon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft);
  display: grid; place-items: center; margin: 14px 0 16px;
}
.feature .ficon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.feature p { color: var(--ink-sec); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }

/* ── closing CTA ────────────────────────────────────────────────────── */
.closing { padding: 30px 0 84px; }
.closing-card {
  background: linear-gradient(165deg, #ffffff, #f6f8f5);
  border: 1px solid var(--border); border-radius: 30px;
  padding: 64px 40px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.closing-card::after {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,124,89,0.10), transparent 70%);
  bottom: -160px; right: -80px;
}
.closing-card .kicker { justify-content: center; }
.closing-card h2 { font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 0; }
.closing-card p { color: var(--ink-sec); font-size: 16.5px; line-height: 1.6; margin: 16px auto 0; max-width: 460px; }
.closing-card .row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.closing-card .link { font-weight: 700; font-size: 14.5px; border-bottom: 1.5px solid var(--border); padding-bottom: 2px; }
.closing-card .link:hover { border-color: var(--primary); }

/* ── footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .copy { font-size: 13.5px; color: var(--ink-sec); }
.foot .links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot .links a { font-size: 14px; font-weight: 600; color: var(--ink-sec); }
.foot .links a:hover { color: var(--ink); }

/* ── legal pages ────────────────────────────────────────────────────── */
.legal { padding: 56px 0 80px; }
.legal-wrap { max-width: 760px; }
.legal .kicker { margin-bottom: 12px; }
.legal h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; }
.legal .updated { color: var(--ink-sec); font-size: 14px; margin-top: 10px; }
.legal .intro { font-size: 16.5px; color: var(--ink-sec); line-height: 1.65; margin-top: 22px; }
.legal h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 38px 0 12px; }
.legal p { color: #46453f; font-size: 15.5px; line-height: 1.7; margin-top: 12px; }
.legal ul { margin: 12px 0 0 2px; padding-left: 20px; }
.legal li { color: #46453f; font-size: 15.5px; line-height: 1.7; margin-top: 9px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a.inline { color: var(--primary); font-weight: 600; border-bottom: 1px solid var(--primary-soft); }
.legal .note {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; margin-top: 30px; box-shadow: var(--shadow-soft);
}
.legal .copyfoot { margin-top: 40px; color: var(--ink-sec); font-size: 14px; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero { padding: 44px 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .showrow { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .closing-card { padding: 48px 24px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
