@font-face {
  font-family: "Fugaz One";
  src: url("/fonts/FugazOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* The app palette (lib/ui/design.dart). SPLIT is dark by design. */
:root {
  color-scheme: dark;
  --ink: #101210;
  --panel: #1c1f1b;
  --line: #30352d;
  --muted: #979e90;
  --paper: #f1f3e9;
  --lime: #d5fc51;
  --sky: #a9cdf7;
  --lime-shadow: #4f5a24;
  --display: "Fugaz One", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: .98; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; }
h3 { font-size: 22px; line-height: 1.1; }
p { margin: 0; }
em { font-style: normal; color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.muted { color: var(--muted); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 28px; line-height: 1; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.site-header nav a:hover { color: var(--paper); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 7vw, 96px) clamp(56px, 8vw, 120px); }
.lead { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: #cfd3c7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 40px 18px 34px;
  background: var(--lime); color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform .15s ease;
}
.button:hover { transform: translateY(-2px); }
.play { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; transform: skewX(-8deg); }
.link { color: var(--paper); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--lime); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; min-height: 0; }
.art-panel { position: absolute; inset: 14% 0 12% 0; background: var(--lime); border-radius: 28px; overflow: hidden; }
.art-panel img, .art-card img { width: 100%; height: 100%; object-fit: cover; object-position: right center; mix-blend-mode: multiply; opacity: .6; }
.phone { position: absolute; margin: 0; width: 38%; border-radius: 34px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 7px #262a24, 0 0 0 8px #3a4036; }
.phone img { width: 100%; }
.phone-front { left: 9%; bottom: 2%; z-index: 2; }
.phone-back { right: 9%; top: 2%; transform: rotate(4deg); }

/* Timers */
.timers { padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 18px; }
.mode-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mode { position: relative; background: var(--panel); border-radius: 10px; padding: 22px 20px 24px 24px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }
.mode::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent, var(--lime)); }
.mode h3 { font-family: var(--body); font-weight: 800; font-size: 20px; letter-spacing: 0; }
.mode-meta { margin: 4px 0 14px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.mode p:last-child { font-size: 15px; line-height: 1.55; color: #cfd3c7; }
.accent-lime { --accent: #d5fc51; }
.accent-acid { --accent: #d2ff24; }
.accent-orange { --accent: #ff8958; }
.accent-blue { --accent: #68b4ff; }
.accent-violet { --accent: #a68bff; }
.accent-amber { --accent: #ffbb3d; }
.mode-custom { background: transparent; border: 1px dashed var(--line); box-shadow: none; }
.mode-custom::before { display: none; }
.mode-custom h3 { color: var(--lime); }

/* Mid-workout */
.effort { background: var(--panel); border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 110px); }
.effort-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.effort-digits { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.digits {
  font-family: var(--display); line-height: 1;
  font-size: clamp(88px, 13vw, 170px); color: var(--lime);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  text-shadow: .035em .045em 0 var(--lime-shadow);
}
.phase { font-family: var(--display); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.effort-copy h2 { margin-bottom: 30px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 30px; color: #cfd3c7; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 10px; background: var(--lime); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.checks strong { color: var(--paper); }

/* Activity */
.activity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.activity h2 { margin-bottom: 22px; }
.activity p:not(.eyebrow) { color: #cfd3c7; }
.art-card { aspect-ratio: 3 / 2; background: var(--lime); border-radius: var(--radius); overflow: hidden; }

/* Privacy */
.privacy { background: var(--lime); color: var(--ink); padding-block: clamp(56px, 8vw, 100px); }
.privacy-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 700; font-size: 18px; }
.privacy-list span { font-family: var(--display); font-size: 36px; line-height: 1; margin-right: 10px; }
.privacy-inner > p { grid-column: 1 / -1; max-width: 44em; font-size: 17px; }
.privacy a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.privacy :focus-visible { outline-color: var(--ink); }

/* Availability */
.availability { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px clamp(32px, 6vw, 88px); padding-block: clamp(56px, 8vw, 110px); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platforms article { background: var(--panel); border-radius: var(--radius); padding: 26px; }
.platforms article { display: flex; flex-direction: column; }
.platforms article > p:not(.status) { color: var(--muted); font-size: 15px; }
.status { display: inline-flex; align-items: flex-start; gap: 8px; margin: 10px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.status .dot { margin-top: .45em; }
.availability-note { margin-top: 18px; }
.store-link {
  align-self: flex-start; margin-top: 22px; padding: 12px 26px 12px 22px;
  background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.store-link.is-pending { background: transparent; color: var(--muted); font-weight: 600; clip-path: none; padding: 0; border-bottom: 1px dashed var(--line); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .brand { font-size: 20px; color: var(--paper); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--paper); }
.site-footer p a { color: var(--lime); text-underline-offset: 3px; }
.site-footer p a:hover { color: var(--paper); }

/* Privacy policy page */
.policy { max-width: 760px; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 110px); }
.policy h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.policy .updated { color: var(--muted); margin-bottom: 40px; }
.policy h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 14px; }
.policy p, .policy li { color: #cfd3c7; }
.policy p + p { margin-top: 14px; }
.policy ul { padding-left: 22px; margin: 14px 0 0; display: grid; gap: 8px; }
.policy code { font-size: .92em; background: var(--panel); border-radius: 5px; padding: 1px 6px; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--paper); }

/* Responsive */
@media (max-width: 1000px) {
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero, .effort-inner, .activity, .privacy-inner, .availability { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(520px, 100%); margin-inline: auto; }
  .effort-digits { order: -1; }
  .activity .art-card { order: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header nav { display: none; }
  .mode-grid, .platforms { grid-template-columns: minmax(0, 1fr); }
  .phone { border-radius: 24px; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .8), 0 0 0 5px #262a24, 0 0 0 6px #3a4036; }
  .button { width: 100%; justify-content: center; }
}
