/* ============================================================
   Unicorn Horses by Sarah Bennett
   Design tokens, layout, and components
   ============================================================ */

:root {
  /* Brand palette — from Sarah's reference HTML */
  --teal: #007c7c;
  --teal-dark: #00696a;
  --teal-deep: #005a5c;
  --pine: #007c7c;          /* quiz band is teal (kept var name for compatibility) */
  --pine-2: #00595b;
  --pink: #f33f7f;
  --pink-dark: #d92e69;
  --rose: #f33f7f;
  --coral: #e96f5b;         /* distinct secondary accent */
  --coral-dark: #dd5844;
  --gold: #d8a444;          /* warm gold */
  --gold-soft: #ecc98a;
  --blue: #2d74be;          /* logo gradient blue (harmonizes with navy/teal) */

  --ink: #061f3f;           /* deep navy — headings & text */
  --ink-soft: #33455f;
  --navy: #061f3f;

  --paper: #fffaf3;         /* clean warm cream */
  --paper-2: #fff6ec;
  --paper-3: #fff1e6;
  --cream: #fffaf3;
  --cream-2: #fffaf6;
  --pink-wash: #fff5f3;
  --pink-wash-2: #ffe9ef;
  --teal-wash: #eef8f7;

  --white: #ffffff;
  --body: #3b4a5e;          /* navy-grey body */
  --muted: #6d7c8e;
  --line: #e3e7ec;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-script: "Caveat", cursive;   /* Sarah's handwriting */

  /* Spacing / layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 18px rgba(43, 35, 29, 0.08);
  --shadow-md: 0 18px 44px rgba(43, 35, 29, 0.15);
  --shadow-lg: 0 30px 70px rgba(43, 35, 29, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Warm paper grain over the whole page — subtle material, not decoration */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  margin: 0; font-family: var(--font-display); color: var(--ink); line-height: 1.06;
  font-optical-sizing: auto; font-weight: 700; letter-spacing: -0.015em;
}
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Image frames with graceful fallback ---------- */
.frame {
  position: relative; margin: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-wash), var(--pink-wash));
  border-radius: var(--radius);
}
.frame::after {
  content: attr(data-label);
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-script); font-size: 1.5rem; color: var(--teal-dark);
  opacity: 0.55; padding: 12px; text-align: center;
}
.frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.frame--hero img { object-position: 72% 42%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn .i-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--pink { background: var(--pink); color: var(--white); box-shadow: 0 6px 16px rgba(214, 72, 104, 0.22); }
.btn--pink:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(214, 72, 104, 0.3); }
.btn--lg { padding: 17px 36px; font-size: 0.92rem; }
.btn--outline { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn--outline:hover { background: var(--coral); color: var(--white); transform: translateY(-2px); }

/* Field-guide eyebrow: a tracked label with a leading tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; font-size: 0.72rem; margin-bottom: 16px; color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: 0.7; }
.eyebrow--rose { color: var(--rose); }
.eyebrow--teal { color: var(--teal); }

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; text-align: center; }

/* ---------- Signature: Sarah's handwriting + hand-drawn marks ---------- */
.note {
  font-family: var(--font-script); font-weight: 600; color: var(--rose);
  font-size: 1.35rem; line-height: 1.05; display: inline-flex; align-items: center; gap: 6px;
}
.note--teal { color: var(--teal-dark); }
.note--paper { color: var(--gold-soft); }
.scribble-arrow { width: 46px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* hand-drawn circle around an emphasized word */
.circled { position: relative; display: inline-block; }
.circled svg { position: absolute; left: -8%; top: -14%; width: 116%; height: 128%; fill: none; stroke: var(--rose); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.circled path { stroke-dasharray: 520; stroke-dashoffset: 520; }
.circled.in path, .reveal.in .circled path { animation: draw 0.9s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Watercolor side accents (real brand assets) */
.wc { position: absolute; z-index: 0; pointer-events: none; opacity: 0.5; filter: blur(38px); border-radius: 50%; }
.wc--pink { background: radial-gradient(circle, rgba(243,63,127,0.5), rgba(243,63,127,0) 68%); }
.wc--teal { background: radial-gradient(circle, rgba(0,124,124,0.42), rgba(0,124,124,0) 68%); }

/* Decorative accents */
.blob { position: absolute; border-radius: 50%; filter: blur(6px); z-index: 0; pointer-events: none; }
.spark { position: absolute; width: 16px; height: 16px; pointer-events: none;
  background: radial-gradient(circle, var(--gold) 30%, transparent 32%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.6 6.4L20 10l-6.4 1.6L12 18l-1.6-6.4L4 10l6.4-1.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.6 6.4L20 10l-6.4 1.6L12 18l-1.6-6.4L4 10l6.4-1.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.9;
}

/* ============================================================
   Announcement bar
   ============================================================ */
.announce { background: var(--teal-deep); color: #eafaf8; font-size: 0.82rem; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 24px; text-align: center; }
.announce__spark { width: 14px; height: 14px; fill: var(--gold); flex: none; }

/* ============================================================
   Header / Nav
   ============================================================ */
.header { position: sticky; top: 0; z-index: 100; background: rgba(253, 249, 245, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.42rem; letter-spacing: -0.01em;
  background: linear-gradient(95deg, var(--rose) 0%, var(--gold) 34%, var(--teal) 68%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__name-2 { font-weight: 900; }
.brand__by { font-family: var(--font-script); font-size: 1.2rem; font-weight: 600; color: var(--teal-dark); margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
  position: relative; padding: 6px 0; transition: color 0.2s var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--pink); transition: width 0.25s var(--ease); }
.nav a:hover { color: var(--pink); }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.4px; background: var(--navy); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: url("assets/hero-full.jpg") 72% center / cover no-repeat; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, var(--paper) 0%, rgba(255,250,243,0.95) 24%, rgba(255,250,243,0.62) 42%, rgba(255,250,243,0.08) 60%, rgba(255,250,243,0) 72%);
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: 660px; padding: 56px 24px; }
.hero__copy { max-width: 60%; }

/* Buy with Confidence trust badge */
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-body); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(6,31,63,0.14);
}
.trust-badge svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.hero__title { font-size: clamp(1.7rem, 3.3vw, 2.85rem); font-weight: 900; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.hero__title em { display: block; color: var(--rose); font-weight: 600; font-size: 0.92em; margin-top: 0.05em; }
.hero__lede { max-width: 29rem; margin: 24px 0 30px; color: var(--ink-soft); font-size: 1.06rem; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__note { transform: rotate(-4deg); }
.hero__note .scribble-arrow { width: 40px; height: 28px; transform: scaleX(-1) rotate(8deg); }

.hero__media { position: relative; z-index: 1; }
.frame--hero { aspect-ratio: 5 / 4.6; border-radius: 6px 6px 120px 6px; box-shadow: var(--shadow-md); }

/* Field-guide "specimen plate": height ruler + registry tag */
.plate { border: 1px solid rgba(43,35,29,0.12); }
.plate__ruler {
  position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 0; background: linear-gradient(90deg, rgba(244,236,221,0.94), rgba(244,236,221,0));
}
.plate__ruler i {
  font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 0.6rem;
  color: var(--ink-soft); letter-spacing: 0.04em; padding-left: 7px; position: relative;
}
.plate__ruler i::after { content: ""; position: absolute; right: -12px; top: 50%; width: 10px; height: 1.5px; background: var(--ink-soft); opacity: 0.6; }
.plate__tag {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: rgba(244,236,221,0.92); padding: 6px 11px; border-radius: 2px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(2px); white-space: nowrap;
}

/* ============================================================
   Match band (teal)
   ============================================================ */
.match { position: relative; overflow: hidden; background: linear-gradient(150deg, #0a8d8b 0%, var(--teal) 42%, var(--teal-dark) 100%); color: #eaf3ef; }
/* soft radial glow for depth (no lines) */
.match::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 82% 8%, rgba(255,255,255,0.10), transparent 60%),
              radial-gradient(90% 70% at 5% 100%, rgba(0,0,0,0.14), transparent 55%);
}
.match > .container { position: relative; z-index: 1; }
.match__grid { position: relative; display: grid; grid-template-columns: 240px 1fr 360px; gap: 30px; align-items: center; padding: 92px 24px 60px; }
.match__title { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-bottom: 12px; }
.match__lead { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; line-height: 1.35; color: #ffffff; max-width: 30rem; margin-bottom: 12px; }
.match__text { color: #cfe9e6; max-width: 30rem; margin-bottom: 26px; }
.spark--a { top: 22px; left: 30%; }
.spark--b { bottom: 40px; left: 24%; width: 22px; height: 22px; }
.spark--c { top: 40%; right: 24%; width: 12px; height: 12px; }

/* Real quiz phone mockup */
.quiz-phone { width: 100%; max-width: 250px; margin: 0 auto; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35)); }

/* Phone mockup (legacy CSS device — unused) */
.phone { width: 220px; margin: 0 auto; background: #0a3a39; border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lg); border: 2px solid rgba(255,255,255,0.12); }
.phone__notch { width: 96px; height: 20px; background: #0a3a39; border-radius: 0 0 14px 14px; margin: -12px auto 8px; position: relative; z-index: 2; }
.phone__screen { background: linear-gradient(170deg, #12807d, #0a5d5b); border-radius: 26px; padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 9px; }
.phone__eyebrow { font-family: var(--font-script); font-size: 1.05rem; color: #ffd79a; }
.phone__headline { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; line-height: 1.1; }
.phone__photo { aspect-ratio: 4 / 3; border-radius: 12px; margin: 4px 0; }
.phone__list { display: flex; flex-direction: column; gap: 6px; font-size: 0.72rem; color: #eafaf7; }
.phone__list li { display: flex; align-items: center; gap: 7px; }
.phone__list svg { width: 14px; height: 14px; fill: none; stroke: #ffd79a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.phone__cta { margin-top: 4px; background: var(--pink); color: #fff; font-size: 0.68rem; font-weight: 600; text-align: center; padding: 8px; border-radius: 999px; }

.match__polaroids { position: relative; height: 336px; }
.polaroid { position: absolute; width: 235px; background: #fff; padding: 10px 10px 34px; border-radius: 4px; box-shadow: var(--shadow-md); }
.polaroid .frame, .polaroid img { border-radius: 2px; }
.polaroid::after { border-radius: 2px; }
.polaroid img, .polaroid.frame { aspect-ratio: 1 / 1; }
.polaroid { overflow: visible; }
.polaroid > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; }
.polaroid--1 { top: 6px; left: 8px; transform: rotate(-6deg); z-index: 1; }
.polaroid--2 { top: 40px; right: 0; transform: rotate(5deg); z-index: 2; }
.badge-confidence {
  position: absolute; top: -18px; right: -10px; z-index: 3;
  width: 96px; height: 96px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-align: center; font-size: 0.66rem; font-weight: 600; line-height: 1.15;
  box-shadow: var(--shadow-md); transform: rotate(8deg);
}
.badge-confidence svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.badge-confidence .chk { stroke-width: 2.4; }

/* ============================================================
   About
   ============================================================ */
.about { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.about__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 76px 24px; }
.about .about__grid { grid-template-columns: 1fr 1.18fr; gap: 34px; }
.wc--about { width: 26vw; max-width: 340px; height: 440px; right: -6vw; bottom: -40px; opacity: 0.5; background-position: right bottom; }
.about__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin-bottom: 20px; }
.about__copy p { color: var(--body); max-width: 30rem; }
.frame--about { aspect-ratio: 5 / 4.4; border-radius: 20px 20px 120px 20px; box-shadow: var(--shadow-md); }
.frame--about img { object-position: 60% 30%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; }
.stat__icon { width: 34px; height: 34px; fill: none; stroke: var(--pink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.stats li:nth-child(2) .stat__icon, .stats li:nth-child(4) .stat__icon { stroke: var(--teal); }
.stat__icon--horse { fill: none; stroke: var(--pink); }
.stats strong { color: var(--navy); font-size: 0.9rem; font-weight: 600; }
.stats span { color: var(--muted); font-size: 0.74rem; line-height: 1.3; }

/* ============================================================
   Checklist offer (pink)
   ============================================================ */
.checklist { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--pink-wash), var(--pink-wash-2)); }
.checklist__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 72px 24px; }
.checklist__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.checklist__sub { color: var(--teal); font-weight: 600; font-size: 1.06rem; }
/* Photo replacing the clipboard illustration */
.photo-frame { margin: 0; background: #fff; padding: 12px; border-radius: 8px; box-shadow: 0 20px 44px rgba(6,31,63,0.16); }
.photo-frame img { display: block; width: 100%; border-radius: 4px; aspect-ratio: 5 / 4; object-fit: cover; }
/* Straight, bigger selling callout (was the tilted handwritten note) */
.checklist__pitch { display: inline-block; margin: 10px 0 16px; font-family: var(--font-body); font-weight: 800; font-size: 1.55rem; color: var(--coral); letter-spacing: -0.01em; }
.checklist__pitch b { color: var(--coral-dark); box-shadow: inset 0 -0.5em 0 rgba(216,164,68,0.28); }
.checklist__text { color: var(--body); max-width: 30rem; margin-bottom: 26px; }
.spark--d { top: 40px; right: 12%; }
.spark--e { bottom: 60px; right: 30%; width: 12px; height: 12px; }

/* Clipboard illustration */
.clipboard { position: relative; width: 300px; max-width: 82%; margin: 0 auto; aspect-ratio: 3 / 3.6;
  background: linear-gradient(160deg, #a9683c, #8a5330); border-radius: 16px; padding: 26px 22px;
  box-shadow: var(--shadow-lg); transform: rotate(-4deg); }
.clipboard__clip { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 66px; height: 24px; background: #c98a4f; border-radius: 6px; box-shadow: inset 0 -3px 4px rgba(0,0,0,0.2); }
.clipboard::before { content: ""; position: absolute; inset: 16px; background: #fdfbf7; border-radius: 8px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.06); }
.clipboard > * { position: relative; z-index: 1; }
.clipboard__script { display: block; font-family: var(--font-script); color: var(--pink); font-size: 1.35rem; margin: 4px 0 2px; }
.clipboard__head { display: block; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.15rem; line-height: 1.1; margin-bottom: 16px; }
.clipboard__lines { display: flex; flex-direction: column; gap: 15px; }
.clipboard__lines li { position: relative; height: 12px; border-radius: 4px; background: #eee6db; }
.clipboard__lines .tick { position: absolute; left: -2px; top: -7px; width: 24px; height: 24px; border-radius: 6px; background: var(--teal); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.clipboard__lines li { padding-left: 30px; }
.tick svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.clipboard__pencil { position: absolute; right: -14px; bottom: 40px; width: 12px; height: 130px; border-radius: 6px; background: linear-gradient(90deg, #e85c7a, #d64868); transform: rotate(34deg); box-shadow: var(--shadow-sm); z-index: 2; }
.clipboard__pencil::after { content: ""; position: absolute; bottom: -12px; left: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 14px solid #f6d7a6; }

/* ============================================================
   Horses carousel
   ============================================================ */
.horses { background: linear-gradient(180deg, var(--paper), var(--paper-2)); padding: 76px 0 84px; }
.horses__head { text-align: center; margin-bottom: 40px; }
.horses__head .note { display: block; font-size: 1.6rem; transform: none; margin-bottom: 10px; }
.section-sub { max-width: 34rem; margin: 12px auto 0; color: var(--ink-soft); font-size: 0.98rem; }
.checklist__note { display: inline-block; transform: rotate(-3deg); margin: 6px 0 10px; }
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.horse-card { scroll-snap-align: start; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.horse-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.horse-card__img { aspect-ratio: 4 / 3; border-radius: 0; }
.horse-card__img .tag, .tack-card__img .tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--pink); color: #fff; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(6,31,63,0.15); }
.horse-card__body { padding: 15px 18px 20px; }
.horse-card__id { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.horse-card__name { font-family: var(--font-script); font-weight: 700; font-size: 2rem; color: var(--teal-dark); line-height: 0.9; }
.horse-card__breed { display: block; font-weight: 600; color: var(--ink); font-size: 0.9rem; margin: 5px 0 9px; }
.horse-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.72rem; color: var(--muted); margin-bottom: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.horse-card__meta span { position: relative; }
.horse-card__meta span:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.horse-card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--pink); }

.carousel__nav {
  position: absolute; top: 42%; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--pink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.carousel__nav:hover { background: var(--pink); color: #fff; transform: scale(1.08); }
.carousel__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel__nav--prev { left: -20px; }
.carousel__nav--next { right: -20px; }
.horses__cta { text-align: center; margin-top: 34px; }

/* ============================================================
   Course
   ============================================================ */
.course { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-wash), #eef5f0); }
.course__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; align-items: center; padding: 74px 24px; }
.wc--course { width: 26vw; max-width: 340px; height: 420px; left: -6vw; top: 10px; opacity: 0.45; background-position: left top; }
.course__title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 10px; }
.course__sub { color: var(--teal); font-weight: 600; font-size: 1.02rem; }
.course__lead { color: var(--navy); margin: 18px 0 12px; }
.course__list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.course__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--body); font-size: 0.95rem; }
.course__list svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--pink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Real course device mockup */
.course-mockup { width: 100%; display: block; filter: drop-shadow(0 22px 34px rgba(6,31,63,0.22)); }

/* Laptop + phone device mockup (legacy CSS — unused) */
.course__media { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.laptop { width: 100%; max-width: 460px; }
.laptop__screen { position: relative; border: 10px solid #1c2b40; border-radius: 14px 14px 0 0; background: #1c2b40; aspect-ratio: 16 / 10; overflow: hidden; box-shadow: var(--shadow-md); }
.laptop__screen .frame { position: absolute; inset: 0; border-radius: 0; }
.laptop__overlay { position: absolute; inset: 0; z-index: 3; background: linear-gradient(120deg, rgba(12,79,78,0.72), rgba(12,79,78,0.25)); display: flex; flex-direction: column; justify-content: center; padding: 0 30px; }
.laptop__title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.7rem); }
.laptop__sub { color: #dff1ee; font-size: 0.8rem; max-width: 60%; margin-top: 6px; }
.laptop__base { height: 14px; background: linear-gradient(#c9d2dc, #aeb8c4); border-radius: 0 0 12px 12px; margin: 0 -14px; position: relative; box-shadow: var(--shadow-sm); }
.laptop__base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 90px; height: 6px; background: #97a2b0; border-radius: 0 0 6px 6px; }

.mini-phone { position: absolute; right: -6px; bottom: -6px; width: 108px; background: #1c2b40; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); }
.mini-phone__screen { background: #fff; border-radius: 10px; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.mini-phone__bar { height: 8px; border-radius: 4px; background: var(--teal-wash); }
.mini-phone__bar:first-child { background: var(--teal); width: 60%; }
.mini-phone__bar.short { width: 55%; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: #c4cdda; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.5fr; gap: 40px; padding: 56px 24px 40px; }
.footer .brand__name { font-size: 1.35rem; }
.footer .brand__by { color: #9fd8d3; }
.footer__tag { margin: 14px 0 16px; font-size: 0.86rem; color: #9aa6b6; max-width: 20rem; }
.footer__col h3 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 0.86rem; color: #b4becd; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--pink); }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #3a4761; display: flex; align-items: center; justify-content: center; color: #c4cdda; transition: all 0.2s var(--ease); }
.socials a:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.footer__subscribe p { font-size: 0.84rem; color: #9aa6b6; margin-bottom: 14px; }
.subscribe__row { display: flex; background: #fff; border-radius: 999px; padding: 4px; max-width: 320px; }
.subscribe__row input { flex: 1; border: 0; background: none; padding: 10px 16px; font-family: var(--font-body); font-size: 0.85rem; color: var(--navy); outline: none; min-width: 0; }
.subscribe__row button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--coral); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s var(--ease); }
.subscribe__row button:hover { background: var(--coral-dark); }
.subscribe__row button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.subscribe__msg { font-size: 0.78rem; margin: 10px 2px 0; min-height: 1em; }
.subscribe__msg.ok { color: #7ee0c0; }
.subscribe__msg.err { color: #ff9db0; }

.footer__bar { border-top: 1px solid #2a3852; }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; font-size: 0.78rem; color: #8794a6; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--pink); }
.footer__legal i { color: #3a4761; margin: 0 6px; font-style: normal; }

/* ============================================================
   Services strip
   ============================================================ */
.services { position: relative; z-index: 5; margin-top: -52px; margin-bottom: -58px; }
.services__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(6,31,63,0.16);
  overflow: hidden;
}
.service { background: #fff; }
.service a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding: 26px 16px; height: 100%; transition: background 0.2s var(--ease); }
.service a:hover { background: var(--pink-wash); }
.service svg { width: 34px; height: 34px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service:nth-child(odd) svg { stroke: var(--pink); }
.service strong { font-family: var(--font-body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.service span { font-size: 0.76rem; color: var(--muted); line-height: 1.35; max-width: 14rem; }

/* ============================================================
   Lessons (reuses .about__grid layout)
   ============================================================ */
.lessons { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream-2), var(--paper)); }
.lessons__list { display: flex; flex-direction: column; gap: 9px; margin: 18px 0 26px; }
.lessons__list li { display: flex; align-items: center; gap: 10px; color: var(--body); font-size: 0.96rem; }
.lessons__list svg { width: 18px; height: 18px; fill: none; stroke: var(--pink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ============================================================
   Tack shop
   ============================================================ */
.tack { background: linear-gradient(180deg, var(--paper), var(--pink-wash)); padding: 76px 0 84px; }
.tack__head { text-align: center; margin-bottom: 40px; }
.tack__head .note { display: block; font-size: 1.5rem; margin-bottom: 4px; }
.tack__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tack-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.tack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tack-card__img { aspect-ratio: 4 / 3; border-radius: 0; }
.tack-card__img .tag--gold { background: var(--gold); color: var(--ink); }
.tack-card__body { padding: 15px 18px 18px; }
.tack-card__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); line-height: 1.15; }
.tack-card__meta { display: block; font-size: 0.78rem; color: var(--muted); margin: 5px 0 12px; }
.tack-card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.tack-card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--pink); }
.tack-card__btn { font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); border: 1.5px solid var(--teal); padding: 6px 14px; border-radius: 999px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tack-card__btn:hover { background: var(--teal); color: #fff; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .match__grid { grid-template-columns: 1fr 1fr; }
  .match__polaroids { grid-column: 1 / -1; height: 210px; max-width: 420px; margin: 10px auto 0; }
  .carousel__track { grid-auto-columns: calc((100% - 22px) / 2); }
  .carousel__nav--prev { left: -8px; }
  .carousel__nav--next { right: -8px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .tack__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column;
    align-items: flex-start; gap: 4px; background: var(--cream-2); padding: 96px 30px 30px;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.3s var(--ease);
    z-index: 90; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 0.92rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }

  .about__grid, .checklist__grid, .course__grid, .lessons .about__grid { grid-template-columns: 1fr; gap: 34px; }
  .services { margin-top: 24px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .lessons .about__media { order: -1; }
  .hero { min-height: 90vh; background-position: 60% 20%; }
  .hero::before { background: linear-gradient(180deg, transparent 0%, transparent 32%, rgba(255,250,243,0.8) 45%, var(--paper) 55%); }
  .hero__inner { min-height: 90vh; padding: 0 22px 44px; align-items: flex-end; }
  .hero__copy { max-width: 100%; }
  .hero__title { white-space: normal; font-size: clamp(2.1rem, 8vw, 2.9rem); }
  .about__media, .checklist__art { order: -1; }
  .match__grid { grid-template-columns: 1fr; text-align: center; }
  .match__copy .btn { margin: 0 auto; }
  .match__text { margin-left: auto; margin-right: auto; }
  .match__polaroids { order: 2; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .tack__grid { grid-template-columns: 1fr 1fr; }
  .carousel__track { grid-auto-columns: 78%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; justify-content: center; }
  .horses__cta .btn, .hero .btn { width: auto; }
  .frame--hero, .frame--about { border-radius: 18px 18px 90px 18px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
