/* TutuTerm design system. Recital soft: powder white, pale rose, velvet plum.
   Light only. Contrast comes from type scale, weight, ribbon rules and photography. */

:root {
  --bg: #FCF8FA;
  --surface: #FFFFFF;
  --ink: #231D24;
  --primary: #6E2C56;
  --accent: #F0C4D2;
  --muted: #68606A;

  --primary-rgb: 110, 44, 86;
  --accent-rgb: 240, 196, 210;
  --ink-rgb: 35, 29, 36;

  --tint-1: rgba(110, 44, 86, 0.04);
  --tint-2: rgba(110, 44, 86, 0.08);
  --tint-3: rgba(110, 44, 86, 0.14);
  --rose-1: rgba(240, 196, 210, 0.22);
  --rose-2: rgba(240, 196, 210, 0.42);
  --rose-3: rgba(240, 196, 210, 0.70);

  --line: rgba(110, 44, 86, 0.18);
  --line-soft: rgba(110, 44, 86, 0.10);
  --line-strong: rgba(110, 44, 86, 0.34);

  --ink-soft: rgba(35, 29, 36, 0.72);

  --font-display: "Marcellus SC", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Raleway", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --s-1: 0.35rem;
  --s-2: 0.7rem;
  --s-3: 1.05rem;
  --s-4: 1.6rem;
  --s-5: 2.4rem;
  --s-6: 3.6rem;
  --s-7: 5.4rem;
  --s-8: 7.5rem;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(35, 29, 36, 0.05);
  --shadow-2: 0 10px 30px rgba(110, 44, 86, 0.08);
  --shadow-3: 0 22px 60px rgba(110, 44, 86, 0.12);

  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: 1.02rem;
  --t-md: 1.16rem;
  --t-lg: 1.42rem;
  --t-xl: 1.95rem;
  --t-2xl: 2.6rem;
  --t-3xl: 3.35rem;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 82% -6%, var(--rose-1), transparent 46%),
    radial-gradient(circle at 4% 30%, rgba(110, 44, 86, 0.05), transparent 34%),
    repeating-linear-gradient(to bottom, rgba(110, 44, 86, 0.028) 0 1px, transparent 1px 96px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.005em;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.16;
  color: var(--primary);
  margin: 0 0 var(--s-3);
}

h1 { font-size: clamp(2.2rem, 5.4vw, var(--t-3xl)); letter-spacing: 0.012em; }
h2 { font-size: clamp(1.7rem, 3.6vw, var(--t-2xl)); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s-3); }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s-3); top: -70px;
  z-index: 200;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--line-strong);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: var(--s-3); }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, 810px); margin-inline: auto; }

/* ---------- ribbon rule motif ---------- */
.ribbon-rule {
  position: relative;
  display: block;
  width: 148px;
  height: 10px;
  margin: var(--s-3) 0 var(--s-4);
  overflow: hidden;
}
.ribbon-rule::before {
  content: "";
  position: absolute; inset: 4px 0 auto 0;
  height: 2px;
  background-image: linear-gradient(to right, var(--primary), rgba(240, 196, 210, 0.9) 62%, rgba(240, 196, 210, 0));
  transform-origin: left center;
  transform: scaleX(0.08);
  animation: unfurl 1.5s var(--ease) forwards;
}
.ribbon-rule::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 10px; height: 10px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
}
.ribbon-rule.center { margin-inline: auto; }
@keyframes unfurl { from { transform: scaleX(0.08); } to { transform: scaleX(1); } }

/* barre line: a thin horizontal rail on two brackets */
.barre {
  position: relative;
  height: 26px;
  margin: var(--s-6) 0;
}
.barre::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 11px;
  height: 1px;
  background-image: linear-gradient(to right, rgba(110, 44, 86, 0), var(--line-strong) 12%, var(--line-strong) 88%, rgba(110, 44, 86, 0));
}
.barre::after {
  content: "";
  position: absolute; left: 14%; right: 14%; top: 11px; height: 15px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--s-2);
}

.lede { font-size: var(--t-md); color: var(--ink-soft); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(252, 248, 250, 0.92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-2);
  background-color: rgba(255, 255, 255, 0.96);
}
.header-inner {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.07em;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark svg { flex: none; }
.wordmark span small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav { margin-left: auto; }
.nav ul {
  list-style: none; display: flex; gap: var(--s-4);
  margin: 0; padding: 0;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--primary); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--primary);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.86rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.btn-primary {
  background-color: rgba(110, 44, 86, 1);
  color: #FFFFFF;
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn-ghost {
  background-color: var(--surface);
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn-ghost:hover { transform: translateY(-2px); background-color: var(--rose-1); }
.btn-wide { width: 100%; }
.header-cta { display: inline-flex; }

/* ---------- hero ---------- */
.hero { padding: var(--s-7) 0 var(--s-6); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; right: -140px; top: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(240, 196, 210, 0.5), rgba(240, 196, 210, 0));
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-6); align-items: center;
  position: relative;
}
.hero p.lede { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); }

.trust-strip {
  list-style: none; margin: 0; padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
}
.trust-strip li {
  font-size: var(--t-sm);
  color: var(--muted);
  padding-left: 1.35rem;
  position: relative;
}
.trust-strip strong { display: block; color: var(--primary); font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; letter-spacing: 0.03em; }
.trust-strip li::before {
  content: "";
  position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  border-left: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  transform: rotate(45deg);
}

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--r-lg) var(--r-lg) 90px var(--r-lg);
  box-shadow: var(--shadow-3);
}
.hero-figure::after {
  content: "";
  position: absolute; left: -18px; bottom: -18px;
  width: 62%; height: 62%;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 0 var(--r-lg);
  pointer-events: none;
}
.figure-tag {
  position: absolute; left: -14px; top: 26px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  padding: 0.55rem 0.95rem;
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  box-shadow: var(--shadow-1);
}

/* ---------- generic section ---------- */
section { padding: var(--s-7) 0; }
.section-head { max-width: 68ch; margin-bottom: var(--s-5); }
.section-head.center { margin-inline: auto; text-align: center; }
.band-rose { background-image: linear-gradient(to bottom, rgba(240, 196, 210, 0.26), rgba(252, 248, 250, 0)); }
.band-white { background-color: var(--surface); border-block: 1px solid var(--line-soft); }

.card {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }

/* problem cards */
.pain-card { border-top: 3px solid var(--accent); }
.pain-cost {
  display: inline-block;
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s-2);
}
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.step {
  display: grid; grid-template-columns: 62px 1fr; gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50% 50% 50% 6px;
  background-color: var(--rose-1);
}
.step h3 { margin-bottom: var(--s-1); }
.step p { color: var(--ink-soft); margin: 0; font-size: var(--t-sm); }
.solution-figure img { border-radius: 90px var(--r-lg) var(--r-lg) var(--r-lg); box-shadow: var(--shadow-2); }
.figure-caption { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-2); letter-spacing: 0.05em; }

/* features */
.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50% 6px 50% 50%;
  background-color: var(--rose-2);
  margin-bottom: var(--s-3);
  color: var(--primary);
}
.feature-icon svg { width: 24px; height: 24px; }

/* outcomes */
.outcome {
  padding: var(--s-4) 0 var(--s-4) var(--s-4);
  border-left: 2px solid var(--accent);
}
.outcome .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--s-2);
}
.outcome p { color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: 0; }
.outcome h3 { font-size: var(--t-md); }

/* testimonials */
.testimonial {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-4) var(--s-4);
  margin: 0;
  position: relative;
  box-shadow: var(--shadow-1);
}
.testimonial::before {
  content: "";
  position: absolute; left: var(--s-4); top: 0;
  width: 46px; height: 4px;
  background-image: linear-gradient(to right, var(--primary), rgba(240, 196, 210, 0.9));
  border-radius: 0 0 var(--r-pill) var(--r-pill);
}
.testimonial p { font-size: var(--t-base); color: var(--ink); }
.testimonial footer, .testimonial .attrib {
  font-size: var(--t-xs);
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s-2);
  letter-spacing: 0.04em;
}
.testimonial .attrib strong { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--primary); font-weight: 400; letter-spacing: 0.05em; }
.results-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding: var(--s-4) 0;
  border-block: 1px solid var(--line-soft);
  text-align: center;
}
.results-strip .num { font-family: var(--font-display); font-size: 2rem; color: var(--primary); display: block; }
.results-strip span.lbl { font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* pricing */
.tier {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-4);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
}
.tier.featured {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3);
  background-image: linear-gradient(to bottom, rgba(240, 196, 210, 0.30), rgba(255, 255, 255, 0.98) 30%);
  position: relative;
}
.tier-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background-color: rgba(110, 44, 86, 1);
  color: #FFFFFF;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.32rem 0.95rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tier h3 { margin-bottom: var(--s-1); }
.price { font-family: var(--font-display); font-size: 2.5rem; color: var(--ink); line-height: 1; }
.price span { font-family: var(--font-body); font-size: 0.86rem; color: var(--muted); letter-spacing: 0.06em; }
.tier .fit { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-2); }
.tier ul { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-2); flex: 1; }
.tier li { font-size: var(--t-sm); padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.tier li::before {
  content: "";
  position: absolute; left: 2px; top: 0.6rem;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(-45deg);
}
.billing-note { text-align: center; font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-4); }

/* faq */
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  background: transparent;
  border: 0;
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: var(--t-md);
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.faq-q .chev {
  flex: none; width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); background-color: var(--rose-2); }
.faq-a { padding: 0 0 var(--s-4); max-width: 72ch; color: var(--ink-soft); font-size: var(--t-sm); }
.faq-a[hidden] { display: none; }

/* contact */
.contact-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-2);
}
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.32rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #B3123B; background-color: rgba(179, 18, 59, 0.05); }
.err { display: block; color: #98102F; font-size: var(--t-xs); margin-top: 0.3rem; }
.err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: var(--s-4) 0; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.consent label { text-transform: none; letter-spacing: 0; font-size: var(--t-sm); font-weight: 400; color: var(--ink-soft); }
.form-reassure { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-3); }

.author-byline {
  display: flex; gap: var(--s-3); align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s-4);
  margin-top: var(--s-6);
  font-size: var(--t-sm);
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background-color: rgba(240, 196, 210, 0.20);
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0 var(--s-4);
  margin-top: var(--s-6);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-5); }
.footer-col h2, .footer-col h3 { font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); font-family: var(--font-body); font-weight: 800; margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-about p { font-size: var(--t-sm); color: var(--ink-soft); max-width: 34ch; }
.social { display: flex; gap: 0.6rem; margin-top: var(--s-3); }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: var(--surface);
  color: var(--primary);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social a:hover { background-color: var(--rose-3); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.footer-base {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font-size: var(--t-xs);
  color: var(--muted);
}

/* ---------- prose pages ---------- */
.page-head { padding: var(--s-6) 0 var(--s-4); }
.prose { padding-bottom: var(--s-6); }
.prose h2 { margin-top: var(--s-5); font-size: var(--t-xl); }
.prose h3 { margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose dl { margin: 0 0 var(--s-4); }
.prose dt { font-weight: 700; color: var(--primary); margin-top: var(--s-3); }
.prose dd { margin: 0 0 0.4rem; color: var(--ink-soft); }
.author-portrait img { border-radius: var(--r-lg) var(--r-lg) 70px var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-5); align-items: start; }
.info-panel { background-color: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-4); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.notice-box { background-color: var(--rose-1); border-left: 3px solid var(--primary); padding: var(--s-3) var(--s-4); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- reveal motion: graceful slow rise ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.09s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.27s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .author-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: var(--s-4);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: var(--s-3); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .header-cta { display: none; }
  section { padding: var(--s-6) 0; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .trust-strip, .results-strip, .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s-5); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-figure img, .solution-figure img { border-radius: var(--r-md); }
}
@media (min-width: 1440px) {
  :root { --maxw: 1260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ribbon-rule::before { transform: scaleX(1); }
}

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
}

/* ================================================================
   MAGAZINE: Barre and Ledger
   Built from the same tokens as the rest of the site. Light only:
   powder white surfaces, pale rose tints, velvet plum type and rules.
   ================================================================ */

.mag-crumbs { padding: var(--s-4) 0 0; }
.mag-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-crumbs a { color: var(--primary); text-decoration: none; }
.mag-crumbs a:hover { text-decoration: underline; }
.mag-crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 0.55rem;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: rotate(45deg) translateY(-1px);
}
.mag-crumbs li[aria-current] {
  max-width: 46ch;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- article header ---------- */
.mag-head { padding: var(--s-4) 0 var(--s-5); }
.mag-head h1 { font-size: clamp(1.95rem, 4.6vw, 3rem); max-width: 22ch; }
.mag-standfirst {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 66ch;
}
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-byline-name { color: var(--primary); font-weight: 700; }
.mag-byline a { color: var(--primary); }
.mag-byline-sep {
  width: 14px; height: 1px;
  background-color: var(--line-strong);
  display: inline-block;
}

.mag-figure { margin: 0 auto var(--s-5); }
.mag-figure img {
  width: 100%;
  border-radius: var(--r-lg) var(--r-lg) 90px var(--r-lg);
  box-shadow: var(--shadow-2);
}
.mag-figure .figure-caption { max-width: 70ch; }

/* ---------- article body: readable measure ---------- */
.mag-body {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.09rem;
  line-height: 1.72;
}
.mag-body > h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.mag-body > h3 { font-size: var(--t-lg); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.mag-body > p { margin: 0 0 var(--s-4); }
.mag-body ul, .mag-body ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.mag-body li { margin-bottom: 0.5rem; }
.mag-body a { color: var(--primary); }
.mag-body blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  background-color: var(--rose-1);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-display);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--primary);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s-4);
  font-size: var(--t-sm);
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 0.68rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.mag-body thead th {
  background-color: var(--rose-1);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.mag-body tbody tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  background-color: var(--tint-1);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.inline-read a { font-weight: 600; color: var(--primary); }

/* ---------- call to action after the body ---------- */
.mag-cta {
  margin: var(--s-6) 0 var(--s-5);
  padding: var(--s-5);
  background-color: var(--surface);
  background-image: linear-gradient(to bottom, rgba(240, 196, 210, 0.28), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 70px var(--r-lg);
  box-shadow: var(--shadow-1);
}
.mag-cta h2 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.mag-cta p { color: var(--ink-soft); font-size: var(--t-sm); }
.mag-cta .ribbon-rule { margin-top: 0; }

/* ---------- author box ---------- */
.mag-author {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4);
  align-items: start;
  padding: var(--s-4);
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.mag-author img {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: var(--r-md) var(--r-md) 46px var(--r-md);
  border: 1px solid var(--line);
}
.mag-author p { font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: var(--s-2); }
.mag-author-name {
  font-family: var(--font-display);
  font-size: var(--t-md);
  letter-spacing: 0.05em;
  color: var(--primary) !important;
  margin-bottom: var(--s-1) !important;
}
.mag-author-link a { font-weight: 600; }

/* ---------- read also ---------- */
.mag-related {
  background-image: linear-gradient(to bottom, rgba(240, 196, 210, 0.22), rgba(252, 248, 250, 0));
  border-top: 1px solid var(--line-soft);
  padding: var(--s-6) 0 var(--s-7);
}
.mag-related h2 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mag-rel:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.mag-rel-media { display: block; }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title {
  font-size: 1.12rem;
  line-height: 1.28;
  margin: var(--s-3) var(--s-3) var(--s-2);
}
.mag-rel-title a { color: var(--primary); text-decoration: none; }
.mag-rel-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.mag-rel-dek {
  margin: 0 var(--s-3) var(--s-3);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mag-rel-meta {
  margin: auto var(--s-3) var(--s-3);
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-related-all { margin-top: var(--s-4); font-size: var(--t-sm); font-weight: 600; }

/* ---------- magazine index ---------- */
.mag-index-head { padding: var(--s-3) 0 var(--s-5); }
.mag-index-head h1 { max-width: 18ch; }
.mag-index-note { max-width: 62ch; color: var(--muted); font-size: var(--t-sm); }
.mag-index-list { padding-top: 0; }
.mag-index-cta { margin: 0; text-align: center; }

.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-4); }
.mag-card {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.mag-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line); }
.mag-card-media { display: block; }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; }
.mag-card-angle {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--s-2);
}
.mag-card-title { font-size: 1.18rem; line-height: 1.3; margin: 0 0 var(--s-2); }
.mag-card-title a { color: var(--primary); text-decoration: none; }
.mag-card-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.mag-card-dek { font-size: var(--t-sm); color: var(--ink-soft); margin: 0 0 var(--s-3); }
.mag-card-meta {
  margin: auto 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-dot {
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 0.35rem;
  border-radius: 50%;
  background-color: var(--accent);
  vertical-align: middle;
}

/* lead card: the newest article runs full width with the photograph beside the text */
.mag-card.lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  border-radius: var(--r-lg) var(--r-lg) 90px var(--r-lg);
  border-color: var(--line);
  background-image: linear-gradient(to bottom right, rgba(240, 196, 210, 0.22), rgba(255, 255, 255, 0) 62%);
}
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { padding: var(--s-5); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.mag-card.lead .mag-card-dek { font-size: var(--t-base); }
.mag-card.lead .mag-card-meta { margin-top: var(--s-4); }

/* ---------- home page magazine teaser ---------- */
.magazine-teaser-actions { margin-top: var(--s-5); }
.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

/* ---------- author and site map listings ---------- */
.mag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.mag-list li {
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}
.mag-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mag-list a { font-weight: 600; }
.mag-list .mag-list-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- magazine responsive ---------- */
@media (max-width: 980px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { grid-template-columns: 1fr; }
  .mag-card.lead .mag-card-media img { min-height: 240px; }
}
@media (max-width: 700px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-head { padding-top: var(--s-3); }
  .mag-body { font-size: 1.04rem; }
  .mag-figure img { border-radius: var(--r-md); }
  .mag-cta { padding: var(--s-4); border-radius: var(--r-md); }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 96px; height: 96px; }
  .mag-crumbs li[aria-current] { max-width: 100%; white-space: normal; }
  .mag-card.lead { border-radius: var(--r-md); }
  .mag-card.lead .mag-card-body { padding: var(--s-4); }
  .mag-index-cta .btn { width: 100%; }
}
@media (max-width: 380px) {
  .mag-body { font-size: 1rem; }
  .mag-byline { gap: 0.4rem; font-size: 0.72rem; }
  .mag-cta h2 { font-size: var(--t-lg); }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
