/* dorianruns.com — Spec Sheet */

:root {
  --paper: #F3F2EE;
  --ink: #121212;
  --grey: #5B5A55;
  --body: #3A3935;
  --rule: #C9C7C0;
  --photo-bg: #DEDBD4;
  --dark-muted: #A9A79F;
  --dark-body: #CFCDC6;
  --dark-rule: #3A3935;
  --accent: #E05A24;
  --sans: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1376px;
  --pad: clamp(20px, 3vw, 32px);
  --section: clamp(72px, 10vw, 120px);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .plan--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- type helpers ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}
.label--sm { font-size: 11px; letter-spacing: 0.08em; }
.dark .label { color: var(--dark-muted); }

.h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.sq { flex: none; display: inline-block; width: 10px; height: 10px; background: var(--accent); }

/* ---------- contour background ---------- */
.page { position: relative; isolation: isolate; }
.topo {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/topo-page.svg") 50% 0 / cover no-repeat;
  opacity: 0.55;
}
.topo--dark { background-image: url("/assets/img/topo-dark.svg"); background-position: 50% 50%; opacity: 0.7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 56px; padding: 0 20px;
  border: 1px solid var(--ink);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex: none; transition: transform 0.15s ease; }
.btn:hover svg.i-right { transform: translateX(3px); }
.btn:hover svg.i-down { transform: translateY(3px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: transparent; color: var(--paper); }
.btn--sm { min-height: 44px; font-size: 13px; gap: 10px; }

/* ---------- utility bar + nav ---------- */
.util { border-bottom: 1px solid var(--rule); }
.util .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding-block: 10px;
}
.util .label { letter-spacing: 0.04em; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 242, 238, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; min-height: var(--nav-h);
}
.brand { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.menu a:not(.btn) { text-decoration: none; padding-block: 10px; }
.menu a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 16px;
    border: 1px solid var(--ink); background: transparent; color: var(--ink);
    font: 500 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  }
  .js .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--pad) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }
  .js .nav.is-open .menu { display: flex; }
  .js .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 22px; letter-spacing: -0.01em; }
  .js .menu .btn { margin-top: 20px; min-height: 56px; }
}

/* ---------- hero ---------- */
.hero { padding-block: 40px 72px; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: stretch; }
.hero__text { flex: 3 1 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero h1 { display: flex; flex-direction: column; gap: 24px; font-weight: 600; }
.hero__kicker { display: flex; align-items: center; gap: 12px; }
.hero__title { font-size: clamp(56px, 10.5vw, 160px); line-height: 0.86; letter-spacing: -0.055em; }
.hero__lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -0.01em; max-width: 480px; text-wrap: pretty; }
.hero__bottom { display: flex; flex-direction: column; gap: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { flex: 1 1 220px; }
.hero__fig { flex: 2 1 340px; }

/* ---------- figures ---------- */
.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fig__img { position: relative; overflow: hidden; background: var(--photo-bg); }
.fig__img img { width: 100%; height: 100%; object-fit: cover; }
.r-34 { aspect-ratio: 3 / 4; }
.r-45 { aspect-ratio: 4 / 5; }
.r-32 { aspect-ratio: 3 / 2; }
.fig figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey);
}

/* ---------- at a glance ---------- */
.glance { border-block: 1px solid var(--ink); }
.glance__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glance__item { padding: 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--rule); }
.glance__item:first-child { border-left: 0; padding-left: 0; }
.glance__value { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 760px) {
  .glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance__item { padding: 18px 16px; }
  .glance__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .glance__item:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .glance__value { font-size: 20px; }
}

/* ---------- split sections ---------- */
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.split { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.split__side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 20px; }
.split__main { flex: 3 1 560px; min-width: 0; }
.ruled { border-top: 1px solid var(--ink); }

/* about */
.about__inner { display: flex; flex-wrap: wrap; gap: 48px; }
.about__text { flex: 3 1 420px; display: flex; flex-direction: column; gap: 32px; }
.about__big { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; text-wrap: pretty; }
.about__small { font-size: 18px; color: var(--body); max-width: 520px; }
.about__fig { flex: 2 1 280px; }

/* results */
.results { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results thead th {
  padding: 0 0 12px; border-bottom: 1px solid var(--ink); text-align: left;
  font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey);
}
.results thead th:nth-child(1) { width: 56%; }
.results thead th:nth-child(2) { width: 16%; }
.results thead th:nth-child(3) { width: 28%; text-align: right; }
.results tbody th, .results td { padding: 22px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.results tbody th { padding-right: 12px; text-align: left; font-size: clamp(18px, 2vw, 22px); font-weight: 500; line-height: 1.25; }
.results td.year { font-size: clamp(15px, 1.6vw, 18px); color: var(--grey); }
.results td.time { text-align: right; font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }

/* photo pair */
.pair { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pair .fig { flex: 1 1 300px; }
@media (min-width: 700px) { .pair .fig:last-child { margin-top: 96px; } }

/* ---------- dark sections ---------- */
.dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; }
.section-head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.section-head--row > div { display: flex; flex-direction: column; gap: 20px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.principle { border-top: 1px solid var(--paper); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.principle__num { font-family: var(--mono); font-size: 12px; color: var(--dark-muted); }
.principle h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.principle p { color: var(--dark-body); }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step { padding: 28px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.step:first-child { border-left: 0; padding-left: 0; }
.step__num { font-size: 72px; font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.step h3 { font-size: 22px; font-weight: 600; }
.step p { color: var(--body); }
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding: 24px 0; }
  .step + .step { border-top: 1px solid var(--rule); }
  .step__num { font-size: 56px; }
}

/* ---------- coaching / pricing ---------- */
.pricing-note { max-width: 380px; color: var(--body); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.plan { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 40px; }
.plan--line { border: 1px solid var(--ink); background: var(--paper); }
.plan--dark { background: var(--ink); color: var(--paper); }
.plan h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.plan__tag { color: var(--grey); }
.plan--dark .plan__tag { color: var(--paper); display: inline-flex; align-items: center; gap: 8px; }
.plan--dark .plan__tag .sq { width: 8px; height: 8px; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan__amount { font-size: clamp(64px, 7vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.plan__per { font-size: 18px; color: var(--grey); }
.plan--dark .plan__per { color: var(--dark-muted); }
.included { margin-top: 48px; }
.included .label { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); column-gap: 24px; }
.included li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.45; }
.included li svg { flex: none; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 44px; padding: 24px 0; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.faq summary svg { flex: none; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--body); }

/* ---------- contact ---------- */
.contact__grid { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__side { flex: 1 1 380px; display: flex; flex-direction: column; gap: 32px; }
.contact__title { font-size: clamp(56px, 8vw, 120px); line-height: 0.88; font-weight: 600; letter-spacing: -0.055em; }
.contact__intro { font-size: 20px; line-height: 1.45; max-width: 420px; }
.contact__links { display: flex; flex-direction: column; border-top: 1px solid var(--rule); margin-top: 8px; }
.contact__links a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 16px;
}
.contact__links a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.contact__fig { margin-top: 16px; }

.form { flex: 1.3 1 460px; align-self: flex-start; display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  padding: 10px 0; font: 400 20px/1.4 var(--sans);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
  cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 2px center / 18px no-repeat;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 6px; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #B3261E; }
.form .btn { align-self: flex-start; gap: 48px; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form__status { min-height: 1.5em; font-size: 16px; }
.form__status.is-error { color: #B3261E; }
.form-done { flex: 1.3 1 460px; align-self: flex-start; border: 1px solid var(--ink); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.form-done h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.form-done p { font-size: 18px; color: var(--body); }
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .contact__grid { gap: 40px; }
}
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); }
.site-footer .wrap { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__mark { font-size: clamp(64px, 15vw, 224px); line-height: 0.85; font-weight: 600; letter-spacing: -0.06em; }
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  padding-top: 20px; border-top: 1px solid var(--dark-rule);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--paper); }

/* ---------- simple pages (404, thanks) ---------- */
.simple { min-height: 60vh; display: flex; align-items: center; padding-block: var(--section); }
.simple .wrap { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.simple h1 { font-size: clamp(56px, 10vw, 144px); line-height: 0.88; font-weight: 600; letter-spacing: -0.055em; }
.simple p { font-size: 20px; max-width: 520px; color: var(--body); }

/* Netlify Free plan injects a "Powered by Netlify" badge frame; hide it. */
#nl-badge-frame { display: none !important; }
