/* Yorvana Design DNA — Phase 4
   DNA Hash: e6d7210a14cc
   Typography: rounded-friendly | Components: pill-playful | Layout: mixed-width-varied
   Color: bold-color-blocking (forest + marigold) | Texture: liquid-organic + grain
   Do not edit by hand — regenerate via the frontend-design-engine. */

:root {
  /* Palette — no teal, no SaaS blue, no rust, no monochrome, no pastels, no AI violet */
  --ink: #14261D;
  --ink-soft: #3B4E44;        /* AA-safe secondary text on light */
  --forest: #0D5C3E;
  --forest-deep: #083E2A;
  --marigold: #FFB020;
  --marigold-deep: #8A5E00;   /* AA-safe marigold for small text on light */
  --berry: #C0345E;
  --mist: #EAF3EC;
  --mist-2: #DCEBE0;
  --surface: #FFFFFF;
  --surface-soft: #F6F8F4;    /* warm off-white, never cream/sand */

  /* Type */
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  /* Motion floor (strong easings; never ease-in on UI) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shape */
  --radius: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px -22px rgba(8, 62, 42, 0.45);
  --shadow-pop: 0 10px 0 0 var(--forest-deep);

  --maxw: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 800; }

/* Grain overlay (textural mutation) — subtle, warms flat surfaces */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 780px; }
.section { position: relative; padding-block: clamp(3.75rem, 8vw, 7rem); z-index: 2; }
.section--mist { background: var(--mist); }
.section--soft { background: var(--surface-soft); }
.section--forest { background: var(--forest); color: #fff; }
.section--forest h1, .section--forest h2, .section--forest h3 { color: #fff; }
.section--deep { background: var(--forest-deep); color: #EAF3EC; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.02em;
  color: var(--forest); background: var(--mist);
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.section--forest .eyebrow, .section--deep .eyebrow { color: var(--forest-deep); background: var(--marigold); }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--ink-soft); max-width: 46ch; }
.section--forest .lead, .section--deep .lead { color: #D7E8DC; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev > :first-child { order: 2; }

/* ---------- Buttons (bounce-spring, pill-playful) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 200ms var(--spring), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.section--forest .btn-ghost, .section--deep .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 0 -2px var(--marigold-deep); }
  .btn-forest:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 0 -2px var(--forest-deep); }
  .btn-ghost:hover { transform: translateY(-3px) scale(1.02); background: rgba(13,92,62,0.06); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1.5px solid var(--mist-2);
  box-shadow: var(--shadow-soft);
  transition: transform 260ms var(--spring), box-shadow 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -24px rgba(8,62,42,0.5); }
}
.card__icon {
  width: 3rem; height: 3rem; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--mist); color: var(--forest);
}
.card__icon i { font-size: 1.3rem; line-height: 1; }
/* Cards sit on white regardless of section tint — keep their headings dark for contrast */
.section--forest .card h1, .section--forest .card h2, .section--forest .card h3,
.section--deep .card h1, .section--deep .card h2, .section--deep .card h3 { color: var(--ink); }
.chip {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--forest-deep); background: var(--marigold);
  padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
}
.chip--soon { background: var(--mist-2); color: var(--forest-deep); }

/* ---------- Organic blobs (svg-shape mutation) ---------- */
/* z-index:-1 keeps blobs in the background, behind cards, frames and text */
.blob { position: absolute; z-index: -1; pointer-events: none; filter: blur(2px); opacity: 0.9; }
.blob--marigold { color: var(--marigold); }
.blob--mist { color: var(--mist); }
.blob--forest { color: var(--forest); }

/* Subtle independent drift for the hero bubbles */
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(2.5%, 3.5%) scale(1.05) rotate(3deg); }
  66%  { transform: translate(-2%, 1.5%) scale(0.97) rotate(-2deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}
[data-section-type="hero"] .blob {
  animation: blob-drift 19s var(--ease-in-out) infinite;
  will-change: transform;
}
[data-section-type="hero"] .blob--marigold {
  animation-duration: 24s;
  animation-direction: reverse;
  animation-delay: -7s;
}

/* Section curve dividers (section-overlap mutation) */
.curve { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 2; }
.curve svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }

/* ---------- Product / UI mockup frames ---------- */
.frame {
  background: var(--surface); border-radius: 22px; overflow: hidden;
  border: 1.5px solid var(--mist-2);
  box-shadow: 0 40px 80px -40px rgba(8,62,42,0.55);
  color: var(--ink); /* frames are white cards — never inherit a dark-section's white text */
}
.frame__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; background: var(--surface-soft); border-bottom: 1px solid var(--mist-2); }
.frame__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mist-2); }
.frame__body { padding: clamp(1rem, 2.5vw, 1.5rem); }
.metric { font-family: var(--font-display); font-weight: 700; line-height: 1; color: var(--forest); }
.bar-track { height: 12px; border-radius: var(--radius-pill); background: var(--mist-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-pill); background: var(--forest); }
.bar-fill--old { background: var(--berry); }
.bar-fill--gold { background: var(--marigold); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--mist-2);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 11px; background: var(--forest); display: grid; place-items: center; color: var(--marigold); font-weight: 700; }
.nav__links { display: none; align-items: center; gap: 1.6rem; }
.nav__links a { font-weight: 700; color: var(--ink-soft); transition: color 160ms var(--ease-out); }
.nav__links a:hover { color: var(--forest); }
.nav__cta { display: none; align-items: center; gap: 0.6rem; }
.nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; background: var(--mist); border-radius: 12px; cursor: pointer; color: var(--ink); }
@media (min-width: 960px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile menu — full-viewport overlay */
.mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 100; display: none; flex-direction: column;
  overflow-y: auto; padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: var(--forest); color: #fff;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: none; background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.mobile-menu a { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: #fff; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.mobile-menu__cta { margin-top: auto; display: grid; gap: 0.75rem; padding-top: 1.5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-deep); color: #CFE3D6; z-index: 2; position: relative; }
.footer a { color: #CFE3D6; transition: color 160ms var(--ease-out); }
.footer a:hover { color: var(--marigold); }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: 0.02em; margin-bottom: 0.9rem; }
/* Buttons keep their own text color inside the footer (beat the .footer a rule) */
.footer a.btn-primary { color: var(--ink); }
.footer a.btn-forest { color: #fff; }
.footer a.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.footer a.btn:hover { color: var(--ink); }
.footer a.btn-ghost:hover { color: #fff; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--mist-2); border-radius: 14px;
  padding: 0.8rem 1rem; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(13,92,62,0.12);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 640ms var(--ease-out), transform 640ms var(--spring); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(26px); transition: opacity 620ms var(--ease-out), transform 620ms var(--spring); }
[data-reveal-group].in > * { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 0.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: var(--mist); color: var(--forest-deep); font-weight: 700; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); font-size: 0.95rem; }
.divider-dot { color: var(--forest); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .blob { display: none; }
}
