/* Caldern site v2 — one stylesheet for every page.
   Palette: paper #FCFCFA · ink #20282A · slate #535D5C · teal #0E7268 ·
   teal-deep #0A5A52 · board #EEF0EB. Flat surfaces only. */

:root {
  --paper: #FCFCFA;
  --ink: #20282A;
  --slate: #535D5C;
  --teal: #0E7268;
  --teal-deep: #0A5A52;
  --board: #EEF0EB;
  --rule: #20282A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Bitter', Georgia, serif; line-height: 1.15; letter-spacing: -0.01em; }
.wordmark { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; line-height: 1; }
.dot { color: var(--teal); }

a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 3px solid var(--rule);
  background: var(--paper);
}
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header-inner .wordmark { font-size: 1.5rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; }
.site-nav a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; }
.btn {
  display: inline-block; background: var(--teal); color: #FFFFFF !important;
  font-weight: 700; text-decoration: none !important; border: none; cursor: pointer;
  padding: .8rem 1.5rem; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--teal-deep); }
.site-nav .btn { padding: .55rem 1.1rem; font-size: .9rem; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); color: var(--ink);
  font: inherit; font-weight: 700; padding: .4rem .8rem; cursor: pointer;
}

/* ---------- Structure ---------- */
main { display: block; }
.section { max-width: 1040px; margin: 0 auto; padding: 4.5rem 1.25rem; }
.band { background: var(--board); }
.band-ink { background: var(--ink); color: var(--paper); }
.band .section, .band-ink .section { max-width: 1040px; margin: 0 auto; }

.plate {
  display: inline-flex; align-items: baseline; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 1rem;
}
.plate .no {
  font-family: 'Bitter', serif; font-size: .85rem; letter-spacing: 0;
  background: var(--ink); color: var(--paper); padding: .1rem .45rem;
}
.band-ink .plate { color: var(--paper); }
.band-ink .plate .no { background: var(--teal); }

.section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; max-width: 22ch; }
.lede { font-size: 1.1rem; color: var(--slate); max-width: 60ch; margin-bottom: 2.25rem; }
.band-ink .lede { color: rgba(252,252,250,0.8); }

/* ---------- Hero ---------- */
.hero { padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; max-width: 18ch; margin-bottom: 1.25rem; }
.hero .sub { font-size: 1.15rem; color: var(--slate); max-width: 54ch; margin-bottom: 2rem; }
.hero .sub strong { color: var(--ink); }
.hero-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-cta .aside { font-size: .92rem; color: var(--slate); max-width: 30ch; }

/* The drawn system — hero device */
.system { border-top: 3px solid var(--rule); padding-top: 1.25rem; }
.system-caption { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--slate); margin-bottom: 1.5rem; }
.system-flow { display: flex; align-items: stretch; gap: 0; list-style: none; }
.system-flow li.node {
  flex: 1; border: 2px solid var(--ink); background: #FFFFFF; padding: 1rem 1.1rem; position: relative;
}
.system-flow li.node .n {
  position: absolute; top: -0.7rem; left: 1rem; background: var(--teal); color: #fff;
  font-family: 'Bitter', serif; font-weight: 700; font-size: .8rem; padding: 0 .5rem; line-height: 1.4;
}
.system-flow li.node h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.system-flow li.node p { font-size: .88rem; color: var(--slate); line-height: 1.45; }
.system-flow li.joint {
  flex: 0 0 2.25rem; display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-weight: 700; font-size: 1.3rem;
}
.system-note { margin-top: 1.25rem; font-size: .92rem; color: var(--slate); max-width: 60ch; }

/* ---------- What we build ---------- */
.build-list { display: grid; gap: 0; border-top: 3px solid var(--rule); }
.build-item { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 2px solid var(--ink); }
.build-item h3 { font-size: 1.3rem; }
.build-item p { color: var(--slate); }
.build-item .eg { margin-top: .6rem; font-size: .95rem; color: var(--ink); }
.build-item .eg em { color: var(--slate); font-style: normal; font-size: .85rem; }

/* ---------- Flagship ---------- */
.flag-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.flag-steps { list-style: none; counter-reset: fs; }
.flag-steps li { counter-increment: fs; padding: .8rem 0 .8rem 2.6rem; position: relative; border-bottom: 1px solid rgba(32,40,42,0.25); }
.flag-steps li::before {
  content: counter(fs); position: absolute; left: 0; top: .85rem;
  width: 1.7rem; height: 1.7rem; background: var(--ink); color: var(--paper);
  font-family: 'Bitter', serif; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.flag-steps strong { display: block; }
.flag-steps span { color: var(--slate); font-size: .95rem; }
.flag-side { background: #FFFFFF; border: 2px solid var(--ink); padding: 1.75rem; }
.flag-side h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.flag-side p { color: var(--slate); font-size: .97rem; margin-bottom: 1rem; }
.flag-side .price-line { font-family: 'Bitter', serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.flag-side .price-line small { font-family: 'Source Sans 3', sans-serif; font-weight: 400; font-size: .9rem; color: var(--slate); }

/* ---------- Rules ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.rule h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.rule h3::before { content: '— '; color: var(--teal); }
.rule p { color: var(--slate); font-size: .97rem; }

/* ---------- Pricing ---------- */
.price-note { font-size: 1.05rem; font-weight: 600; max-width: 56ch; margin-bottom: 2.5rem; }
.price-block { margin-bottom: 3rem; }
.price-block > h3 { font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; font-family: 'Source Sans 3', sans-serif; font-weight: 700; color: var(--teal-deep); border-bottom: 3px solid var(--rule); padding-bottom: .5rem; margin-bottom: 1.5rem; }

.card { background: #FFFFFF; border: 2px solid var(--ink); padding: 1.75rem; }
.flagship-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.flagship-card h4 { font-family: 'Bitter', serif; font-size: 1.5rem; margin-bottom: .5rem; }
.flagship-card .what { color: var(--slate); margin-bottom: 1rem; }
.flagship-card ul { list-style: none; }
.flagship-card ul li { padding-left: 1.3rem; position: relative; font-size: .97rem; margin-bottom: .35rem; }
.flagship-card ul li::before { content: '·'; position: absolute; left: .2rem; color: var(--teal); font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.big-price { font-family: 'Bitter', serif; font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.big-price small { font-size: 1rem; font-family: 'Source Sans 3', sans-serif; font-weight: 600; letter-spacing: 0; color: var(--slate); }
.price-terms { font-size: .95rem; color: var(--slate); margin-top: .75rem; }
.founding {
  margin-top: 1.25rem; border-top: 2px solid var(--ink); padding-top: 1rem; font-size: .97rem;
}
.founding strong { color: var(--teal-deep); }

.audit-card { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
.audit-card .big-price { font-size: clamp(2.2rem, 5vw, 3rem); }

.bands { border-top: 3px solid var(--rule); }
.bandrow { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 2px solid var(--ink); align-items: baseline; }
.bandrow h4 { font-family: 'Bitter', serif; font-size: 1.15rem; }
.bandrow p { color: var(--slate); font-size: .95rem; }
.bandrow .from { font-family: 'Bitter', serif; font-weight: 800; font-size: 1.5rem; text-align: right; }
.bandrow .from small { display: block; font-family: 'Source Sans 3', sans-serif; font-weight: 400; font-size: .82rem; color: var(--slate); }

.retainers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.retainer { background: #FFFFFF; border: 2px solid var(--ink); padding: 1.5rem; display: flex; flex-direction: column; position: relative; }
.retainer.popular { outline: 3px solid var(--teal); outline-offset: 0; }
.retainer .flag-pop {
  position: absolute; top: -0.85rem; left: 1.25rem; background: var(--teal); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .6rem;
}
.retainer h4 { font-family: 'Bitter', serif; font-size: 1.2rem; margin-bottom: .25rem; }
.retainer .big-price { font-size: 2.2rem; margin-bottom: 1rem; }
.retainer ul { list-style: none; flex-grow: 1; }
.retainer ul li { padding-left: 1.1rem; position: relative; font-size: .93rem; margin-bottom: .45rem; color: var(--ink); }
.retainer ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--teal); }
.retainer .rnote { font-size: .85rem; color: var(--slate); margin-top: 1rem; border-top: 1px solid rgba(32,40,42,0.25); padding-top: .75rem; }

.terms-plain { max-width: 66ch; }
.terms-plain li { margin-bottom: .4rem; color: var(--ink); font-size: .97rem; }
.terms-plain { padding-left: 1.2rem; }

/* ---------- Honesty band ---------- */
.band-ink .honesty-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.honesty-cols h3 { font-size: 1.1rem; margin-bottom: .4rem; color: #FFFFFF; }
.honesty-cols p { color: rgba(252,252,250,0.78); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.about-grid p { margin-bottom: 1rem; color: var(--slate); }
.about-grid p strong { color: var(--ink); }
.about-facts { border-top: 3px solid var(--rule); }
.about-facts div { padding: 1rem 0; border-bottom: 2px solid var(--ink); }
.about-facts .k { font-family: 'Bitter', serif; font-weight: 700; display: block; }
.about-facts .v { font-size: .92rem; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 3px solid var(--rule); }
.faq summary { cursor: pointer; font-family: 'Bitter', serif; font-weight: 700; font-size: 1.1rem; padding: 1.1rem 2.5rem 1.1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 1.5rem; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--slate); padding: 0 0 1.25rem; max-width: 64ch; }

/* ---------- Final CTA ---------- */
.final { text-align: left; }
.final h2 { max-width: 26ch; }

/* ---------- Footer ---------- */
footer.site { border-top: 3px solid var(--rule); margin-top: 2rem; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.25rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-inner p, .footer-inner a { font-size: .92rem; color: var(--slate); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--teal-deep); text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-h { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: .6rem; }
.footer-legal { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem 2rem; font-size: .82rem; color: var(--slate); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.legal h1 { font-size: 2rem; margin-bottom: .25rem; }
.legal .updated { color: var(--slate); font-size: .92rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--slate); margin-bottom: .75rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin-bottom: 1rem; }

/* ---------- Motion & access ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .flag-grid, .flagship-card, .about-grid, .audit-card { grid-template-columns: 1fr; }
  .rules, .retainers, .honesty-cols { grid-template-columns: 1fr; }
  .band-ink .honesty-cols { grid-template-columns: 1fr; }
  .bandrow { grid-template-columns: 1fr; gap: .4rem; }
  .bandrow .from { text-align: left; }
  .build-item { grid-template-columns: 1fr; gap: .5rem; }
  .system-flow { flex-direction: column; }
  .system-flow li.joint { flex-basis: auto; padding: .35rem 0; justify-content: flex-start; padding-left: 1.25rem; }
  .system-flow li.joint::before { content: '\2193'; }
  .system-flow li.joint span { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .retainer.popular { outline-offset: -3px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--rule); z-index: 50;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 1.25rem; border-top: 1px solid rgba(32,40,42,0.2); font-size: 1.05rem; }
  .site-nav .btn { margin: .75rem 1.25rem 1rem; text-align: center; }
  header.site { position: relative; }
  .section { padding: 3.25rem 1.25rem; }
}
