/* Language Legends Lab: shared styles

   DESIGN SYSTEM NOTES
   Tokens follow the Tailwind CSS scales (spacing, type, radius, shadow) so every
   value comes from one system. Colors are the Language Legends brand palette,
   which overrides Tailwind's default palette.

   Functional patterns: header, hero, section, grid, card, steps, quote, panel,
     table, faq, form, footer.
   Perceptual patterns: warm near-white ground, deep teal ink, ONE action color
     (brand red), gold and sage as quiet supporting tones (roughly 60/30/10).
     Semibold headings with tight tracking, relaxed body text, three radii,
     teal-tinted shadows, 200ms ease-out motion.
*/

:root {
  /* Brand palette */
  --teal: #154554;        /* primary ink and dark surfaces */
  --teal-700: #1e5565;    /* raised surface on dark */
  --teal-900: #0e3340;    /* pressed / hover on dark */
  --ink-2: #2f5562;       /* secondary text (8:1 on the ground) */
  --red: #af3531;         /* the single action color */
  --red-700: #8c2a27;
  --gold: #c69838;        /* decoration only, never text on light */
  --gold-200: #e9c877;    /* accent text on dark */
  --gold-50: #f6ecd6;
  --sage: #668572;
  --sage-50: #e7ede9;
  --bg: #faf8f4;          /* warm near-white ground */
  --tint: #eef2ee;        /* alternate section ground */
  --line: #e7e2d9;        /* subtle borders */
  --mist: #d5e0dc;        /* secondary text on dark */
  --white: #fff;

  /* Spacing: Tailwind scale (n x 4px) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem;
  --s-20: 5rem; --s-24: 6rem;
  --section: clamp(var(--s-16), 8vw, var(--s-24));

  /* Type: Tailwind scale */
  --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.25rem;
  --text-2xl: 1.5rem; --text-3xl: 1.875rem; --text-4xl: 2.25rem; --text-6xl: 3.75rem;

  /* Radius: three steps plus pill */
  --r-xl: 0.75rem;   /* controls */
  --r-2xl: 1rem;     /* cards */
  --r-3xl: 1.5rem;   /* panels and media */
  --r-full: 9999px;  /* buttons and chips */

  /* Elevation: Tailwind shadows, tinted with brand teal instead of black */
  --shadow-sm: 0 1px 2px rgb(21 69 84 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(21 69 84 / 0.08), 0 2px 4px -2px rgb(21 69 84 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(21 69 84 / 0.1), 0 4px 6px -4px rgb(21 69 84 / 0.08);
  --shadow-red: 0 10px 15px -3px rgb(175 53 49 / 0.25), 0 4px 6px -4px rgb(175 53 49 / 0.2);

  --max: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat Brush", "Segoe Print", "Bradley Hand", cursive;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.625;
  color: var(--teal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
a { color: var(--teal); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--s-1); }
::selection { background: var(--gold-50); color: var(--teal); }

.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 100;
  background: var(--teal); color: var(--white); padding: var(--s-3) var(--s-5); border-radius: var(--r-xl);
}
.skip-link:focus { top: var(--s-4); color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-6); }
.narrow { max-width: 45rem; }
.stack { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; }
.stack--lg { gap: var(--s-12); align-items: stretch; }
.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Type
   Three sizes do most of the work: display, heading, body.
   Hierarchy comes from size and weight together, with a 1.6x jump from h2 to h1. */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(var(--text-3xl), 3.2vw, var(--text-4xl)); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.01em; }
.h-sub { font-size: var(--text-2xl); margin-top: var(--s-3); }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.lead { font-size: clamp(var(--text-lg), 1.6vw, var(--text-xl)); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; max-width: 38em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-sm); }
.script { font-family: var(--font-script); font-size: var(--text-4xl); line-height: 1; color: var(--red); }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 2.75rem; }
mark.todo { background: var(--gold-50); color: var(--teal); padding: 0 var(--s-1); border-radius: var(--s-1); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3.5rem; padding: 0 var(--s-8); border: 0; border-radius: var(--r-full);
  font: inherit; font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--dark { background: var(--teal); color: var(--white); }
.btn--dark:hover { background: var(--teal-900); color: var(--white); }
.btn--sm { min-height: 3rem; padding: 0 var(--s-6); font-size: var(--text-base); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 248 244 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-md); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-3); padding-bottom: var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--teal); min-height: 2.75rem; }
.brand:hover { color: var(--teal); }
.brand__mark {
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-full); background: var(--red); color: var(--white); flex: none;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm);
}
.brand__logo { height: 3.5rem; width: auto; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: var(--text-base); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: var(--s-1) var(--s-8); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: var(--text-base); min-height: 2.75rem; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { color: var(--red); }
.nav-toggle {
  display: none; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--white); color: var(--teal); cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: var(--s-2) var(--s-6) var(--s-6);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { min-height: 3.5rem; border-bottom: 1px solid var(--line); font-size: var(--text-lg); }
  .nav .btn { margin-top: var(--s-5); }
}
@media (max-width: 420px) { .brand__logo { height: 3rem; } }

/* ---------------------------------------------------------------- Sections */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--teal); color: var(--white); }
.section--dark .eyebrow { color: var(--gold-200); }
.section--dark .muted, .section--dark .lead { color: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: var(--s-4); max-width: 45rem; }

.grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 15rem), 100%), 1fr)); }
.grid--2 { --min: 26rem; }
.grid--3 { --min: 18rem; }
.grid--4 { --min: 15rem; }
.grid--steps { gap: var(--s-8); }
.split { display: grid; gap: clamp(var(--s-8), 5vw, var(--s-16)); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); }
.split--top { align-items: start; }

/* ---------------------------------------------------------------- Hero
   A soft sage and gold wash sits behind the content as a background layer. */
.hero {
  padding: clamp(var(--s-12), 7vw, var(--s-20)) 0 var(--section);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(102 133 114 / 0.14), transparent 60%),
    radial-gradient(40rem 24rem at 0% 0%, rgb(198 152 56 / 0.08), transparent 60%);
}
.hero--simple { padding-bottom: clamp(var(--s-10), 6vw, var(--s-16)); }
.hero .stack { gap: var(--s-6); }
.hero__note { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); color: var(--ink-2); }
.hero__note::before { content: ""; width: var(--s-2); height: var(--s-2); border-radius: var(--r-full); background: var(--gold); flex: none; }
.hero__media { position: relative; padding-bottom: var(--s-8); }
.hero__badge {
  position: absolute; left: var(--s-6); bottom: 0; background: var(--white); border-radius: var(--r-2xl);
  padding: var(--s-4) var(--s-5); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--s-4);
}
.hero__badge::before { content: ""; width: var(--s-3); height: var(--s-3); border-radius: var(--r-full); background: var(--gold); flex: none; }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: var(--text-lg); line-height: 1.3; }
.hero__badge span { font-size: var(--text-sm); color: var(--ink-2); }
.hero__script { position: absolute; right: var(--s-5); top: calc(var(--s-6) * -1); transform: rotate(-6deg); }

/* Photo placeholders: swap for <img loading="lazy" width height alt> */
.photo-ph {
  min-height: clamp(18rem, 40vw, 26rem); border-radius: var(--r-3xl); padding: var(--s-8); text-align: center;
  background: var(--sage-50); border: 1px dashed var(--sage);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
}
.photo {
  width: 100%; max-width: 26rem; aspect-ratio: 4 / 5; object-fit: cover; justify-self: center;
  border-radius: var(--r-3xl); box-shadow: var(--shadow-lg);
}
.photo--hero { max-width: none; aspect-ratio: 5 / 4; background: var(--sage-50); }
.photo-ph--gold { background: var(--gold-50); border-color: var(--gold); }
.photo-ph strong { font-size: var(--text-base); }
.photo-ph span { font-size: var(--text-sm); color: var(--ink-2); }

/* ---------------------------------------------------------------- Proof strip */
.proof { background: var(--teal); color: var(--white); padding: var(--s-10) 0; }
.proof .grid { gap: var(--s-6) var(--s-8); --min: 13rem; }
.proof .grid > div { border-left: 2px solid rgb(233 200 119 / 0.5); padding-left: var(--s-4); }
.proof strong { display: block; font-family: var(--font-head); font-size: var(--text-xl); letter-spacing: -0.01em; }
.proof span { font-size: var(--text-sm); color: var(--mist); }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2xl);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); box-shadow: var(--shadow-sm);
}
.card p { color: var(--ink-2); }
.card--plain { border-color: transparent; padding: var(--s-8); }
.card__icon { width: var(--s-12); height: var(--s-12); border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center; background: var(--sage-50); margin-bottom: var(--s-1); }
.card__icon--gold { background: var(--gold-50); }
.card__icon--red { background: #f4dedc; }
.card__icon--blue { background: #dce7ea; }
.card__kicker { font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red) !important; }

/* ---------------------------------------------------------------- Steps */
.steps { counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.steps li::before { content: counter(step); font-family: var(--font-script); font-size: var(--text-4xl); line-height: 1; color: var(--red); }
.steps p { color: var(--ink-2); }

/* ---------------------------------------------------------------- Check list */
.checks { display: flex; flex-direction: column; gap: var(--s-3); }
.checks li { position: relative; padding-left: var(--s-8); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: var(--s-5); height: var(--s-5); border-radius: var(--r-full);
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* ---------------------------------------------------------------- Quotes */
.quote { background: var(--teal-700); color: var(--white); border-radius: var(--r-2xl); padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-5); }
.quote::before { content: "\201C"; font-family: var(--font-head); font-weight: 600; font-size: var(--text-6xl); line-height: 0.6; color: var(--gold-200); }
.quote blockquote { font-size: var(--text-xl); line-height: 1.5; text-wrap: pretty; }
.quote figcaption { font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.02em; color: var(--mist); }
.quote--light { background: var(--white); color: var(--teal); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote--light::before { color: var(--gold); }
.quote--light blockquote { font-size: var(--text-lg); }
.quote--light figcaption { color: var(--ink-2); }
.stack > .quote { align-self: stretch; }

/* ---------------------------------------------------------------- Panel and rows */
.panel { background: var(--white); border-radius: var(--r-3xl); padding: clamp(var(--s-6), 5vw, var(--s-12)); box-shadow: var(--shadow-md); }
.panel--outline { box-shadow: none; border: 1px solid var(--line); }
.rows li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.rows li span { color: var(--ink-2); }
.rows li strong { font-family: var(--font-head); font-size: var(--text-xl); text-align: right; font-variant-numeric: tabular-nums; }
.rows li.rows__note { display: block; border: 0; padding-bottom: 0; font-size: var(--text-sm); color: var(--ink-2); }

/* ---------------------------------------------------------------- Pricing table */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm); }
.price-table { width: 100%; min-width: 35rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table thead th { font-family: var(--font-head); font-weight: 600; font-size: var(--text-xl); background: var(--bg); }
.price-table tbody th { font-weight: 400; color: var(--ink-2); width: 24%; }
.price-table td strong { font-family: var(--font-head); font-size: var(--text-2xl); letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- FAQ (native details) */
.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 0 var(--s-6); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer; list-style: none; min-height: var(--s-16); padding: var(--s-4) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: var(--text-2xl); line-height: 1; color: var(--red); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: var(--s-6); color: var(--ink-2); max-width: 38em; }

/* ---------------------------------------------------------------- Forms */
.form { background: var(--white); border-radius: var(--r-3xl); padding: clamp(var(--s-6), 4vw, var(--s-8)); display: flex; flex-direction: column; gap: var(--s-4); box-shadow: var(--shadow-lg); }
.form--embed { min-height: 14rem; }
.form--embed > div[id^="fd-form-"] { width: 100%; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field input {
  font: inherit; color: var(--teal); width: 100%; min-height: 3rem; padding: 0 var(--s-4);
  border: 1px solid #8fa39a; border-radius: var(--r-xl); background: var(--white);
}
.form__error { color: var(--red-700); font-weight: 600; font-size: var(--text-sm); }
.form__error:empty { display: none; }

/* ---------------------------------------------------------------- Blog */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-5); border-radius: var(--r-full); border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; font-size: var(--text-sm); }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.post-card time { font-size: var(--text-sm); color: var(--ink-2); margin-top: auto; }
.inline-cta { background: var(--teal); color: var(--white); border-radius: var(--r-3xl); padding: clamp(var(--s-8), 5vw, var(--s-12)); }
.inline-cta .muted { color: var(--mist); }

/* ---------------------------------------------------------------- Legal pages */
.legal { display: flex; flex-direction: column; gap: var(--s-4); color: var(--ink-2); overflow-wrap: anywhere; }
.legal h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; color: var(--teal); margin-top: var(--s-8); }
.legal h3 { font-size: var(--text-lg); color: var(--teal); margin-top: var(--s-2); }
.legal ul { list-style: disc; padding-left: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); }
.legal .price-table { font-size: var(--text-sm); }
.legal .price-table th, .legal .price-table td { padding: var(--s-3) var(--s-4); }

/* ---------------------------------------------------------------- Scheduler (Google Calendar) */
.scheduler { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-3xl); overflow: hidden; box-shadow: var(--shadow-md); }
.scheduler iframe { display: block; width: 100%; height: 40rem; }
@media (max-width: 640px) { .scheduler iframe { height: 46rem; } }

/* ---------------------------------------------------------------- Scheduler placeholder */
.embed-ph { min-height: 32rem; border-radius: var(--r-3xl); border: 1px dashed var(--sage); background: var(--white); padding: var(--s-8); text-align: center; display: flex; flex-direction: column; gap: var(--s-2); align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--teal); color: var(--white); padding: var(--s-16) 0 var(--s-8); }
.site-footer a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer a:hover { color: var(--gold-200); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-10); }
.site-footer__about { max-width: 24rem; display: flex; flex-direction: column; gap: var(--s-3); }
.site-footer__about p { color: var(--mist); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-16); }
.site-footer__nav ul { display: flex; flex-direction: column; }
.site-footer__bottom { margin-top: var(--s-10); border-top: 1px solid rgb(213 224 220 / 0.2); padding-top: var(--s-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-6); font-size: var(--text-sm); color: var(--mist); }
.site-footer__bottom a { color: var(--mist); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer--minimal { background: transparent; color: var(--ink-2); padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.site-footer--minimal .site-footer__bottom { margin-top: 0; border-top: 0; padding-top: 0; color: var(--ink-2); }
.site-footer--minimal .site-footer__bottom a { color: var(--ink-2); }
.site-footer--minimal a:hover { color: var(--red); }

/* ------------------------------------------------------------------
   Motion and micro-interactions
   One default: 200ms ease-out. Only opacity and transform are animated,
   so nothing triggers layout.
   ------------------------------------------------------------------ */
.site-header { transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out; }

/* Buttons: gentle lift, plus an arrow that nudges forward on the main CTA */
.btn { transition: background-color 0.2s ease-out, transform 0.2s var(--ease), box-shadow 0.2s ease-out; }
.btn--primary::after { content: "\2192"; display: inline-block; font-weight: 400; transition: transform 0.2s var(--ease); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn--primary:hover { box-shadow: var(--shadow-red); }
  .btn--primary:hover::after { transform: translateX(4px); }
}
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

/* Text links: underline draws in from the left */
.text-link, .nav a:not(.btn) {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.5rem) / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s ease-out;
}
.text-link { background-size: 100% 2px; align-self: flex-start; }
.nav a[aria-current="page"] { background-size: 100% 2px; }
@media (hover: hover) {
  .text-link:hover { background-size: 0 2px; background-position: 100% calc(100% - 0.5rem); }
  .nav a:not(.btn):hover { background-size: 100% 2px; }
}
@media (max-width: 960px) { .nav a:not(.btn) { background: none; } }

/* Cards and light quotes lift slightly on hover */
.card, .quote--light, .chip, .faq details {
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.card__icon { transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .card:hover, .quote--light:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
  .chip:hover { transform: translateY(-2px); border-color: var(--teal); }
  .faq details:hover { border-color: #d3ccbd; }
}

/* FAQ: plus icon turns, answer fades in */
.faq summary::after { transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] p { animation: fade-up 0.3s var(--ease) both; }

/* Form fields */
.field input { transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out; }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgb(102 133 114 / 0.22); outline: none; }
.form__error:not(:empty) { animation: fade-up 0.3s var(--ease) both; }

/* Mobile menu eases open */
@media (max-width: 960px) {
  .nav.is-open { animation: menu-in 0.2s var(--ease) both; }
}

/* Hero: the picture settles in, the badge pops, the handwriting lands.
   The headline itself is not animated, so the main content paints at once. */
.hero__media .photo-ph, .hero__media .photo--hero { animation: fade-up 0.6s var(--ease) both; }
.hero__badge { animation: pop-in 0.5s var(--ease) 0.3s both, float 6s ease-in-out 1.2s infinite; }
.hero__script { animation: script-in 0.6s var(--ease) 0.5s both; }
.hero .stack.center > .script { animation: pop-in 0.5s var(--ease) both; }

/* Scroll reveal: classes are added by main.js, so content stays visible without it */
.reveal { opacity: 0; transform: translateY(1rem); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(0.5rem) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes script-in { from { opacity: 0; transform: rotate(-14deg) scale(0.8); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: none; } }

/* Visitors who ask for less motion get none */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
}
