/* handyside.legal — concept "Good Order"
   One shared stylesheet. Plain CSS, no build step. */

/* ---------- Tokens ---------- */
:root {
  --orange: #FF4F00;
  --orange-hover: #EE4D04;
  --ink: #1A1A1A;
  --text: #040505;
  --muted: #5F6468;
  --surface: #FFFFFF;
  --surface-muted: #F7F8F9;
  --border: #DDDDDD;
  --border-soft: #E9EBED;

  --dark-surface: #1A1A1A;
  --dark-surface-2: #222426;
  --dark-text: #F2F1EF;
  --dark-muted: #A6ABB0;
  --dark-border: #34373A;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
small { font-size: 0.875em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.display, h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.08;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.005em; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink); max-width: 36em; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.25rem;
}
.eyebrow .num { color: var(--orange); font-family: var(--serif); font-size: 1.1em; letter-spacing: 0; text-transform: none; margin-right: .5em; font-variant-numeric: tabular-nums; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 0; }
.measure { max-width: 40em; }

/* The "index line": small orange rule above a heading */
.rule { position: relative; padding-top: 1.25rem; }
.rule::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 2px; background: var(--orange); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--muted { background: var(--surface-muted); }
.section--dark { background: var(--dark-surface); color: var(--dark-text); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark .lead { color: var(--dark-text); }
.section--dark .muted, .section--dark .eyebrow { color: var(--dark-muted); }
.section--line { border-top: 1px solid var(--border); }

.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--align { align-items: center; }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4, .grid--5-7, .grid--7-5, .grid--4-8 { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { max-width: 20em; }
.section-head .lead { margin-top: 1rem; }
.section-head--row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.section-head--row > .btn { justify-self: end; }
@media (max-width: 700px) { .section-head--row { grid-template-columns: minmax(0, 1fr); } .section-head--row > .btn { justify-self: start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; line-height: 1;
  padding: 0.95em 1.4em; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--dark .btn--ghost { color: var(--dark-text); border-color: var(--dark-text); }
.section--dark .btn--ghost:hover { background: var(--dark-text); color: var(--ink); }
.btn--link { padding: 0; background: none; border: 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .25em; }
.btn--link:hover { color: var(--orange); }
.btn .arrow { font-family: var(--serif); font-size: 1.15em; line-height: 0; transform: translateY(-.05em); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); list-style: none; }
.nav__list a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink); padding: 8px 0; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .18s; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: clamp(8px, 1.6vw, 24px); }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle-label { display: none; }

@media (max-width: 900px) {
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 32px; }
  .nav-toggle-label {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 0.9375rem;
    padding: 8px 2px; color: var(--ink); user-select: none;
  }
  .nav-toggle-label .bars { width: 20px; height: 14px; position: relative; }
  .nav-toggle-label .bars::before, .nav-toggle-label .bars::after, .nav-toggle-label .bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .18s, opacity .18s;
  }
  .nav-toggle-label .bars::before { top: 0; }
  .nav-toggle-label .bars span { top: 6px; }
  .nav-toggle-label .bars::after { bottom: 0; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--orange); outline-offset: 3px; }
  .nav-toggle:checked + .nav-toggle-label .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:checked + .nav-toggle-label .bars span { opacity: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--border-soft); }
  .nav__list a { display: block; padding: 14px 0; font-size: 1.0625rem; }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--orange); }
  .nav__cta { margin: 20px 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 6vw, 88px); }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 1.5rem; }
.hero--page { padding-bottom: clamp(32px, 5vw, 64px); }
.hero--page h1 { max-width: 14em; }
.hero__aside { align-self: end; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trust .wrap { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: baseline; }
.trust__label { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.trust__names { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.trust__names li { white-space: nowrap; }
.trust__names li + li::before { content: "·"; color: var(--orange); margin: 0 .6em; }
.trust__names a { text-decoration: none; }
.trust__names a:hover { color: var(--orange); }
@media (max-width: 900px) { .trust .wrap { grid-template-columns: minmax(0, 1fr); } .trust__names { font-size: 1.125rem; } }
@media (max-width: 700px) { .trust__names { display: block; } .trust__names li { white-space: normal; padding: 4px 0; } .trust__names li + li::before { content: none; } }

/* ---------- Steps (the workflow) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.steps > li { padding: 28px 28px 32px 0; border-right: 1px solid var(--border); margin-right: 28px; position: relative; }
.steps > li:last-child { border-right: 0; margin-right: 0; }
.steps .num { display: block; font-family: var(--serif); color: var(--orange); font-size: 1.5rem; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.steps a { color: var(--ink); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li:nth-child(2) { border-right: 0; margin-right: 0; }
  .steps > li { border-bottom: 1px solid var(--border); }
  .steps > li:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps > li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; }
  .steps > li:last-child { border-bottom: 0; }
}

/* ---------- Ruled lists (pillars, roles, FAQ) ---------- */
.ruled { list-style: none; border-top: 1px solid var(--border); }
.ruled > li { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 48px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.ruled h3 { display: flex; gap: 1em; align-items: baseline; }
.ruled .num { font-family: var(--serif); color: var(--orange); font-weight: 400; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.ruled p:last-child { margin-bottom: 0; }
.ruled .figure { font-family: var(--serif); font-size: clamp(2rem, 2vw + 1rem, 2.75rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.ruled .figure small { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; margin-left: .5em; }
@media (max-width: 700px) { .ruled > li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; } }

/* ---------- Quotes ---------- */
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
.quote p::before { content: "\201C"; color: var(--orange); margin-right: .05em; }
.quote p::after { content: "\201D"; }
.quote footer { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--muted); }
.quote footer strong { color: var(--ink); font-weight: 600; }
.quote--sm p { font-size: 1.25rem; line-height: 1.4; }
.quote--sm footer { margin-top: 1rem; font-size: 0.875rem; }
.quotes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.quotes > li { padding: 32px 0; border-top: 1px solid var(--border); }
.quotes > li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
@media (max-width: 800px) { .quotes { grid-template-columns: minmax(0, 1fr); } .quotes > li:nth-child(2) { border-top: 1px solid var(--border); padding-top: 32px; } }

/* ---------- Product frames (illustrative) ---------- */
.frame {
  --fs: clamp(8.5px, 0.45vw + 5px, 11px);
  font-size: var(--fs);
  font-family: var(--sans);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(26,26,26,.04), 0 24px 48px -24px rgba(26,26,26,.18);
  overflow: hidden;
  color: var(--text);
  line-height: 1.4;
}
.frame--shadowless { box-shadow: none; }
.frame__bar { display: flex; align-items: center; gap: 1em; padding: .8em 1.1em; border-bottom: 1px solid var(--border-soft); background: #FAFBFB; }
.frame__dots { display: inline-flex; gap: .45em; }
.frame__dots i { width: .85em; height: .85em; border-radius: 50%; background: var(--border); }
.frame__url { flex: 1; font-size: .95em; color: var(--muted); background: #fff; border: 1px solid var(--border-soft); border-radius: 4px; padding: .35em .9em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame__url .lock { color: var(--muted); margin-right: .5em; }
.app { display: grid; grid-template-columns: 13em minmax(0, 1fr); min-height: 24em; }
.app--norail { grid-template-columns: 1fr; }
.app__rail { background: var(--surface-muted); border-right: 1px solid var(--border-soft); padding: 1.2em 0; display: flex; flex-direction: column; }
.app__brand { display: flex; align-items: center; gap: .7em; padding: 0 1.2em 1.2em; font-weight: 600; font-size: 1.05em; color: var(--ink); }
.app__brand svg { width: 1.3em; height: auto; }
.app__brand small { display: block; font-weight: 400; color: var(--muted); font-size: .8em; }
.app__nav { list-style: none; }
.app__nav li { padding: .55em 1.2em; color: var(--muted); font-size: .95em; display: flex; justify-content: space-between; align-items: center; }
.app__nav li.is-active { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); background: #fff; }
.app__nav .count { font-size: .8em; color: var(--muted); background: #fff; border: 1px solid var(--border-soft); border-radius: 999px; padding: 0 .6em; }
.app__nav li.is-active .count { background: var(--surface-muted); }
@media (max-width: 560px) { .app { grid-template-columns: minmax(0, 1fr); } .app__rail { display: none; } }
.app__user { margin-top: auto; padding: 1em 1.2em 0; display: flex; align-items: center; gap: .6em; font-size: .9em; color: var(--muted); border-top: 1px solid var(--border-soft); }
.avatar { width: 2em; height: 2em; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85em; font-weight: 600; flex: none; }
.app__main { padding: 1.4em 1.6em 1.6em; min-width: 0; overflow-x: auto; }
@media (max-width: 560px) { .ui-table .hide-xs { display: none; } }
.app__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; margin-bottom: 1.2em; }
.app__head h4 { font-size: 1.35em; font-weight: 600; color: var(--ink); margin: 0; }
.app__head .crumb { font-size: .9em; color: var(--muted); margin-bottom: .3em; }
.app__tools { display: flex; gap: .5em; flex-wrap: wrap; }
.ui-btn { font-size: .9em; font-weight: 600; padding: .5em .9em; border-radius: 3px; border: 1px solid var(--border); background: #fff; color: var(--ink); white-space: nowrap; }
.ui-btn--primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.ui-btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.ui-tabs { display: flex; gap: 1.4em; border-bottom: 1px solid var(--border-soft); margin-bottom: 1em; font-size: .95em; color: var(--muted); }
.ui-tabs span { padding: .4em 0 .6em; }
.ui-tabs .is-active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--orange); }
.ui-search { display: flex; align-items: center; gap: .6em; border: 1px solid var(--border); border-radius: 3px; padding: .45em .8em; color: var(--muted); font-size: .9em; background: #fff; min-width: 12em; }
.ui-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.ui-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85em; letter-spacing: .04em; text-transform: uppercase; padding: .5em .6em .6em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ui-table td { padding: .75em .6em; border-bottom: 1px solid var(--border-soft); vertical-align: middle; white-space: nowrap; }
.ui-table td.wrap-cell { white-space: normal; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table .r { text-align: right; }
.ui-table .c { text-align: center; }
.ui-table .em { font-weight: 600; color: var(--ink); }
.ui-table .dim { color: var(--muted); }
.ui-table .selected td { background: #FFF4EE; }
.tag { display: inline-block; font-size: .8em; font-weight: 500; padding: .15em .6em; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: #fff; }
.tag--ok { border-color: var(--ink); color: var(--ink); }
.tag--on { border-color: var(--orange); color: var(--ink); background: #FFF4EE; }
.tag--dot::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--orange); margin-right: .45em; vertical-align: .08em; }
.tick { display: inline-block; width: 1.1em; height: 1.1em; border: 1px solid var(--border); border-radius: 2px; vertical-align: middle; position: relative; background: #fff; }
.tick--on { background: var(--ink); border-color: var(--ink); }
.tick--on::after { content: ""; position: absolute; left: .32em; top: .12em; width: .3em; height: .55em; border: solid #fff; border-width: 0 .14em .14em 0; transform: rotate(45deg); }
.band { display: inline-block; font-weight: 600; color: var(--ink); min-width: 4.2em; }
.band small { color: var(--muted); font-weight: 400; }
.up { color: var(--orange); font-weight: 600; }
.flat { color: var(--muted); }
.frame figcaption, .frame-caption { font-size: 0.8125rem; color: var(--muted); margin-top: 12px; }
.frame-wrap { position: relative; }
.frame-wrap > figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 14px; }

/* Generate dialog */
.dialog { background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(26,26,26,.35); padding: 1.4em 1.6em; max-width: 36em; margin: 0 auto; }
.dialog h4 { font-size: 1.25em; font-weight: 600; margin: 0 0 .25em; color: var(--ink); }
.dialog .sub { color: var(--muted); font-size: .95em; margin-bottom: 1.2em; }
.dialog .row { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .85em 0; border-top: 1px solid var(--border-soft); }
.dialog .row:last-of-type { border-bottom: 1px solid var(--border-soft); }
.dialog .row .lbl { display: flex; align-items: center; gap: .8em; min-width: 0; }
.dialog .row .lbl span { display: block; }
.dialog .row .lbl small { display: block; color: var(--muted); font-size: .85em; }
.doc-icon { width: 2.2em; height: 2.8em; border: 1px solid var(--border); border-radius: 2px; position: relative; flex: none; background: #fff; }
.doc-icon::before { content: ""; position: absolute; right: -1px; top: -1px; width: .8em; height: .8em; background: var(--surface-muted); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.doc-icon span { position: absolute; left: 0; right: 0; bottom: .35em; text-align: center; font-size: .6em; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.dialog .foot { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-top: 1.2em; font-size: .9em; color: var(--muted); }
.dialog .foot .ui-btn { font-size: 1em; }
.frame--stage { padding: 2.4em 1.6em; background: var(--surface-muted); border-color: var(--border-soft); }

/* Phone frame */
.phone {
  --fs: clamp(9px, 0.5vw + 6px, 12px);
  font-size: var(--fs); font-family: var(--sans);
  width: 22em; max-width: 100%; margin: 0 auto;
  border-radius: 2.6em; padding: .7em;
  background: #0B0C0D; border: 1px solid #3A3D40;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  color: var(--dark-text);
}
.phone__screen { background: #121415; border-radius: 2em; overflow: hidden; min-height: 42em; display: flex; flex-direction: column; }
.phone__status { display: flex; justify-content: space-between; padding: 1em 1.6em .4em; font-size: .85em; color: var(--dark-muted); }
.phone__status b { color: var(--dark-text); font-weight: 600; }
.phone__head { padding: .6em 1.4em 1em; display: flex; align-items: center; justify-content: space-between; }
.phone__head h4 { font-size: 1.5em; font-weight: 600; margin: 0; color: var(--dark-text); }
.phone__head .avatar { background: var(--orange); color: var(--ink); }
.phone__tabs { display: flex; gap: 1.2em; padding: 0 1.4em; border-bottom: 1px solid var(--dark-border); font-size: .9em; color: var(--dark-muted); }
.phone__tabs span { padding: .4em 0 .7em; }
.phone__tabs .is-active { color: var(--dark-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--orange); }
.phone__list { list-style: none; padding: .4em 1.4em; }
.phone__list li { padding: .9em 0; border-bottom: 1px solid var(--dark-border); display: grid; grid-template-columns: 1fr auto; gap: .2em .8em; }
.phone__list li:last-child { border-bottom: 0; }
.phone__list .t { font-weight: 500; color: var(--dark-text); grid-column: 1; }
.phone__list .m { font-size: .85em; color: var(--dark-muted); grid-column: 1; }
.phone__list .tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: transparent; border-color: var(--dark-border); color: var(--dark-muted); }
.phone__list .tag--on { border-color: var(--orange); color: var(--dark-text); background: rgba(255,79,0,.12); }
.phone__fab { margin: auto 1.4em 1.4em auto; background: var(--orange); color: var(--ink); font-weight: 600; border-radius: 999px; padding: .7em 1.2em; font-size: .95em; }
.phone__bar { display: flex; justify-content: space-around; padding: .8em 1em 1.4em; border-top: 1px solid var(--dark-border); font-size: .8em; color: var(--dark-muted); }
.phone__bar .is-active { color: var(--orange); font-weight: 600; }

/* ---------- Chapters (how it works) ---------- */
.chapter { padding: clamp(48px, 7vw, 104px) 0; border-top: 1px solid var(--border); }
.chapter:first-of-type { border-top: 0; }
.chapter__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.chapter__grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter__grid--flip .chapter__text { order: 2; }
.chapter__text { position: sticky; top: 108px; }
.chapter h2 { margin-top: .5rem; margin-bottom: 1.25rem; }
.chapter .points { list-style: none; margin-top: 1.5rem; border-top: 1px solid var(--border); }
.chapter .points li { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: baseline; }
.chapter .points li::before { content: ""; width: 14px; height: 2px; background: var(--orange); transform: translateY(-.25em); }
.chapter-index { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.9375rem; margin-top: 2rem; }
.chapter-index a { text-decoration: none; color: var(--muted); }
.chapter-index a:hover { color: var(--orange); }
.chapter-index .num { font-family: var(--serif); color: var(--orange); margin-right: .5em; }
@media (max-width: 900px) {
  .chapter__grid, .chapter__grid--flip { grid-template-columns: minmax(0, 1fr); }
  .chapter__grid--flip .chapter__text { order: -1; }
  .chapter__text { position: static; }
}

/* ---------- Roles table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-weight: 500; color: var(--muted); font-size: 0.8125rem; letter-spacing: .06em; text-transform: uppercase; }
.table thead th { border-bottom-color: var(--ink); }
.table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table .yes { color: var(--orange); font-weight: 600; }
.table .no { color: var(--border); }
@media (max-width: 900px) { .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } .table { min-width: 760px; } }

/* ---------- Facts list ---------- */
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--dark-border); display: grid; grid-template-columns: 14px 1fr; gap: 16px; align-items: baseline; font-size: 1rem; }
.facts li::before { content: ""; width: 14px; height: 2px; background: var(--orange); transform: translateY(-.3em); }
.facts strong { font-weight: 600; }
.facts span { display: block; color: var(--dark-muted); font-size: 0.9375rem; }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Two-up panels ---------- */
.panel { background: var(--surface-muted); border-radius: 6px; padding: clamp(28px, 3vw, 44px); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
.panel p:last-child { margin-bottom: 0; }
.panel--line { background: transparent; border: 1px solid var(--border); }

/* ---------- Team ---------- */
.team { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.team > li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.monogram { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 2rem; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.monogram--orange { background: var(--orange); color: var(--ink); }
.team h3 { font-size: 1.375rem; margin-bottom: .15rem; }
.team .role { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.team p { font-size: 0.9375rem; }
@media (max-width: 900px) { .team { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .team > li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.clients h3 { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ink); }
.clients ul { list-style: none; columns: 2; column-gap: 32px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.clients li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
@media (max-width: 900px) { .clients { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .clients ul { columns: 1; } }
.note { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Blog ---------- */
.post-list { list-style: none; border-top: 1px solid var(--border); }
.post-list > li { display: grid; grid-template-columns: 160px minmax(0, 1fr) 200px; gap: 24px 40px; padding: 36px 0; border-bottom: 1px solid var(--border); align-items: start; }
.post-list time { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: .6rem; }
.post-list h3 a { text-decoration: none; }
.post-list h3 a:hover { color: var(--orange); }
.post-list p { color: var(--muted); font-size: 0.9875rem; margin-bottom: .75rem; max-width: 60ch; }
.post-list p:last-of-type { margin-bottom: 0; }
.post-list .more { font-size: 0.9375rem; }
@media (max-width: 900px) { .post-list > li { grid-template-columns: minmax(0, 1fr); gap: 10px; } .post-list .plate { aspect-ratio: 3 / 1; max-width: 360px; margin-top: 8px; } }

.plate {
  text-decoration: none; color: inherit;
  background: var(--surface-muted); border-radius: 6px; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; overflow: hidden; position: relative;
}
.plate::before { content: ""; position: absolute; left: 20px; top: 18px; width: 28px; height: 2px; background: var(--orange); }
.plate .big { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.plate .big small { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); letter-spacing: 0; display: block; margin-top: 8px; }
.plate .big .arrow { color: var(--orange); font-size: .7em; margin: 0 .15em; }
.plate--dark { background: var(--ink); }
.plate--dark .big { color: var(--dark-text); }
.plate--dark .big small { color: var(--dark-muted); }

.featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.featured h2 a { text-decoration: none; }
.featured h2 a:hover { color: var(--orange); }
.featured .plate { aspect-ratio: 1 / 1; max-width: 460px; }
.featured .plate .big { font-size: clamp(3.5rem, 6vw, 6rem); }
@media (max-width: 900px) { .featured { grid-template-columns: minmax(0, 1fr); } .featured .plate { order: -1; aspect-ratio: 16 / 9; max-width: none; } }

/* Post page */
.post { max-width: 720px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9375rem; color: var(--muted); margin-top: 1.5rem; }
.post__body { margin-top: clamp(32px, 4vw, 56px); font-size: 1.125rem; line-height: 1.7; }
.post__body p { margin-bottom: 1.4em; }
.post__body .quote { margin: 2.4em 0; padding-left: 28px; border-left: 2px solid var(--orange); }
.post__body .quote p { font-size: 1.375rem; line-height: 1.4; margin-bottom: .6em; }
.post__body .quote p::before { content: "\201C"; color: var(--orange); }
.post__body .quote footer { margin-top: 0; }
.post__figure { margin: 2.4em 0; }
.post__figure figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 12px; }
.ranking-figure { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; background: var(--surface-muted); border-radius: 6px; padding: 28px 32px; }
.ranking-figure .yr { font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ranking-figure .n { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.ranking-figure .n small { font-family: var(--sans); display: block; font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; margin-top: 10px; line-height: 1.4; }
.ranking-figure .arrow { font-family: var(--serif); color: var(--orange); font-size: 2.5rem; }
@media (max-width: 560px) { .ranking-figure { grid-template-columns: minmax(0, 1fr); } .ranking-figure .arrow { transform: rotate(90deg); justify-self: start; } }
.post__foot { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 0.9375rem; }
.post-sidebar { position: sticky; top: 108px; }
.sidebox { border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 40px; }
.sidebox h3 { font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.sidebox ul { list-style: none; }
.sidebox li { padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.9375rem; }
.sidebox li a { text-decoration: none; }
.sidebox li a:hover { color: var(--orange); }
.sidebox time { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
.sidebox p { font-size: 0.9375rem; }
@media (max-width: 900px) { .post-sidebar { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { border-top: 1px solid var(--ink); padding-top: 24px; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; margin: 0; font-size: 1rem; }
.contact-card dt { color: var(--muted); font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; padding-top: .3em; }
.contact-card dd { margin: 0; }
.contact-card dd a { font-family: var(--serif); font-size: 1.375rem; text-decoration: none; letter-spacing: -0.01em; }
.contact-card dd a:hover { color: var(--orange); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--orange); margin-left: .2em; }
.field label .opt { color: var(--muted); font-weight: 400; margin-left: .4em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form__foot p { margin: 0; font-size: 0.875rem; color: var(--muted); max-width: 40ch; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
.next-steps { list-style: none; counter-reset: step; border-top: 1px solid var(--border); }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.next-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); color: var(--orange); font-size: 1.25rem; line-height: 1.2; }

/* ---------- CTA band ---------- */
.cta { background: var(--dark-surface); color: var(--dark-text); padding: clamp(56px, 8vw, 112px) 0; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.cta h2 { color: var(--dark-text); max-width: 14em; }
.cta p { color: var(--dark-muted); max-width: 44ch; margin-top: 1rem; }
.cta .details { font-size: 1.0625rem; }
.cta .details a { text-decoration: none; display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--dark-text); letter-spacing: -0.01em; }
.cta .details a:hover { color: var(--orange); }
.cta .details small { display: block; color: var(--dark-muted); font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.cta .details > div + div { margin-top: 20px; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-surface); color: var(--dark-muted); border-top: 1px solid var(--dark-border); padding: 56px 0 40px; font-size: 0.9375rem; }
.site-footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-border); }
.site-footer img { height: 32px; width: auto; }
.site-footer .tag-line { margin-top: 20px; max-width: 30ch; }
.site-footer h3 { color: var(--dark-text); font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { text-decoration: none; color: var(--dark-text); }
.site-footer a:hover { color: var(--orange); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 0.875rem; }
.site-footer .bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer .bottom a { color: var(--dark-muted); }
.site-footer .bottom a:hover { color: var(--orange); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .hide-sm { display: none !important; } }
@media (max-width: 900px) { .hide-md { display: none !important; } }
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .cta, .nav-toggle-label { display: none !important; }
  body { font-size: 11pt; }
}
