/* ============================================================
   kordi.css — shared design system for kordiave.com
   Warm editorial. App-true: Inter + Fraunces, cream surfaces,
   flat green #076943 (never gradient on the brand accent).
   Tokens mirror mobile/DESIGN_SYSTEM.md + claude-design refs.
   ============================================================ */

:root {
  /* Canvas — warm cream paper */
  --bg:        #faf7f2;
  --bg-warm:   #f4f3ef;   /* cards, alt bands */
  --bg-deep:   #efece6;   /* deeper section band */
  --surface:   #ffffff;

  /* Ink — warm-leaning neutrals */
  --ink:       #1a1a1a;
  --ink-2:     #4a4a4a;
  --ink-muted: #8a8578;   /* eyebrows, captions (warm) */
  --line:      #e7e5e0;
  --line-soft: rgba(26, 22, 14, 0.06);

  /* Brand — flat green, NEVER a gradient on the accent */
  --brand:      #076943;
  --brand-deep: #054d34;
  --brand-ink:  #ffffff;
  --brand-wash: rgba(7, 105, 67, 0.08);
  --brand-glow: rgba(7, 105, 67, 0.14);

  /* Capsules (app pill language) */
  --offering:    #fef3c7;  --offering-fg: #92400e;
  --asking:      #dcfce7;  --asking-fg:   #14532d;
  --pill-dark:   #0a0a0a;  --pill-dark-fg:#ffffff;
  --trend-up:    #ef4444;

  /* Feature accents (app-true; tints only, never primary brand) */
  --c-events:  #3b82f6;
  --c-perks:   #d97706;
  --c-sparks:  #7c3aed;
  --c-circles: #0d9488;
  --c-relay:   #e11d48;
  --c-goals:   #059669;
  --c-guides:  #0284c7;
  --c-moments: #b45309;

  /* Neutral dark (app-true; for footer / dark bands — not navy) */
  --night:     #0f0e0c;
  --night-2:   #1c1b18;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(26, 22, 14, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 22, 14, 0.06);
  --shadow-lg: 0 18px 48px rgba(26, 22, 14, 0.10);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Rhythm */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --maxw: 1120px;
  --maxw-narrow: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Faint paper grain — premium editorial warmth, not visible noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { color: var(--ink-2); }
a  { color: var(--brand); text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--brand);
  display: inline-block;
  opacity: 0.65;
}
.eyebrow--plain::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); line-height: 1.55; }

/* ── Layout ─────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(44px, 6.5vw, 80px); }
.section--warm { background: var(--bg-warm); }
.section--deep { background: var(--bg-deep); }
.kicker-block { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn-brand { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-brand:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.92rem; }

/* ── Store badges (real, clickable) ─────────────────────── */
.store-badges { display: flex; flex-direction: column; gap: 12px; }
.store-badges__row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px; border-radius: 14px;
  background: var(--night); color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge svg { flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge__small { font-size: 0.6rem; letter-spacing: 0.04em; opacity: 0.82; text-transform: uppercase; }
.store-badge__big { font-size: 1.05rem; font-weight: 600; }
.store-note { font-size: 0.82rem; color: var(--ink-muted); letter-spacing: 0.02em; }

/* ── Site header ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header { transition: box-shadow 0.3s var(--ease); }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(26, 22, 14, 0.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--brand); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.wordmark__spark { color: var(--brand); display: inline-flex; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a.navlink { color: var(--ink-2); font-size: 0.95rem; font-weight: 500; transition: color 0.2s var(--ease); }
.site-nav a.navlink:hover { color: var(--ink); }
@media (max-width: 720px) { .site-nav .navlink { display: none; } }

/* ── Site footer ────────────────────────────────────────── */
.site-footer { background: var(--night); color: #efeee9; padding-block: clamp(36px, 5vw, 52px); }
.site-footer .wordmark { color: #fff; }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.site-footer__tag { color: rgba(255,255,255,0.6); max-width: 320px; font-size: 0.95rem; margin-top: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: #fff; }
.site-footer__base { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer__base p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ── Pills (app language) ───────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 5px 11px; border-radius: var(--r-pill); }
.pill--offering { background: var(--offering); color: var(--offering-fg); }
.pill--asking   { background: var(--asking);   color: var(--asking-fg); }
.pill--neutral  { background: rgba(10,10,10,0.05); color: var(--ink-2); }
.pill--dark     { background: var(--pill-dark); color: var(--pill-dark-fg); }

/* ── Product peek cards (CSS-rendered, app-exact) ───────── */
.peek-card {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  width: 100%;
}
.peek-card__head { display: flex; align-items: center; gap: 10px; }
.peek-avatar { width: 34px; height: 34px; border-radius: var(--r-pill); flex: none; display: grid; place-items: center; font-size: 1.1rem; }
.peek-card__name { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.peek-card__date { font-size: 0.8rem; color: var(--ink-muted); margin-left: auto; }
.peek-card__pills { display: flex; gap: 8px; margin: 12px 0 10px; flex-wrap: wrap; }
.peek-card__title { font-weight: 600; font-size: 1.05rem; color: var(--ink); font-family: var(--sans); line-height: 1.3; }
.peek-card__desc { font-size: 0.9rem; color: var(--ink-2); margin-top: 5px; line-height: 1.45; }
.peek-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.peek-card__interested { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-2); }
.peek-trend { color: var(--trend-up); }
.peek-avatars { display: inline-flex; }
.peek-avatars span, .peek-avatars img { width: 26px; height: 26px; border-radius: var(--r-pill); display: grid; place-items: center; font-size: 0.85rem; margin-left: -7px; border: 2px solid var(--bg-warm); }
.peek-avatars > :first-child { margin-left: 0; }

/* ── Scroll reveal (toned-down; js toggles .visible) ────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.stagger-child { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.stagger-child.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-child { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Premium details ────────────────────────────────────── */
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ── Brand logo (the green kordi sign) ──────────────────── */
.brand-logo { display: block; height: 38px; width: auto; border-radius: 5px; }
.site-footer .brand-logo { height: 34px; }

/* ── Store badges: "coming soon" (greyed, not clickable) ── */
.store-badges__soon { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.26em; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 9px; }
.store-badges__soon::before { content: ""; width: 18px; height: 1.5px; background: var(--ink-muted); opacity: 0.5; }
.store-badges--soon { opacity: 1; }
.store-badges--soon .store-badge { filter: grayscale(1); opacity: 0.4; pointer-events: none; cursor: default; box-shadow: none; }
.store-badges--soon .store-badge:hover { transform: none; }
