/* JOLA DIGI — site styles
   Palette: yellow is the logo only; orange is interactive only. */

:root {
  --char: #110E0A;     /* page ground; also the gap between boards */
  --board: #2D261E;    /* raised band — 1.29:1 against the ground */
  --rule: #4A4136;     /* hairlines inside a board */
  --chalk: #EDE8E0;    /* primary text */
  --ash: #A89E90;      /* secondary text */
  --orange: #F67C24;   /* interactive only */
  --orange-hover: #FF9142;

  --gap: 6px;          /* the board gap — same everywhere */
  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 76rem;
  --measure: 64ch;
  /* Left heading column on desktop: 26% of the content width, between 17.5rem and 22rem.
     17.5rem is set by the type: the longest heading word ("Appointment") at full h2 size. */
  --rail-min: 17.5rem;
  --rail-max: 22rem;
  --rail-ratio: 0.26;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--char);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.25rem, 15vw, 7.5rem); }
h2 { font-size: clamp(2.25rem, 7vw, 3.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }

p, li, dd { max-width: var(--measure); }
.lede { font-size: clamp(1.25rem, 3.4vw, 1.5rem); line-height: 1.45; color: var(--chalk); }
.muted { color: var(--ash); }
.small { font-size: 1rem; }

/* ---------- links, buttons, focus ---------- */

a {
  color: var(--chalk);
  text-decoration-line: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--orange); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  background: var(--orange);
  color: var(--char);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--orange-hover); color: var(--char); }
.button:active { transform: translateY(1px); }

/* ---------- layout ---------- */

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--pad); top: -4rem;
  background: var(--orange); color: var(--char); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* The deck: stacked full-width boards with a constant gap */
.deck { display: grid; gap: var(--gap); }
.board { background: var(--board); padding-block: clamp(2rem, 6vw, 3.5rem); }

.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ---------- header ---------- */

.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.logo img { height: 1.9rem; width: auto; }

.nav-toggle {
  display: none;
  min-height: 3rem; padding: 0 0.25rem 0 1rem;
  background: none; border: 0; color: var(--chalk);
  font: 600 1.125rem/1 var(--body); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}

.site-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.75rem; flex-wrap: wrap; }
.site-nav a:not(.button) {
  display: inline-block; padding-block: 0.75rem;
  font-weight: 500; text-decoration-color: transparent;
}
.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] { text-decoration-color: var(--orange); }
.site-nav a[aria-current="page"] { color: var(--chalk); }
.site-nav .button { margin-left: 0.5rem; min-height: 2.75rem; padding-inline: 1.25rem; }

/* compact CTA shown in the header on small screens, where the nav is collapsed */
.header-cta { display: none; min-height: 2.75rem; padding: 0.5rem 0.9rem; font-size: 1rem; }

@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .site-header .wrap { gap: 0.5rem; }
  .header-cta { display: inline-flex; margin-left: auto; }
  .site-nav li:has(> .button) { display: none; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.75rem; }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav a:not(.button) { display: block; padding-block: 0.9rem; font-size: 1.25rem; }
  .site-nav li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ---------- hero / page intro (on the ground, not a board) ---------- */

.hero { padding-block: clamp(3.5rem, 14vw, 9rem) clamp(3rem, 10vw, 6rem); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: clamp(1.5rem, 4vw, 2.25rem); max-width: 40ch; color: var(--ash); }

.intro { padding-block: clamp(2.5rem, 10vw, 6rem) clamp(2.5rem, 7vw, 4rem); }
.intro h1 { max-width: 18ch; }
.intro .lede { margin-top: 1.5rem; max-width: 46ch; color: var(--ash); }

/* ---------- home ---------- */

/* Hero is sized from 390px up: headline, subhead and button fit the first screen. */
.home-hero { padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem); overflow: hidden; overflow: clip; }
.home-hero .wrap { display: grid; gap: clamp(2.5rem, 8vw, 3.5rem); }
.home-hero h1 { max-width: none; font-size: clamp(2.625rem, 10.8vw, 5rem); line-height: 1; }
.home-hero h1 .line { display: block; }
.home-hero .lede { margin-top: 1.25rem; }
.hero-cta { margin-top: 1.75rem; }
@media (max-width: 559px) {
  .hero-cta .button { width: 100%; }
}
@media (min-width: 960px) {
  .home-hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 4rem; }
  .home-hero h1 { font-size: clamp(3.5rem, 5.6vw, 5rem); }
}

/* Phone stage: the light source in the hero */
.phone-stage { position: relative; justify-self: start; padding-block: 1rem; }
.phone-stage::before {
  content: ""; position: absolute; inset: -18% -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 226, 190, 0.3), rgba(255, 226, 190, 0.1) 50%, transparent 85%);
}
@media (min-width: 960px) { .phone-stage { justify-self: center; } }

/* phone mockup: a device, so it gets the only rounded corners on the site */
.phone {
  position: relative; z-index: 1;
  width: 17rem;
  max-width: 100%;
  padding: 0.55rem;
  background: #0B0A08;
  border: 1px solid #3F3A33;
  border-radius: 2.6rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 60px -20px rgba(0, 0, 0, 0.75),
    0 18px 30px -12px rgba(0, 0, 0, 0.6);
}
.phone-screen {
  aspect-ratio: 9 / 17;
  background: linear-gradient(180deg, #F3F1ED 0%, #E4E0D9 100%);
  color: var(--char);
  border-radius: 2.1rem;
  padding: 3rem 0.7rem 1rem;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.phone-screen::before { /* camera cut-out */
  content: ""; position: absolute; top: 0.65rem; left: 50%; transform: translateX(-50%);
  width: 5.25rem; height: 1.45rem; border-radius: 1rem; background: #0B0A08;
}
.phone-clock { text-align: center; margin-bottom: 2rem; }
.phone-date { color: #5E564C; font-size: 0.95rem; font-weight: 500; }
.phone-time { font-family: var(--display); font-weight: 600; font-size: 4.25rem; line-height: 1; color: #1E1A15; }

.sms {
  background: #FFFFFF;
  color: #1E1A15;
  border-radius: 1.1rem;
  padding: 0.75rem 0.9rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 8px 20px -8px rgba(40, 30, 20, 0.35), 0 1px 2px rgba(40, 30, 20, 0.12);
}
.sms-head { display: flex; align-items: center; gap: 0.5rem; color: #6B6258; font-size: 0.8rem; margin-bottom: 0.4rem; }
.sms-icon { width: 1.25rem; height: 1.25rem; border-radius: 0.3rem; }
.sms-when { margin-left: auto; }
.sms-from { font-weight: 600; }
.sms-body { margin-top: 0.15rem; }

.diff-title { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); max-width: 18ch; }
.diff-rows { list-style: none; padding: 0; }
.diff-rows > li {
  max-width: none;
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem;
  display: grid; gap: 1rem;
}
.diff-rows > li:last-child { padding-bottom: 0; }
.diff-rows h3 { font-size: 1.35rem; }
.diff-ask { color: var(--chalk); font-weight: 600; }
.diff-ask ul { list-style: none; padding: 0; margin-top: 0.5rem; }
.diff-ask li { padding-left: 1rem; position: relative; }
.diff-ask li + li { margin-top: 0.35rem; }
.diff-ask li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 2px; background: var(--chalk); }
@media (min-width: 860px) {
  .diff-rows > li { grid-template-columns: minmax(16rem, 1fr) 1.6fr; gap: 3rem; }
}

.process-lines { list-style: none; padding: 0; }
.process-lines li { border-top: 1px solid var(--rule); padding-block: 0.9rem; }
.process-lines li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- how it works ---------- */

.num {
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;  /* body sets "tnum" 0, which would otherwise win */
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 0.8;
}

.phases { position: relative; container-type: inline-size; }

.phase-bar {
  display: none;
  position: sticky; top: 0; z-index: 5;
  background: var(--char);
  border-bottom: 1px solid var(--rule);
  font-size: 1rem; font-weight: 600;
}
.phase-bar .wrap { padding-block: 0.7rem; display: flex; gap: 0.6rem; }
.phase-bar .of { color: var(--ash); font-weight: 400; }

.phases-layout { display: grid; gap: var(--gap); }

.phase-index { display: none; }

@media (max-width: 859px) {
  .js .phase-bar { display: block; }
}

@media (min-width: 860px) {
  .phases-layout {
    --edge: max(var(--pad), calc((100cqw - var(--max)) / 2 + var(--pad)));
    --rail: clamp(var(--rail-min), calc((min(100cqw, var(--max)) - 2 * var(--pad)) * var(--rail-ratio)), var(--rail-max));
    grid-template-columns: calc(var(--edge) + var(--rail)) minmax(0, 1fr);
    gap: 0;
  }
  .phase-index { display: block; padding-left: var(--edge); }
  .phase-index ol {
    position: sticky; top: 2rem;
    list-style: none; padding: 0.5rem 1.5rem 0 0;
  }
  .phase-index a {
    display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.5rem;
    padding: 0.8rem 0 0.8rem 1rem;
    border-left: 3px solid var(--rule);
    color: var(--ash); text-decoration: none; line-height: 1.3;
    transition: color 200ms ease, border-color 200ms ease;
  }
  .phase-index a:hover { color: var(--chalk); }
  .phase-index a[aria-current="step"] { color: var(--chalk); border-left-color: var(--chalk); }
  .phase-index .n { font-variant-numeric: tabular-nums; font-weight: 600; }
  .phases-layout .phase-boards .wrap { max-width: none; padding-left: 3rem; padding-right: var(--edge); }
}

.phase-boards { display: grid; gap: var(--gap); }

.phase-head {
  display: grid; grid-template-columns: auto 1fr; gap: 0 1.25rem; align-items: end;
  padding-bottom: 1.75rem;
}
.phase-head .num { font-size: clamp(4.5rem, 18vw, 7rem); }
.phase-head h2 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.phase-head .when { color: var(--ash); margin-top: 0.4rem; }
.phase-summary { margin-bottom: 1.5rem; max-width: 56ch; }

.steps { list-style: none; padding: 0; }
.step { border-top: 1px solid var(--rule); padding-block: 1.5rem; display: grid; gap: 0.75rem; max-width: none; }
.step:last-child { padding-bottom: 0; }
.step h3 { font-size: 1.3rem; }
.step dl { display: grid; gap: 0.75rem; }
.step dt { font-size: 0.95rem; color: var(--ash); }
.step dd { margin-top: 0.1rem; }

@media (min-width: 1100px) {
  .step { grid-template-columns: 13rem 1fr 1fr; gap: 2rem; }
  .step dl { grid-column: 2 / 4; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .step dd { margin-top: 0.25rem; }
}

/* ---------- generic content boards ---------- */

.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(min-content, clamp(var(--rail-min), 26%, var(--rail-max))) minmax(0, 1fr); }
}

.list { padding: 0; list-style: none; }
.list li { border-top: 1px solid var(--rule); padding-block: 0.9rem; }
.list li:last-child { border-bottom: 1px solid var(--rule); }

.facts { display: grid; }
.facts > div { border-top: 1px solid var(--rule); padding-block: 1rem; display: grid; gap: 0.15rem; }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ash); font-size: 1rem; }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; }
}

/* contact rows: big, tappable */
.contact-rows { display: grid; }
.contact-rows > div { border-top: 1px solid var(--rule); padding-block: 1.25rem; }
.contact-rows > div:last-child { border-bottom: 1px solid var(--rule); }
.contact-rows > div:first-child { border-top: 0; padding-top: 0; }
.contact-rows dt { color: var(--ash); font-size: 1rem; }
.contact-rows dd { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 6vw, 2.75rem); line-height: 1.1; margin-top: 0.2rem; overflow-wrap: anywhere; }

/* ---------- example (demonstration) material ---------- */

.example { padding-top: 1rem; }
.example-label {
  display: block;
  font-size: 1rem;
  color: var(--ash);
  border-left: 3px solid var(--rule);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

/* ---------- CTA board ---------- */

.cta .wrap { display: grid; gap: 1.5rem; }
.cta h2 { max-width: 16ch; }
.cta p { color: var(--ash); max-width: 44ch; }
@media (min-width: 860px) {
  .cta .wrap { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
}

/* ---------- prose (privacy) ---------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; padding-left: 1.25rem; }
.prose li { margin-top: 0.4rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--ash); }
.prose strong { font-weight: 600; }
.prose h2 { scroll-margin-top: 1.5rem; }
.prose-details { margin-top: 1rem; display: grid; }
.prose-details > div { border-top: 1px solid var(--rule); padding-block: 0.7rem; display: grid; gap: 0.1rem; }
.prose-details > div:last-child { border-bottom: 1px solid var(--rule); }
.prose-details dt { color: var(--ash); font-size: 1rem; }
.prose-details dd { overflow-wrap: anywhere; }
@media (min-width: 560px) {
  .prose-details > div { grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline; }
}

/* ---------- footer ---------- */

.site-footer { padding-block: 3rem 2.5rem; font-size: 1rem; color: var(--ash); }
.site-footer .wrap { display: grid; gap: 2rem; }
.site-footer .logo img { height: 1.6rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer a { color: var(--ash); text-decoration-color: var(--rule); display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer a:hover { color: var(--chalk); text-decoration-color: var(--orange); }
.site-footer .footer-links p { margin-top: 1rem; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
@media (min-width: 860px) {
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: start; }
  .site-footer .footer-links { justify-self: end; text-align: right; display: grid; gap: 0.75rem; justify-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .button:active { transform: none; }
}

.after-phases { margin-top: var(--gap); }
.example-title { margin-bottom: 0.75rem; }
