/* PraxDex sales site. Shared by index.html and founding.html.
   Brand: ink #141414, paper #F8F5F0, orange #F48921 (accent only, never text).
   Type: Newsreader for headings, Schibsted Grotesk for body and the name. */

:root {
  color-scheme: light;
  --ink: #141414;
  --paper: #F8F5F0;
  --orange: #F48921;

  --bg: var(--paper);
  --bg-alt: #F1EDE5;
  --card: #FFFDF9;
  --fg: var(--ink);
  --muted: #5A554D;
  --line: #DDD6CA;
  --line-strong: #BFB7A9;
  --btn: var(--ink);
  --on-btn: var(--paper);
  --focus: var(--ink);
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 18px 48px -18px rgba(20, 20, 20, .22);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0F0F0E;
    --bg-alt: #151513;
    --card: #1A1917;
    --fg: #F2EFEA;
    --muted: #ABA59D;
    --line: #2E2C28;
    --line-strong: #4A4741;
    --btn: var(--orange);
    --on-btn: var(--ink);
    --focus: var(--orange);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 48px -18px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 9.6vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(31px, 5.2vw, 52px); line-height: 1.08; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
p { text-wrap: pretty; }

/* Section label: orange dot (accent) + ink text. */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------- Header ---------- */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); }
.logo svg { height: 30px; width: auto; display: block; overflow: visible; }
.logo .m { fill: var(--fg); }
.logo .a { fill: var(--orange); }
.from { font-size: 13px; color: var(--muted); margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line-strong); line-height: 1.25; display: none; }
.nav { display: none; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: underline; }
.brandline { display: flex; align-items: center; }
@media (min-width: 560px) { .from { display: block; } }
@media (min-width: 900px) { .nav { display: flex; } }

/* Logo reveal, taken from branding/praxdex-motion.html: stem lands, bowl slides in, dot drops and bounces. */
.logo svg * { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .logo .b-stem { animation: bStem .5s cubic-bezier(.3, 1.35, .5, 1) both; }
  .logo .b-bowl { animation: bBowl .5s cubic-bezier(.3, 1.35, .5, 1) .28s both; }
  .logo .b-dot { animation: bDot .95s linear .62s both; }
  .logo .b-word { animation: bWord .55s cubic-bezier(.2, .8, .2, 1) 1.35s both; }
  @keyframes bStem { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes bBowl { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes bDot {
    0% { transform: translateY(-34px); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    12% { opacity: 1; }
    38% { transform: translateY(0) scale(1.12, .86); animation-timing-function: cubic-bezier(0, .5, .5, 1); }
    58% { transform: translateY(-9px) scale(1); animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    76% { transform: translateY(0) scale(1.06, .93); animation-timing-function: cubic-bezier(0, .5, .5, 1); }
    88% { transform: translateY(-2.5px); }
    100% { transform: none; opacity: 1; }
  }
  @keyframes bWord { from { clip-path: inset(0 100% 0 0); transform: translateX(-10px); opacity: 0; } to { clip-path: inset(0 -4% 0 0); transform: none; opacity: 1; } }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--btn); color: var(--on-btn);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { opacity: 1; border-color: var(--fg); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 84px) clamp(48px, 7vw, 96px); }
.hero h1 { margin-top: 22px; }
.hero h1 span { display: block; }
.hero .lede { margin-top: 26px; }
.hero .lede strong { color: var(--fg); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.shot {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #141414; }
.hero .shot { margin-top: clamp(40px, 6vw, 72px); }
.cap { font-size: 14px; color: var(--muted); margin-top: 12px; }
.facts { display: grid; gap: 0; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.facts li { padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts b { display: block; font-weight: 600; }
.facts span { color: var(--muted); font-size: 15.5px; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .facts li { border-bottom: 0; }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.sec.alt { background: var(--bg-alt); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .lede { margin-top: 2px; }

.grid3 { display: grid; gap: 14px; }
@media (min-width: 820px) { .grid3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: 16px; }
.num { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--muted); margin-bottom: 10px; }

/* ---------- Journey stepper ---------- */
.steps { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.steps::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .steps { margin-inline: 0; padding-inline: 0; } }
.step {
  flex: 1 0 auto; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 18px 14px 0; margin-right: 6px;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: 500 15.5px/1.2 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; text-align: left;
}
.step i {
  font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--muted);
}
.step:hover { color: var(--fg); }
.step[aria-selected="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--orange); }
.step[aria-selected="true"] i { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.step:focus-visible { outline-offset: -3px; }
.panel { padding-top: 32px; }
.panel + .panel { margin-top: 48px; }            /* no-JS: every step is shown, stacked */
.js .panel + .panel { margin-top: 0; }
.panel-head { display: grid; gap: 12px 48px; margin-bottom: 26px; }
.panel-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3.4vw, 32px); letter-spacing: -.015em; line-height: 1.15; }
.panel-head p { color: var(--muted); max-width: 62ch; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; justify-self: start; }
.who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.who.client::before { background: var(--orange); }
@media (min-width: 900px) { .panel-head { grid-template-columns: 1fr 1.25fr; align-items: end; } .panel-head .who { grid-column: 1; } .panel-head h3 { grid-column: 1; } .panel-head p { grid-column: 2; grid-row: 1 / span 2; } }
.panel .cap a { color: var(--fg); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* ---------- Data ---------- */
.data-head { display: grid; gap: 28px; margin-bottom: clamp(32px, 5vw, 56px); }
.data-head .sec-head { margin-bottom: 0; }
/* The vault hero needs a box at least 520px wide, or its own caption runs into its label. */
.vault { display: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; height: 440px; }
.vault iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 600px) { .vault { display: block; } }
@media (min-width: 1100px) { .data-head { grid-template-columns: 1fr 520px; gap: 56px; align-items: center; } }

.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
/* Height is set from the diagram's own content by site.js; these are the fallbacks if that fails. */
.frame iframe { display: block; width: 100%; border: 0; height: 1760px; }
@media (min-width: 1000px) { .frame iframe { height: 800px; } }
.ph {
  background: #121211; min-height: 460px; outline: 1px dashed #4A4741; outline-offset: -14px; color: #CFC9C0;
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 36px 28px;
}
.ph img { width: 44px; }
.ph b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: #F2EFEA; letter-spacing: -.01em; }
.ph span { max-width: 44ch; font-size: 15.5px; }
.two { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.two h3 { margin-bottom: 16px; }
.flow { counter-reset: f; display: grid; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding-block: 13px; border-top: 1px solid var(--line); font-size: 16px; }
.flow li::before { content: counter(f); font-family: var(--serif); color: var(--muted); font-size: 18px; line-height: 1.4; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl caption { text-align: left; font-weight: 600; font-size: 19px; letter-spacing: -.01em; padding-bottom: 16px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 13px 12px 13px 0; border-top: 1px solid var(--line); }
.tbl thead th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-top: 0; padding-top: 0; }
.tbl tbody th { font-weight: 500; color: var(--muted); width: 38%; }
.tbl td { font-weight: 500; }
.tbl small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.note { margin-top: 20px; padding: 16px 18px; border-left: 2px solid var(--orange); background: var(--card); border-radius: 0 10px 10px 0; font-size: 15.5px; }

/* ---------- Methodology ---------- */
.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } }
.stat { border-top: 2px solid var(--orange); padding-top: 22px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(84px, 14vw, 148px); line-height: .9; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 14px; color: var(--muted); max-width: 26ch; }
.prose { display: grid; gap: 18px; max-width: 62ch; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--fg); font-weight: 600; }
.ticks { display: grid; gap: 0; margin-top: 8px; }
.ticks li { position: relative; padding: 13px 0 13px 26px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- Rules ---------- */
.rules { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.rules .num { margin: 0; grid-row: span 2; font-size: 26px; padding-top: 2px; }
.rules h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 27px); letter-spacing: -.01em; line-height: 1.2; }
.rules p { grid-column: 2; color: var(--muted); font-size: 16px; }
@media (min-width: 900px) {
  .rules { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}
.fine { font-size: 14.5px; color: var(--muted); margin-top: 26px; max-width: 70ch; }

/* ---------- Apply ---------- */
.apply { display: grid; gap: 40px; }
@media (min-width: 900px) { .apply { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; } }
.apply-steps { display: grid; gap: 0; margin-top: 28px; counter-reset: a; }
.apply-steps li { counter-increment: a; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.apply-steps li::before { content: counter(a); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.apply-steps li b { color: var(--fg); font-weight: 600; display: block; }
.apply-steps li.on::before { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.apply-steps li.done::before { content: "✓"; background: var(--fg); border-color: var(--fg); color: var(--bg); }
.formcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 15.5px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px; min-height: 50px;
}
textarea { min-height: 112px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); border-radius: 10px; }
.pair { display: grid; gap: 20px; }
@media (min-width: 620px) { .pair { grid-template-columns: 1fr 1fr; } }
.formfoot { display: grid; gap: 14px; justify-items: start; }
.formfoot p { font-size: 14px; color: var(--muted); }
.done-box { display: grid; gap: 18px; justify-items: start; }
.done-box h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 3.6vw, 36px); line-height: 1.12; letter-spacing: -.015em; }
.done-box h3:focus { outline: none; }
.done-box p { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.placeholder-note { font-size: 13.5px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px 12px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--fg); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px 64px; font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: grid; gap: 22px; }
.foot .logo-img { height: 26px; width: auto; }
.foot p { max-width: 78ch; }
.dark-only { display: none; }
@media (prefers-color-scheme: dark) { .dark-only { display: block; } .light-only { display: none; } }

/* ---------- Founding page ---------- */
.private { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; color: var(--muted); }
.terms { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: t; }
.terms li { counter-increment: t; display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.terms li::before { content: counter(t); font-family: var(--serif); font-size: 26px; color: var(--muted); line-height: 1.2; grid-row: span 2; }
.terms h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.8vw, 28px); letter-spacing: -.01em; line-height: 1.2; }
.terms p { grid-column: 2; color: var(--muted); max-width: 64ch; }
.exchange { display: grid; gap: 14px; }
@media (min-width: 820px) { .exchange { grid-template-columns: 1fr 1fr; gap: 20px; } }
.exchange .card h3 { margin-bottom: 4px; }
.exchange .ticks li { font-size: 16px; color: var(--muted); }
.narrow { max-width: 820px; }

/* Application form: the trap field for bots, and the send error */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--fg); border-left: 3px solid var(--orange, #F48921); padding-left: 12px; }

/* Hero video: plays muted on its own, with "watch with sound" and pause (same pattern as taylorproactiveteam.com) */
.hero-video { position: relative; }
.hv-btn {
  position: absolute; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border: 1px solid rgba(248, 245, 240, 0.28); cursor: pointer; background: rgba(20, 20, 20, 0.82); color: #F8F5F0;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
}
.hv-btn:hover { background: #141414; }
.hv-btn:focus-visible { outline: 2px solid #F48921; outline-offset: 2px; }
.hv-sound { left: 12px; padding: 0 16px; border-radius: 999px; }
.hv-sound svg { width: 16px; height: 16px; }
.hv-pause { right: 12px; width: 44px; border-radius: 999px; }
.hv-pause svg { width: 18px; height: 18px; }
.hv-pause .i-play { display: none; }
.hero-video.is-paused .hv-pause .i-play { display: block; }
.hero-video.is-paused .hv-pause .i-pause { display: none; }
.hero-video.is-still .hv-pause { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 64px; height: 64px; background: #F48921; color: #141414; }
.hero-video.is-still .hv-pause svg { width: 24px; height: 24px; }
.hero-video.is-sound .hv-btn { display: none; }
/* On phones the sound button moves to the top so it does not cover the captions in the video. */
@media (max-width: 600px) { .hv-sound { top: 10px; bottom: auto; min-height: 40px; font-size: 13px; padding: 0 13px; } }
