/*
Theme Name: SessionBase
Theme URI: https://sessionbase.co.uk
Author: Ryan
Description: Marketing site theme for SessionBase — practice management for therapists in private practice. Underscores-style structure, ACF-enhanced.
Version: 2.7.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: sessionbase
*/

/* =========================================================
   SessionBase — Homepage styles
   Palette, type and layout tokens live in :root below.
   ========================================================= */

:root {
  /* ---- C3 · Ink + Rust + Blush, with petrol as a second dark ground ----
     To try a different second dark, change --sage / --sage-deep / --sage-light
     only. Everything else stays put. */
  --paper:      #F7F4EF;   /* base background */
  --paper-2:    #F0EDE5;   /* warm cream panel */
  --sand:       #EAE6DC;   /* warm neutral block */
  --ink:        #282520;   /* text + darkest ground */
  --ink-soft:   #3A372E;   /* warm charcoal ground */
  --body:       #5E594C;   /* body copy */
  --muted:      #928975;   /* captions, fine print */

  --clay:       #A44B31;   /* rust — primary accent / CTA */
  --clay-deep:  #833A25;   /* rust hover */
  --clay-light: #D0785A;   /* rust for dark grounds */
  --ink-deep:   #0D0E0E;   /* near-black — app section in dark mode */
  --blush:      #E0A992;   /* highlight, used sparingly on dark grounds */
  --blush-soft: #F2D8CB;   /* blush tint for panels */

  --sage:       #26454E;   /* petrol — second dark ground (was sage green) */
  --sage-deep:  #17313A;   /* petrol deep — darkest coloured ground */
  --sage-light: #9DBCC2;   /* petrol light — eyebrows, links, stats on petrol */
  --line:       rgba(40, 37, 32, 0.14);

  /* Type */
  --serif: "ivyjournal", Georgia, serif;   /* display (Ivy Journal via Typekit) */
  --sans:  "Outfit", system-ui, sans-serif;

  /* Layout */
  --maxw: 1560px;
  --gutter: clamp(22px, 5vw, 96px);
  --section-y: clamp(88px, 11vw, 168px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.18; }
p { margin: 0; }
a { color: var(--clay); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--clay-deep); }
button { font-family: inherit; cursor: pointer; }

/* Paper-grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; z-index: 1; }
.section--paper2 { background: var(--paper-2); }
.section--sand   { background: var(--sand); }
.section--sage   { background: var(--sage); color: var(--paper); }
.section--clay   { background: var(--clay); color: var(--paper); }
.section--dark   { background: var(--sage-deep); color: var(--paper); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); font-weight: 400; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-color .eyebrow { color: var(--paper); opacity: .85; }

.display  { font-family: var(--serif); }
.italic   { font-family: var(--serif); font-style: italic; }
.accent   { font-family: var(--serif); font-style: italic; color: var(--clay); }
.on-color .accent { color: var(--paper); }

h1.display { font-size: clamp(40px, 6vw, 74px); }
h2.display { font-size: clamp(34px, 4.6vw, 60px); }
h3.display { font-size: clamp(28px, 4vw, 52px); }

h3.card-title { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); margin: 20px 0 12px; }

.lead { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.8; color: var(--body); }
.on-color .lead { color: var(--paper); opacity: .92; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 16px; border-radius: 100px;
  padding: 16px 36px; border: 1px solid transparent; transition: all .2s ease;
}
.btn--primary { background: var(--clay); color: var(--paper); }
.btn--primary:hover { background: var(--clay-deep); color: var(--paper); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(164,75,49,.22); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(46,43,36,.35); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--full { width: 100%; }

.linkarrow { display: inline-block; font-weight: 500; font-size: 15px; margin-top: 26px; }

/* ---------- Navigation ---------- */
.nav { padding-block: 26px; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { width: 168px; }
.nav__links { display: flex; align-items: center; gap: 40px; font-size: 15px; }
.nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--clay); }
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__actions a { color: var(--ink); font-size: 15px; }
.nav__cta {
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 500;
  border: 1px solid rgba(46,43,36,.35); border-radius: 100px; padding: 11px 24px;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__title { margin-bottom: 0; }
.hero__lead { max-width: 500px; margin-top: 38px; }
.hero__cta { display: flex; align-items: center; gap: 26px; margin-top: 46px; flex-wrap: wrap; }
.hero__note { font-size: 14px; color: var(--muted); }
.hero__art { position: relative; height: clamp(400px, 44vw, 580px); }
.hero__art .frame { position: absolute; overflow: hidden; border-radius: 3px; }
.hero__art .frame--main   { top: 0; right: 0; width: 76%; height: 64%; box-shadow: 0 20px 50px rgba(46,43,36,.14); }
.hero__art .frame--sub    { bottom: 0; left: 0; width: 50%; height: 48%; border: 7px solid var(--paper); box-shadow: 0 16px 44px rgba(46,43,36,.16); }
.hero__art .frame--print  { top: 57%; right: -10px; width: 132px; height: 132px; }

/* ---------- Two-column feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--media-left .split__media { order: -1; }
.split__media { position: relative; height: clamp(320px, 34vw, 460px); }
.split__media .fill { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; box-shadow: 0 18px 46px rgba(46,43,36,.12); }
.measure { max-width: 600px; }
.measure p + p { margin-top: 22px; }

/* ---------- What's inside grid ---------- */
.inside__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 90px); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 64px) clamp(32px, 3.5vw, 56px); }
.feature .icon { width: 44px; height: 44px; stroke: var(--clay); }
.feature p { font-size: 15px; line-height: 1.75; color: var(--body); }
.feature--cta { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-left: 40px; }
.feature--cta .italic { font-size: clamp(22px, 2vw, 26px); color: var(--sage-deep); line-height: 1.3; }

/* ---------- Pricing ---------- */
.pricing__head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1120px; margin-inline: auto; align-items: stretch; }
.plan { border-radius: 16px; padding: clamp(32px, 2.8vw, 44px) clamp(26px, 2.4vw, 36px); display: flex; flex-direction: column; }
.plan--solo { background: var(--paper-2); border: 1px solid var(--line); }
.plan--team { background: var(--paper-2); border: 1px solid var(--line); }
.plan--feature { background: var(--ink); color: var(--paper); position: relative; box-shadow: 0 24px 60px rgba(46,43,36,.22); }
.plan__name { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1; color: var(--ink); }
.plan--feature .plan__name { color: var(--paper); }
.plan__for { font-size: 13.5px; color: var(--muted); margin-top: 12px; min-height: 2.8em; }
.plan--feature .plan__for { color: rgba(244,237,224,.7); }
.plan__cap { font-size: 12px; letter-spacing: .04em; margin-top: 14px; padding: 6px 12px; border-radius: 100px; align-self: flex-start; background: rgba(166,97,55,.1); color: var(--clay); }
.plan--feature .plan__cap { background: rgba(249,245,238,.14); color: var(--sand); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 4px; }
.plan__price .amt { font-family: var(--serif); font-size: clamp(48px, 5vw, 64px); }
.plan__price .per { font-size: 16px; color: var(--body); }
.plan--feature .plan__price .per { color: rgba(244,237,224,.7); }
.plan__bill { font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.plan__list { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.plan__list li { font-size: 15px; display: flex; gap: 14px; }
.plan__list li::before { content: "—"; color: var(--clay); }
.plan--feature .plan__list li::before { color: var(--sand); }
.plan .btn { margin-top: auto; }
.plan__badge {
  position: absolute; top: 24px; right: 28px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand); border: 1px solid rgba(232,218,193,.4);
  border-radius: 100px; padding: 5px 12px;
}
.addon {
  max-width: 900px; margin: 24px auto 0; display: flex; align-items: center; gap: 18px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 28px;
}
.addon .icon { width: 26px; height: 26px; stroke: var(--clay); flex: none; }
.addon__text { flex: 1; }
.addon__text .italic { font-size: 19px; }
.addon__text span { color: var(--body); font-size: 15px; }
.addon__tag { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* ---------- Guides ---------- */
.guides__portrait { position: relative; height: clamp(360px, 36vw, 460px); }
.guides__portrait .fill { position: absolute; inset: 0 22% 0 0; overflow: hidden; border-radius: 2px; box-shadow: 0 18px 48px rgba(46,43,36,.16); }
.guides__card { position: absolute; bottom: 28px; right: 0; width: 46%; background: var(--ink); color: var(--paper); padding: 22px 24px; border-radius: 2px; }
.guides__card .italic { font-size: 20px; color: var(--sand); }
.guides__card small { display: block; font-size: 13px; color: rgba(244,237,224,.72); margin-top: 5px; }

/* ---------- Giving back ---------- */
.giving { text-align: center; }
.giving .measure { max-width: 720px; margin-inline: auto; }
.giving__pull { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 26px); margin-top: 34px; }
.giving a.linkarrow { color: var(--paper); border-bottom: 1px solid rgba(244,237,224,.5); padding-bottom: 3px; margin-top: 32px; }

/* ---------- Trust ---------- */
.trust__head { max-width: 680px; margin-bottom: clamp(48px, 6vw, 72px); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.quote { border-top: 1px solid var(--line); padding-top: 32px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.4; }
.quote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 24px; letter-spacing: .06em; }

/* ---------- FAQ ---------- */
.faq .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); }
.faq__sign { color: var(--clay); font-size: 24px; line-height: 1; transition: transform .25s ease; }
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .3s ease, padding .3s ease; }
.faq__item[open] .faq__a { max-height: 240px; padding-bottom: 26px; }
.faq__a p { font-size: 15px; line-height: 1.75; color: var(--body); }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; overflow: hidden; }
.closing .measure { max-width: 640px; margin-inline: auto; }
.closing p { margin-top: 32px; }
.closing .btn { margin-top: 42px; }
.closing__fine { font-size: 14px; color: rgba(244,237,224,.7); margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--paper); padding-block: 76px 52px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 44px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand { max-width: 300px; }
.footer__brand img { width: 158px; }
.footer__brand p { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--body); margin-top: 22px; }
.footer__cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col a { color: var(--ink); }
.footer__col a:hover { color: var(--clay); }
.footer__legal { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ---------- About: beliefs ---------- */
.beliefs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 4vw, 64px) clamp(40px, 5vw, 80px); }
.belief { display: flex; gap: 22px; }
.belief__no { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 40px); color: var(--clay); line-height: 1; flex: none; }
.belief h3 { font-family: var(--serif); font-size: clamp(21px, 1.9vw, 26px); margin-bottom: 12px; }
.belief p { font-size: 15px; line-height: 1.75; color: var(--body); }

/* ---------- About: founder ---------- */
.founder__portrait { position: relative; height: clamp(400px, 42vw, 600px); }
.founder__portrait .fill { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; box-shadow: 0 22px 55px rgba(46,43,36,.16); }
.founder__portrait .stamp {
  position: absolute; bottom: -22px; right: -14px;
  background: var(--clay); color: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px);
  padding: 18px 30px; border-radius: 100px; box-shadow: 0 14px 34px rgba(166,97,55,.28);
}
.signature { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 34px); color: var(--ink); margin-top: 32px; }

@media (max-width: 1024px) { .beliefs { grid-template-columns: 1fr; } }

/* ---------- Feature-point checklists ---------- */
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 15px; }
.points--2 { grid-template-columns: 1fr 1fr; gap: 16px clamp(24px, 3vw, 46px); }
.points li { display: flex; gap: 13px; font-size: 15px; line-height: 1.55; color: var(--body); }
.points li::before {
  content: "\2713"; flex: none; margin-top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: rgba(166,97,55,.12); color: var(--clay);
}
.on-color .points li { color: var(--paper); opacity: .94; }
.on-color .points li::before { background: rgba(249,245,238,.16); color: var(--paper); }
@media (max-width: 560px) { .points--2 { grid-template-columns: 1fr; } }

/* ---------- Features: opening ---------- */
.f-open { text-align: center; }
.f-open .measure { max-width: 1200px; margin-inline: auto; }
.f-open .eyebrow { justify-content: center; }
.f-open .lead { margin: 34px auto 40px; max-width: 620px; }

/* ---------- Features: colour themes ---------- */
.themes { text-align: center; }
.themes .measure { max-width: 680px; margin-inline: auto; }
.themes .eyebrow { justify-content: center; }
.themes .lead { margin-top: 30px; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 48px; }
.swatch {
  width: 54px; height: 54px; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(46,43,36,.18); border: 3px solid rgba(249,245,238,.5);
}
.themes__modes { display: inline-flex; gap: 10px; margin-top: 40px; font-size: 13px; }
.themes__mode {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 100px; letter-spacing: .04em;
  border: 1px solid rgba(249,245,238,.4);
}
.themes__mode i { width: 13px; height: 13px; border-radius: 50%; }

/* ---------- Page intro head ---------- */
.pagehead { text-align: center; }
.pagehead .measure { max-width: 760px; margin-inline: auto; }
.pagehead .eyebrow { justify-content: center; }
.pagehead .lead { margin: 32px auto 0; max-width: 620px; }

/* ---------- Post / guide card grids ---------- */
.postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 3vw, 48px) clamp(28px, 3vw, 44px); }
.post { display: flex; flex-direction: column; }
.post__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; box-shadow: 0 16px 40px rgba(46,43,36,.12); }
.post__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin: 24px 0 12px; }
.post__title { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.22; }
.post__ex { font-size: 15px; line-height: 1.72; color: var(--body); margin-top: 13px; }
.post__more { margin-top: auto; padding-top: 20px; font-weight: 500; font-size: 14px; }
.post__num { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--clay); line-height: 1; }

/* Guide outcome line */
.guide__outcome { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--body); }
.guide__outcome b { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--clay); }
.post__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.post__head .post__num { font-size: 26px; }
.post__head .post__meta { margin: 0; }
.feature-post .post__num { display: block; font-size: 30px; margin-bottom: 14px; }

/* Featured post */
.feature-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; margin-bottom: clamp(56px, 7vw, 90px); }
.feature-post .post__img { aspect-ratio: 16 / 11; }
.feature-post .post__title { font-size: clamp(28px, 3vw, 44px); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 13px; letter-spacing: .04em; color: var(--ink); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; width: 100%; transition: border-color .2s ease;
}
.field textarea { min-height: 156px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Contact info column ---------- */
.cinfo { display: flex; flex-direction: column; gap: 30px; margin-top: 38px; }
.cinfo__item .k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cinfo__item .v { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); margin-top: 8px; }
.cinfo__item .v a { color: var(--ink); border-bottom: 1px solid var(--line); }
.cinfo__item .v a:hover { color: var(--clay); }

/* ---------- Long-form document ---------- */
.doc { max-width: 760px; margin-inline: auto; }
.doc__updated { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.doc h2 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); margin: 54px 0 16px; }
.doc h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 30px 0 10px; }
.doc p { font-size: 16px; line-height: 1.85; color: var(--body); margin-top: 14px; }
.doc ul { padding-left: 4px; margin: 16px 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.doc li { font-size: 16px; line-height: 1.7; color: var(--body); display: flex; gap: 13px; }
.doc li::before { content: "—"; color: var(--clay); flex: none; }
.doc a { border-bottom: 1px solid rgba(166,97,55,.4); }

/* ---------- Security commitments ---------- */
.pledgebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); text-align: center; }
.pledge__k { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); color: var(--clay); line-height: 1; }
.pledge__v { font-size: 14px; line-height: 1.6; color: var(--body); margin-top: 14px; }

@media (max-width: 1024px) {
  .postgrid { grid-template-columns: repeat(2, 1fr); }
  .feature-post { grid-template-columns: 1fr; }
  .pledgebar { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
}
@media (max-width: 720px) {
  .postgrid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- Media placeholders ---------- */
image-slot { width: 100%; height: 100%; }

/* ---------- 404 ---------- */
.notfound { min-height: 78vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.notfound__pattern {
  position: absolute; top: 50%; right: -6%; width: 620px; height: 620px;
  transform: translateY(-50%); opacity: .07; pointer-events: none;
}
.notfound__num {
  font-family: var(--serif); font-style: italic; font-size: clamp(96px, 14vw, 180px);
  line-height: .9; color: var(--clay); margin-bottom: 8px;
}
.notfound .measure { max-width: 560px; }
.notfound__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.notfound__links { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.notfound__links a { font-size: 14px; color: var(--body); }
.notfound__links a:hover { color: var(--clay); }

/* ========================================================
   Article / Guide single pages
   ======================================================== */
.article__head { max-width: 760px; margin-inline: auto; text-align: center; }
.article__head .eyebrow { justify-content: center; }
.article__title { font-size: clamp(34px, 4.4vw, 56px); margin-top: 26px; }
.article__dek { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.7; color: var(--body); margin-top: 22px; max-width: 620px; margin-inline: auto; }
.article__meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.article__meta .avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; }
.article__meta .name { color: var(--ink); font-weight: 500; }
.article__meta .dot { opacity: .5; }

.article__hero { aspect-ratio: 16/8; border-radius: 4px; overflow: hidden; box-shadow: 0 22px 55px rgba(46,43,36,.16); margin: clamp(40px,5vw,64px) auto 0; max-width: 1040px; }

.article__layout { display: grid; grid-template-columns: 1fr 260px; gap: clamp(48px, 6vw, 90px); max-width: 1040px; margin-inline: auto; align-items: start; }
.article__body.doc { max-width: none; }
.article__sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 28px; }

.sidebar__card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.sidebar__card .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.sidebar__card h4 { font-family: var(--serif); font-size: 19px; margin: 10px 0 12px; line-height: 1.3; }
.sidebar__card p { font-size: 13.5px; line-height: 1.6; color: var(--body); margin-bottom: 16px; }

.toc { display: flex; flex-direction: column; gap: 10px; }
.toc a { font-size: 13.5px; color: var(--body); line-height: 1.5; }
.toc a:hover { color: var(--clay); }

/* Video embed block, inside .doc flow */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin: 30px 0; box-shadow: 0 14px 36px rgba(46,43,36,.14); }
.video-embed .play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; cursor: pointer;
  background: linear-gradient(rgba(46,43,36,.08), rgba(46,43,36,.32));
}
.video-embed .play span {
  width: 62px; height: 62px; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(46,43,36,.3);
}
.video-embed .play svg { width: 20px; height: 20px; fill: var(--clay); stroke: none; margin-left: 2px; }
.video-embed__caption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Pull quote inside article body */
.pullquote { margin: 40px 0; padding-left: 26px; border-left: 2px solid var(--clay); }
.pullquote p { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2vw, 27px); line-height: 1.4; color: var(--ink); }
.pullquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Callout / tip box */
.callout { display: flex; gap: 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 30px 0; }
.callout .icon { width: 22px; height: 22px; stroke: var(--clay); flex: none; margin-top: 2px; }
.callout strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.callout p { margin: 0 !important; font-size: 14.5px !important; }

/* Worksheet / checklist download card, inline in article */
.download-card { display: flex; align-items: center; gap: 20px; background: var(--sage-deep); color: var(--paper); border-radius: 12px; padding: 26px 28px; margin: 36px 0; }
.download-card .icon { width: 30px; height: 30px; stroke: var(--sand); flex: none; }
.download-card .t { flex: 1; }
.download-card .t strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.download-card .t span { font-size: 13.5px; color: rgba(244,237,224,.78); }
.download-card .btn { flex: none; }

/* Guide outcome recap at top of a guide article */
.outcome-recap { display: flex; gap: 16px; background: rgba(166,97,55,.08); border-radius: 10px; padding: 20px 24px; margin: 36px 0 0; }
.outcome-recap .k { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 15px; flex: none; }
.outcome-recap p { margin: 0 !important; font-size: 14.5px !important; }

/* Author card at end of article */
.author-card { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; margin: 48px 0; }
.author-card .avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; }
.author-card .name { font-family: var(--serif); font-size: 18px; }
.author-card .role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.author-card p { font-size: 14px; color: var(--body); margin-top: 8px; }

/* Guide prev/next progress nav */
.guide-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1040px; margin: clamp(40px,5vw,64px) auto 0; }
.guide-nav__link { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.guide-nav__link.next { text-align: right; align-items: flex-end; }
.guide-nav__dir { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.guide-nav__title { font-family: var(--serif); font-size: 18px; }
.guide-progress { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.guide-progress i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.guide-progress i.active { background: var(--clay); width: 20px; border-radius: 4px; }

@media (max-width: 900px) {
  .article__layout { grid-template-columns: 1fr; }
  .article__sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar__card { flex: 1 1 240px; }
  .guide-nav { grid-template-columns: 1fr; }
  .guide-nav__link.next { text-align: left; align-items: flex-start; }
  .download-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- Scroll-reveal transitions ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Editorial inset colour blocks ---------- */
.section--sage, .section--clay, .section--sand, .section--dark, .section--paper2 {
  border-radius: 28px;
  margin-block: clamp(22px, 3vw, 52px);
  margin-inline: clamp(12px, 2vw, 32px);
}

/* ---------- Dashboard showcase ---------- */
.dashboard { padding-top: 0; }
.dashboard__frame {
  max-width: 1240px; margin-inline: auto;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(46,43,36,.18);
  border: 1px solid var(--line);
}
.dashboard__caption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; font-style: italic; font-family: var(--serif); font-size: 17px; }

/* ---------- Dashboard + highlights showcase ---------- */
.showcase-img { padding-bottom: 0; overflow: visible; position: relative; z-index: 3; }
.showcase__frame {
  max-width: 1240px; margin: 0 auto clamp(-150px, -11vw, -96px);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(46,43,36,.28);
  border: 1px solid rgba(0,0,0,.12);
  position: relative; z-index: 2;
}
.highlights { padding-top: clamp(180px, 17vw, 240px); margin-top: 0; }
.showcase__points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.point { text-align: center; padding: 0 clamp(12px, 2vw, 32px); }
.point + .point { border-left: 1px solid rgba(244,237,224,.2); }
.point .icon { width: 40px; height: 40px; stroke: var(--sand); margin: 0 auto; }
.point h3 { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); margin: 20px 0 12px; color: var(--paper); }
.point p { font-size: 15px; line-height: 1.7; color: rgba(244,237,224,.82); max-width: 30ch; margin-inline: auto; }

/* ---------- Statement interlude ---------- */
.statement { text-align: center; }
.statement .rule { width: 56px; height: 1px; background: var(--clay); margin: 0 auto 36px; }
.statement p {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.25; max-width: 880px; margin-inline: auto;
  color: var(--ink);
}

/* ---------- Giving back stat ---------- */
.giving__stat {
  font-family: var(--serif); font-style: normal;
  font-size: clamp(72px, 9vw, 140px); line-height: 1;
  margin: 20px 0 10px;
}

/* ---------- Quote glyph ---------- */
.quote blockquote::before {
  content: "\201C"; display: block;
  font-family: var(--serif); font-size: 56px; line-height: .55;
  color: var(--clay); margin-bottom: 20px;
}

/* ---------- Gentle image hover ---------- */
.frame, .fill { transition: transform .5s ease; }
.frame:hover, .fill:hover { transform: translateY(-4px); }

/* ---------- Hero organic blob ---------- */
.hero__art { z-index: 1; }
.hero__art .frame { z-index: 1; }
.hero__blob {
  position: absolute; z-index: 0;
  width: 82%; aspect-ratio: 1; right: 0; top: 4%;
  background: var(--paper-2);
  border-radius: 58% 42% 45% 55% / 50% 55% 45% 50%;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .showcase__points { grid-template-columns: 1fr; }
  .point + .point { border-left: none; padding-left: 0; border-top: 1px solid rgba(244,237,224,.2); padding-top: 28px; }
  .hero .container,
  .split,
  .faq .container { grid-template-columns: 1fr; }
  .hero__art { order: -1; height: clamp(340px, 60vw, 460px); }
  .split--media-left .split__media,
  .split__media { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature--cta { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .plan__for { min-height: 0; }
}
@media (max-width: 720px) {
  .nav__links, .nav__actions a { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
  .features,
  .plans { grid-template-columns: 1fr; }
  .addon { flex-wrap: wrap; }
  .footer__top { flex-direction: column; }
}

/* ===== Theme additions (WordPress) ===== */

/* Image slot: ACF-driven image or styled placeholder until one is set */
.sb-slot { display:block; width:100%; height:100%; object-fit:cover; }
.sb-slot--ph { display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-height:80px;
  border:1.5px dashed rgba(46,43,36,.28); border-radius:inherit; color:rgba(46,43,36,.5);
  font-family:'Outfit',sans-serif; font-size:12px; letter-spacing:.04em; text-align:center; padding:10px;
  background:rgba(46,43,36,.04); }
.sb-slot--circle, .sb-slot--circle.sb-slot--ph { border-radius:50%; }
.avatar .sb-slot--ph { font-size:11px; padding:2px; }

/* WP alignment + content niceties inside .doc */
.doc img { max-width:100%; height:auto; border-radius:4px; }
.doc .wp-block-image { margin:30px 0; }
.doc ul, .doc ol { margin:0 0 22px 22px; }
.doc li { margin-bottom:8px; }

/* Menus rendered by wp_nav_menu keep design styling */
.nav__links ul, .footer__col ul { list-style:none; margin:0; padding:0; display:contents; }
.nav__links li, .footer__col li { display:contents; }

/* Pagination */
.sb-pagination { display:flex; gap:10px; justify-content:center; margin-top:clamp(48px,6vw,80px); flex-wrap:wrap; }
.sb-pagination .page-numbers { font-family:'Outfit',sans-serif; font-size:14px; padding:10px 16px; border:1px solid rgba(46,43,36,.2); border-radius:999px; text-decoration:none; }
.sb-pagination .page-numbers.current { background:var(--ink); color:var(--paper); border-color:var(--ink); }

/* Screen reader text (Underscores standard) */
.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute!important; width:1px; word-wrap:normal!important; }

/* ===== The app — white showcase, screen sequence, light/dark toggle ===== */
.app-showcase { background: #FFFFFF; position: relative; z-index: 3; }
.app-showcase__head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); }
.app-showcase__head .lead { margin-top: 28px; }

/* Stage holds both mode sets stacked; height comes from the first image */
.app-stage { position: relative; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(40,37,32,.16); }
.app-set { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.app-set.is-active { opacity: 1; pointer-events: auto; position: relative; }
.app-set.is-active .app-shot:first-child { position: relative; }
.app-shot { position: absolute; inset: 0; display: block; width: 100%; height: auto;
  opacity: 0; transition: opacity .8s ease; }
.app-shot.is-active { opacity: 1; }

/* Play button sits over the stage */
.app-play { position: absolute; right: clamp(14px, 2vw, 26px); top: clamp(14px, 2vw, 26px);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
  border: none; border-radius: 999px; cursor: pointer; z-index: 4;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(40,37,32,.22); backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease; }
.app-play:hover { transform: translateY(-2px); background: #fff; }
.app-play__icon { display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--clay); color: #fff; }
.app-play__icon svg { width: 12px; height: 12px; margin-left: 2px; }

/* Light / dark toggle */
.mode-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.mode-toggle__label { font-size: 14px; letter-spacing: .04em; color: var(--body); }
.mode-toggle__switch { position: relative; width: 58px; height: 32px; border: none; border-radius: 999px;
  background: var(--clay); cursor: pointer; transition: background .3s ease; padding: 0; }
.mode-toggle__switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mode-toggle__knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF; transition: transform .3s ease, background .3s ease; box-shadow: 0 2px 6px rgba(40,37,32,.3); }
.mode-toggle__switch[aria-checked="true"] { background: var(--ink); }
.mode-toggle__switch[aria-checked="true"] .mode-toggle__knob { transform: translateX(26px); }

/* Caption + dots */
.app-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 22px; flex-wrap: wrap; }
.app-caption { font-size: 15px; color: var(--body); margin: 0; min-height: 1.4em; }
.app-dots { display: flex; gap: 8px; margin-left: auto; }
.app-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(40,37,32,.2); transition: background .25s ease, transform .25s ease; }
.app-dot:hover { background: rgba(40,37,32,.4); }
.app-dot.is-active { background: var(--clay); transform: scale(1.3); }

/* Video overlay */
.sb-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: rgba(24,22,18,.9); padding: clamp(16px, 4vw, 48px); opacity: 0; transition: opacity .3s ease; }
.sb-modal.is-open { opacity: 1; }
.sb-modal[hidden] { display: none; }
.sb-modal__inner { width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.sb-modal__video, .sb-modal__frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.sb-modal__close { position: absolute; top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px);
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; }
.sb-modal__close:hover { background: rgba(255,255,255,.26); }

/* Points on white */
.showcase__points--light { margin-top: clamp(56px, 7vw, 92px); }
.showcase__points--light .point .icon { stroke: var(--clay); }
.showcase__points--light .point h3 { color: var(--ink); }
.showcase__points--light .point p { color: var(--body); }
.showcase__points--light .point + .point { border-left-color: var(--line); }
@media (max-width: 860px) {
  .showcase__points--light .point + .point { border-top-color: var(--line); }
  .app-play span:last-child { display: none; }
  .app-play { padding: 10px; }
}

/* ===== Built in practice ===== */
.practice__top { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.practice__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid rgba(244,237,224,.22); }
.value__k { display: block; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 26px); margin-bottom: 12px; color: var(--paper); }
.value p { font-size: 15px; line-height: 1.75; color: rgba(244,237,224,.82); margin: 0; }
.practice__note { margin-top: clamp(48px, 5vw, 72px); max-width: 760px; }
.practice__note p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.45; color: var(--paper); margin: 0 0 18px; }
.practice__sig { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,237,224,.7); }
@media (max-width: 900px) {
  .practice__top { grid-template-columns: 1fr; }
  .practice__values { grid-template-columns: 1fr; gap: 28px; }
}


/* ===== C3 palette application ===== */
/* Petrol grounds: eyebrows, links and value headings use the light petrol tone */
.section--sage .eyebrow, .section--dark .eyebrow { color: var(--sage-light); opacity: 1; }
.section--sage .linkarrow, .section--dark .linkarrow { color: var(--sage-light); }
.practice__sig { color: var(--sage-light); }
.feature--cta .italic { color: var(--clay); }

/* Blush is reserved: the giving stat and its eyebrow only */
.giving .eyebrow { color: var(--blush); opacity: 1; }
.giving__stat { color: var(--blush); }
.giving .linkarrow { color: var(--blush); }

/* Plan chips pick up rust at low tint */
.plan__cap { background: rgba(164, 75, 49, .1); color: var(--clay); }

/* ===== Giving back — wider, two projects, white button ===== */
.giving__inner { max-width: 1080px; margin-inline: auto; text-align: center; }
.giving__title { font-size: clamp(34px, 4.4vw, 60px); max-width: 20ch; margin-inline: auto; }
.giving__lead { margin-top: clamp(34px, 4vw, 48px); font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.85;
  color: rgba(247,244,239,.88); max-width: 74ch; margin-inline: auto; }
.giving__projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(44px, 5vw, 68px); text-align: left; }
.giving__k { display: block; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); color: var(--paper); margin-bottom: 12px; }
.giving__project p { font-size: 15.5px; line-height: 1.75; color: rgba(247,244,239,.84); margin: 0; }
.giving__note { margin-top: clamp(36px, 4vw, 52px); font-size: 14.5px; color: rgba(247,244,239,.7); max-width: 60ch; margin-inline: auto; }
.btn--light { background: var(--paper); color: var(--ink); margin-top: 30px; }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
@media (max-width: 760px) { .giving__projects { grid-template-columns: 1fr; } }

/* ===== Loader + page transitions ===== */
/* Homepage only. Sequence: first bubble fades in, second follows,
   both hold apart, then they meet to form the S. Wordmark, then bar. */
.sb-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  transition: opacity .5s ease, visibility .5s ease;
}
.sb-loader.is-done { opacity: 0; visibility: hidden; }
.sb-loader__inner { display: flex; flex-direction: column; align-items: center; }

.sb-loader__logowrap { display: flex; align-items: center; justify-content: center;
  height: clamp(96px, 13vw, 132px); }
.sb-loader__logo { width: clamp(196px, 24vw, 268px); height: auto; overflow: visible; }

.sb-loader__bubble { opacity: 0; }
.sb-loader__bubble--top    { animation: sb-top 2.3s cubic-bezier(.5,0,.2,1) forwards; }
.sb-loader__bubble--bottom { animation: sb-bottom 2.3s cubic-bezier(.5,0,.2,1) forwards; }

/* First bubble: fades in on the spot, waits */
@keyframes sb-top {
  0%   { opacity: 0; transform: translateY(-15px); }
  20%  { opacity: 1; transform: translateY(-15px); }
  65%  { opacity: 1; transform: translateY(-15px); }
  96%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Second bubble: holds off, fades in, then both travel together */
@keyframes sb-bottom {
  0%   { opacity: 0; transform: translateY(15px); }
  22%  { opacity: 0; transform: translateY(15px); }
  43%  { opacity: 1; transform: translateY(15px); }
  65%  { opacity: 1; transform: translateY(15px); }
  96%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Wordmark arrives once the S has formed */
.sb-loader__word { opacity: 0; animation: sb-word .7s ease 2.25s forwards; }
@keyframes sb-word { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* The bar waits for the whole logo, then fades in and fills */
.sb-loader__bar { display: block; width: 120px; height: 2px; margin-top: 26px;
  background: rgba(40,37,32,.12); border-radius: 2px; overflow: hidden;
  opacity: 0; animation: sb-bar-in .35s ease 3s forwards; }
.sb-loader__bar i { display: block; height: 100%; width: 0; background: var(--clay);
  animation: sb-bar .85s ease-out 3.1s forwards; }
@keyframes sb-bar-in { to { opacity: 1; } }
@keyframes sb-bar { from { width: 0; } to { width: 100%; } }

/* Page transition veil on navigation */
body { opacity: 1; transition: opacity .22s ease; }
body.sb-leaving { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .sb-loader { display: none; }
  body, body.sb-leaving { opacity: 1; transition: none; }
}

/* ===== App section: whole block flips to dark with the toggle ===== */
.app-showcase { transition: background-color .55s ease, color .55s ease; }
.app-showcase .app-showcase__head .display,
.app-showcase .app-showcase__head .lead,
.app-showcase .mode-toggle__label,
.app-showcase .app-caption,
.app-showcase .point h3,
.app-showcase .point p { transition: color .55s ease; }

.app-showcase.is-dark { background: var(--ink-deep); color: var(--paper); }
.app-showcase.is-dark .app-showcase__head .display { color: var(--paper); }
.app-showcase.is-dark .app-showcase__head .lead { color: rgba(247,244,239,.82); }
.app-showcase.is-dark .eyebrow { color: var(--clay-light); }
.app-showcase.is-dark .mode-toggle__label { color: rgba(247,244,239,.75); }
.app-showcase.is-dark .mode-toggle__switch,
.app-showcase.is-dark .mode-toggle__switch[aria-checked="true"] { background: var(--clay-light); }
.app-showcase.is-dark .mode-toggle__knob { background: var(--paper); }
.app-showcase.is-dark .mode-toggle__switch:focus-visible { outline-color: var(--paper); }

.app-showcase.is-dark .app-stage { box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.app-showcase.is-dark .app-play { background: rgba(13,14,14,.9); color: var(--paper); }
.app-showcase.is-dark .app-play:hover { background: rgba(13,14,14,1); }
.app-showcase.is-dark .app-play__icon { background: var(--clay-light); color: var(--ink-deep); }

.app-showcase.is-dark .app-caption { color: rgba(247,244,239,.78); }
.app-showcase.is-dark .app-dot { background: rgba(247,244,239,.25); }
.app-showcase.is-dark .app-dot:hover { background: rgba(247,244,239,.45); }
.app-showcase.is-dark .app-dot.is-active { background: var(--clay-light); }

.app-showcase.is-dark .showcase__points--light .point .icon { stroke: var(--clay-light); }
.app-showcase.is-dark .showcase__points--light .point h3 { color: var(--paper); }
.app-showcase.is-dark .showcase__points--light .point p { color: rgba(247,244,239,.8); }
.app-showcase.is-dark .showcase__points--light .point + .point { border-left-color: rgba(247,244,239,.18); }
@media (max-width: 860px) {
  .app-showcase.is-dark .showcase__points--light .point + .point { border-top-color: rgba(247,244,239,.18); }
}

/* ===== Reminders: email included vs SMS credits ===== */
.reminders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 4vw, 60px); }
.reminders__item { display: flex; align-items: flex-start; gap: 18px; padding: clamp(22px, 2.4vw, 30px);
  border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.reminders__item--paid { border-color: rgba(164,75,49,.32); background: rgba(164,75,49,.05); }
.reminders__item .icon { width: 34px; height: 34px; color: var(--clay); stroke: currentColor; flex: none; margin-top: 2px; }
.reminders__k { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.reminders__item p { font-size: 14.5px; line-height: 1.7; color: var(--body); margin: 0; }
.reminders__tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px;
  border-radius: 999px; background: rgba(164,75,49,.12); color: var(--clay);
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.reminders__price { margin-left: auto; text-align: right; flex: none; }
.reminders__price b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); color: var(--clay); }
.reminders__price small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.reminders__price--free { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); color: var(--body); }
@media (max-width: 820px) {
  .reminders { grid-template-columns: 1fr; }
  .reminders__price { margin-left: 0; text-align: left; width: 100%; margin-top: 12px; }
  .reminders__item { flex-wrap: wrap; }
}

/* ===== Restored: What's inside — cards, icons, CTA ===== */
.inside__intro { max-width: 620px; margin-top: 24px; }
.feature .icon { width: clamp(72px, 7vw, 92px); height: clamp(72px, 7vw, 92px); color: var(--clay); stroke: currentColor; margin-bottom: 24px; overflow: visible; }
.feature .card-title { margin-bottom: 14px; }
.features__cta { display: flex; justify-content: center; margin-top: clamp(48px, 5vw, 72px); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ===== Restored: centred eyebrows drop the leading rule ===== */
.eyebrow[style*="justify-content:center"]::before,
.eyebrow[style*="justify-content: center"]::before,
.f-open .eyebrow::before,
.themes .eyebrow::before,
.pagehead .eyebrow::before,
.article__head .eyebrow::before,
.app-showcase__head .eyebrow::before,
.pricing__head .eyebrow::before,
.giving .eyebrow::before,
.inside__head[style*="text-align:center"] .eyebrow::before,
.measure[style*="text-align:center"] .eyebrow::before { content: none; }

/* ===== Restored: no coloured/italic phrases inside headings ===== */
.display .accent, .display .italic,
h1 .accent, h1 .italic,
h2 .accent, h2 .italic,
h3 .accent, h3 .italic,
.statement .accent, .statement .italic {
  color: inherit; font-style: inherit; font-family: inherit;
}

/* ===== Reminders panel matches the plans grid width ===== */
.reminders { max-width: 1120px; margin-inline: auto; }

/* Our Story: give stacked founder paragraphs room to breathe */
.split .lead + .lead { margin-top: 20px; }
