@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600&display=swap');

:root {
  --bg: #0B0D12;
  --bg-2: #11141B;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --fg: #F4F5F7;
  --muted: #A3A9B6;
  --red: #E11D2E;
  --orange: #F97316;
  --amber: #F5B83D;
  --go: #3DDC97;
  --grad: linear-gradient(120deg, var(--red), var(--orange));
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 100; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .display { font-family: "Barlow Condensed", Barlow, sans-serif; letter-spacing: 0.01em; }
.eyebrow { font: 600 13px/1 Barlow, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
       background: rgba(11, 13, 18, 0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 26px/1 "Barlow Condensed", sans-serif;
         letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--fg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
       border-radius: 999px; font: 600 16px/1 Barlow, sans-serif; text-decoration: none; cursor: pointer;
       transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(249, 115, 22, 0.75); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; pointer-events: none; }
.glow.one { width: 520px; height: 520px; background: var(--red); top: -180px; right: -120px; }
.glow.two { width: 420px; height: 420px; background: var(--orange); bottom: -220px; left: -160px; opacity: 0.25; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: 0.92; font-weight: 800; text-transform: uppercase; margin: 18px 0 22px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--orange); }

/* phone mockup */
.phone { position: relative; justify-self: center; width: min(360px, 100%); border-radius: 38px; padding: 14px;
         background: linear-gradient(160deg, #1B1F29, #0E1016); border: 1px solid var(--line);
         box-shadow: 0 40px 90px -30px rgba(225, 29, 46, 0.45), inset 0 0 0 1px rgba(255,255,255,0.03); }
.screen { border-radius: 28px; background: #0F1218; padding: 20px 18px 22px; }
.screen .bar { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.verdict { display: flex; align-items: center; gap: 10px; font: 700 24px/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--go); box-shadow: 0 0 16px var(--go); flex: none; }
.msg .why { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.metric { background: var(--surface); border-radius: 12px; padding: 10px; }
.metric b { display: block; font: 700 22px/1 "Barlow Condensed", sans-serif; }
.metric small { color: var(--muted); font-size: 12px; }
.session { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.session strong { display: block; font-size: 15px; margin-bottom: 2px; }
.session .fuel { color: var(--amber); }
.pulse { margin-top: 16px; height: 36px; width: 100%; }
.pulse path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.4s var(--ease) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* sections */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(38px, 5vw, 60px); line-height: 0.98; text-transform: uppercase; margin: 14px 0 16px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
           transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.feature:hover { border-color: rgba(249, 115, 22, 0.45); transform: translateY(-2px); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(249, 115, 22, 0.12);
        color: var(--orange); margin-bottom: 18px; }
.feature h3 { font-size: 30px; text-transform: uppercase; margin: 0 0 8px; line-height: 1; }
.feature p { color: var(--muted); margin: 0; }

/* week */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; min-height: 176px;
       display: flex; flex-direction: column; gap: 8px; }
.day .d { font: 700 18px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--muted); }
.chip { border-radius: 10px; padding: 8px 9px; font-size: 13px; line-height: 1.25; border-left: 3px solid; background: var(--surface); }
.chip b { display: block; font-size: 14px; }
.swim { border-color: #38BDF8; } .bike { border-color: var(--orange); } .run { border-color: var(--red); }
.gym { border-color: #A78BFA; } .rest { border-color: #64748B; color: var(--muted); }
.key { box-shadow: inset 0 0 0 1px rgba(249,115,22,0.5); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* safety */
.safety { background: linear-gradient(180deg, transparent, rgba(225, 29, 46, 0.07), transparent); }
.safety .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.gates { display: grid; gap: 12px; }
.gate { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
        border-radius: 16px; padding: 18px 20px; }
.gate svg { color: var(--red); flex: none; margin-top: 2px; }
.gate strong { display: block; font-size: 18px; }
.gate span { color: var(--muted); font-size: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 800 44px/1 "Barlow Condensed", sans-serif;
                background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.step h3 { font-size: 26px; text-transform: uppercase; margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* cta band */
.band { margin: 24px 0 96px; }
.band .inner { border-radius: 28px; padding: 56px; background: var(--grad); position: relative; overflow: hidden;
               display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 0.95; text-transform: uppercase; margin: 0 0 8px; font-weight: 800; }
.band p { margin: 0; color: rgba(255,255,255,0.88); font-size: 18px; max-width: 34em; }
.band .btn { background: #0B0D12; color: #fff; }
.band .btn:hover { transform: translateY(-1px); }

.disclaimer { color: var(--muted); font-size: 14px; border-left: 3px solid var(--red); padding-left: 14px; max-width: 70ch; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

/* privacy document */
.doc { max-width: 76ch; padding: 56px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(44px, 6vw, 64px); text-transform: uppercase; line-height: 0.95; margin: 0 0 18px; }
.doc h2 { font-size: 28px; text-transform: uppercase; margin: 40px 0 8px; }
.doc p, .doc li { color: #D3D7DE; }
.doc li { margin: 6px 0; }
.doc a { color: var(--orange); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero .wrap, .safety .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .band .inner { padding: 36px 24px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse path { animation: none; stroke-dashoffset: 0; }
  .btn, .feature { transition: none; }
}

/* account pages: sign-up, sign-in, account, intervals.icu (SP3a) */
[hidden] { display: none !important; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field span { font-weight: 600; }
.field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
               color: var(--fg); font: inherit; }
.field input:focus { border-color: var(--orange); }
fieldset { border: 0; padding: 0; margin: 8px 0 22px; min-width: 0; }
legend { font: 700 24px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; color: #D3D7DE; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--orange); flex: none; }
.hint { color: var(--muted); font-size: 15px; }
.doc .msg { border-left: 3px solid var(--orange); padding-left: 12px; color: var(--fg); }
button.btn-primary { border: 0; }
.doc a.btn { color: #fff; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
