/* =========================================================================
   Planet 9 — site stylesheet

   Palette     marigold #FFD23F  ·  bottle #0F3D2E  ·  sage #CFDCC6
               paper #F7F7F2     ·  white #FFFFFF
   Type        Bricolage Grotesque (condensed, heavy) for anything that
               labels or shouts; Newsreader for anything you read.
   Principle   Colour comes in full-width bands, never in cards. The type
               does the decorating. One loud thing per page: the headline.
   ========================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --marigold: #FFD23F;
  --bottle:   #0F3D2E;
  --bottle-2: #1C5741;
  --sage:     #CFDCC6;
  --paper:    #F7F7F2;
  --white:    #FFFFFF;
  --quiet:    #4A6358;   /* secondary text on light bands, 6.4:1 on paper */
  --error:    #A8231A;

  --f-shout: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-read:  "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --band-y: clamp(64px, 9vw, 136px);
  --rule: 2px solid var(--bottle);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--bottle);
  font-family: var(--f-read);
  font-size: 1.1875rem;          /* 19px */
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }

h1, h2, h3, h4 {
  font-family: var(--f-shout);
  font-stretch: 78%;
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.012em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 1.2rem + 8.2vw, 9.25rem); line-height: .9; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.25rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; line-height: 1.05; }
h4 { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
p  { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.5; max-width: 40ch; }
.quiet { color: var(--quiet); }
.fine { font-size: 1rem; line-height: 1.55; }

:focus-visible { outline: 3px solid var(--bottle); outline-offset: 3px; }
.band--bottle :focus-visible, .footer :focus-visible, .band-bottle .masthead :focus-visible { outline-color: var(--marigold); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--bottle); color: var(--marigold);
  font: 700 1rem/1 var(--f-shout); padding: 14px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); }
.band--tight { padding-block: clamp(48px, 6vw, 88px); }

.band--marigold { background: var(--marigold); }
.band--sage     { background: var(--sage); }
.band--white    { background: var(--white); }
.band--paper    { background: var(--paper); }
.band--bottle   { background: var(--bottle); color: var(--paper); }
.band--bottle h1, .band--bottle h2, .band--bottle h3 { color: var(--marigold); }
.band--bottle .quiet { color: #B9CDC1; }

.cols { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4  { grid-column-end: span 4; }
.span-5  { grid-column-end: span 5; }
.span-6  { grid-column-end: span 6; }
.span-7  { grid-column-end: span 7; }
.span-8  { grid-column-end: span 8; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }
.start-9 { grid-column-start: 9; }

.intro { margin-bottom: clamp(40px, 5vw, 72px); }
.intro h2 { max-width: 16ch; }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); }
.band-marigold .masthead { background: var(--marigold); }
.band-sage     .masthead { background: var(--sage); }
.band-bottle   .masthead { background: var(--bottle); color: var(--paper); }

.masthead__inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding-block: 22px;
}
.wordmark {
  font-family: var(--f-shout); font-stretch: 75%; font-weight: 800;
  font-size: 1.65rem; letter-spacing: -.01em; line-height: 1;
  text-decoration: none; margin-right: auto;
}
.band-bottle .wordmark { color: var(--marigold); }

.nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a {
  font-family: var(--f-shout); font-weight: 500; font-size: 1.05rem;
  text-decoration: none; padding-block: 6px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-shout); font-weight: 700; font-size: 1.125rem; line-height: 1;
  padding: 18px 30px; border-radius: 999px; border: 2px solid var(--bottle);
  background: var(--bottle); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--bottle-2); border-color: var(--bottle-2); }
.btn--ghost { background: transparent; color: var(--bottle); }
.btn--ghost:hover { background: var(--bottle); color: var(--paper); border-color: var(--bottle); }
.btn--small { padding: 12px 20px; font-size: 1rem; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.band--bottle .btn, .band-bottle .masthead .btn { background: var(--marigold); color: var(--bottle); border-color: var(--marigold); }
.band--bottle .btn:hover, .band-bottle .masthead .btn:hover { background: var(--paper); border-color: var(--paper); }
.band--bottle .btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.band--bottle .btn--ghost:hover { background: var(--paper); color: var(--bottle); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 40px); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 72px) var(--band-y); }
.hero h1 { font-size: clamp(3.1rem, 1.2rem + 9.8vw, 11.5rem); max-width: 11ch; margin-bottom: clamp(36px, 5vw, 72px); }
.hero--compact h1 { font-size: clamp(2.8rem, 1.4rem + 6vw, 7rem); max-width: 14ch; }
.hero__foot { align-items: start; }

/* Client results as a ledger: each row is one number, what it measures, who for. */
.ledger { margin: 0; padding: 0; list-style: none; border-top: var(--rule); }
.ledger li {
  display: grid; grid-template-columns: 10.5rem 1fr; gap: 4px 24px;
  align-items: baseline; padding-block: 18px; border-bottom: var(--rule);
}
.ledger__n {
  font-family: var(--f-shout); font-stretch: 75%; font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1;
  font-variant-numeric: tabular-nums; grid-row: span 2;
}
.ledger__what { font-size: 1.15rem; line-height: 1.35; }
.ledger__who { font-family: var(--f-shout); font-weight: 500; font-size: .95rem; color: var(--quiet); }
.band--marigold .ledger__who { color: #3F4F2A; }

/* ---------- Service rows ---------- */
.rows { border-top: var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 3vw, 36px); border-bottom: var(--rule);
}
.row h3 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; }
.row p { margin: 0; }

/* ---------- The one-sentence stats block ---------- */
.statement {
  font-family: var(--f-shout); font-stretch: 85%; font-weight: 500;
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em;
  max-width: 26ch; margin: 0; text-wrap: pretty;
}
.statement strong { font-weight: 800; }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px); counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--stack { grid-template-columns: 1fr; gap: 22px; }
.steps > li { counter-increment: step; border-top: var(--rule); padding-top: 18px; }
.steps > li::before {
  content: counter(step);
  display: block; font-family: var(--f-shout); font-stretch: 75%; font-weight: 800;
  font-size: 3.4rem; line-height: 1; margin-bottom: 14px;
}
.steps--stack > li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 16px; }
.steps--stack > li::before { font-size: 2.4rem; margin: 0; grid-row: span 2; }
.steps h3, .steps h4 { margin-bottom: .35em; }
.band--bottle .steps > li { border-top-color: var(--marigold); }
.band--bottle .steps > li::before { color: var(--marigold); }

/* ---------- Plain lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid rgba(15, 61, 46, .22); }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--bottle);
}
.band--bottle .list li { border-bottom-color: rgba(247, 247, 242, .22); }
.band--bottle .list li::before { background: var(--marigold); }

/* ---------- Quote ---------- */
.quote { margin: 0; }
.quote blockquote {
  margin: 0 0 24px; font-family: var(--f-read); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1.3; max-width: 30ch;
}
.quote figcaption { font-family: var(--f-shout); font-size: 1.05rem; line-height: 1.4; }
.quote figcaption b { display: block; font-weight: 700; }

/* ---------- Fact tables (definition lists) ---------- */
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid currentColor; }
.facts > div:first-child { border-top: 1px solid currentColor; }
.facts dt { font-family: var(--f-shout); font-weight: 700; font-size: 1.05rem; }
.facts dd { margin: 0; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px); }
.person { border-top: var(--rule); padding-top: 18px; }
.person h3 { margin-bottom: 4px; }
.person__role { font-family: var(--f-shout); font-weight: 500; font-size: 1.05rem; color: var(--quiet); margin-bottom: 14px; }

/* ---------- Principles (not a sequence, so no numbers) ---------- */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 80px); }
.pairs h3 { margin-bottom: .4em; }

/* ---------- Services page blocks ---------- */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 80px);
  padding-block: clamp(36px, 5vw, 64px); border-top: var(--rule); }
.service:last-child { border-bottom: var(--rule); }
.service h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); margin-bottom: .35em; }

/* ---------- Fees ---------- */
.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--rule); }
.fee { padding: clamp(24px, 3vw, 40px); }
.fee + .fee { border-left: var(--rule); }
.fee--picked { background: var(--marigold); }
.fee__name { font-family: var(--f-shout); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.fee__price { font-family: var(--f-shout); font-stretch: 78%; font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.7rem); line-height: 1; margin-bottom: 16px; }
.fee .list { margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: var(--rule); }
.faq details:first-child { border-top: var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--f-shout); font-weight: 700; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 2rem; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 24px; margin: 0; }

/* ---------- Role ---------- */
.role { border-top: 6px solid var(--bottle); padding-top: 28px; }
.role__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 18px; }
.role__head h3 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); margin: 0; }
.role__pay { font-family: var(--f-shout); font-stretch: 78%; font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.role__terms { font-family: var(--f-shout); font-weight: 500; font-size: 1.1rem; margin-bottom: 20px; }

/* ---------- Asides next to forms ---------- */
.aside + .aside { margin-top: clamp(36px, 4vw, 56px); }
.aside h3 { font-size: 1.5rem; }

/* ---------- Forms ---------- */
.form-panel { background: var(--white); padding: clamp(24px, 4vw, 48px); border: var(--rule); }
.form-panel h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }

.field { margin-bottom: 26px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label, .field .label {
  display: block; font-family: var(--f-shout); font-weight: 700; font-size: 1.1rem;
  line-height: 1.25; margin-bottom: 8px;
}
.req { color: var(--error); }
.hint { font-size: 1rem; line-height: 1.5; color: var(--quiet); margin: -2px 0 10px; }

.input, .select, .textarea {
  width: 100%; font: 400 1.125rem/1.4 var(--f-read); color: var(--bottle);
  background: var(--white); border: 2px solid var(--bottle); border-radius: 6px;
  padding: 14px 16px; min-height: 56px;
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230F3D2E' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--marigold); outline-offset: 0; border-color: var(--bottle); }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }

/* File input: the native control, sized up and given a real button */
.file {
  display: block; width: 100%; font: 400 1rem/1.4 var(--f-read);
  border: 2px dashed var(--bottle); border-radius: 6px; padding: 14px; background: var(--paper); cursor: pointer;
}
.file::file-selector-button {
  font: 700 1rem/1 var(--f-shout); margin-right: 16px; padding: 12px 18px;
  border: 0; border-radius: 999px; background: var(--bottle); color: var(--paper); cursor: pointer;
}
.file-name { display: block; margin-top: 8px; font-size: 1rem; color: var(--quiet); }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 1.05rem; line-height: 1.5; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--bottle); cursor: pointer; }
.field .check { font-family: var(--f-read); font-weight: 400; font-size: 1.05rem; }

.field-error { display: block; font-family: var(--f-shout); font-weight: 600; font-size: 1rem; color: var(--error); margin-top: 8px; }
.field-error:empty { display: none; }

.form-status:empty { display: none; }
.form-status {
  font-family: var(--f-shout); font-weight: 600; font-size: 1.1rem; line-height: 1.35;
  padding: 16px 18px; margin-bottom: 26px; border-radius: 6px; border: 2px solid var(--bottle);
}
.form-status[data-state="ok"]      { background: var(--sage); }
.form-status[data-state="error"]   { background: #FBE7E4; border-color: var(--error); color: var(--error); }
.form-status[data-state="sending"] { background: var(--paper); }
.form-status:focus { outline: 3px solid var(--marigold); outline-offset: 2px; }

.form-foot { margin-top: 16px; font-size: 1rem; }

/* Honeypot — off-screen for people, still present for bots. Never display:none. */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Received page ---------- */
.receipt { font-family: var(--f-shout); font-weight: 500; font-size: 1.25rem; margin: 0 0 8px; }
.receipt__ref {
  display: inline-block; font-family: var(--f-shout); font-stretch: 75%; font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); line-height: 1; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; border-bottom: 6px solid var(--bottle); padding-bottom: 6px;
  user-select: all;
}

/* ---------- Footer ---------- */
.footer { background: var(--bottle); color: var(--paper); padding-block: clamp(56px, 7vw, 104px) 36px; }
.footer__line {
  font-family: var(--f-shout); font-stretch: 78%; font-weight: 800; color: var(--marigold);
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.4rem); line-height: .98; max-width: 18ch;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 1.05rem; }
.footer__h { font-family: var(--f-shout); font-weight: 700; font-size: 1.05rem; color: var(--marigold); margin-bottom: 10px; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 4px; }
.footer a { text-decoration-color: rgba(247, 247, 242, .45); }
.footer a:hover { text-decoration-color: var(--marigold); }
.footer__legal { margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid rgba(247, 247, 242, .25);
  font-size: .95rem; color: #B9CDC1; max-width: none; }

/* ---------- Back link ---------- */
.back { font-family: var(--f-shout); font-weight: 600; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .cols > * { grid-column: 1 / -1; }
  .row, .service { grid-template-columns: 1fr; }
  .fees { grid-template-columns: 1fr; }
  .fee + .fee { border-left: 0; border-top: var(--rule); }
  .steps--3 { grid-template-columns: 1fr; }
  .pairs { grid-template-columns: 1fr; }

  .masthead__inner { flex-wrap: wrap; row-gap: 14px; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; padding-bottom: 2px; }
}

@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .steps--4, .people, .footer__grid, .field-pair { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .ledger li { grid-template-columns: 1fr; }
  .ledger__n { grid-row: auto; }
  .actions .btn { width: 100%; }
  .wordmark { font-size: 1.4rem; }
  .nav { justify-content: space-between; gap: 10px; }
  .nav a { font-size: 1rem; font-stretch: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
