/* Della Desk — shared marketing styles (extracted from the single-page landing,
   2026-07-10, when the site split into one job per page). Every marketing page
   links this file; page-specific styles stay inline on their page.
   Brand: quiet luxury — ivory paper, ink, champagne gold, Fraunces + Inter. */

/* ── The palette (2026-08-06 redesign) ────────────────────────────────────────
   Every colour here carries a job. Reach for the one whose MEANING fits, not
   the one whose shade you like — that is what keeps the site reading as one
   company rather than a set of pages.

     charcoal   trust, authority     headings, dark bands, the primary button
     cream      warmth, "a real desk"  the ground everything sits on
     teal       completion + safety  answered · booked · paid · done · secure
     gold       premium, her voice   the wordmark, eyebrows, front-desk accents
     coral      LOSS AND URGENCY     nothing else, ever

   Coral is rationed on purpose. It marks the money walking out the door and
   the alternative that costs more — if it starts appearing on buttons and
   borders it stops meaning anything, and the one place we need the eye to go
   is no longer the one place it goes. */
:root {
  --paper: #f8f5ef;      /* warm ivory — the page ground */
  --card: #fffdf8;       /* raised surface: cards, tables, panels */
  --ink: #101312;
  --ink-soft: #39433f;
  --muted: #66706b;
  --gold: #ad8643;
  /* Two golds, and they are NOT interchangeable. --gold-soft is a lighter
     accent that reads on DARK grounds (finalcta eyebrow, dark-band headings);
     --gold-pale is a near-cream SURFACE for light panels. Swapping them gives
     you either invisible text on dark or a washed-out panel on light. */
  --gold-soft: #c3a877;
  /* The deepened gold, added 2026-08-07 — and added LATE, which is the whole
     story. The rules that need it were switched to var(--gold-deep) while the
     token itself only existed in styles.css (the dashboard sheet). An undefined
     custom property is not a CSS error: the declaration is simply invalid and
     the property falls back to inherited, so every eyebrow on every marketing
     page turned near-black and the contrast check I was using read 17:1 and
     called it a pass. It was measuring the absence of the colour.
     5.44:1 on --paper, 5.83 on --card, 4.75 on --gold-pale. */
  --gold-deep: #7d5f2c;
  --gold-pale: #f0e5d1;
  --teal: #0f766e;
  /* The third "-deep" twin, same rule as gold and coral: a light ground takes
     the deepened colour. Plain --teal is fine on --paper (5.03:1) and --card
     (5.38:1) but measures 4.39:1 on --gold-pale — under AA. Every band painted
     gold-pale therefore takes --teal-deep for its link text, which is 5.09:1.
     Measured against the live pages, not judged by eye. */
  --teal-deep: #0d6b64;
  --teal-soft: #dff2ee;
  --coral: #d95c46;
  /* Coral for TEXT on light grounds. Base --coral measures ~3.6:1 on the warm
     whites — below WCAG AA's 4.5:1 for normal-size text (flagged in Codex's
     PR #24 review; verified by computation). --coral-deep is the same loss/
     urgency meaning at 4.97–5.32:1 on every light surface. Rule: coral text on
     a light background uses --coral-deep; decorative coral (dots, fills) and
     coral on dark grounds keep --coral. */
  --coral-deep: #b8432e;
  /* Borders are a translucent ink rather than a fixed beige, so a line over
     --card and the same line over --paper each sit correctly against their
     own ground instead of one of them looking muddy. */
  --line: rgba(16, 19, 18, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --shadow: 0 22px 60px rgba(16, 19, 18, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Theme roles preserve the brand meanings above while allowing a surface to
     change modes without turning --ink into white or --paper into black. */
  color-scheme: light;
  --theme-ground: var(--paper);
  --theme-surface: var(--card);
  --theme-surface-subtle: var(--paper);
  --theme-text: var(--ink);
  --theme-text-soft: var(--ink-soft);
  --theme-muted: var(--muted);
  --theme-line: var(--line);
  --theme-action: var(--teal);
  --theme-action-strong: var(--teal-deep);
  --theme-action-copy: var(--card);
  --theme-trust-band: var(--teal-soft);
  --theme-trust-text: var(--ink);
  --theme-trust-text-soft: var(--ink-soft);
  --theme-trust-muted: var(--ink-soft);
  --theme-trust-accent: var(--gold-deep);
  --theme-authority: var(--ink);
  --theme-authority-copy: var(--paper);
  --theme-authority-accent: var(--gold-soft);
  --theme-authority-action: var(--teal-soft);
  --theme-authority-danger: var(--coral);
  --theme-authority-line: var(--line-dark);
  --theme-premium: var(--gold);
  --theme-premium-copy: var(--gold-deep);
  --theme-premium-soft: var(--gold-pale);
  --theme-danger: var(--coral-deep);
  --theme-shadow: var(--shadow);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --theme-ground: var(--ink);
  --theme-surface: color-mix(in srgb, var(--ink) 88%, var(--teal));
  --theme-surface-subtle: color-mix(in srgb, var(--ink) 94%, var(--paper));
  --theme-text: var(--paper);
  --theme-text-soft: color-mix(in srgb, var(--paper) 82%, transparent);
  --theme-muted: color-mix(in srgb, var(--paper) 66%, transparent);
  --theme-line: var(--line-dark);
  --theme-action: var(--teal);
  --theme-action-strong: color-mix(in srgb, var(--teal) 78%, var(--paper));
  --theme-action-copy: var(--card);
  --theme-trust-band: color-mix(in srgb, var(--teal) 20%, var(--ink));
  --theme-trust-text: var(--paper);
  --theme-trust-text-soft: color-mix(in srgb, var(--paper) 82%, transparent);
  --theme-trust-muted: color-mix(in srgb, var(--paper) 76%, transparent);
  --theme-trust-accent: var(--gold-soft);
  --theme-authority: color-mix(in srgb, var(--ink) 84%, var(--teal));
  --theme-authority-copy: var(--paper);
  --theme-authority-accent: var(--gold-soft);
  --theme-authority-action: var(--teal-soft);
  --theme-authority-danger: color-mix(in srgb, var(--coral) 72%, var(--paper));
  --theme-authority-line: var(--line-dark);
  --theme-premium: var(--gold);
  --theme-premium-copy: var(--gold-soft);
  --theme-premium-soft: color-mix(in srgb, var(--gold) 16%, var(--ink));
  --theme-danger: color-mix(in srgb, var(--coral) 66%, var(--paper));
  --theme-shadow: 0 22px 60px color-mix(in srgb, var(--ink) 72%, transparent);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); line-height: 1.6; background: var(--paper); font-size: 16px;
  -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--gold-deep); }
.rule { width: 56px; height: 1px; background: var(--gold-soft); margin: 22px auto; border: 0; }

/* Shared top nav — wordmark + the five pages + Start free. Wraps on small
   screens (no hamburger at this size; tested at 375px). */
nav.site { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; flex-wrap: wrap; gap: 12px 18px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: 0; color: var(--ink); }
.brand .dot { color: var(--gold); }
/* The enamel tile is intentionally twice the old monogram size beside the
   wordmark. Inline-block keeps the gold period attached to the name. */
.brand .mark { width: 52px; height: 52px; border-radius: 8px; display: inline-block; vertical-align: middle; margin-right: 11px; }
.navlinks { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; }
.navlinks .quiet { font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.navlinks .quiet:hover { color: var(--gold-deep); }
.navlinks .quiet.active { color: var(--gold-deep); }

.theme-switch { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 118px; padding: 3px;
  border: 1px solid var(--theme-line); border-radius: 8px; background: var(--theme-surface); }
.theme-switch button { min-width: 0; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--theme-text-soft); font: 600 12px/1 var(--sans); letter-spacing: 0; cursor: pointer; }
.theme-switch button:hover { color: var(--theme-text); }
.theme-switch button.is-active { background: var(--theme-action); color: var(--theme-action-copy); }
.theme-switch button:focus-visible { outline: 2px solid var(--theme-premium-copy); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--ink); cursor: pointer;
  border-radius: 999px; font-weight: 500; font-size: 15px; padding: 13px 28px; letter-spacing: 0;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.navlinks .btn { padding: 10px 22px; font-size: 14px; }

/* Section scaffolding */
section { padding: 88px 0; }
section.white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sechead { text-align: center; margin-bottom: 56px; }
h1.sec, h2.sec { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 44px); font-weight: 500; letter-spacing: 0; line-height: 1.2; margin-top: 14px; }
h1.sec em, h2.sec em { font-style: italic; color: var(--gold); font-weight: 400; }
p.secsub { color: var(--muted); margin: 16px auto 0; font-size: 16.5px; max-width: 640px; line-height: 1.75; }
p.secsub b { color: var(--ink); font-weight: 600; }
/* Key-fact emphasis (owner ruling 2026-07-10 PM): load-bearing facts read
   bold in ink; money facts may carry the gold accent. Never shouty. */
.finalcta p b { color: var(--paper); font-weight: 600; }

.stat { font-family: var(--serif); font-size: clamp(64px, 10vw, 120px); font-weight: 500; color: var(--ink); line-height: 1; }
.stat sup { font-size: .35em; color: var(--gold); font-weight: 400; }

/* Feature / teaching cards */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent;
  cursor: pointer; transition: background-color .2s ease; position: relative; }
.feat .no { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 18px; margin-bottom: 14px; }
.feat h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.feat p b { color: var(--ink); font-weight: 600; }
.feat:hover, .feat:focus-visible { background: var(--theme-surface); outline: none; }
.feat:focus-visible { box-shadow: inset 0 0 0 2px var(--gold-soft); }
.feat .more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--gold-deep); letter-spacing: 0; }
.feat:hover .more { text-decoration: underline; }
.taphint { text-align: center; color: var(--gold-deep); font-size: 13.5px; font-weight: 600; letter-spacing: 0; margin: -32px 0 40px; }

/* Modals — teaching stories and plan spec sheets */
.modal-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: 8px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 40px 40px 36px; position: relative; box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--ink) 50%, transparent); }
.modal .x { position: absolute; top: 18px; right: 20px; font-size: 26px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.modal .x:hover { color: var(--ink); }
.modal .eyebrow { color: var(--gold-deep); }
.modal h3 { font-family: var(--serif); font-weight: 600; font-size: 27px; margin: 12px 0 6px; letter-spacing: 0; }
.modal .lead { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.modal .scene { background: var(--paper); border-left: 3px solid var(--gold-soft); border-radius: 8px;
  padding: 18px 20px; margin: 22px 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.modal .scene b { color: var(--ink); }
.modal .why { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.modal .why strong { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); }
.modal .cta { display: inline-flex; margin-top: 26px; }
.modal .specrow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.modal .specrow:last-of-type { border-bottom: 0; }
.modal .specrow .lbl { color: var(--muted); }
.modal .specrow .val { font-weight: 600; text-align: right; }
.modal .price-head { font-family: var(--serif); font-size: 40px; font-weight: 500; margin: 6px 0 2px; }
.modal .price-head small { font-size: 15px; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.modal .annual-line { color: var(--gold-deep); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.modal ul.specfeat { list-style: none; padding: 0; margin: 18px 0 0; }
.modal ul.specfeat li { padding: 7px 0 7px 22px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.modal ul.specfeat li::before { content: "\2713"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }

.planmore { display: block; width: 100%; margin-top: 10px; background: none; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--gold-deep); letter-spacing: 0; font-family: var(--sans); }
.planmore:hover { text-decoration: underline; }
.planlink { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.planlink:hover { color: var(--ink); }

/* Dark closing CTA panel */
.finalcta { text-align: center; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 88px 32px; margin: 40px 0 88px; }
.finalcta .eyebrow { color: var(--gold-soft); }
.finalcta h2 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 48px); font-weight: 500; margin: 16px 0 14px; }
.finalcta h2 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.finalcta p { opacity: .75; margin-bottom: 36px; font-size: 16px; }
.finalcta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.finalcta .btn:hover { background: transparent; color: var(--paper); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 13px; text-align: center; letter-spacing: 0; }
footer .brand { font-size: 17px; display: block; margin-bottom: 10px; color: var(--ink); }
footer a:hover { color: var(--gold-deep); }

/* First-visit privacy notice. Core pages still carry older page-local fixed
   positioning, so this direct-body rule intentionally outranks those blocks.
   The notice is informational (no ad consent to capture) and belongs in the
   page flow where it cannot cover a plan dial, feature, or primary action. */
body > #cookiecard {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1120px, calc(100% - 28px));
  max-width: none;
  margin: 14px auto;
  padding: 18px 22px;
  border-radius: 8px;
  background: var(--theme-authority);
  color: var(--theme-authority-copy);
  box-shadow: var(--theme-shadow);
  font: 14px/1.65 var(--sans);
  letter-spacing: 0;
}
body > #cookiecard .cookie-title {
  margin: 0;
  color: var(--theme-authority-copy);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}
body > #cookiecard .cookie-copy {
  color: color-mix(in srgb, var(--theme-authority-copy) 76%, transparent);
}
body > #cookiecard .cookie-dot,
body > #cookiecard .dot,
body > #cookiecard a {
  color: var(--theme-authority-accent);
}
body > #cookiecard a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body > #cookiecard button {
  justify-self: end;
  margin: 0;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-action);
  color: var(--theme-action-copy);
  font: 700 13.5px/1.4 var(--sans);
  letter-spacing: 0;
  cursor: pointer;
}
body > #cookiecard button:hover { background: var(--theme-action-strong); }
body > #cookiecard button:focus-visible {
  outline: 2px solid var(--theme-authority-accent);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  body > #cookiecard {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 16px 18px;
  }
  body > #cookiecard .cookie-title { white-space: normal; }
  body > #cookiecard button {
    justify-self: start;
    margin-top: 6px;
  }
}
