/* ============ Calina marketing site — production stylesheet ============ */
/* Tokens from DESIGN_SYSTEM.md */

:root {
  --page-warm: #F1EDE4;
  --surface-card: #FBFAF6;
  --surface-screen: #F6F3EC;
  --ink-900: #384C37;
  --ink-700: #4A5646;
  --ink-600: #5C6B58;
  --ink-muted: #6E7568;
  --lilac-700: #6F6791;
  --lilac-600: #8E85AC;
  --lilac-400: #B4A9D4;
  --sage: #7B8A73;
  --mist: #7E8F73;
  --clay-600: #B08968;
  --clay-300: #D8B38C;
  --text-faint: #8A9182;
  --text-label: #A7AD9E;
  --hairline: rgba(56,76,55,0.06);
  --hairline-strong: rgba(56,76,55,0.1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--page-warm);
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--ink-900);
  overflow-x: hidden;
}
a { color: var(--lilac-600); text-decoration: none; }
a:hover { color: var(--lilac-700); }
::selection { background: rgba(196,185,224,0.4); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Playfair Display', serif; margin: 0; }
em, .em { font-style: italic; color: var(--lilac-600); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.container-mid { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.container-legal { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ---------- Motion ---------- */
@keyframes cw-ring    { from { stroke-dashoffset: var(--c0); } to { stroke-dashoffset: var(--c1); } }
@keyframes cw-breathe { 0%,100% { transform: scale(0.96); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes cw-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(0.22,1,0.36,1), transform .8s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.hover-lift { transition: transform .8s cubic-bezier(0.22,1,0.36,1), box-shadow .8s cubic-bezier(0.22,1,0.36,1); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 54px -30px rgba(56,76,55,0.5); }

.ring-anim { animation-play-state: paused; }
[data-reveal].is-visible .ring-anim { animation-play-state: running; }

.float { animation: cw-float 9s ease-in-out infinite; }
.breathe { animation: cw-breathe 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .float, .breathe { animation: none !important; }
  .ring-anim { animation: none !important; stroke-dashoffset: var(--c1) !important; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,237,228,0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 15px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-wordmark { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 38px; color: var(--ink-900); letter-spacing: -0.01em; }
.logo-wordmark em { font-style: italic; color: var(--lilac-600); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { color: var(--ink-600); font-size: 14.5px; font-weight: 500; }
.btn-primary {
  display: inline-block;
  background: var(--ink-900); color: var(--surface-screen);
  font-weight: 600; border-radius: 15px;
  box-shadow: 0 16px 30px -14px rgba(56,76,55,0.72);
  transition: background .2s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: #2F4632; color: var(--surface-screen); }
.nav-cta { font-size: 14px; padding: 11px 20px; border-radius: 13px; box-shadow: 0 10px 22px -12px rgba(56,76,55,0.7); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle svg { display: block; }
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 32px 22px;
  background: rgba(241,237,228,0.98);
  border-bottom: 1px solid var(--hairline);
}
.nav-mobile-panel a { padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--ink-600); border-top: 1px solid var(--hairline-strong); }
.nav-mobile-panel a:first-child { border-top: none; }
.nav-mobile-panel .btn-primary { text-align: center; margin-top: 10px; padding: 13px 20px; }
.nav.is-open .nav-mobile-panel { display: flex; }

@media (max-width: 760px) {
  .nav-links > .nav-link, .nav-links > .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 22% 6%, #F1EDF7 0%, #ECEFE6 52%, #E7ECDE 100%);
}
.hero-glow-a, .hero-glow-b { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-glow-a { top: -160px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(196,185,224,0.32) 0%, rgba(196,185,224,0) 70%); }
.hero-glow-b { bottom: -180px; left: -150px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(169,179,160,0.28) 0%, rgba(169,179,160,0) 70%); }
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 88px 32px 100px;
  display: flex; align-items: center; gap: 60px; flex-wrap: wrap; position: relative;
}
.hero-copy { flex: 1; min-width: 320px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(142,133,172,0.1); border-radius: 30px; padding: 8px 16px; margin-bottom: 24px;
}
.eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lilac-600); }
.eyebrow-pill span.label { font-size: 12.5px; font-weight: 600; color: var(--lilac-700); }
.hero h1 { font-weight: 500; font-size: 60px; line-height: 1.03; letter-spacing: -0.015em; color: var(--ink-900); margin: 0 0 22px; }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--ink-600); max-width: 470px; margin: 0 0 30px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.btn-hero { font-size: 16px; padding: 16px 30px; border-radius: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-700); font-size: 16px; font-weight: 600; padding: 14px 4px; }
.badge-live {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(148,162,136,0.14); border-radius: 30px; padding: 9px 16px;
}
.badge-live .pulse { display: inline-flex; width: 7px; height: 7px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 4px rgba(126,143,115,0.18); }
.badge-live span.label { font-size: 13px; color: var(--ink-700); font-weight: 600; }

.product-card-wrap { flex: 0 1 300px; width: 100%; max-width: 300px; display: flex; justify-content: center; }
.product-card {
  width: 100%; max-width: 288px; background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 34px; padding: 28px 26px 26px; box-shadow: 0 40px 74px -28px rgba(56,76,55,0.5);
}
.product-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.product-card-head .title { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--ink-900); }
.ring-main-wrap { position: relative; width: 176px; height: 176px; margin: 0 auto 18px; }
.ring-main-glow { position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, rgba(216,179,140,0.16) 0%, rgba(216,179,140,0) 72%); }
.ring-main-labels { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-main-labels .eaten { font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--clay-600); font-weight: 700; }
.ring-main-labels .num { font-family: 'Playfair Display', serif; font-size: 44px; color: var(--ink-900); line-height: 0.9; }
.ring-main-labels .of { font-size: 10.5px; color: #9AA192; }
.macro-rings { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.macro-ring-item { text-align: center; }
.macro-ring-wrap { position: relative; width: 48px; height: 48px; margin: 0 auto 5px; }
.macro-ring-wrap .val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 14px; color: var(--ink-900); }
.macro-ring-item .macro-label { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.insight-box { background: rgba(142,133,172,0.08); border-radius: 16px; padding: 12px 14px; display: flex; gap: 9px; align-items: flex-start; }
.insight-box .text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 12.5px; color: #4A5142; line-height: 1.42; }

@media (max-width: 900px) {
  .hero h1 { font-size: 42px; }
  .hero-inner { padding: 56px 24px 70px; gap: 40px; justify-content: center; }
  .product-card-wrap { margin: 0 auto; }
}

/* ---------- Section shared ---------- */
.section { padding: 104px 32px; }
.section-warm { background: var(--page-warm); }
.section-card { background: var(--surface-card); }
.section-head { text-align: center; margin: 0 auto 58px; }
.section-head.narrow { max-width: 720px; }
.section-head.narrower { max-width: 700px; }
.section-head.narrowest { max-width: 640px; }
.eyebrow-label {
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lilac-600); font-weight: 700; margin-bottom: 18px;
}
.section-head h2 { font-weight: 500; font-size: 44px; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink-900); margin: 0 0 20px; }
.section-head .lead { font-size: 17px; line-height: 1.62; color: var(--ink-600); margin: 0 auto; max-width: 560px; }

@media (max-width: 700px) {
  .section { padding: 68px 24px; }
  .section-head h2 { font-size: 30px; }
}

/* ---------- Problem list ---------- */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 60px; row-gap: 4px;
}
.problem-row { display: flex; align-items: baseline; gap: 18px; padding: 24px 0; border-top: 1px solid var(--hairline-strong); }
.problem-row.last { border-bottom: 1px solid var(--hairline-strong); }
.problem-num { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; color: var(--lilac-400); flex-shrink: 0; }
.problem-title { font-size: 17px; font-weight: 700; color: var(--ink-900); margin-bottom: 5px; }
.problem-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-faint); }
.problem-closing { display: flex; align-items: center; padding: 24px 0; border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong); }
.problem-closing .text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; color: var(--lilac-600); line-height: 1.4; }

/* ---------- Solution steps ---------- */
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps-line {
  position: absolute; top: 36px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(56,76,55,0.16) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.step { position: relative; text-align: center; padding: 0 18px; }
.step-ring-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 22px; background: var(--surface-card); border-radius: 50%; }
.step-ring-wrap .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 22px; color: var(--ink-900); }
.step h3 { font-weight: 500; font-size: 22px; color: var(--ink-900); margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

@media (max-width: 700px) {
  .steps-line { display: none; }
}

/* ---------- Testimonials ---------- */
.stories-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.story-featured {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #EEEAF5 0%, #E9ECE0 100%);
  border: 1px solid var(--hairline); border-radius: 30px; padding: 44px 42px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.story-featured .quote-mark {
  position: absolute; top: 20px; right: 30px;
  font-family: 'Playfair Display', serif; font-size: 130px; line-height: 1;
  color: rgba(142,133,172,0.14); pointer-events: none;
}
.story-featured .quote { position: relative; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.4; color: #3B4239; margin: 0 0 30px; }
.story-side { display: flex; flex-direction: column; gap: 22px; }
.story-compact {
  flex: 1; background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 26px; padding: 28px 26px; display: flex; flex-direction: column; justify-content: space-between;
}
.story-compact .quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; line-height: 1.5; color: #3B4239; margin: 0 0 18px; }
.story-author { display: flex; align-items: center; gap: 14px; }
.story-author .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(150deg, #C6CBB3, #A9B78F 42%, #A99ED6);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 19px; color: var(--surface-card);
}
.story-author .name { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.story-compact .story-author .avatar { width: 38px; height: 38px; font-size: 16px; }
.story-compact .story-author .name { font-size: 13.5px; }

@media (max-width: 800px) {
  .stories-grid { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.cta-outer { background: var(--surface-card); padding: 30px 32px 96px; }
.cta-panel {
  position: relative; overflow: hidden; max-width: 1080px; margin: 0 auto;
  background: radial-gradient(120% 130% at 20% 0%, #F0ECF6 0%, #ECEFE6 55%, #E8ECDF 100%);
  border: 1px solid var(--hairline); border-radius: 40px; padding: 78px 40px; text-align: center;
}
.cta-glow-a, .cta-glow-b { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-glow-a { top: -100px; left: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(196,185,224,0.3) 0%, rgba(196,185,224,0) 70%); }
.cta-glow-b { bottom: -120px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(169,179,160,0.3) 0%, rgba(169,179,160,0) 70%); }
.cta-content { position: relative; }
.cta-content h2 { font-weight: 500; font-size: 46px; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink-900); margin: 0 0 20px; }
.cta-content .lead { font-size: 18px; line-height: 1.6; color: var(--ink-600); max-width: 500px; margin: 0 auto 34px; }
.cta-content .btn-hero { font-size: 17px; padding: 17px 38px; border-radius: 16px; box-shadow: 0 18px 34px -14px rgba(56,76,55,0.72); }
.cta-fine { margin-top: 20px; color: var(--text-faint); font-size: 13.5px; }

@media (max-width: 700px) {
  .cta-panel { padding: 52px 26px; }
  .cta-content h2 { font-size: 30px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--page-warm); border-top: 1px solid rgba(56,76,55,0.07); padding: 44px 32px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .wordmark { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 34px; color: var(--ink-900); }
.footer-logo .wordmark em { font-style: italic; color: var(--lilac-600); }
.footer-links { display: flex; gap: 24px; font-size: 13.5px; }
.footer-links a { color: var(--ink-600); }
.footer-copy { max-width: 1180px; margin: 24px auto 0; font-size: 12px; color: var(--text-label); }

/* ---------- Legal pages ---------- */
.legal-view { background: var(--page-warm); min-height: 64vh; padding: 74px 32px 96px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--lilac-600); font-weight: 600; margin-bottom: 26px; }
.legal-view h1 { font-weight: 500; font-size: 46px; letter-spacing: -0.015em; color: var(--ink-900); margin: 0 0 10px; }
.legal-date { font-size: 13px; color: var(--text-label); margin-bottom: 36px; }
.legal-body { font-size: 15.5px; line-height: 1.7; color: var(--ink-600); }
.legal-body p { margin: 0 0 24px; }
.legal-body h3 { font-weight: 500; font-size: 22px; color: var(--ink-900); margin: 32px 0 10px; }

@media (max-width: 700px) {
  .legal-view h1 { font-size: 34px; }
}

/* ---------- Contact ---------- */
.contact-lead { font-size: 17px; line-height: 1.62; color: var(--ink-600); max-width: 520px; margin: 0 0 40px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 44px; }
.contact-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 22px; padding: 26px 24px; }
.contact-icon { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.contact-icon.mail { background: rgba(180,169,212,0.16); }
.contact-icon.support { background: rgba(169,179,160,0.22); }
.contact-card .ctitle { font-size: 15px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.contact-card .csub { font-size: 14.5px; color: var(--lilac-600); font-weight: 600; }
.contact-card .csub.muted { color: var(--text-faint); font-weight: 400; }

/* ---------- Waitlist form (final CTA) ---------- */
.waitlist-form { max-width: 540px; margin: 0 auto; }
.waitlist-input-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.waitlist-input {
  flex: 1 1 200px; min-width: 160px; min-height: 52px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 16px;
  padding: 15px 18px; border-radius: 15px;
  border: 1px solid rgba(56,76,55,0.16); background: var(--surface-card);
  color: var(--ink-900);
}
.waitlist-input::placeholder { color: var(--text-label); }
.waitlist-input:focus { outline: none; border-color: var(--lilac-600); }
.waitlist-submit { flex: 0 0 auto; white-space: nowrap; }
.waitlist-msg { min-height: 20px; margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.waitlist-msg.is-success { color: var(--sage); }
.waitlist-msg.is-error { color: var(--clay-600); }
.cta-fine.is-hidden { display: none; }

@media (max-width: 620px) {
  .waitlist-input-row { flex-direction: column; }
  .waitlist-submit { width: 100%; }
}

/* ---------- Mobile refinements (<=480px) ---------- */
@media (max-width: 480px) {
  .container, .container-narrow, .container-mid, .container-legal { padding: 0 20px; }
  .nav-inner { padding: 13px 20px; }
  .logo { gap: 8px; }
  .logo svg { width: 42px; height: 42px; }
  .logo-wordmark { font-size: 29px; }
  .nav-mobile-panel { padding: 8px 20px 18px; }
  .nav-cta { padding: 9px 14px; font-size: 12.5px; }

  .hero-inner { padding: 40px 20px 52px; gap: 32px; }
  .hero-copy { min-width: 0; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .hero-lead { font-size: 15.5px; }
  .eyebrow-pill span.label, .badge-live span.label { font-size: 11.5px; }
  .hero-ctas { gap: 12px; }
  .btn-hero { width: 100%; text-align: center; padding: 15px 20px; font-size: 15px; }
  .link-arrow { padding: 8px 4px; font-size: 14.5px; }
  .product-card { padding: 22px 18px 20px; border-radius: 26px; }
  .ring-main-wrap { width: 148px; height: 148px; }
  .ring-main-labels .num { font-size: 36px; }
  .macro-rings { gap: 14px; }

  .section { padding: 48px 20px; }
  .section-head { margin: 0 auto 40px; }
  .section-head h2 { font-size: 25px; line-height: 1.22; }
  .section-head .lead { font-size: 15px; }
  .eyebrow-label { font-size: 11px; }

  .problem-grid { column-gap: 0; }
  .problem-title { font-size: 16px; }
  .problem-desc { font-size: 14px; }

  .step h3 { font-size: 19px; }

  .story-featured { padding: 30px 24px; }
  .story-featured .quote { font-size: 22px; }
  .story-featured .quote-mark { font-size: 90px; top: 10px; right: 18px; }
  .story-compact { padding: 22px 20px; }

  .cta-outer { padding: 20px 20px 64px; }
  .cta-panel { padding: 40px 22px; border-radius: 28px; }
  .cta-content h2 { font-size: 25px; }
  .cta-content .lead { font-size: 15.5px; }
  .waitlist-submit, .cta-content .btn-hero { width: 100%; }

  .footer { padding: 32px 20px; }
  .footer-logo .wordmark { font-size: 28px; }
  .footer-links { gap: 16px; font-size: 13px; }

  .legal-view { padding: 44px 20px 64px; }
  .legal-view h1 { font-size: 27px; }
  .legal-body { font-size: 15px; }

  .contact-card { padding: 20px 18px; }
}
