/* Epicenter — marketing site. Brand values are the app's own (ChladniPlate.metal / HeroPalette). */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.otf")  format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.otf")   format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Bold.otf")     format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Black.otf")    format("opentype"); font-weight: 900; font-display: swap; }

:root {
  /* ember — the burgundy flood + orange accent (HeroPalette) */
  --ember-base: #270400;
  --ember-deep: #6e240c;
  --orange:     #ff6b30;
  /* storm — the night navy + sky (StormPalette) */
  --storm-base: #031121;
  --storm-deep: #143a5e;
  --sky:        #7cc9ff;
  /* paper — the app's light surface (DashColors) */
  --paper:  #fafafa;
  --ink:    #141414;
  --ink-soft:#6b6b6b;
  --hair:   #e9e9e9;

  --measure: 1120px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }

/* ---- top nav ---------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--measure); margin: 0 auto;
}
.nav .mark {
  font-weight: 900; letter-spacing: 0.16em; font-size: 15px; color: #fff;
  text-shadow: 0 1px 20px rgba(0,0,0,0.5);
}
.nav .mark .dot { color: var(--orange); }
.nav .cta {
  font-weight: 700; font-size: 14px; color: var(--ember-base);
  background: var(--orange); padding: 9px 16px; border-radius: 999px;
  text-decoration: none; transition: transform .15s ease, filter .15s ease;
}
.nav .cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---- hero ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  color: #fff; overflow: hidden;
  background: var(--ember-base); /* shows through if WebGL is unavailable */
}
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* A vignette so the type reads over the brightest lobes of the plate. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 20%, transparent 40%, rgba(15,2,0,0.55) 100%),
    linear-gradient(180deg, rgba(15,2,0,0.35) 0%, transparent 30%, rgba(15,2,0,0.65) 100%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; width: 100%;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 48px; }
.hero .kicker {
  font-weight: 900; letter-spacing: 0.28em; font-size: 13px;
  color: var(--orange); margin: 0 0 20px;
}
.hero h1 {
  font-weight: 900; font-size: clamp(44px, 8vw, 92px); line-height: 0.98;
  letter-spacing: -0.02em; margin: 0; max-width: 15ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero p.lede {
  font-size: clamp(17px, 2.4vw, 22px); color: rgba(255,255,255,0.82);
  max-width: 46ch; margin: 24px 0 36px; line-height: 1.45;
}
.hero .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* App Store badge — drawn, so it needs no remote image and no false "Download" link yet. */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.18);
  transition: transform .15s ease, border-color .15s ease;
}
.appstore:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.4); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .lines { display: flex; flex-direction: column; line-height: 1.1; }
.appstore .small { font-size: 11px; opacity: 0.8; }
.appstore .big { font-size: 18px; font-weight: 600; }
.hero .note { font-size: 13px; color: rgba(255,255,255,0.55); }

/* scrolling agency strip */
.agencies {
  position: relative; z-index: 2; width: 100%; flex: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0; background: rgba(15,2,0,0.35);
}
.agencies .wrap { display: flex; align-items: center; justify-content: center;
  gap: 10px 26px; flex-wrap: wrap; text-align: center;
  font-size: 13px; letter-spacing: 0.04em; color: rgba(255,255,255,0.62); }
.agencies b { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ---- feature sections ------------------------------------------------- */
.features { padding: clamp(64px, 10vw, 128px) 0 40px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px);
  align-items: center; padding: clamp(40px, 7vw, 96px) 0;
}
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy .tag {
  display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  background: rgba(255,107,48,0.10); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.feature-copy h2 {
  font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 16px;
}
.feature-copy p {
  font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin: 0 0 14px; max-width: 42ch;
}
.feature-copy .detail { font-size: 15px; color: var(--ink-soft); }
.feature-copy .detail b { color: var(--ink); font-weight: 600; }

/* ---- phone frame (drawn, as in the app's PhoneFrame) ------------------ */
.phone {
  position: relative; width: min(300px, 78%); margin: 0 auto;
  aspect-ratio: 300 / 620; border-radius: 46px;
  background: #0e0e0f; padding: 7px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}
.feature:nth-child(even) .phone { rotate: 2deg; }
.feature:nth-child(odd)  .phone { rotate: -2deg; }
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden;
  background: var(--paper);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .island {
  position: absolute; top: 12px; left: 50%; translate: -50% 0;
  width: 34%; height: 22px; background: #000; border-radius: 999px; z-index: 2;
}

/* ---- felt-report highlight (dark band) -------------------------------- */
.band-dark {
  position: relative; color: #fff; overflow: hidden;
  background: var(--storm-base);
  margin: clamp(48px, 8vw, 96px) 0;
  border-radius: 32px;
}
.band-dark canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.band-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,17,33,0.4), rgba(3,17,33,0.75));
}
.band-dark .inner { position: relative; z-index: 2; padding: clamp(48px, 8vw, 96px) 0; }
.band-dark .tag { color: var(--sky); background: rgba(124,201,255,0.12); }
.band-dark h2 { color: #fff; }
.band-dark p { color: rgba(255,255,255,0.72); }

/* ---- pricing ---------------------------------------------------------- */
.pricing { padding: clamp(56px, 9vw, 120px) 0; text-align: center; }
.pricing h2 { font-weight: 900; font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.02em; margin: 0 0 12px; }
.pricing .sub { font-size: 18px; color: var(--ink-soft); margin: 0 auto 56px; max-width: 46ch; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; max-width: 860px; margin: 0 auto; }
.tier {
  border: 1px solid var(--hair); border-radius: 24px; padding: 34px;
  background: #fff;
}
.tier.premium {
  color: #fff; border-color: transparent;
  background:
    radial-gradient(120% 120% at 80% 0%, var(--storm-deep), transparent 60%),
    var(--storm-base);
  position: relative; overflow: hidden;
}
.tier h3 { font-weight: 900; font-size: 22px; margin: 0 0 4px; }
.tier .price { font-weight: 900; font-size: 34px; margin: 6px 0 2px; }
.tier .price span { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.tier.premium .price span { color: rgba(255,255,255,0.7); }
.tier .price-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 22px; }
.tier.premium .price-note { color: rgba(255,255,255,0.6); }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { display: flex; gap: 12px; padding: 9px 0; font-size: 15px; align-items: baseline; }
.tier li svg { flex: none; width: 16px; height: 16px; translate: 0 2px; }
.tier.free li svg { color: var(--orange); }
.tier.premium li svg { color: var(--sky); }
.tier .badge {
  display: inline-block; font-weight: 800; font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.tier.free .badge { color: var(--ink-soft); border: 1px solid var(--hair); }
.tier.premium .badge { color: var(--storm-base); background: var(--sky); }

/* ---- closing CTA ------------------------------------------------------ */
.closer { position: relative; overflow: hidden; color: #fff; text-align: center; background: var(--ember-base); }
.closer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.closer::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,2,0,0.45), rgba(15,2,0,0.7)); }
.closer .inner { position: relative; z-index: 2; padding: clamp(72px, 12vw, 150px) 0; }
.closer h2 { font-weight: 900; font-size: clamp(32px, 6vw, 64px); letter-spacing: -0.02em; margin: 0 0 28px; }
.closer .actions { display: flex; justify-content: center; }

/* ---- footer ----------------------------------------------------------- */
footer { background: #0c0c0d; color: rgba(255,255,255,0.6); padding: 56px 0 40px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
footer .mark { font-weight: 900; letter-spacing: 0.16em; color: #fff; font-size: 15px; }
footer .mark .dot { color: var(--orange); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { text-decoration: none; color: rgba(255,255,255,0.65); }
footer nav a:hover { color: #fff; }
footer .fine { width: 100%; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: rgba(255,255,255,0.45); }

/* ---- legal pages ------------------------------------------------------ */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 24px 96px; }
.legal a.back { color: var(--orange); text-decoration: none; font-weight: 600; font-size: 14px; }
.legal h1 { font-weight: 900; font-size: clamp(32px, 6vw, 48px); letter-spacing: -0.02em; margin: 18px 0 6px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-weight: 700; font-size: 20px; margin: 40px 0 10px; }
.legal p, .legal li { color: #33322f; font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--ink); }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .feature .phone { order: -1; }
  .feature:nth-child(even) .phone, .feature:nth-child(odd) .phone { rotate: 0deg; }
  .tiers { grid-template-columns: 1fr; }
  .nav .mark { font-size: 14px; }
}
