/* sweatsheet product page — same mat-it palette as the app, light/dark via prefers-color-scheme */

:root {
  /* Colours: shared/tokens.css, with a darker grey and orange for the larger page. */
  --bg-alt: #ffffff;
  --muted: #5d5c7d;
  --navy: #020070;
  --violet: #6c66fb;
  --lavender: #adb0fd;
  --carbs: #e0901b;
  --phone-edge: #15142e;
  --shadow: 0 2px 4px rgb(2 0 112 / .05), 0 24px 60px -12px rgb(2 0 112 / .22);
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-alt: #100f27;
    --muted: #a3a2c2;
    --carbs: #f5b54f;
    --phone-edge: #2a2950;
    --shadow: 0 24px 60px -12px rgb(0 0 0 / .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .text-link:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn-primary { background: #3a2bda; color: #fff; box-shadow: 0 10px 30px -8px rgb(58 43 218 / .7); }
.btn-primary:hover { background: #2f22c4; }
.btn-ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-dark { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost-dark:hover { border-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(2 0 112 / .82); color: #fff;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.nav .brand img { background: #fff; border-radius: 9px; padding: 3px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: .8; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgb(108 102 251 / .45), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgb(58 43 218 / .55), transparent 60%),
    linear-gradient(160deg, #020070 0%, #0b0a3a 70%, #0b0a1f 100%);
  margin-top: -64px; padding-top: 64px;
}
.hero::after { /* subtle grid, a nod to the "sheet" */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--lavender); margin-bottom: 18px; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.02; }
.hl { background: linear-gradient(90deg, #adb0fd, #8a84ff 60%, #c9c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: rgb(238 238 251 / .82); max-width: 34rem; margin: 22px 0 32px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .93rem; color: rgb(238 238 251 / .78); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts svg { width: 18px; height: 18px; color: var(--lavender); stroke-width: 2.6; }

.hero-art { position: relative; height: 600px; align-self: end; }
.glow { position: absolute; left: 50%; top: 45%; width: 460px; height: 460px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgb(173 176 253 / .55), transparent 65%); filter: blur(20px); }
.hero-art .phone { position: absolute; width: 270px; }
.phone-front { left: 50%; top: 40px; translate: -20% 0; rotate: 3deg; z-index: 2; }
.phone-back { left: 50%; top: 110px; translate: -95% 0; rotate: -6deg; opacity: .92; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .hero-art { height: 480px; margin: 0 -20px; }
  .hero-art .phone { width: 220px; }
  .phone-front { translate: -25% 0; }
  .phone-back { translate: -85% 0; }
}

/* ---------- phone frame ---------- */
.phone {
  margin: 0; border-radius: 42px; padding: 9px;
  background: var(--phone-edge);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / .08);
  aspect-ratio: 390 / 844; box-sizing: content-box;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.hero .phone { --phone-edge: #15142e; box-shadow: 0 40px 80px -20px rgb(0 0 0 / .65), inset 0 0 0 1.5px rgb(255 255 255 / .12); }

/* ---------- strip ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.strip-in div:first-child { border-left: 0; }
.strip strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.strip span { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) {
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in div:nth-child(3) { border-left: 0; }
  .strip-in div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- feature sections ---------- */
.feature { padding: clamp(72px, 10vw, 128px) 0; }
.feature.alt { background: var(--bg-alt); }
.feature-in { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 8vw, 120px); align-items: center; }
.feature-in.flip { grid-template-columns: 320px 1fr; }
.feature-in.flip .feature-copy { order: 2; }
.feature-in > .phone { width: 300px; justify-self: center; }
.feature-copy { max-width: 33rem; }
.feature-copy > p:not(.kicker) { font-size: 1.12rem; color: var(--muted); margin-top: 18px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--k, var(--accent)); margin-bottom: 14px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.kicker.light { color: var(--lavender); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a2bda' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23adb0fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E"); }
}
@media (max-width: 860px) {
  .feature-in, .feature-in.flip { grid-template-columns: 1fr; }
  .feature-in.flip .feature-copy { order: 0; }
  .feature-in > .phone { width: min(270px, 72vw); }
}

.center-head { text-align: center; max-width: 42rem; margin: 0 auto 56px; }
.center-head > p:not(.kicker) { font-size: 1.12rem; color: var(--muted); margin-top: 18px; }
.center { text-align: center; }

/* ---------- spreadsheet → routine ---------- */
.sheet-feature { background: linear-gradient(180deg, var(--bg), var(--bg-alt)); }
.convert { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.sheet-mock, .routine-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sheet-title { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 800; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .95rem; }
.sheet-title .crumb { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .85rem; }
.ss-tag { font: 800 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--train); background: color-mix(in srgb, var(--train) 15%, transparent); padding: 3px 5px; border-radius: 5px; margin-right: 7px; vertical-align: 1px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.sheet-foot b { color: var(--text); }
.push-btn { background: #3a2bda; color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: .85rem; }
.sheet-scroll { overflow-x: auto; }
.sheet-mock table { border-collapse: collapse; width: 100%; font: 13.5px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.sheet-mock th, .sheet-mock td { border: 1px solid var(--line); padding: 9px 9px; text-align: left; white-space: nowrap; }
.sheet-mock th { font: 700 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); }
.sheet-mock tr > :first-child { border-left: 0; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.sheet-mock tr > :last-child { border-right: 0; }
.sheet-mock td.now, .sheet-mock th:nth-child(6) { background: color-mix(in srgb, var(--train) 13%, transparent); }
.sheet-mock td.now { font-weight: 700; }
.arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgb(58 43 218 / .6); }
.arrow svg { width: 24px; height: 24px; stroke-width: 2.5; }
.routine-mock { padding: 20px; }
.rm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rm-head strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.badge { font-size: .78rem; font-weight: 700; color: var(--train); background: color-mix(in srgb, var(--train) 15%, transparent); padding: 3px 10px; border-radius: 999px; }
.routine-mock ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.routine-mock li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border-left: 4px solid transparent; }
.routine-mock li b { font-size: .98rem; }
.routine-mock li span { font-size: .86rem; color: var(--muted); }
.routine-mock li em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--accent); }
.rm-from { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.rm-note { font-size: .88rem; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 12px; }
.rm-actions { display: flex; gap: 10px; margin-top: 16px; }
.rm-actions span { flex: 1; text-align: center; padding: 11px 0; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.rm-dismiss { background: var(--surface-2); color: #d43c3c; }
.rm-start { background: #3a2bda; color: #fff; }
.pill-list { list-style: none; padding: 0; margin: 44px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 54rem; }
.pill-list li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
.pill-list code { background: none; padding: 0; color: var(--accent); }
@media (max-width: 960px) {
  .convert { grid-template-columns: 1fr; justify-items: stretch; }
  .arrow { justify-self: center; rotate: 90deg; }
}

/* ---------- duo / trio (train, rep maxes, history) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.duo-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.duo-item .phone { width: min(280px, 72vw); margin-bottom: 36px; }
.duo-item h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.duo-item p { color: var(--muted); margin-top: 10px; max-width: 26rem; }
/* Three across (train, rep maxes, history) on wide screens; one per row below that. */
.trio { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); }
.trio .duo-item .phone { width: min(260px, 72vw); }
@media (max-width: 980px) { .trio { grid-template-columns: 1fr; gap: 72px; } }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; gap: 72px; } }

/* ---------- coaches ---------- */
.coach {
  color: #fff; padding: clamp(80px, 11vw, 140px) 0;
  background:
    radial-gradient(50rem 30rem at 100% 0%, rgb(108 102 251 / .35), transparent 60%),
    linear-gradient(160deg, #020070, #0b0a1f);
}
.coach-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.coach-copy > p:not(.kicker):not(.fine) { color: rgb(238 238 251 / .8); font-size: 1.12rem; margin-top: 18px; }
.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin: 36px 0 38px; }
.coach-grid h3 { font-size: 1.02rem; color: #fff; }
.coach-grid p { color: rgb(238 238 251 / .68); font-size: .93rem; margin-top: 6px; }
.fine { font-size: .85rem; color: rgb(238 238 251 / .55); margin-top: 14px; }
@media (max-width: 900px) { .coach-in { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .coach-grid { grid-template-columns: 1fr; } }

.dash {
  background: #f5f5fa; color: #0f0e33; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .1);
  font-size: .9rem;
}
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e4e4f0; font-weight: 700; }
.dash-bar b { color: #3a2bda; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 16px 6px; }
.dash-tiles div { background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; border: 1px solid #ececf6; }
.dash-tiles span { font-size: .74rem; color: #6b6a8a; font-weight: 600; }
.dash-tiles strong { font-size: 1.6rem; letter-spacing: -0.03em; }
.dash-tiles .warn strong { color: #d4602a; }
.dash-rows { padding: 10px 16px; display: grid; gap: 8px; }
.dr { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid #ececf6; }
.av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--c); }
.dn { display: grid; min-width: 0; flex: 1; }
.dn small { color: #6b6a8a; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok, .flag, .info { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ok { color: #0d7f72; background: #dcf5f1; }
.flag { color: #b34a17; background: #fdeadf; }
.info { color: #3a2bda; background: #ebeaff; }
.dash-push { margin: 6px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #ebeaff; border-radius: 14px; padding: 12px 14px; }
.dash-push > span:first-child { display: grid; }
.dash-push small { color: #5d5c7d; font-size: .78rem; }
.st { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.st i { font-style: normal; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.st .s1 { background: #3a2bda; color: #fff; }
.st .s2 { background: #fff; color: #3a2bda; }
@media (max-width: 460px) {
  .dash-tiles strong { font-size: 1.3rem; }
  .dr .flag, .dr .info { max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
  .dash-push { flex-direction: column; align-items: flex-start; }
}

/* ---------- privacy cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.card p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.text-link { display: inline-block; margin-top: 36px; font-weight: 700; color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* ---------- install ---------- */
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inst { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.inst-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.inst-icon svg { width: 26px; height: 26px; }
.inst p { color: var(--muted); margin: 10px 0 24px; flex: 1; }
.inst small { color: var(--muted); font-size: .82rem; margin-top: 12px; min-height: 3.1em; }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; } }

/* ---------- final CTA + footer ---------- */
.final { padding: clamp(80px, 11vw, 140px) 0; text-align: center; background: radial-gradient(40rem 22rem at 50% 100%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%); }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final img { margin-bottom: 26px; }
.final p { color: var(--muted); font-size: 1.15rem; margin: 14px 0 32px; }
.final .btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }

.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.foot nav a:hover { color: var(--text); }
.foot p { color: var(--muted); font-size: .82rem; margin-left: auto; }
@media (max-width: 720px) { .foot p { margin-left: 0; } }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; translate: none; transition: none; } }
