/* Supremely marketing site.

   One page, three folds. Custom properties at the top, components under
   them, one breakpoint set at the bottom. Violet comes from the press kit
   the product ships (/presskit on any Supremely site); the mint is the
   site's own, used only to say "free". */

/* Inter, served from here rather than Google Fonts so no visitor's IP
   goes to a third party. One variable file, Latin subset, covers 400-800.
   Licence: assets/fonts/inter-LICENSE.txt (SIL OFL 1.1). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --shade: #f8f7fc;
  --ink: #0f1115;
  --ink-2: #3a3f4a;
  --muted: #64748b;
  --line: #ebe9f2;
  --lilac: #f1ecff;
  --lilac-2: #e2d8ff;
  --mint: #10b981;
  --mint-soft: #e5f7ef;

  --violet: #7c3aed;
  --violet-deep: #6d28d9;
  --violet-ink: #5b21b6;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1360px;
  --gutter: clamp(16px, 5vw, 56px);
  --r-sm: 10px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* height only, never both: the icon is 388x569 and forcing it into a square
   squashed it sideways. */
.logo img { height: 26px; width: auto; }
.logo span { font: 700 20px/1 var(--sans); letter-spacing: -0.035em; }
.logo-sm img { height: 24px; }
.logo-sm span { font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #ffffffd6; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav-link:hover { color: var(--violet-deep); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -0.05em; }
h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.lede { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.quiet { color: #6b7280; display: block; }
.grad {
  background: linear-gradient(100deg, var(--violet) 0%, var(--violet-deep) 60%, var(--violet-ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.link { color: var(--violet-deep); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px;
  padding: 6px 13px 6px 11px; border-radius: 999px;
  background: var(--mint-soft); color: #047857; font: 600 13.5px/1 var(--sans);
}
.badge-inline { margin: 0 10px 0 0; vertical-align: middle; font-size: 12.5px; padding: 5px 11px 5px 9px; }
/* The line above the headline: loud colour, small type, no quotes, so it
   reads as a belief rather than a wink. */
.tagline {
  display: inline-block; margin: 0 0 16px; font: 800 clamp(18px, 1.6vw, 22px)/1.2 var(--sans); letter-spacing: -0.025em;
  background: linear-gradient(95deg, #7c3aed, #c026d3 55%, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #10b98126; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 11px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 12px 26px -14px #7c3aedcc; }
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lilac-2); background: var(--lilac); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lilac); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; box-shadow: none; }
.note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* ---------- Fold 1: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(12px, 2vw, 24px) 0 clamp(20px, 2.5vw, 32px);
  background:
    radial-gradient(50% 60% at 15% 20%, #efe9ff 0%, transparent 70%),
    radial-gradient(45% 55% at 85% 30%, #f1ecff 0%, transparent 70%),
    linear-gradient(#fbfaff, #f6f3ff);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 42ch; margin-bottom: 28px; }

.hero-visual { position: relative; padding: 58px 0; }

/* Callouts round the app. Each is placed by CSS; main.js draws its arrow
   to the element it names, and rings that element. */
.points { list-style: none; margin: 0; padding: 0; }
.points li {
  position: absolute; z-index: 3; width: max-content; max-width: 240px;
  font-size: 12.5px; line-height: 1.35; color: var(--muted);
}
.points strong { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.points .p1 { top: 2px; left: 26%; }
.points .p2 { top: 2px; right: 0; text-align: right; }
.points .p3 { bottom: 2px; left: 0; }
.points .p4 { bottom: 2px; right: 0; text-align: right; }
.point-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; color: var(--violet); }
.point-arrows .halo { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .9; }
.point-arrows .line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* The run club's home. Sized in px because it is a picture of an app, not
   page text; it narrows by dropping columns rather than squashing them. */
.app {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 6px #1d0f4a0d, 0 40px 80px -36px #4c1d9559;
  font-size: 11.5px; line-height: 1.42; color: var(--ink-2);
}
.app p { margin: 0; }
.app svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.app-top > img { height: 20px; width: auto; }
.app-top b { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.app-user { margin-left: auto; display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); }
.app-user svg { color: var(--muted); }

.app-body { display: grid; grid-template-columns: 150px minmax(0, 1fr) 196px; }
.app-side { padding: 12px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.app-side span { display: flex; align-items: center; gap: 9px; padding: 6px 9px; font-size: 11.5px; border-radius: 8px; color: var(--ink-2); }
.app-side .on { background: var(--lilac); color: var(--violet-deep); font-weight: 600; }
.app-side small { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 9px 3px; }
.app-side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; }

.app-main { padding: 14px 18px 4px; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
/* Lined up with the post titles, which also leaves the column over the
   first avatar clear for the hero arrow. */
.app-head b { font-size: 15px; font-weight: 700; margin-left: 59px; color: var(--ink); }
.app-label { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px !important; }
.post {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px;
  padding: 1px 0 10px 12px; margin-bottom: 10px; border-left: 3px solid var(--bar);
  border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: 0; margin-bottom: 0; }
.post .body, .post .stats { grid-column: 1 / -1; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); }
.tag { background: var(--t); color: var(--tc); font-weight: 600; font-size: 10px; padding: 2px 7px; border-radius: 5px; }
.who { font-weight: 500; color: var(--ink); font-size: 11.5px; margin-top: 2px !important; }
.app .title { font-weight: 700; color: var(--ink); font-size: 12.5px; letter-spacing: -0.01em; }
.app .body { color: var(--muted); font-size: 11px; }
.post .body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stats { display: flex; gap: 24px; font-size: 11px; color: var(--muted); margin-top: 4px !important; }

.av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.av-sm { width: 28px; height: 28px; }

.app-aside { padding: 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.app-btn { background: var(--violet); color: #fff; font-weight: 600; font-size: 11.5px; padding: 7px 12px; border-radius: 7px; }
.app-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; display: grid; gap: 4px; }
.card-h { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); font-size: 11.5px; margin-bottom: 3px !important; }
.card-h svg { width: 13px; height: 13px; color: var(--violet); }
.app-more { color: var(--violet-deep); font-size: 11px; font-weight: 500; }
.app-ghost { text-align: center; background: var(--lilac); color: var(--violet-deep); font-weight: 600; font-size: 11px; padding: 6px; border-radius: 7px; margin-top: 3px; }
.stack { display: flex; }
.count { margin-left: auto; font-weight: 500; color: var(--muted); }
.stack { width: fit-content; border-radius: 999px; padding-right: 7px; }
.stack .av { width: 32px; height: 32px; border: 2px solid #fff; margin-right: -9px; }

/* ---------- Strip ---------- */
.strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px;
  padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.strip strong { font-weight: 600; padding-right: 28px; border-right: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); }
.strip li:not(:last-child)::after { content: "\00b7"; margin: 0 10px; color: #b8bfcc; }
.strip .more { color: var(--violet-deep); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 5.5vw, 72px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); }
.section-head h2 { text-wrap: balance; }

/* ---------- Fold 2: benefits ---------- */
.benefits-band {
  background:
    radial-gradient(40% 50% at 10% 0%, #efe9ff 0%, transparent 70%),
    radial-gradient(40% 50% at 95% 100%, #e9f9f2 0%, transparent 70%),
    var(--shade);
  padding: clamp(56px, 7vw, 96px) 0;
}
.kicker { font: 600 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--violet-deep); margin: 0 0 16px; }
.benefits-band h2 { font-size: clamp(30px, 3.6vw, 48px); }
/* A 3x3 grid ruled by hairlines rather than boxed in cards. */
/* Each cell draws a line to its right and below; the grid clips the outer
   edge, so only the lines between cells show, at any column count. */
.benefits-band .section-head { max-width: 980px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); clip-path: inset(0 1px 1px 0); }
.benefit { padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.6vw, 36px); box-shadow: 1px 0 0 #e6e1f3, 0 1px 0 #e6e1f3; }
.benefit .num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: #fff; box-shadow: 0 6px 16px -8px #7c3aed40;
  font: 800 20px/1 var(--sans); letter-spacing: -0.03em; color: var(--violet-deep);
}
.benefit h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.benefit p { color: var(--muted); margin: 0; font-size: 15.5px; max-width: 34ch; }

/* ---------- Fold 3: private + CTA ---------- */
.close { padding-top: clamp(32px, 4vw, 48px); }
.private {
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 20px 0; margin: 0 0 clamp(24px, 3vw, 36px); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.private svg { color: #6b7280; flex-shrink: 0; }

.cta-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, var(--violet-ink), var(--violet) 70%, #8b5cf6);
  color: #fff; border-radius: 22px;
  padding: clamp(28px, 3.6vw, 44px) clamp(26px, 4.4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #e4dcff; max-width: 48ch; margin: 10px 0 0; font-size: 16.5px; }
.cta-panel::after {
  content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, #c4b5fd66, transparent 68%);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-side { text-align: center; flex-shrink: 0; }
.cta-side .btn { min-width: 210px; }
.cta-side p { font-size: 15px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 36px; font-size: 14.5px; color: var(--muted); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--violet-deep); }
.site-footer span a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Early-access dialog ---------- */
.modal {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r-lg);
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -30px #14161a66;
}
.modal[open] { animation: rise .22s ease-out; }
.modal:focus, .modal:focus-visible { outline: none; }
.modal::backdrop { background: #14161a59; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
/* Without JS there is no showModal, so a link to #access opens it this way. */
.modal:target:not([open]) { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 60; }
.modal h2 { font-size: 26px; margin-bottom: 6px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
}
.modal-close:hover { background: var(--shade); color: var(--ink); }

.form { display: grid; gap: 16px; }
.form > .muted { margin: -6px 0 6px; font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .hint { margin: -2px 0 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.field input, .field textarea {
  font: 16px/1.4 var(--sans); color: var(--ink);
  background: var(--shade); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa3b2; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px #7c3aed21;
}
.form .btn { width: 100%; margin-top: 4px; }
.form button[disabled] { opacity: .65; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.form-note a { color: var(--violet-deep); }
.form-status { margin: 0; font-size: 14.5px; color: #b42318; }
.form-status[hidden], .form[hidden], .form-success[hidden] { display: none; }

.ico { display: grid; place-items: center; background: var(--lilac); color: var(--violet-deep); }
.form-success { text-align: center; padding: 12px 0 4px; }
.form-success:focus { outline: none; }
.form-success .ico-ok { margin: 0 auto 18px; background: var(--mint-soft); color: var(--mint); border-radius: 50%; width: 56px; height: 56px; }
.form-success .ico-ok svg { width: 26px; height: 26px; }
.form-success .muted { margin: 0 0 24px; }
.form-success .btn { width: 100%; }

/* ---------- Legal and error pages ---------- */
.legal { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.legal h1 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 8px; }
.legal .effective { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--violet-deep); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 600; }
.legal td { color: var(--ink-2); }
.legal .table-wrap { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 620px; }
  .hero-visual { max-width: 820px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .cta-side { text-align: left; }
  .strip strong { border-right: 0; padding-right: 0; }
}

@media (max-width: 760px) {
  .hero-visual { padding: 0; }
  .points, .point-arrows { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr) 176px; }
  .app-side { display: none; }
}

@media (max-width: 560px) {
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit { padding: 22px 0; }
  .nav-link { display: none; }
  .site-header .btn-sm { padding: 0 14px; font-size: 14px; height: 40px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .hero .actions { justify-content: center; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-aside { display: none; }
  .strip { justify-content: flex-start; }
  .cta-side, .cta-side .btn { width: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
