/* Darwin — darwinendurance.com
   One stylesheet for every page. Dark by design: the app is dark, and an
   athlete opening this at 5am shouldn't get a face full of white. */

:root {
  --bg:        #0F151B;
  --bg-soft:   #131A22;
  --surface:   #171F27;
  --surface-2: #1D2731;
  --border:    #2A3540;
  --border-lit:#3A4855;
  --text:      #F2F4F8;
  --dim:       #96A3B1;
  --dimmer:    #6E7C8A;
  --brand:     #F5A623;
  --brand-soft:rgba(245,166,35,.10);
  --green:     #4FA97E;
  --purple:    #8B7FD4;
  --red:       #E2725B;
  --radius:    14px;
  --maxw:      1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,21,27,.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 30px; height: 30px; }
.brand b { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-header nav a {
  color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.btn { color: #0F151B; }
@media (max-width: 720px) {
  .site-header nav { gap: 16px; }
  .site-header nav a.hide-sm { display: none; }
}
@media (max-width: 430px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { gap: 8px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 14px; }
  .site-header nav a.hide-xs { display: none; }
  .btn-sm { padding: 8px 13px; }
  .brand b { font-size: 19px; }
}

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;   /* "Get Darwin" wrapped and burst the header on a 390px phone */
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn { background: var(--brand); color: #0F151B; }
.btn:hover { transform: translateY(-1px); background: #FFB63A; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-lit); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 88px 0; border-top: 1px solid transparent; }
section.ruled { border-top-color: var(--border); }
.eyebrow {
  color: var(--brand); font-size: 12px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 14px;
}
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.06; letter-spacing: -1.6px; font-weight: 800; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; letter-spacing: -.9px; font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 8px; }
p  { margin: 0 0 16px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--dim); }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.tiny  { font-size: 13px; color: var(--dimmer); }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 88px;
  background-image:
    radial-gradient(58% 42% at 88% -5%, rgba(245,166,35,.13), transparent 68%),
    radial-gradient(52% 44% at 4% 104%, rgba(61,90,128,.20), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-shot { justify-self: center; max-width: 320px; }
.hero-shot img {
  border-radius: 26px; border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { max-width: 280px; }
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 14px;
  background: var(--brand-soft); border: 1px solid rgba(245,166,35,.28);
  color: var(--brand); font-weight: 800; font-size: 14px;
}

/* the four engine limits */
.limit { background: var(--surface-2); border-left: 3px solid var(--brand); }
.limit .k { color: var(--brand); font-weight: 800; font-size: 15px; display: block; margin-bottom: 4px; }

/* screenshot strip */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shots figure { margin: 0; }
.shots img { border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,.42); }
.shots figcaption { color: var(--dim); font-size: 14px; margin-top: 14px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; } }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 22px 50px rgba(0,0,0,.45); max-width: 300px; }
.split .shot-col { display: flex; justify-content: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* checklist */
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--dim); }
ul.check li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 999px; background: var(--brand);
}
ul.check li strong { color: var(--text); }

/* pill row */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 13px; font-weight: 700; letter-spacing: .4px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--dim);
}
.pill.on { background: var(--brand-soft); border-color: rgba(245,166,35,.3); color: var(--brand); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; text-align: center; }
.stats .n { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; color: var(--brand); line-height: 1.1; }
.stats .l { color: var(--dim); font-size: 14px; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; gap: 26px; } }

/* price cards */
.price-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 700px; }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }
.price { position: relative; }
.price.best { border-color: rgba(245,166,35,.45); }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -1.6px; }
.price .per { color: var(--dim); font-size: 15px; font-weight: 500; }
.price .tagline { color: var(--dim); font-size: 14px; margin-top: 6px; }
.badge {
  position: absolute; top: -11px; right: 18px;
  background: var(--brand); color: #0F151B; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; padding: 3px 10px; border-radius: 999px;
}

/* callout */
.callout {
  background: linear-gradient(180deg, rgba(245,166,35,.07), rgba(245,166,35,.02));
  border: 1px solid rgba(245,166,35,.24);
  border-radius: var(--radius); padding: 26px;
}
.callout h3 { color: var(--brand); }

/* ---------- forms ---------- */
form.contact { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--dimmer); }
input[type=text], input[type=email], textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .12s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand);
}
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--dimmer); }
.form-status { font-size: 15px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok  { background: rgba(79,169,126,.12); border: 1px solid rgba(79,169,126,.4); color: #86D3AE; }
.form-status.err { background: rgba(226,114,91,.12); border: 1px solid rgba(226,114,91,.4); color: #F0A292; }
button[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .a { color: var(--dim); padding-top: 10px; }
details.faq .a p:last-child { margin-bottom: 0; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal main { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 4.4vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 19px; margin-top: 40px; color: var(--brand); letter-spacing: -.2px; }
.legal p, .legal li { color: var(--dim); font-size: 15.5px; }
.legal strong { color: var(--text); }
.legal .updated { font-size: 13px; color: var(--dimmer); margin-bottom: 28px; }
.legal .box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 26px 20px; margin: 32px 0;
}
.legal .box h2 { margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); padding: 44px 0 56px;
  background: var(--bg-soft); margin-top: 40px;
}
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.site-footer h4 { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dimmer); margin: 0 0 12px; font-weight: 800; }
.site-footer a { display: block; color: var(--dim); text-decoration: none; font-size: 14.5px; margin-bottom: 8px; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal-line { color: var(--dimmer); font-size: 13px; margin-top: 36px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand);
  color: #0F151B; padding: 10px 16px; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
