/* Undelay site. Tokens mirror App/Shared/Theme.swift ("Heat vs. Inertia"):
   bone paper / warm ink, ember for kept, frost for postponed, ash for missed. */

:root {
  --bg: #EFE9DF;
  --surface: #FAF7F2;
  --raised: #E6DFD3;
  --ink: #1B1714;
  --ink-2: #6B625A;
  --ink-3: #A2988E;
  --hairline: rgba(27, 23, 20, 0.09);
  --ember: #EE4E16;
  --flame: #FF9B3D;
  --frost: #4F74D0;
  --ash: #8A8079;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0B10;
    --surface: #19161D;
    --raised: #252028;
    --ink: #F4EEE6;
    --ink-2: #A89F97;
    --ink-3: #6F675F;
    --hairline: rgba(244, 238, 230, 0.09);
    --ember: #FF6A2B;
    --flame: #FFB55E;
    --frost: #8FB0FF;
    --ash: #847A73;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(420px 380px at 85% 0%, color-mix(in srgb, var(--ember) 16%, transparent), transparent 70%);
}
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.display { font-stretch: expanded; font-weight: 800; letter-spacing: -0.02em; }
.ember { background: linear-gradient(180deg, var(--flame), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--hairline); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; }
.btn-primary { background: linear-gradient(180deg, var(--flame), var(--ember)); color: #fff; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.05); }
.btn-secondary { background: var(--surface); color: var(--ink); }
.nav-links .btn { height: 36px; padding: 0 16px; font-size: 14px; color: #fff; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; margin: 14px 0 18px; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.hero-card { background: var(--surface); border-radius: 28px; padding: 28px; }
.score { font-size: 112px; line-height: 0.95; }
.score small { font-size: 40px; }
.strip { display: flex; gap: 5px; align-items: flex-end; height: 34px; margin: 22px 0 8px; }
.strip span { flex: 1; border-radius: 5px; height: 82%; }
.strip span:last-child { height: 100%; }
.seg { display: flex; gap: 4px; height: 14px; margin-top: 18px; }
.seg span { border-radius: 5px; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 10px 0 14px; }
section > .wrap > p.sub { color: var(--ink-2); max-width: 620px; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--ember) 14%, transparent); color: var(--ember); font-size: 20px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.price { font-size: 34px; font-weight: 800; font-stretch: expanded; margin: 8px 0; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.card.pro { outline: 2px solid var(--ember); }

details { background: var(--surface); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* Docs */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc-wrap h1 { font-size: 40px; font-stretch: expanded; font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 6px; }
.doc-wrap h2 { font-size: 20px; margin: 34px 0 8px; }
.doc-wrap p, .doc-wrap li { color: var(--ink-2); }
.doc-wrap strong { color: var(--ink); }
.doc-updated { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ink-3); }
.doc-callout { background: var(--surface); border-radius: 16px; padding: 18px 20px; color: var(--ink-2); }
.back-link { font-weight: 600; }

/* Contact */
.contact-card { background: var(--surface); border-radius: 28px; padding: 40px 32px; text-align: center; max-width: 460px; }
.contact-card img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; }
.contact-card h1 { font-stretch: expanded; font-weight: 800; margin: 0 0 8px; }
.contact-card p { color: var(--ink-2); margin: 0 0 22px; }

.site-footer { border-top: 1px solid var(--hairline); padding: 26px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.footer-bottom nav { display: flex; gap: 18px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .grid, .pricing { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .score { font-size: 88px; }
}
