/* Outly site styles: port of the approved homepage v2 prototype
   (outly-design-v2/prototype/styles.css), plus the inner-page block below.
   Plain CSS, no build step. Served as /static/css/site.css?v=<content hash>.
   One dark theme. One accent: amber #FFBE28 (peak of the logo gradient).
   Ember #F04E23 (logo gradient base) is decoration only: gradients, never text or buttons.
   Strava orange appears only inside Strava's official, unmodified assets.
   Radius rule: containers 20px, inner elements 12px, Strava asset keeps its own 6px. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #161314;
  --bg-raise: #1B1719;
  --bg-deep: #0F0D0E;
  --surface: #211C1F;
  --line: #433A3F;
  --line-strong: #80756E; /* form control borders only: 4.12:1 on bg, 4.32:1 on bg-deep */
  --text: #F4EFE8;
  --muted: #C2B9B0;
  --faint: #A39A91;
  --accent: #FFBE28;
  --accent-soft: rgba(255, 190, 40, 0.12);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --r-lg: 20px;
  --r-sm: 12px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.nw { white-space: nowrap; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Icons (Phosphor regular, inlined SVG) ---------- */
.ico { width: 1em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 19, 20, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; }
.nav { display: flex; gap: 2px; margin: 0 -12px 0 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-optional { display: none; }
@media (min-width: 640px) { .nav-optional { display: list-item; } }

/* ---------- Hero ---------- */
.hero {
  padding: 32px 0 64px;
  /* glow fades to zero before the hero's top edge, so no seam under the header */
  background: radial-gradient(50% 42% at 75% 56%, rgba(255, 190, 40, 0.07), rgba(255, 190, 40, 0) 100%);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.kicker { margin-bottom: 14px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; }
.hero h1 {
  font-size: clamp(3.25rem, 1.5rem + 6vw, 5.75rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.accent { color: var(--accent); }
.lede {
  max-width: 26em;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 28px; }

/* Official Strava asset: the artwork itself is never restyled */
.strava-btn { display: inline-block; line-height: 0; border-radius: 6px; }
.strava-btn img { width: 237px; height: 48px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 190, 40, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.text-link .ico { width: 18px; height: 18px; color: currentColor; }

.hero-visual { margin: 0; }
.stage { display: grid; place-items: center; }

/* ---------- Note card (real Outly output, shown unedited) ---------- */
.note-card {
  width: 100%;
  max-width: 480px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 45% at 50% 0%, rgba(255, 190, 40, 0.10), rgba(255, 190, 40, 0) 70%),
    linear-gradient(180deg, #272124 0%, #1D181B 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 36px 70px -28px rgba(12, 6, 6, 0.85),
    0 12px 24px -12px rgba(12, 6, 6, 0.6);
}
.note-head { display: flex; align-items: center; gap: 12px; }
.note-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.note-icon .ico { width: 22px; height: 22px; }
.note-meta { display: flex; flex-direction: column; line-height: 1.3; }
.note-meta strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.note-meta span { color: var(--faint); font-size: 0.875rem; }
.note-stats { display: flex; gap: 36px; margin: 16px 0 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.note-label { margin-bottom: 10px; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; }
.note-stats dt { color: var(--faint); font-size: 0.8125rem; }
.note-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.note-body { display: grid; gap: 12px; }
.note-body p {
  display: grid;
  grid-template-columns: 1.6em 1fr;
  gap: 8px;
  align-items: baseline;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
.emo { font-family: var(--font-emoji); font-size: 1em; line-height: inherit; }

figcaption { margin-top: 14px; color: var(--muted); font-size: 0.875rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section h2 {
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.section-head { max-width: 820px; }
.section-lead { max-width: 52ch; margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

/* Note, line by line */
.lines { display: grid; gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.lines li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.lines h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lines p { max-width: 48ch; color: var(--muted); }
.milestone {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}
.milestone .ico { width: 24px; height: 24px; margin-top: 1px; color: var(--accent); }

/* Honest on short days */
.honest { background: var(--bg-raise); border-block: 1px solid rgba(255, 255, 255, 0.05); }
.honest-visual { max-width: 880px; margin: 40px 0 0; }

/* Promises bento */
.bento { display: grid; gap: 16px; margin-top: 40px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.tile h3 { margin-top: 8px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; }
.tile p { color: var(--muted); }
.tile-text { display: flex; flex-direction: column; gap: 12px; }
.tile--lead {
  gap: 24px;
  background:
    linear-gradient(140deg, rgba(255, 190, 40, 0.15) 0%, rgba(240, 78, 35, 0.07) 45%, rgba(33, 28, 31, 0) 80%),
    var(--surface);
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 190, 40, 0.16);
  color: var(--accent);
}
.tile-icon .ico { width: 24px; height: 24px; }
.schematic { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-deep); }
.s-own { color: var(--text); }
.s-sep { margin: 10px 0; color: var(--muted); font-size: 1.125rem; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.2em; }
.s-outly { color: var(--accent); }

/* Steps + closing call to action */
.start-panel {
  display: grid;
  gap: 40px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 190, 40, 0.13), rgba(255, 190, 40, 0) 60%),
    var(--surface);
}
.steps { display: grid; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.steps p { margin-top: 4px; color: var(--muted); }
.start-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 32px; border-top: 1px solid var(--line); }
.bigmark {
  width: 80px;
  height: 80px;
  margin-bottom: 14px;
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 22px 44px -18px rgba(240, 78, 35, 0.45);
}
.start-free { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 18px; }
.start-small { margin-bottom: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); background: var(--bg-deep); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand--footer .brand-mark { width: 30px; height: 30px; }
.brand--footer .brand-name { font-size: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 0 -10px; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.strava-compat { width: auto; height: 18px; }

/* ---------- Inner pages: connect, status, goodbye, privacy, notices ----------
   Same tokens and components as the homepage: .container + .section + h2 +
   .section-lead, .milestone panel for notices, labels above inputs, neutral
   buttons. The official Strava button appears only where it did before. */
/* Short pages: keep the footer at the bottom of the viewport */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; }
.section.page { padding: 40px 0 64px; }
.page-inner { max-width: 760px; }
.prose > * + * { margin-top: 16px; }
.prose > .milestone { margin-top: 28px; }
.prose > .page-cta { margin-top: 28px; }
.prose p, .prose li { color: var(--muted); }
.prose .milestone { color: var(--text); }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose h3 { margin-top: 36px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.prose h3 + p { margin-top: 8px; }
.perm-list { margin: 0; padding-left: 1.25em; }
.perm-list li { padding-left: 4px; }
.perm-list li + li { margin-top: 8px; }
.perm-list li::marker { color: var(--accent); }
.fine { color: var(--faint); font-size: 0.875rem; }
.inline-code {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.inline-link, .plain-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 190, 40, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.inline-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
/* Disconnect: plain and neutral, never orange or amber */
.plain-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 500;
  text-decoration-color: var(--line);
}
.plain-link:hover { color: var(--text); text-decoration-color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); }

/* Forms: label text above its input */
.form { margin-top: 28px; }
.form > * + * { margin-top: 20px; }
.field { display: grid; gap: 8px; max-width: 360px; color: var(--text); font-weight: 600; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: #2A2427; border-color: var(--muted); }
.btn:focus-visible { border-radius: var(--r-sm); }
@media (min-width: 768px) {
  .section.page { padding: 64px 0 88px; }
}
@media (min-width: 1024px) {
  .section.page { padding: 80px 0 112px; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .hero { padding: 48px 0 80px; }
  .section { padding: 88px 0; }
  .stage {
    padding: 48px 40px;
    border-radius: var(--r-lg);
    background:
      radial-gradient(100% 70% at 50% 0%, rgba(255, 190, 40, 0.26), rgba(255, 190, 40, 0) 65%),
      radial-gradient(80% 40% at 50% 100%, rgba(255, 190, 40, 0.06), rgba(255, 190, 40, 0) 75%),
      #1E191B;
  }
  .note-card { padding: 24px 26px; }
  .note-body p { font-size: 1.0625rem; }

  .lines { grid-template-columns: 1fr 1fr; gap: 40px 48px; margin-top: 48px; }
  .lines li { grid-template-columns: 48px 1fr; column-gap: 16px; }
  .num { font-size: 2.5rem; }

  .note-card--wide {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 36px;
    max-width: none;
    padding: 28px 32px;
  }
  .note-card--wide .note-head { grid-column: 1; grid-row: 1; }
  .note-card--wide .note-stats { grid-column: 1; grid-row: 2; align-self: start; margin-bottom: 0; }
  .note-card--wide .note-body {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding-left: 36px;
    border-left: 1px solid var(--line);
  }

  .bento { grid-template-columns: 1fr 1fr; }
  .tile { padding: 32px; }
  .tile--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .start-panel { padding: 48px; }

  .footer-inner { flex-direction: row; align-items: center; gap: 16px 32px; }
  .footer-links { margin: 0; }
  .strava-compat { margin-left: auto; }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 860px);
    padding: 56px 0;
  }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .stage { padding: 60px 48px; }
  .note-body p { font-size: 1.125rem; }
  .section { padding: 112px 0; }
  .lines { gap: 48px 72px; }
  .tile { padding: 40px; }
  .tile--lead { gap: 64px; }
  .start-panel { grid-template-columns: 1.45fr 1fr; gap: 64px; padding: 64px; align-items: center; }
  .start-cta { align-items: center; text-align: center; padding: 0 0 0 64px; border-top: 0; border-left: 1px solid var(--line); }

  /* honest section: card left, words right (DOM keeps heading first) */
  .honest-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas: "card copy";
    gap: 80px;
    align-items: center;
  }
  .honest-grid .section-head { grid-area: copy; }
  .honest-grid .honest-visual { grid-area: card; margin: 0; max-width: none; }
  .note-card--wide { display: block; padding: 28px 30px; }
  .note-card--wide .note-stats { margin-bottom: 16px; }
  .note-card--wide .note-body { padding-left: 0; border-left: 0; }
}

/* ---------- Motion: one hero entrance + light reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-visual { animation: card-in 0.9s 0.15s var(--ease) both; }
  .hero .note-body p { animation: rise 0.6s var(--ease) both; }
  .hero .note-body p:nth-child(1) { animation-delay: 0.5s; }
  .hero .note-body p:nth-child(2) { animation-delay: 0.62s; }
  .hero .note-body p:nth-child(3) { animation-delay: 0.74s; }
  .hero .note-body p:nth-child(4) { animation-delay: 0.86s; }

  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .lines li:nth-child(2) { transition-delay: 0.06s; }
  .js .lines li:nth-child(3) { transition-delay: 0.12s; }
  .js .lines li:nth-child(4) { transition-delay: 0.18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
