/* ===== CarbCheck — landing page =====
 * Same editorial DNA as the Vibe Editor page: near-black canvas, thin display
 * type, hairline borders, lots of air. Recoloured to CarbCheck's fresh green,
 * with the app's light/mint screens floating as the premium contrast.
 */
:root {
  --bg: #07120c;
  --bg-2: #0a1610;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef4f0;
  --muted: #9bb0a5;
  --faint: #6b8076;
  --green: #25c277;
  --green-2: #5fe0a3;
  --green-deep: #1f9d63;
  --radius: 14px;
  --maxw: 1120px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 50% -260px, rgba(37, 194, 119, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

section { padding: 110px 24px; }
section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px;
  font-weight: 500; color: var(--green-2); margin-bottom: 16px;
}
.grad {
  background: linear-gradient(110deg, var(--green-2), #aef0cd 45%, #d7f7e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: 15px;
  letter-spacing: -0.01em; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { color: #04130c; background: var(--green); }
.btn-primary:hover { transform: translateY(-1px); background: var(--green-2); }

/* App-store style buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  background: #fff; color: #07120c; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.store-btn svg { width: 26px; height: 26px; fill: #07120c; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 10px; font-weight: 500; letter-spacing: .02em; opacity: .7; }
.store-btn b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 24px; max-width: 100%;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 18, 12, 0.6); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.brand-name span { color: var(--green-2); }
.logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green), var(--green-deep));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35);
}
.logo svg { width: 62%; height: 62%; fill: #fff; }
.logo.sm { width: 26px; height: 26px; border-radius: 8px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { position: relative; padding-top: 70px; padding-bottom: 80px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 560px; pointer-events: none; z-index: 1;
  background: radial-gradient(closest-side, rgba(37, 194, 119, .22), transparent 70%);
  filter: blur(24px);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.4vw, 72px); font-weight: 300; letter-spacing: -0.035em;
  line-height: 1.04; margin: 20px 0;
}
.lead {
  font-size: clamp(16px, 1.4vw, 19px); font-weight: 300; color: var(--muted);
  max-width: 520px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 13px; margin: 32px 0 22px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37, 194, 119, .16); }

/* ===== Phone mockup ===== */
.phone-wrap { display: flex; justify-content: center; perspective: 1600px; }
.phone {
  position: relative; width: 300px; height: 620px; flex: none;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(150deg, #1b1b1f, #050506);
  box-shadow:
    0 50px 110px rgba(0, 0, 0, .6),
    inset 0 0 0 2px rgba(255, 255, 255, .06),
    inset 0 2px 3px rgba(255, 255, 255, .12);
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(.5deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.phone:hover { transform: rotateY(-4deg) rotateX(2deg); }
.phone-wrap.small .phone { transform: rotateY(10deg) rotateX(4deg) rotateZ(-.5deg); }
.phone-wrap.small .phone:hover { transform: rotateY(3deg) rotateX(2deg); }
.island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 999px; background: #000; z-index: 20;
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: #eef5f0; text-align: left; color: #16241c;
}

/* Product screen — green gradient header */
.p-head {
  background: linear-gradient(165deg, #8bbf3f 0%, #5a9b34 60%, #4f8d2f 100%);
  padding: 52px 20px 26px; color: #fff;
}
.p-topbar { display: flex; justify-content: space-between; margin-bottom: 16px; }
.circ {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .22);
}
.circ svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-search {
  display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: rgba(255, 255, 255, .2); color: #fff;
}
.p-title { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 3px; }
.p-sub { font-size: 13px; opacity: .85; }

.p-body { padding: 0 16px; margin-top: -16px; position: relative; }
.card {
  background: #fff; border-radius: 18px; padding: 16px;
  box-shadow: 0 10px 26px rgba(20, 50, 30, .1); margin-bottom: 14px;
}
.hero-card { display: flex; align-items: center; gap: 12px; }
.leaf {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: #d8f0e2;
}
.leaf svg { width: 24px; height: 24px; fill: var(--green-deep); }
.hc-main { display: flex; flex-direction: column; flex: 1; }
.hc-label { font-size: 12px; color: #6c7d73; }
.hc-value { font-size: 34px; font-weight: 700; color: var(--green-deep); letter-spacing: -0.02em; line-height: 1; }
.hc-value small { font-size: 16px; }
.hc-unit { display: flex; flex-direction: column; align-items: flex-end; }
.hc-unit b { font-size: 19px; font-weight: 700; color: #16241c; }
.hc-unit span { font-size: 11px; color: #8a988f; }

.log-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.log-top b { font-size: 17px; font-weight: 700; display: block; }
.log-q { font-size: 12px; color: #8a988f; }
.stepper {
  display: flex; align-items: center; gap: 12px; padding: 5px 8px; border-radius: 12px; background: #e7f3ec;
  font-weight: 600;
}
.stepper button { border: none; background: none; font-size: 18px; color: #16241c; line-height: 1; }
.total {
  display: flex; justify-content: space-between; align-items: center;
  background: #e7f3ec; border-radius: 12px; padding: 13px 15px; margin-bottom: 12px;
}
.total span { font-weight: 600; color: #1e3a2a; font-size: 14px; }
.total b { font-size: 24px; font-weight: 700; color: var(--green-deep); }
.total small { font-size: 13px; }
.log-btn {
  background: var(--green); color: #fff; text-align: center; font-weight: 600; font-size: 15px;
  padding: 13px; border-radius: 999px; margin-bottom: 10px;
}
.log-row { display: flex; gap: 10px; }
.ghost-btn {
  flex: 1; text-align: center; padding: 11px; border-radius: 999px; background: #e7f3ec;
  color: #1e6b45; font-size: 13px; font-weight: 600;
}
.sec-label { display: block; font-size: 17px; font-weight: 700; margin: 8px 2px 10px; }
.nutri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 18px; }
.nutri > div { background: #fff; border-radius: 12px; padding: 11px 10px; box-shadow: 0 4px 12px rgba(20, 50, 30, .05); }
.nutri span { display: block; font-size: 10px; color: #8a988f; margin-bottom: 3px; }
.nutri b { font-size: 17px; font-weight: 700; color: #16241c; }

/* Onboarding screen (goal section) */
.phone.light .screen { background: #eef5f0; }
.o-body { padding: 54px 20px 22px; height: 100%; display: flex; flex-direction: column; }
.o-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.o-progress .bar { flex: 1; height: 6px; border-radius: 999px; background: #d3e3da; overflow: hidden; }
.o-progress .bar i { display: block; width: 100%; height: 100%; background: var(--green); }
.o-progress b { font-size: 13px; color: #6c7d73; font-weight: 600; }
.o-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.o-sub { font-size: 13px; color: #6c7d73; margin: 8px 0 22px; line-height: 1.5; }
.opt {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px;
  padding: 15px 16px; margin-bottom: 12px; border: 1.5px solid transparent;
  box-shadow: 0 6px 16px rgba(20, 50, 30, .06);
}
.opt.sel { border-color: var(--green); background: #e7f5ec; }
.o-ic { width: 26px; text-align: center; font-size: 18px; }
.opt div { flex: 1; }
.opt b { display: block; font-size: 16px; font-weight: 700; }
.opt.sel b { color: var(--green-deep); }
.opt span { font-size: 12px; color: #8a988f; }
.opt b + span, .opt div span { color: #8a988f; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cdd9d2; flex: none; }
.radio.on { border-color: var(--green); background:
  radial-gradient(circle, var(--green) 0 5px, #fff 6px 8px, var(--green) 9px); }
.o-cta {
  margin-top: auto; background: var(--green); color: #fff; text-align: center;
  font-weight: 600; font-size: 16px; padding: 15px; border-radius: 999px;
}

/* ===== Features ===== */
.features { text-align: center; }
.features h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.fcard {
  padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.fcard:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.fic {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(37, 194, 119, .1); border: 1px solid rgba(37, 194, 119, .24); margin-bottom: 18px; color: var(--green-2);
}
.fic svg { width: 21px; height: 21px; }
.fcard h3 { font-size: 18px; font-weight: 500; margin-bottom: 9px; letter-spacing: -0.02em; }
.fcard p { color: var(--muted); font-weight: 300; }

/* ===== How ===== */
.how { text-align: center; }
.how h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.step { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s ease, background .2s ease; }
.step:hover { border-color: var(--border-strong); background: var(--surface-2); }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
  color: var(--green-2); background: rgba(37, 194, 119, .12); border: 1px solid rgba(37, 194, 119, .26); margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 500; margin-bottom: 9px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-weight: 300; }

/* ===== Goal ===== */
.goal .goal-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.goal h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 22px; }
.goal-lead { color: var(--muted); font-weight: 300; margin-bottom: 26px; max-width: 460px; }
.goal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.goal-list li { color: var(--muted); font-weight: 300; padding-left: 28px; position: relative; line-height: 1.5; }
.goal-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg); }
.goal-list strong { color: var(--text); font-weight: 600; }

/* ===== FAQ ===== */
.faq { text-align: center; }
.faq h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 44px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; }
.qa { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.qa h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.015em; }
.qa p { color: var(--muted); font-weight: 300; }

/* ===== CTA ===== */
.cta { text-align: center; }
.cta-inner {
  background: radial-gradient(120% 140% at 50% 0%, rgba(37, 194, 119, .14), transparent 70%), var(--surface);
  border: 1px solid var(--border); border-radius: 26px; padding: 66px 30px;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 300; letter-spacing: -0.035em; margin-bottom: 16px; }
.cta-inner > p { color: var(--muted); font-weight: 300; max-width: 500px; margin: 0 auto 32px; }

/* ===== Footer ===== */
.foot { padding: 44px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot p { color: var(--faint); font-size: 14px; font-weight: 300; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  section { padding: 80px 22px; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy h1, .lead { margin-left: auto; margin-right: auto; }
  .lead { max-width: 560px; }
  .hero-cta, .hero-meta { justify-content: center; }
  .phone { transform: none !important; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .goal .goal-inner { grid-template-columns: 1fr; gap: 44px; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
