/* =========================================================
   Pakito — public site styles
   Palette and type lifted from P:\app\frontend\src\theme.ts
   ========================================================= */

:root {
  /* brand */
  --teal: #1a8a7d;
  --teal-dark: #147068;
  --teal-light: #e6f5f3;
  --gold: #c8a84e;
  --gold-soft: #f3e6b5;

  /* fridge card palette (from the family app theme) */
  --note-bg: #fef9ef;
  --note-border: #c8a84e;
  --appt-bg: #eef4fe;
  --appt-border: #3b7ddb;
  --reminder-bg: #fef0f4;
  --reminder-border: #d45c7e;
  --medication-bg: #f0f7ee;
  --medication-border: #4a8a3a;

  /* neutrals */
  --bg: #fafaf8;
  --bg-warm: #f4efe4;
  --paper: #ffffff;
  --ink: #1f1f1d;
  --ink-soft: #555350;
  --ink-faint: #8b8780;
  --rule: #e7e2d6;
  --rule-strong: #d4cdbb;

  /* shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* layout */
  --container: 1140px;
  --gutter: clamp(20px, 4vw, 36px);

  /* type */
  --font-body: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-brand: 'Caveat', 'Bradley Hand', cursive;

  /* shadows */
  --shadow-card: 0 1px 2px rgba(20,18,12,.04), 0 8px 24px -12px rgba(20,18,12,.18);
  --shadow-card-hover: 0 2px 6px rgba(20,18,12,.06), 0 22px 40px -18px rgba(20,18,12,.28);
  --shadow-tape: 0 2px 4px rgba(0,0,0,.12);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .4em;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.18; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.brand-script {
  font-family: var(--font-brand);
  font-weight: 600;
  color: var(--teal-dark);
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-warm { background: var(--bg-warm); }
.section-teal {
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(180deg, var(--teal-dark), var(--teal));
  color: #fdfdf9;
}
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal p  { color: rgba(255,255,255,.85); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: .2em;
  transform: rotate(-1.5deg);
}
.section-teal .eyebrow { color: var(--gold-soft); }

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.section-teal .lead { color: rgba(255,255,255,.92); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250,250,248,.82);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 1.9rem;
  color: var(--teal-dark);
  letter-spacing: .005em;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .98rem;
}
.nav-links a:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav-links a.is-active {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.nav-cta { margin-left: 4px; }
/* the nav CTA is a real primary button — keep it white-on-teal, not the muted
   link color the more-specific `.nav-links a` rule would otherwise apply */
.nav-links .nav-cta a.btn-primary { color: #fff; }
.nav-links .nav-cta a.btn-primary:hover { color: #fff; background: var(--teal); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(20,112,104,.7);
}
.btn-primary:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(20,112,104,.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--bg-warm); color: var(--ink); }
.btn-on-teal {
  background: #fff;
  color: var(--teal-dark);
}
.btn-on-teal:hover { background: var(--gold-soft); color: var(--teal-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero::before {
  /* warm "fridge door" wash */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% 10%, var(--teal-light) 0%, transparent 60%),
    radial-gradient(700px 500px at 95% 20%, rgba(200,168,78,.18) 0%, transparent 55%),
    var(--bg);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 .scribble {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 1.15em;
  line-height: .9;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin-top: .8em;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.4em;
}
.hero-meta {
  margin-top: 1.6em;
  font-size: .92rem;
  color: var(--ink-faint);
  letter-spacing: .02em;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: min(380px, 80%);
  filter: drop-shadow(0 30px 30px rgba(20,18,12,.25));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}
.hero-art::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  width: 60%;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20,18,12,.18), transparent 70%);
  z-index: -1;
  filter: blur(2px);
}

/* ---------- fridge note (decorative card) ---------- */
.fridge-note {
  position: relative;
  background: var(--note-bg);
  border: 1px solid color-mix(in srgb, var(--note-border) 30%, transparent);
  border-left: 4px solid var(--note-border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-brand);
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
  transform: rotate(-1.4deg);
  max-width: 320px;
}
.fridge-note::before {
  /* tape */
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  width: 60px; height: 18px;
  background: rgba(255, 235, 150, .65);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: var(--shadow-tape);
  border-radius: 2px;
}
.fridge-note small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fridge-note.is-appt   { background: var(--appt-bg);       border-left-color: var(--appt-border); }
.fridge-note.is-remind { background: var(--reminder-bg);   border-left-color: var(--reminder-border); }
.fridge-note.is-med    { background: var(--medication-bg); border-left-color: var(--medication-border); }

/* ---------- value props grid ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 6px; }
.card p  { margin-bottom: 0; }

/* color-coded variant for fridge cards */
.card-note   { border-top: 4px solid var(--note-border);       background: linear-gradient(180deg, var(--note-bg) 0%, var(--paper) 28%); }
.card-appt   { border-top: 4px solid var(--appt-border);       background: linear-gradient(180deg, var(--appt-bg) 0%, var(--paper) 28%); }
.card-remind { border-top: 4px solid var(--reminder-border);   background: linear-gradient(180deg, var(--reminder-bg) 0%, var(--paper) 28%); }
.card-med    { border-top: 4px solid var(--medication-border); background: linear-gradient(180deg, var(--medication-bg) 0%, var(--paper) 28%); }

/* ---------- two-column feature block ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature.reverse > :first-child { order: 2; }
.feature-art {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-art .fridge-note { transform: rotate(-1.5deg); max-width: 100%; }
.feature-art .fridge-note + .fridge-note { transform: rotate(1.5deg); }
.feature-art .fridge-note + .fridge-note + .fridge-note { transform: rotate(-.6deg); }

/* ---------- principle list ---------- */
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
.principles li {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.principles li .dot {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: .9rem;
}
.principles li strong { display: block; color: var(--ink); }
.principles li span   { color: var(--ink-soft); font-size: .95rem; }

/* ---------- callout / quote ---------- */
.callout {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.callout blockquote {
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: var(--teal-dark);
  margin: 0;
  position: relative;
}
.callout blockquote::before,
.callout blockquote::after {
  font-family: var(--font-brand);
  color: var(--gold);
  font-size: 2em;
  line-height: 0;
  position: relative;
  top: .35em;
  margin: 0 .1em;
}
.callout blockquote::before { content: '“'; }
.callout blockquote::after  { content: '”'; }
.callout cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: .9rem;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

/* ---------- timeline / surfaces ---------- */
.surface-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.surface {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.surface:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.surface .num {
  font-family: var(--font-brand);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.surface h3 { color: var(--teal-dark); }
.surface .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 800;
  color: var(--teal-dark);
}
.surface .more::after {
  content: '→';
  transition: transform .2s ease;
}
.surface:hover .more::after { transform: translateX(3px); }

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}
.stats .stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.stats .stat .n {
  font-family: var(--font-brand);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 6px;
}
.stats .stat .l {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}

/* ---------- final CTA ---------- */
.cta-band {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 22px; }

/* ---------- footer ---------- */
.site-footer {
  background: #16201f;
  color: rgba(255,255,255,.78);
  padding: 56px 0 28px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}
.footer-grid h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid .brand {
  color: #fff;
  margin-bottom: 8px;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- page header (non-home pages) ---------- */
.page-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(28px, 4vw, 56px);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(200,168,78,.18) 0%, transparent 55%),
    radial-gradient(700px 500px at 5% 10%, var(--teal-light) 0%, transparent 55%),
    var(--bg);
}
.page-hero .container { display: grid; grid-template-columns: 1.4fr .6fr; gap: 36px; align-items: end; }
.page-hero .lead { max-width: 56ch; }
.page-hero .mini-art {
  display: flex;
  justify-content: flex-end;
}
.page-hero .mini-art img {
  width: 160px;
  filter: drop-shadow(0 18px 18px rgba(20,18,12,.2));
}

/* ---------- prose blocks ---------- */
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose ul li { margin: .35em 0; }
.prose strong { color: var(--ink); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- brand lockup with tagline ---------- */
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .brand-name {
  font-family: var(--font-brand);
  font-size: 1.9rem;
  color: var(--teal-dark);
}
.brand .brand-tagline {
  display: none;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-faint);
  margin-top: 3px;
  white-space: nowrap;
}
@media (min-width: 1040px) {
  .brand .brand-tagline { display: block; }
}

/* ---------- recognition section ---------- */
.recognition-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  margin-top: 32px;
}
.worry {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.worry p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.worry .mark {
  flex: 0 0 auto;
  font-family: var(--font-brand);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
}
.recognition-turn {
  margin-top: 36px;
  text-align: center;
  font-family: var(--font-brand);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  color: var(--teal-dark);
}

/* ---------- feature volley ---------- */
.volley { display: grid; gap: clamp(28px, 5vw, 56px); }
.volley-item {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.volley-item.reverse > .volley-copy { order: 2; }
.volley-statement {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
.volley-statement em {
  font-family: var(--font-brand);
  font-style: normal;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 1.1em;
}
.volley-why { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.volley-why .label {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 2px;
}
/* the last two land with more room */
.volley-item:nth-last-child(-n+2) { padding: clamp(8px, 2vw, 24px) 0; }

/* ---------- morning brief (emotional climax) ---------- */
.morning {
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(200,168,78,.16), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, var(--teal-light), transparent 55%),
    var(--bg-warm);
}
.morning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.morning .love-letter {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  color: var(--teal-dark);
  margin: .3em 0 0;
}
.brief-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- differentiator strip (triple negative) ---------- */
.diffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 36px;
}
.diff {
  text-align: center;
  padding: 26px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.diff .no {
  display: block;
  font-family: var(--font-brand);
  font-size: 2.2rem;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.diff p { margin: 0; font-size: .98rem; }

/* ---------- honest promise ---------- */
.promise {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.promise .as-herself {
  font-family: var(--font-brand);
  color: var(--teal-dark);
  font-size: 1.12em;
}
/* on the teal close, dark teal is invisible — use the warm cream accent */
.section-teal .as-herself { color: var(--gold-soft); }

/* ---------- pricing / tier cards ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  max-width: 1080px;
  margin: 48px auto 0;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.plan.is-featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-card-hover);
  position: relative;
}
/* the most-likely paid entry point sits a touch taller than its peers (only when 3-up) */
@media (min-width: 961px) {
  .plan.is-featured { transform: translateY(-10px); }
}
.plan .plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal-dark);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.5rem; color: var(--teal-dark); margin-bottom: 2px; }
.plan .plan-line {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1.1;
  margin: 0 0 14px;
}
.plan-price { margin: 0 0 4px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan-price .period { font-size: 1rem; color: var(--ink-faint); font-weight: 700; }
.plan-annual { font-size: .9rem; color: var(--ink-faint); margin: 0 0 22px; min-height: 2.4em; }
.plan-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan-features li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 1rem; }
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-light);
}
.plan-features li::after {
  content: '';
  position: absolute;
  left: 7px; top: 7px;
  width: 6px; height: 10px;
  border: solid var(--teal-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan-features li.muted { color: var(--ink-faint); }
.plan .plan-cta { margin-top: auto; }
.plan .plan-cta .btn { justify-content: center; width: 100%; }
.plan .plan-cta-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: .85rem;
  color: var(--ink-faint);
}
.pricing-note {
  max-width: 660px;
  margin: 36px auto 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: .95rem;
}
.pricing-note a { font-weight: 700; }
.compare-link {
  display: block;
  text-align: center;
  margin: 28px auto 0;
  font-weight: 800;
  font-size: 1.05rem;
}
.compare-link::after { content: ' →'; }

/* ---------- feature matrix (plans page) ---------- */
.matrix-wrap {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 1rem;
}
.matrix col.col-feature { width: 46%; }
.matrix col.col-tier    { width: 18%; }
.matrix thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
  padding: 16px 14px;
  text-align: center;
  border-bottom: 2px solid var(--rule-strong);
  vertical-align: bottom;
}
.matrix thead th.th-feature { text-align: left; }
/* keep the feature labels visible while the tier columns scroll on small screens */
.matrix th[scope="row"] {
  position: sticky;
  left: 0;
  background: var(--bg-warm);
  z-index: 1;
}
.matrix thead th.th-feature {
  position: sticky;
  left: 0;
  z-index: 3;
}
.matrix thead th .t-name {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.5rem;
  color: var(--teal-dark);
  line-height: 1;
}
.matrix thead th .t-price {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-faint);
  margin-top: 4px;
}
.matrix thead th.is-featured { background: var(--teal-light); }
.matrix tbody { } /* no-op */
.matrix .group th {
  text-align: left;
  padding: 26px 14px 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.matrix tbody td,
.matrix tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.matrix tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
}
.matrix tbody th .sub { display: block; font-size: .86rem; color: var(--ink-faint); font-weight: 600; }
.matrix td { text-align: center; }
.matrix td.is-featured { background: color-mix(in srgb, var(--teal-light) 55%, transparent); }
.matrix .yes { color: var(--teal); font-size: 1.25rem; font-weight: 800; line-height: 1; }
.matrix .no  { color: var(--rule-strong); font-size: 1.1rem; line-height: 1; }
/* hardware rows read differently than feature checks */
.matrix tr.hw th { color: var(--ink); font-weight: 800; }
.matrix tr.hw td,
.matrix tr.hw th { background: #faf6ec; }
.matrix tr.hw td.is-featured { background: #f2ead2; }
.matrix tr.hw td {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}
.matrix tr.hw td.dim { color: var(--ink-faint); font-weight: 600; }
.matrix-hint {
  display: none;
  font-size: .85rem;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

/* generic prose-ish section used on plans page */
.note-block {
  max-width: 760px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.note-block h3 { color: var(--teal-dark); }
.note-block p:last-child { margin-bottom: 0; }
.fineprint {
  max-width: 820px;
  margin: 28px auto 0;
  font-size: .82rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.fineprint li { margin: .3em 0; }

/* ---------- contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,138,125,.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.plan-context {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1rem;
}
.plan-context[hidden] { display: none; }
.next-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
.next-steps li strong { display: block; color: var(--ink); margin-bottom: 2px; }
.next-steps li span { color: var(--ink-soft); font-size: .96rem; }

/* ---------- quick-contact (inline CTA form) ---------- */
.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 620px;
  margin: 24px auto 0;
}
.quick-contact input {
  flex: 1 1 200px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 13px 18px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.quick-contact input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.quick-contact .btn { flex: 0 0 auto; justify-content: center; }
.quick-contact-note {
  margin: 14px auto 0;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}
.quick-contact-note a { color: #fff; text-decoration: underline; }
/* on the teal close, inputs stay white with light placeholders */
.section-teal .quick-contact input::placeholder { color: var(--ink-faint); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .volley-item, .volley-item.reverse { grid-template-columns: 1fr; }
  .volley-item.reverse > .volley-copy { order: 0; }
  .morning-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .recognition-list, .diffs { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { width: min(280px, 60%); }
  .grid-3, .surface-list, .stats, .principles { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse > :first-child { order: 0; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .mini-art { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; }
  .matrix-hint { display: block; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 20px;
    background: rgba(250,250,248,.98);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 1.05rem;
  }
  .nav-cta { margin-left: 0; margin-top: 4px; text-align: center; }
  .nav-toggle { display: inline-flex; }

  .grid-3, .grid-2, .surface-list, .stats, .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }

  .recognition-list, .diffs, .pricing, .field-row { grid-template-columns: 1fr; }
  .quick-contact input, .quick-contact .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
