:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --ink: #17181c;
  --muted: #5d6068;
  --line: #e7e8ec;
  --accent: #ff5a1f;

  --mod-bg: #e7f0ff;
  --mod-ink: #1d5fd6;
  --toon-bg: #fff3c4;
  --toon-ink: #9a6a00;
  --iron-bg: #1c1c20;
  --iron-ink: #ff6b2c;
  --sprout-bg: #f1ead9;
  --sprout-ink: #3f7a4c;

  --radius: 28px;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012;
    --surface: #1b1c20;
    --ink: #f1efea;
    --muted: #a6a8ae;
    --line: #2c2d33;
    --mod-bg: #15233d;
    --mod-ink: #7fb0ff;
    --toon-bg: #2e2712;
    --toon-ink: #ffd24a;
    --iron-bg: #0b0b0d;
    --sprout-bg: #1d2a20;
    --sprout-ink: #8fcf9c;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012;
  --surface: #1b1c20;
  --ink: #f1efea;
  --muted: #a6a8ae;
  --line: #2c2d33;
  --mod-bg: #15233d;
  --mod-ink: #7fb0ff;
  --toon-bg: #2e2712;
  --toon-ink: #ffd24a;
  --iron-bg: #0b0b0d;
  --sprout-bg: #1d2a20;
  --sprout-ink: #8fcf9c;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }
nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.sub { margin: -16px 0 28px; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--muted); }
.facts strong { color: var(--ink); font-family: var(--display); font-size: 17px; margin-right: 4px; }

/* Phone frame around a raw screenshot */
.phone { display: block; background: #18181b; padding: 3.2%; border-radius: 17% / 7.8%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 18px 34px -12px rgb(0 0 0 / 0.35); }
.phone img { width: 100%; height: auto; border-radius: 14% / 6.4%; }

.hero-fan { position: relative; width: 100%; max-width: min(520px, calc((100svh - 200px) * 520 / 560)); aspect-ratio: 520 / 560; margin-inline: auto; }
.hero-fan .f, .hero-fan .f img { rotate: none; height: auto; }
.hero-fan .f { position: absolute; }
.hero-fan .f1 { left: 1.5%; top: 12.5%; width: 39%; }
.hero-fan .f3 { right: 1.5%; top: 12.5%; width: 39%; }
.hero-fan .f2 { left: 50%; top: 1.5%; width: 47%; translate: -50% 0; z-index: 2; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 28px 50px -14px rgb(0 0 0 / 0.42); }

.dock { list-style: none; margin: 40px 0 0; padding: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border-radius: 24px; width: fit-content; margin-inline: auto; }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: 16px; }
.dock a:hover { color: var(--ink); background: var(--bg); }
.dock img { width: 56px; height: 56px; border-radius: 13px; transition: transform .2s; }
.dock a:hover img { transform: translateY(-4px); }

/* Apps */
.apps { padding: 32px 0 24px; }
.apps .wrap { display: grid; gap: 28px; }
.app { --tint: var(--surface); --hue: var(--accent);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  background: var(--tint); border-radius: var(--radius); padding: 48px; scroll-margin-top: 84px; overflow: hidden; }
.app-moderate { --tint: var(--mod-bg); --hue: var(--mod-ink); }
.app-tooner { --tint: var(--toon-bg); --hue: var(--toon-ink); }
.app-ironplan { --tint: var(--iron-bg); --hue: var(--iron-ink); color: #f3f1ec; }
.app-sprout { --tint: var(--sprout-bg); --hue: var(--sprout-ink); }
.app-small { grid-template-columns: 1fr; }
.app-small .app-copy { max-width: 720px; }

.app-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 24px rgb(0 0 0 / 0.14); flex: none; }
.app h2 { font-size: clamp(34px, 4vw, 46px); font-weight: 800; }
.kind { margin: 4px 0 0; color: color-mix(in srgb, currentColor 66%, transparent); font-size: 15px; }
.status { display: inline-block; margin: 0 0 8px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status.live { background: color-mix(in srgb, var(--hue) 16%, transparent); color: var(--hue); }
.status.soon { background: color-mix(in srgb, var(--hue) 22%, transparent); color: var(--hue); }
.status.dev { background: color-mix(in srgb, var(--hue) 16%, transparent); color: var(--hue); }
.status.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }

.pitch { font-size: 18px; margin: 0 0 18px; }
.feats { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.feats li { position: relative; padding-left: 24px; font-size: 16px; color: color-mix(in srgb, currentColor 82%, transparent); }
.feats li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--hue); }
.price { font-size: 14px; font-weight: 600; color: var(--hue); margin: 0 0 22px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge img { height: 47px; width: auto; }
.btn { display: inline-flex; align-items: center; height: 47px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); }
.btn:hover { border-color: currentColor; }
.app-ironplan .btn { background: var(--iron-ink); color: #fff; border-color: var(--iron-ink); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; padding-top: 22px; }
.shots .phone:nth-child(2) { transform: translateY(-22px); }

/* Approach */
.approach { padding: 64px 0 80px; }
.approach h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin-bottom: 28px; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rule { background: var(--c); border-radius: 22px; padding: 24px; }
.rule.r1 { --c: var(--mod-bg); }
.rule.r2 { --c: var(--toon-bg); }
.rule.r3 { --c: color-mix(in srgb, var(--iron-ink) 14%, var(--bg)); }
.rule.r4 { --c: var(--sprout-bg); }
.rule h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.rule p { margin: 0; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 15.5px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 15px; color: var(--muted); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--ink); }
.fine { font-size: 13px; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid, .app { grid-template-columns: 1fr; }
  .hero-fan { max-width: min(440px, calc((100svh - 140px) * 520 / 560)); }
  .app { padding: 32px 24px; gap: 28px; }
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  nav a:not(:first-child) { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .app-head { gap: 14px; }
  .app-icon { width: 72px; height: 72px; border-radius: 17px; }
  .shots { gap: 8px; }
  .shots .phone:nth-child(2) { transform: translateY(-12px); }
  .rules { grid-template-columns: 1fr; }
  .dock { gap: 2px; padding: 10px; }
  .dock img { width: 48px; height: 48px; border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock img { transition: none; }
}
.app-ironplan { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
