/* Zoria Cal — Soft Register */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #fbf7f0;
  --fg: #1c1614;
  --surface: #ffffff;
  --surface-2: #f3ebdc;
  --border: #e8e0d2;
  --border-2: #d4c8b3;
  --muted: #7a6f63;
  --muted-2: #a89d8f;
  --accent: #65a30d;
  --accent-strong: #4d7c0f;
  --accent-soft: #ecfccb;
  --accent-text: #1a2e05;
  --warning: #c2410c;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--container); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 22px; letter-spacing: -0.01em;
}
.brand__leaf {
  width: 22px; height: 22px;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-strong));
  border-radius: 60% 0 60% 60%;
  transform: rotate(-25deg);
}
.nav { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--muted); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--fg); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--fg); color: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
}
.nav__cta:hover { background: var(--accent-strong); color: #fff; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 22px;
  display: inline-flex; gap: 10px; align-items: center;
}
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-strong); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 450;
  margin: 0 0 26px;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-strong);
  background: linear-gradient(180deg, transparent 65%, var(--accent-soft) 65%);
  padding: 0 4px;
}
.hero__lead {
  font-size: 19px; line-height: 1.5; color: var(--muted);
  max-width: 520px; margin: 0 0 36px;
}
.hero__cta-group { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 16px -8px rgba(101, 163, 13, 0.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(101, 163, 13, 0.6); background: var(--accent-strong); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 22px;
  color: var(--fg);
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: 15px;
}
.btn-ghost:hover { color: var(--accent-strong); }
.hero__meta {
  margin-top: 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted-2);
}

/* ===== HERO CARD (Calorie counter mock) ===== */
.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px -30px rgba(28, 22, 20, 0.18);
  position: relative;
}
.hero__card::before {
  content: "";
  position: absolute; inset: -1px -1px auto -1px;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--warning));
  border-radius: 28px 28px 0 0;
}
.cal-day {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.cal-day__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}
.cal-day__date {
  font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--fg);
}
.cal-ring {
  width: 200px; height: 200px; margin: 0 auto 28px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cal-ring svg { transform: rotate(-90deg); }
.cal-ring__inner {
  position: absolute; text-align: center;
}
.cal-ring__value {
  font-family: var(--font-display); font-weight: 500;
  font-size: 48px; line-height: 1; color: var(--fg);
  letter-spacing: -0.02em;
}
.cal-ring__unit {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted); margin-top: 6px; text-transform: uppercase;
}
.cal-meals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.cal-meal {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.cal-meal__icon { font-size: 22px; margin-bottom: 6px; }
.cal-meal__name {
  font-size: 11px; font-weight: 600; color: var(--fg); letter-spacing: 0.02em;
}
.cal-meal__cal {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px;
}

/* ===== SECTIONS ===== */
.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section__label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
  display: inline-flex; gap: 12px; align-items: center;
}
.section__label::before { content: "—"; color: var(--border-2); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.03; letter-spacing: -0.025em;
  font-weight: 450;
  margin: 0 0 56px;
  max-width: 720px;
}
.section__title em {
  font-style: italic; color: var(--accent-strong); font-weight: 500;
}

/* ===== CAPABILITIES ===== */
.caps {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 460px;
}
.cap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.cap:nth-child(1) { grid-row: span 2; padding: 36px 32px; background: var(--surface); }
.cap__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.cap__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.015em; margin: 0 0 10px;
}
.cap__body {
  color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0;
  flex: 1;
}
.cap__tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.15em;
  color: var(--muted-2); margin-top: 18px;
  text-transform: uppercase;
}
.cap--feature {
  background: var(--fg);
  color: var(--bg);
  position: relative;
}
.cap--feature .cap__title { color: var(--bg); }
.cap--feature .cap__body { color: rgba(251, 247, 240, 0.7); }
.cap--feature .cap__icon { background: rgba(101, 163, 13, 0.15); color: var(--accent-soft); }
.cap--feature .cap__tag { color: rgba(251, 247, 240, 0.45); }
.cap--feature::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.25;
}

/* ===== TIMELINE (Workflow) ===== */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.timeline__step {
  position: relative;
  padding: 0 0 48px 28px;
}
.timeline__step:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -41px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.timeline__dot::after {
  content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}
.timeline__num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted-2); text-transform: uppercase; margin-bottom: 8px;
}
.timeline__heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; letter-spacing: -0.015em; margin: 0 0 10px;
}
.timeline__body { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; max-width: 540px; }

/* ===== PRICING ===== */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
}
.plan--pro {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.plan__badge {
  position: absolute; top: -10px; right: 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.plan__name {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.plan--pro .plan__name { color: rgba(251, 247, 240, 0.55); }
.plan__price {
  font-family: var(--font-display); font-weight: 500;
  font-size: 56px; letter-spacing: -0.025em; line-height: 1; margin-bottom: 6px;
}
.plan__per { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.plan--pro .plan__per { color: rgba(251, 247, 240, 0.55); }
.plan__features {
  list-style: none; padding: 0; margin: 28px 0 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.plan__features li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: var(--muted);
}
.plan--pro .plan__features li { color: rgba(251, 247, 240, 0.78); }
.plan__features li::before {
  content: ""; width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; margin-top: 8px; flex-shrink: 0;
}
.plan__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  transition: background .2s ease;
}
.plan__cta:hover { background: var(--accent-strong); }
.plan--free .plan__cta { background: var(--fg); }
.plan--free .plan__cta:hover { background: var(--accent-strong); color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 60px 0 40px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  margin-bottom: 48px;
}
.site-footer__brand {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 28px; letter-spacing: -0.01em; margin-bottom: 12px;
}
.site-footer__tag { color: var(--muted); font-size: 14px; max-width: 320px; line-height: 1.55; }
.site-footer__col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-2);
  margin: 0 0 14px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: 14px; color: var(--fg); transition: color .2s ease; }
.site-footer__col a:hover { color: var(--accent-strong); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted-2); text-transform: uppercase;
}

/* ===== LEGAL PAGES ===== */
.legal-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 80px 24px 100px;
}
.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 36px;
}
.legal__back:hover { color: var(--accent-strong); }
.legal__title {
  font-family: var(--font-display); font-weight: 450;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 12px;
}
.legal__title em { font-style: italic; color: var(--accent-strong); font-weight: 500; }
.legal__meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 48px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.legal { font-size: 16px; line-height: 1.7; color: var(--fg); }
.legal h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; letter-spacing: -0.015em;
  margin: 48px 0 16px;
}
.legal h2 em { font-style: italic; color: var(--accent-strong); }
.legal h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 17px; margin: 28px 0 10px;
}
.legal p { margin: 12px 0; color: var(--muted); }
.legal ul { padding-left: 22px; color: var(--muted); }
.legal ul li { margin: 8px 0; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--accent-strong); border-bottom: 1px solid var(--accent-soft); }
.legal a:hover { background: var(--accent-soft); }
.legal code {
  font-family: var(--font-mono); font-size: 13.5px;
  background: var(--surface-2); padding: 2px 7px; border-radius: 4px; color: var(--fg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .hero { padding: 56px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .nav { display: none; }
  .nav__cta { display: inline-flex; }
  .section { padding: 64px 0; }
  .caps { grid-template-columns: 1fr; grid-template-rows: none; min-height: auto; }
  .cap:nth-child(1) { grid-row: auto; }
  .pricing { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ===== REVEAL ANIMATION (CSS-only) ===== */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.16s; }
  .reveal:nth-child(4) { animation-delay: 0.24s; }
  .reveal:nth-child(5) { animation-delay: 0.32s; }
}
