/* KIN marketing site — shared design system.
   Tokens match the app's own FlutterFlowTheme (lib/flutter_flow/flutter_flow_theme.dart)
   so the website and the app read as one brand. */

:root {
  --forest: #0B3D2E;
  --forest-strong: #082B20;
  --forest-soft: #123F30;
  --gold: #8F7032;
  --gold-bright: #D4AF37;
  --cream: #F1EDE4;
  --surface: #FFFFFF;
  --surface-sunken: #E8E1D2;
  --ink: #241F17;
  --ink-soft: #6B6152;
  --border: #D9D1C2;
  --error: #BA1A1A;
  --success: #2D4A3E;
  --shadow-sm: 0 4px 14px -6px rgba(11, 61, 46, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(11, 61, 46, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-brand-logo { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: 13.5px;
  color: var(--ink-soft); letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-cta {
  background: var(--forest); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 800 !important; font-size: 13px !important;
}
.nav-cta:hover { background: var(--forest-strong); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px 20px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.nav-open a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.nav-open a:last-child { border-bottom: none; }
  .nav-links.nav-open .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- Sections & type ---------- */
section { padding: 72px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
  font-weight: 800; color: var(--gold); margin: 0 0 10px;
}
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; color: var(--ink); }
p.lede { color: var(--ink-soft); font-size: 17px; max-width: 62ch; }
.muted { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 14.5px;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-strong); }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-gold { background: var(--gold-bright); color: var(--forest-strong); }

/* ---------- Cards / stats ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.stat-tile { background: var(--surface); padding: 24px 20px; text-align: center; }
.stat-tile .num { font-size: 32px; font-weight: 800; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat-tile .lab { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-strong); color: var(--cream); padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { text-decoration: none; color: var(--cream); opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(241,237,228,0.15); }
.footer-links { display: flex; gap: 24px; font-size: 13.5px; font-weight: 700; flex-wrap: wrap; }
.footer-fine { padding-top: 20px; font-size: 12.5px; color: rgba(241,237,228,0.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(241,237,228,0.25);
  display: flex; align-items: center; justify-content: center; opacity: 0.85; transition: opacity 0.15s, border-color 0.15s;
}
.footer-social a:hover { opacity: 1; border-color: var(--gold-bright); }
.footer-social svg { width: 16px; height: 16px; fill: var(--cream); }

/* ---------- Feature preview: phone mockup ---------- */
/* A reusable "what this actually looks like in the app" module - shared
   across every feature page (Marketplace, Exchange, KIN Quest, Job Board,
   Community Events, KINDEX) rather than duplicated per page. Screens are
   built from the real layout/copy/palette in the Flutter app, not stock
   art - see each page's own preview section for the specific source. */
.preview-section { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .preview-section { grid-template-columns: 1fr; justify-items: center; } }
.preview-copy { max-width: 46ch; }
@media (max-width: 820px) { .preview-copy { text-align: center; } }

.phone { width: 272px; height: 556px; border-radius: 38px; background: #0a0a0a; padding: 10px; box-shadow: var(--shadow-lg); flex: none; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative; background: var(--cream); font-family: 'Plus Jakarta Sans', sans-serif; }
.phone-screen.dark { background: var(--forest-strong); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 17px; background: #0a0a0a; border-radius: 12px; z-index: 5; }

.mock-appbar { padding: 32px 16px 10px; display: flex; align-items: center; gap: 8px; }
.mock-appbar span { color: var(--ink); font-weight: 800; font-size: 14.5px; }
.phone-screen.dark .mock-appbar span { color: var(--cream); }
.mock-body { padding: 2px 12px 12px; }

.mock-card { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); padding: 12px; margin-bottom: 10px; }
.phone-screen.dark .mock-card { background: rgba(241,237,228,0.06); border-color: rgba(241,237,228,0.14); }
.mock-card.gold { border-color: rgba(212,175,55,0.55); box-shadow: 0 0 0 1px rgba(212,175,55,0.18); }
.mock-row { display: flex; gap: 10px; align-items: center; }
.mock-thumb { width: 46px; height: 46px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--surface-sunken); }
.mock-title { font-weight: 800; font-size: 12.5px; color: var(--ink); line-height: 1.3; }
.phone-screen.dark .mock-title { color: var(--cream); }
.mock-sub { font-size: 10.5px; color: var(--ink-soft); margin-top: 2px; }
.phone-screen.dark .mock-sub { color: rgba(241,237,228,0.65); }
.mock-chip { display: inline-flex; align-items: center; gap: 3px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 8.5px; font-weight: 700; letter-spacing: 0.03em; padding: 2px 7px; border-radius: 999px; background: var(--surface-sunken); color: var(--gold); }
.phone-screen.dark .mock-chip { background: rgba(212,175,55,0.16); }
.mock-price { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 12px; color: var(--forest); }
.phone-screen.dark .mock-price { color: var(--gold-bright); }

.preview-badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.preview-badge.live { background: rgba(45,74,62,0.1); color: var(--success); }
.preview-badge.live::before { content: "●"; }
.preview-badge.dev { background: rgba(212,175,55,0.16); color: var(--gold); }
.preview-badge.dev::before { content: "◐"; }

/* Dev-status banner - the honest "not live yet" framing for a page whose
   preview is a mockup of what's coming, not a screenshot of what's
   shipped today. Softer than a hard date: "in active development,"
   never a specific promised day. */
.dev-status-banner { background: var(--forest-strong); color: var(--cream); border-radius: var(--radius-md); padding: 22px 26px; margin-top: 28px; }
.dev-status-banner .eyebrow { color: var(--gold-bright); margin-bottom: 8px; }
.dev-status-banner p { color: rgba(241,237,228,0.82); font-size: 14px; margin: 0; }

/* ---------- Legal doc pages ---------- */
.legal-doc { max-width: 74ch; }
.legal-doc h2 { font-size: 15px; margin-top: 32px; }
.legal-doc p, .legal-doc li { color: var(--ink); font-size: 15px; }
.legal-meta { color: var(--ink-soft); font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 24px; }

/* ---------- Keyboard accessibility ----------
   Added 2026-08-27 during the site audit. Only two form pages defined any
   focus styling, so a keyboard user tabbing the nav, the CTAs or the footer
   got nothing but the browser default - which varies, and is close to
   invisible against the dark forest sections.

   :focus-visible rather than :focus, so the ring appears for keyboard and
   assistive-tech navigation but never on a mouse click. Gold reads against
   both the cream and forest grounds (5.8:1 on forest, and the dark offset
   ring keeps it visible on cream). */
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On the dark sections the gold ring alone can sit close to the background,
   so it gets a cream halo via box-shadow for separation. */
.spotlight-section :focus-visible,
.founder-section :focus-visible,
.site-footer :focus-visible,
.claim-hero :focus-visible,
.hiw-hero :focus-visible,
.fx-hero :focus-visible,
.mission-hero :focus-visible {
  outline-color: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(241,237,228,0.35);
}

/* Lets a keyboard or screen-reader user jump straight past the nav, which
   is otherwise ~6 tab stops repeated on every single page. Hidden until
   focused, then pinned top-left. */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 999;
  background: var(--forest); color: var(--cream);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Brand watermark system ----------
   Five treatments picked from the "Making the mark unmissable" design
   study (2026-08-28), applied to shared components rather than
   per-page markup - every page that already uses .eyebrow, .site-footer,
   a forest hero, .feature-card or .trust-box picks these up automatically,
   including any new page added later. Same transparent emblem PNG the
   app's own splash screen uses (KIN_Logo_Assets/02_flutterflow/
   splash_logo_1024_transparent.png), copied in as assets/kin-mark.png. */

/* Chapter Mark: a small, solid, fully-opaque mark before every section
   eyebrow, site-wide - not a watermark, a printer's colophon. Uses
   currentColor so it always matches whatever gold the eyebrow text is
   already set to (--gold-bright on dark hero sections, --gold on light
   ones), with no separate light/dark rule needed. */
.eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 22px;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-58%);
  width: 14px; height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url('kin-mark.png');
  mask-image: url('kin-mark.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* Footer Seal: the mark bled oversized off the bottom of the footer,
   only its upper arc ever visible - a wax seal stamped at the base of
   every page, since every page's footer ends the same way. */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute; left: 50%; bottom: -400px;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background-image: url('kin-mark.png');
  background-size: contain; background-repeat: no-repeat;
  opacity: 0.11; pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }

/* Corner Bleed: cropped by the frame's edge, oversized, tucked into the
   corner a left-aligned hero's copy never reaches - present every time
   without competing with the headline. Shared across every page whose
   hero is a plain forest box (as opposed to index.html's hero, which
   already has the live map preview filling that same corner). */
.claim-hero, .hiw-hero, .fx-hero, .mission-hero, .kx-hero {
  position: relative; overflow: hidden;
}
.claim-hero::after, .hiw-hero::after, .fx-hero::after,
.mission-hero::after, .kx-hero::after {
  content: "";
  position: absolute; right: -110px; bottom: -130px;
  width: 440px; height: 440px;
  background-image: url('kin-mark.png');
  background-size: contain; background-repeat: no-repeat;
  opacity: 0.14; pointer-events: none;
}
.claim-hero .container, .hiw-hero .container, .fx-hero .container,
.mission-hero .container, .kx-hero .container {
  position: relative; z-index: 1;
}

/* Woven Texture: tiled at postage-stamp scale and faded almost to
   nothing behind light, content-dense cards - paper grain, not a logo,
   so it never fights the card's own text. */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('kin-mark.png');
  background-size: 64px 61px; background-repeat: repeat;
  opacity: 0.05; filter: grayscale(1);
  pointer-events: none;
}
.feature-card > * { position: relative; z-index: 1; }

/* Flat Impression: the mark flattened to one solid tone first, then
   faded and centered, so it reads as an emblem pressed into the box
   rather than a shrunk-down, muddy version of the full-color logo. */
.trust-box { position: relative; overflow: hidden; }
.trust-box::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background-color: var(--gold-bright);
  -webkit-mask-image: url('kin-mark.png');
  mask-image: url('kin-mark.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  opacity: 0.09; pointer-events: none;
}
.trust-box > * { position: relative; z-index: 1; }

/* On phones the hero/footer/trust-box marks are the same fixed pixel
   size against a much narrower box, so they read as dominant instead
   of a subtle accent - found via mobile-viewport testing (2026-08-30).
   Scaled down (not hidden) so the treatment still shows up everywhere,
   just proportional to the smaller frame. */
@media (max-width: 760px) {
  .claim-hero::after, .hiw-hero::after, .fx-hero::after,
  .mission-hero::after, .kx-hero::after {
    right: -70px; bottom: -80px; width: 260px; height: 260px;
  }
  .site-footer::before { bottom: -260px; width: 440px; height: 440px; }
  .trust-box::after { width: 200px; height: 200px; }
}
