/* hackathon.fund website. Tokens mirror design.md §2 so the site matches the app. */

@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/HankenGrotesk-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --accent: #0f766e;
  --accent-d: #0b5e57;
  --accent-tint: #effaf8;
  --accent-tint-2: #d8f0ec;
  --ink: #15211f;
  --ink-2: #3f4d4a;
  --muted: #6b7a77;
  --faint: #94a29f;
  --line: #e6eae9;
  --line-2: #eef1f0;
  --canvas: #f4f6f5;
  --panel: #ffffff;
  --backdrop: #e9edec;
  --good: #15803d;
  --good-bg: #eafaef;

  --shadow-sm: 0 1px 2px rgba(20,33,31,.05), 0 1px 1px rgba(20,33,31,.04);
  --shadow-md: 0 4px 16px rgba(20,33,31,.07), 0 1px 3px rgba(20,33,31,.05);
  --shadow-lg: 0 24px 60px rgba(20,33,31,.16), 0 6px 18px rgba(20,33,31,.10);

  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.015em; }
.brand:hover { color: var(--ink); }
.brand-icon { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.nav a:not(.btn):hover { background: #f3f6f5; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  border-radius: 11px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent-tint-2); background: var(--accent-tint); color: var(--accent-d); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 60ch; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 32px; text-align: center; }
.hero h1 { max-width: 21ch; margin: 0 auto; line-height: 1.18; }
.hero h1 .accent { color: var(--accent); }
/* Proofreader's insertion mark: "vibe-coded" written in above a caret. */
.hero h1 .insert { position: relative; display: inline-block; width: .5em; height: .46em; margin: 0 -.04em; vertical-align: -.14em; }
.hero h1 .insert-caret { display: block; width: 100%; height: 100%; color: var(--ink-2); }
.hero h1 .insert-word {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: .52em;
  transform: translateX(-50%) rotate(-4deg);
  font-size: .46em; font-weight: 700; font-style: italic; letter-spacing: -.01em; line-height: 1;
  color: var(--ink-2); white-space: nowrap;
}
.hero .lede { margin: 22px auto 0; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .hero-actions { align-items: flex-start; }
/* Two-line download button, with a hand-drawn note pointing up at it. */
.btn-dl { min-height: 62px; padding: 0 26px; border-radius: 14px; font-size: 17px; gap: 12px; }
.btn-dl svg { width: 20px; height: 20px; }
.btn-dl .apple-logo { width: 24px; height: 24px; margin-top: -3px; }
.btn-dl-text { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.btn-dl-text small { font-size: 13px; font-weight: 500; opacity: .85; }
.dl { display: flex; flex-direction: column; }
.dl-note {
  display: flex; align-items: flex-end; gap: 4px;
  margin: 2px 0 0; padding-left: 58%;
  color: var(--ink-2); white-space: nowrap;
}
.dl-arrow { flex: none; margin-bottom: 8px; }
.dl-note mark {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--accent-tint-2); color: var(--accent-d);
  font-size: 17px; font-weight: 700; font-style: italic; letter-spacing: -.01em;
  transform: rotate(-3deg); transform-origin: left center;
}
.funding {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px;
  margin: 28px auto 0; padding: 10px 18px;
  background: var(--accent-tint); border: 1px solid var(--accent-tint-2); border-radius: 999px;
  font-size: 16px; font-weight: 500; color: var(--ink-2);
}
.funding strong { font-size: 19px; font-weight: 800; color: var(--accent-d); font-variant-numeric: tabular-nums; }
.funding span { color: var(--muted); }
.hero-meta { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

.lede .highlight { color: var(--accent-d); font-weight: 600; }

.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }
.hero-shot { max-width: 960px; margin: 56px auto 0; background: var(--canvas); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin-top: 12px; }
.section-head .lede { margin: 16px auto 0; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 26px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
  border: 1px solid var(--accent-tint-2);
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { margin-top: 12px; }
.feature-text > p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230b5e57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step .shot { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.step .shot { background: var(--canvas); }
.step .shot img { height: 100%; object-fit: cover; object-position: top left; }
.step-body { padding: 22px 24px 26px; }
.step-num { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--faint); }
.step h3 { margin-top: 6px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Pricing */
.price-card {
  max-width: 560px; margin: 0 auto; padding: 36px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md);
  text-align: center;
}
.price-card .badge {
  display: inline-block; padding: 5px 12px; border-radius: 20px;
  background: var(--accent-tint-2); color: var(--accent-d);
  font-family: var(--mono); font-size: 12.5px;
}
.price-card h3 { margin-top: 16px; font-size: 28px; letter-spacing: -.025em; }
.price-card > p { margin-top: 10px; color: var(--muted); }
.price-card .ticks { text-align: left; max-width: 400px; margin: 26px auto 30px; }
.price-card .fine { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translateY(-3px); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* CTA + footer */
.cta { text-align: center; }
.cta .lede { margin: 16px auto 0; }
.cta .hero-actions { margin-top: 28px; }

.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 36px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.social { display: flex; gap: 8px; }
.social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-2); border: 1px solid var(--line); background: var(--panel);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.social a:hover { color: var(--accent-d); background: var(--accent-tint); border-color: var(--accent-tint-2); }
.social svg { width: 17px; height: 17px; }
.trademark { flex-basis: 100%; font-size: 12.5px; color: var(--faint); }
.footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-links a { color: var(--ink-2); font-weight: 500; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--accent); }

/* Legal pages (terms.html, privacy.html, refund.html) */
.legal { padding: 64px 0 96px; }
.legal-doc {
  max-width: 760px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 48px;
}
.legal-doc h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.legal-doc .updated { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }
.legal-doc .summary {
  margin: 28px 0 0; padding: 18px 20px; border-radius: 12px;
  background: var(--accent-tint); border: 1px solid var(--accent-tint-2); color: var(--ink-2);
}
.legal-doc h2 { font-size: 21px; font-weight: 700; margin: 40px 0 0; letter-spacing: -.015em; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc p { margin: 12px 0 0; }
.legal-doc ul { margin: 12px 0 0; padding-left: 22px; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc strong { color: var(--ink); }

/* Enter motion (design.md §2.5): slide only, never fade from 0 */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(12px); transition: transform .42s ease; }
  .reveal.in { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .highlights, .steps { grid-template-columns: 1fr; }
  .highlights { max-width: 560px; margin: 0 auto; }
  .steps { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .funding { flex-direction: column; align-items: center; border-radius: 16px; }
  .hero-shot { margin-top: 40px; border-radius: 12px; }
  .section { padding: 72px 0; }
  .price-card { padding: 28px 20px; }
  .hero-actions .btn { width: 100%; }
  .dl { width: 100%; }
  .dl-note { padding-left: 46%; }
  .legal { padding: 32px 0 64px; }
  .legal-doc { padding: 28px 20px; }
}
