/* Self-hosted fonts (latin subset, from Google Fonts; SIL Open Font Licence).
   Nothing is loaded from third-party servers; see privacy.html / cookies.html. */
@font-face {
  font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/archivo-black-400.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/caveat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}

:root {
  --paper: #f7f7f7;
  --paper-2: #efefea;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #4a4a4a;
  --grey: #7f7f7f;
  --line: #dcdcd6;
  --maroon: #7f0037;
  --maroon-dk: #5e0029;
  --orange: #c4561f;
  --header-h: 72px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font-head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: var(--maroon); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dk); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .6em 1.1em; font-size: 15px; }
.btn-lg { padding: 1em 1.7em; font-size: 18px; }
.btn .ico { width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #f7f7f7; /* exactly the logo JPG's background */
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--maroon); }

/* Hero video */
.hero { background: #f1f1ed; border-bottom: 1px solid var(--line); }
.hero-frame {
  position: relative;
  width: min(100%, calc((100svh - var(--header-h)) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  background: #f1f1ed;
}
/* Black side bars are cropped in the encode (see PLAN.md), so no CSS crop needed. */
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }

.sound-btn {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.5em; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 600 16px/1 var(--font-body); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  animation: nudge 2.4s ease-in-out infinite;
}
.sound-btn:hover { background: var(--maroon); }
.sound-btn[hidden] { display: none; }
@keyframes nudge { 0%,100% { transform: translateX(-50%) } 50% { transform: translateX(-50%) translateY(-4px) } }

.end-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(247,247,247,.92); text-align: center; padding: 16px;
}
.end-card[hidden] { display: none; }
.end-card h2 { font: 400 clamp(32px, 5vw, 60px)/1 var(--font-head); color: var(--maroon); }
.link-btn {
  display: inline-flex; align-items: center; gap: .4em;
  background: none; border: 0; color: var(--ink-2); font: 500 15px var(--font-body); cursor: pointer;
}
.link-btn .ico { width: 18px; height: 18px; }

/* Intro */
.intro { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.intro-inner { max-width: 860px; }
.intro h1 { font: 400 clamp(32px, 5.2vw, 58px)/1.08 var(--font-head); letter-spacing: -.01em; }
.lede { margin: 20px auto 30px; max-width: 640px; font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-2); }
.eyebrow {
  margin: 0 0 10px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--maroon);
}
.section-title { font: 400 clamp(28px, 4vw, 44px)/1.1 var(--font-head); margin-bottom: 14px; }
.section-sub { max-width: 680px; color: var(--ink-2); font-size: 18px; }
.hand { font-family: var(--font-hand); font-weight: 600; color: var(--orange); font-size: 26px; line-height: 1.2; margin: 0; }
.note { margin-top: 18px; }
.center { text-align: center; }
.small { font-size: 14px; }
.muted { color: var(--grey); }

/* What we do */
.steps5 {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.steps5 li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow);
}
.steps5 h3 { font: 400 22px var(--font-head); margin: 16px 0 8px; }
.steps5 p { font-size: 15px; color: var(--ink-2); margin: 0; }
.badge {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--maroon); color: #fff;
}
.badge .ico { width: 26px; height: 26px; }

/* Platform */
.platform-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.screenshot {
  margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px rgba(0,0,0,.12);
  transform: rotate(.8deg);
}
.features {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.features li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--maroon);
  border-radius: 10px; padding: 16px 18px;
}
.features .ico { color: var(--maroon); margin-top: 2px; }
.features h3 { font: 700 16px var(--font-body); margin-bottom: 4px; }
.features p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.features-foot { margin: 22px 0 0; color: var(--ink-2); font-size: 15px; }

/* Hosting */
.section-dark { background: var(--ink); color: #eee; }
.section-dark .eyebrow { color: #ff7aa8; }
.host-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.host-grid .ico { width: 32px; height: 32px; color: var(--orange); }
.host-grid h3 { font: 700 18px var(--font-body); margin: 14px 0 8px; color: #fff; }
.host-grid p { font-size: 15px; color: #bdbdbd; margin: 0; }

/* How it works */
.timeline {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 24px; left: 24px; right: 24px;
  border-top: 2px dashed var(--line);
}
.timeline li { position: relative; }
.num {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  font: 400 20px var(--font-head);
}
.timeline li:last-child .num { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.timeline h3 { font: 400 21px var(--font-head); margin: 16px 0 8px; }
.timeline p { font-size: 15px; color: var(--ink-2); margin: 0; }
#how-it-works .note { margin-top: 44px; }

/* Contact */
.contact { background: var(--card); border-top: 1px solid var(--line); }
.contact-inner { max-width: 720px; text-align: center; }
.contact-inner p { color: var(--ink-2); font-size: 18px; }
.contact .btn-lg { margin: 12px 0 26px; }
.support-callout {
  display: flex; align-items: center; gap: 18px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 8px 0 28px;
}
.support-callout > .ico { width: 34px; height: 34px; color: var(--maroon); }
.support-callout > div { flex: 1; }
.support-callout h3 { font: 700 18px var(--font-body); margin-bottom: 2px; }
.support-callout p { font-size: 15px !important; margin: 0; }
.support-callout .btn { flex: none; }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal-inner { max-width: 760px; }
.legal h1 { font: 400 clamp(32px, 5vw, 48px)/1.1 var(--font-head); }
.legal h2 { font: 400 24px/1.2 var(--font-head); margin: 40px 0 12px; }
.legal h3 { font: 700 18px var(--font-body); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal strong { color: var(--ink); }
.updated { color: var(--grey); font-size: 14px; margin-top: 8px; }
.summary {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--maroon);
  border-radius: 10px; padding: 18px 20px; font-size: 18px; color: var(--ink) !important; margin: 24px 0 8px;
}
.card-address {
  font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px; margin: 0 0 1em; line-height: 1.7; color: var(--ink-2);
}

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--grey); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: var(--ink-2); text-decoration: none; }
.footer-inner a:hover { color: var(--maroon); }
.footer-inner a[aria-current="page"] { color: var(--maroon); font-weight: 600; }

/* Responsive */
@media (max-width: 1000px) {
  .steps5 { grid-template-columns: repeat(3, 1fr); }
  .host-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-head { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: .55em .85em; font-size: 14px; }
  .support-callout { flex-direction: column; text-align: center; }
  .steps5, .host-grid, .timeline { grid-template-columns: 1fr; }
  .sound-btn { font-size: 13px; padding: .55em 1em; bottom: 8px; animation: none; }
  .sound-btn .ico { width: 18px; height: 18px; }
  .end-card { gap: 8px; }
  .end-card .hand { font-size: 20px; }
  .end-card .btn { font-size: 14px; }
  .screenshot { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sound-btn { animation: none; }
  .btn:hover { transform: none; }
}
