/* Edgewise — landing page (interactive_gamified archetype)
   Palette: slate primary, orange grinding-spark accent, steel highlights
*/

:root {
  --primary: #0F172A;
  --primary-2: #1E293B;
  --primary-3: #334155;
  --accent: #F97316;
  --accent-2: #FB923C;
  --accent-deep: #C2410C;
  --highlight: #94A3B8;
  --steel: #CBD5E1;
  --paper: #F8FAFC;
  --paper-2: #F1F5F9;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --line: #E2E8F0;
  --good: #16A34A;
  --warn: #EAB308;
  --bad: #DC2626;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow.centered { display: block; text-align: center; max-width: max-content; margin: 0 auto 14px; }
h1, h2, h3, h4 { color: var(--primary); margin: 0 0 14px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); text-align: center; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
p { color: var(--ink-2); margin: 0 0 14px; }
.muted { color: var(--ink-3); font-size: 14px; }
.hl { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--primary); }
.logo:hover { color: var(--primary); }
.logo-mark { color: var(--accent); font-size: 22px; transform: rotate(-20deg); display: inline-block; line-height: 1; }
.logo-word { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.top-nav { display: flex; gap: 22px; align-items: center; }
.top-nav a { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.top-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 50px; background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.hero-copy h1 { margin-bottom: 18px; }
.lede { font-size: 19px; color: var(--ink-2); margin-bottom: 26px; max-width: 580px; }

.hero-form {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  max-width: 560px;
  border: 1px solid var(--line);
}
.hero-form input {
  flex: 1;
  font: inherit;
  border: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-width: 0;
}
.hero-form input:focus { outline: 0; }
.hero-form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s, transform 0.05s;
  white-space: nowrap;
}
.hero-form button:hover { background: var(--accent-deep); }
.hero-form button:active { transform: translateY(1px); }

.hero-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.skip-link { font-size: 14px; font-weight: 600; }
.hero-trust { font-size: 13px; color: var(--ink-3); }
.success-msg { color: var(--good); font-weight: 700; padding: 14px 18px; margin: 0; }

/* ---------- Hero game card ---------- */
.game-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(249,115,22,0.32), transparent 70%);
  pointer-events: none;
}
.game-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; }
.game-title { font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.game-badge { background: var(--accent); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 700; text-transform: uppercase; }
.game-row { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; margin-bottom: 12px; }
.game-label { font-size: 13px; color: rgba(255,255,255,0.85); }
.bar { height: 14px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.bar-fill.paper { background: linear-gradient(90deg, #94A3B8, #CBD5E1); }
.bar-fill.excel { background: linear-gradient(90deg, #64748B, #94A3B8); }
.bar-fill.ours { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 18px rgba(249,115,22,0.6); }
.game-time { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); text-align: right; font-variant-numeric: tabular-nums; }
.game-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; margin-top: 12px; font-size: 12px; }
.xp { color: var(--accent-2); font-weight: 700; }
.xp #xp { color: #fff; font-size: 16px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--primary-2);
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  font-size: 13px;
}
.trust-strip .wrap { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }

/* ---------- Problem ---------- */
.problem { padding: 80px 0; background: #fff; }
.problem h2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.loss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.loss-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}
.loss-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.loss-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.loss-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- How it works ---------- */
.how { padding: 80px 0; background: var(--paper); }
.steps { display: flex; align-items: stretch; justify-content: center; gap: 0; margin: 40px 0 30px; flex-wrap: wrap; }
.step {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.step:hover { transform: translateY(-4px); }
.step-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(249,115,22,0.1);
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.step-body h3 { margin: 0 0 8px; font-size: 17px; }
.step-body p { font-size: 14px; margin: 0 0 8px; }
.step-time { font-size: 12px; color: var(--accent); font-weight: 700; }

.step-connector {
  flex: 0 0 36px;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--steel), var(--accent));
  position: relative;
}
.step-connector::after {
  content: '▸';
  position: absolute;
  right: -6px;
  top: -10px;
  color: var(--accent);
  font-size: 14px;
}

/* ---------- Progress meter ---------- */
.progress-meter {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-top: 28px;
  box-shadow: var(--shadow);
}
.progress-track {
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(249,115,22,0.6);
  transition: width 2.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.progress-end { color: var(--accent-2); font-weight: 800; }

/* ---------- Features ---------- */
.features { padding: 80px 0; background: #fff; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.f-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.feature p { font-size: 14px; margin: 0; }

/* ---------- Teaser ---------- */
.teaser { padding: 80px 0; background: var(--paper-2); }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.teaser-copy h2 { text-align: left; }
.teaser-list { padding-left: 0; list-style: none; margin: 0 0 24px; }
.teaser-list li { padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.big-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(249,115,22,0.32);
  transition: transform 0.15s, background 0.15s;
}
.big-cta:hover { background: var(--accent-deep); transform: translateY(-2px); }

/* Mock tool */
.mock-window { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.mock-bar { background: var(--primary); padding: 10px 14px; display: flex; gap: 6px; }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock-bar span:first-child { background: #FB7185; }
.mock-bar span:nth-child(2) { background: #FBBF24; }
.mock-bar span:nth-child(3) { background: #34D399; }
.mock-body { padding: 14px 18px; }
.mock-row {
  display: grid;
  grid-template-columns: 1fr 56px 56px 70px;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mock-row.mock-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 700; }
.mock-row.mock-total { font-weight: 700; color: var(--primary); border-top: 2px solid var(--primary); border-bottom: 0; padding-top: 12px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-align: center; }
.badge.b2 { background: rgba(220,38,38,0.13); color: #B91C1C; }
.badge.b3 { background: rgba(234,179,8,0.18); color: #92400E; }
.badge.b4 { background: rgba(22,163,74,0.14); color: #15803D; }

/* ---------- Anchor pricing ---------- */
.anchor { padding: 70px 0; background: #fff; }
.anchor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.anchor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.anchor-card.crossed { opacity: 0.55; }
.anchor-card.crossed .a-price { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.anchor-card.winner { background: var(--primary); color: #fff; border-color: var(--primary); }
.anchor-card.winner .a-price { color: var(--accent-2); text-decoration: none; }
.anchor-card.winner .a-label,
.anchor-card.winner .a-line { color: rgba(255,255,255,0.85); }
.a-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; }
.a-price { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.a-price small { font-size: 16px; color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.a-line { font-size: 13px; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing { padding: 80px 0; background: var(--paper); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
  box-shadow: 0 18px 50px rgba(249,115,22,0.22);
  transform: scale(1.02);
}
.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(249,115,22,0.42);
}
.tier h3 { font-size: 22px; }
.price { display: baseline; align-items: baseline; margin: 12px 0 6px; }
.price .amt { font-size: 44px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.price .per { font-size: 16px; color: var(--ink-3); margin-left: 4px; }
.tier .who { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.tier ul { padding-left: 0; list-style: none; margin: 0 0 22px; flex: 1; }
.tier li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink); }
.tier li:last-child { border-bottom: 0; }
.tier-cta {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tier-cta:hover { background: var(--primary); color: #fff; }
.tier-cta.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.tier-cta.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.annual-note { text-align: center; color: var(--ink-3); margin-top: 22px; font-size: 14px; }

/* ---------- Bottom CTA ---------- */
.cta-bottom { padding: 80px 0; background: var(--primary); color: #fff; text-align: center; }
.cta-bottom h2 { color: #fff; margin-bottom: 12px; }
.cta-bottom p { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 26px; }
.bottom-form { margin-left: auto; margin-right: auto; }
.cta-bottom .skip-link { display: inline-block; margin-top: 16px; color: var(--accent-2); }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; background: #fff; }
.faq-list { max-width: 760px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 36px 22px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: '–'; }
.faq-answer { display: none; padding-bottom: 22px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 15px; margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 50px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.foot-grid h4 { color: rgba(255,255,255,0.9); }
.foot-grid a { display: block; padding: 4px 0; color: rgba(255,255,255,0.75); font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid .muted { color: rgba(255,255,255,0.55); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-bottom a { color: var(--accent-2); }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .top-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 40px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .loss-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .anchor-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { width: 2px; height: 30px; flex: 0 0 30px; }
  .step-connector::after { right: -10px; top: auto; bottom: -8px; transform: rotate(90deg); }
  .hero-form { flex-direction: column; border-radius: var(--radius); padding: 12px; }
  .hero-form input, .hero-form button { border-radius: var(--radius-sm); width: 100%; padding: 14px; }
}
