/* ==========================================================================
   Dokusha World — site styles
   Colours and typefaces are defined in Dokusha_World_Identity_Record_v1_2.md.
   Do not introduce a colour that is not in the palette below.
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/SourceSerif4-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-It.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --navy:  #2E4B6B;
  --gold:  #C9A66B;
  --grey:  #555555;
  --white: #FFFFFF;
  --wash:  rgba(46, 75, 107, 0.04);   /* 4% navy — the only derived value */
  --hair:  rgba(46, 75, 107, 0.18);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gutter: 1.5rem;
  --measure: 36rem;      /* ~68 characters at body size */
  --shell: 39rem;    /* 36rem of text plus gutters — the column is the page */
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.band-navy :focus-visible { outline-color: var(--gold); }  /* 3.92:1 on navy */

strong, b { font-weight: 600; color: var(--navy); }

/* --- shell and bands ---------------------------------------------------- */

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

.band { padding-block: 4.5rem; }
.band-navy { background: var(--navy); color: rgba(255,255,255,0.92); }
.band-navy h2, .band-navy h3, .band-navy strong { color: var(--white); }
.band-wash { background: var(--wash); }
.band-tight { padding-block: 3.25rem; }

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

.masthead {
  border-bottom: 1px solid var(--hair);
  padding-block: 1.25rem;
}
.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead img { display: block; height: 40px; width: auto; }
.masthead a.jump {
  font-size: 0.9375rem;
  color: var(--navy);
  white-space: nowrap;
}

/* --- headings ----------------------------------------------------------- */

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 5.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 1.25rem;
  max-width: 26ch;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

/* --- hero --------------------------------------------------------------- */

.hero { padding-block: 5rem 4.5rem; }

/* The gold rule is the divider that licenses the serif-to-sans change.
   It appears here and nowhere else on the site. Identity record §4. */
.hero hr {
  border: 0;
  height: 3px;
  width: 4.5rem;
  background: var(--gold);
  margin: 2rem 0;
}

.hero .lede {
  font-size: 1.1875rem;
  line-height: 1.6;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--white);
  max-width: 30ch;
  margin-bottom: 1.5rem;
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #243b55; border-color: #243b55; }

.btn-quiet {
  background: transparent;
  color: var(--navy);
}
.btn-quiet:hover { background: var(--navy); color: var(--white); }

.band-navy .btn {
  background: var(--white); border-color: var(--white); color: var(--navy);
}
.band-navy .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* --- framework ---------------------------------------------------------- */

.framework { list-style: none; margin: 0; padding: 0; }
.framework li { margin-bottom: 2rem; max-width: var(--measure); }
.framework li:last-child { margin-bottom: 0; }
.framework .bar {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: var(--navy);
  margin-bottom: 0.8rem;
}
/* widths echo the ragged right edge of the mark: 232 / 288 / 260 / 168 of 512 */
.framework li:nth-child(1) .bar { width: 45%; }
.framework li:nth-child(2) .bar { width: 56%; }
.framework li:nth-child(3) .bar { width: 51%; }
.framework li:nth-child(4) .bar { width: 33%; background: var(--gold); }
.framework p { margin: 0; }

/* --- plain lists -------------------------------------------------------- */

.checklist { margin: 0 0 1.1em; padding: 0; list-style: none; max-width: var(--measure); }
.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 7px; height: 2px;
  background: var(--navy);
}
.band-navy .checklist li::before { background: rgba(255,255,255,0.65); }

/* --- notes -------------------------------------------------------------- */

.note {
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.6;
  border-left: 2px solid var(--hair);
  padding-left: 1rem;
  margin-top: 1.75rem;
  max-width: var(--measure);
}

/* --- case study figures ------------------------------------------------- */

.figures { margin: 2rem 0 0; padding: 0; list-style: none; }
.figures li {
  border-top: 1px solid var(--hair);
  padding: 1rem 0;
}
.figures .n {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.figures .d { display: block; font-size: 0.9375rem; }

/* --- tiers -------------------------------------------------------------- */

.tiers { margin: 0 0 2.25rem; padding: 0; list-style: none; }
.tiers li {
  border-top: 1px solid var(--hair);
  padding: 1.15rem 0 1.5rem;
  max-width: var(--measure);
}
.tiers .dur {
  display: block;
  font-size: 0.875rem;
  color: var(--grey);
  margin-bottom: 0.15rem;
}
.tiers h3 { font-size: 1.1875rem; margin-bottom: 0.4rem; }
.tiers p { margin: 0; }

/* --- form --------------------------------------------------------------- */

.form { margin-top: 2rem; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.field .opt { font-weight: 400; color: rgba(255,255,255,0.72); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: #2b2b2b;
  padding: 0.7rem 0.8rem;
  border: 2px solid transparent;
  border-radius: 2px;
  background: var(--white);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.consent {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 1.4rem 0 1.4rem;
}
.consent a { color: var(--white); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  font-size: 1.0625rem;
  line-height: 1.6;
}
.form-status[hidden] { display: none; }

/* --- FAQ ---------------------------------------------------------------- */

.faq { margin: 0; }
.faq details {
  border-top: 1px solid var(--hair);
}
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 14px;
  width: 14px; height: 14px;
  margin-left: auto;
  position: relative; top: 0.2em;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 14px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 14px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--navy), var(--navy)) center / 14px 2px no-repeat;
}
.faq .answer { padding: 0 0 1.35rem; }


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

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

.footer {
  border-top: 2px solid var(--gold);
  padding-block: 2.5rem 3rem;
  font-size: 0.9375rem;
}
.footer .rows { display: grid; gap: 1.35rem; }
.footer .org { color: var(--navy); font-weight: 600; }
.footer .meta { color: var(--grey); }
.footer .ends {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--hair);
  padding-top: 1.35rem;
}
.footer .ends .spacer { margin-left: auto; }
/* Placeholder: no URL yet. Rendered un-linked on purpose so the slot is not
   forgotten — swap the <span> for an <a href> when the company page exists. */
.footer .li {
  display: inline-flex;
  width: 22px; height: 22px;
  color: var(--navy);
  opacity: 0.45;
}
.footer .li svg { width: 100%; height: 100%; fill: currentColor; }

/* --- long-form (privacy, thanks) ---------------------------------------- */

.prose { max-width: none; }
.prose h1 {
  font-family: var(--sans);
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: none;
  margin-bottom: 0.35rem;
}
.prose .updated { font-size: 0.875rem; margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.1875rem; margin-top: 2.5rem; margin-bottom: 0.6rem; max-width: none; }
.prose p, .prose ul { max-width: none; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4rem; }
.back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.9375rem;
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .band { padding-block: 3.25rem; }
  .hero { padding-block: 3.25rem 3rem; }
  .masthead img { height: 34px; }
  .masthead a.jump { font-size: 0.875rem; }
  h2 { font-size: 1.375rem; }
  .figures .n { font-size: 1.5rem; }
}
