/* jesshornsey.com — styles. Colours, fonts and components come from the Jess Hornsey brand guide. */

/* ---------- Fonts (self-hosted, so nothing loads from Google) ---------- */
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-soft.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-soft-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Chicle"; src: url("/assets/fonts/chicle.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Once you have the Tropika web font licence, put the file in /assets/fonts/ and remove the comment marks below.
@font-face { font-family: "Tropika"; src: url("/assets/fonts/tropika.woff2") format("woff2"); font-weight: 400; font-display: swap; }
*/

/* ---------- Tokens: Day (default) ---------- */
:root, [data-theme="light"] {
  --bg: #fff8ef; --surface: #ffffff; --surface-tint: #f5ede1; --line: #e9ddd0; --line-strong: #8a7e98;
  --ink: #2a1b3d; --ink-muted: #5f5270; --accent: #7b5ca5; --on-accent: #ffffff; --focus-ring: #542b7e; --error: #c8102e;
  --shadow-soft: 0 12px 32px -16px rgba(42, 27, 61, 0.30);
  --shadow-lift: 0 24px 48px -20px rgba(42, 27, 61, 0.36);
}
:root {
  --sand: #fff8ef; --plum: #2a1b3d;
  --sea-pool: #26afca; --sea-soft: #c9eef3;
  --citrus-lemon: #f2bb16; --citrus-tangerine: #fb5d2e; --citrus-butter: #ffe7a3;
  --bloom-violet: #7b5ca5; --bloom-deep: #542b7e; --bloom-hibiscus: #e65a7f; --bloom-blush: #f2aeb4; --bloom-lilac: #b8a1cf;
  --grad-citrus: linear-gradient(135deg, #f2bb16 0%, #fb5d2e 55%, #e65a7f 100%);
  --grad-bloom: linear-gradient(135deg, #e65a7f 0%, #7b5ca5 100%);
  --grad-pool: linear-gradient(160deg, #59ccd9 0%, #26afca 100%);
  --grad-night: linear-gradient(160deg, #7b5ca5 0%, #542b7e 100%);
  --grad-pastel: linear-gradient(120deg, #c9eef3 0%, #b8a1cf 40%, #f2aeb4 70%, #ffe7a3 100%);
  --grad-peach: linear-gradient(135deg, #ffe7a3 0%, #f2aeb4 100%);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 40px; --space-7: 64px; --space-8: 96px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px; --radius-pill: 999px;
  --font-display: Tropika, "Tropika Island Int", Chicle, Georgia, serif;
  --font-serif: Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1200px;
}
/* ---------- Tokens: Night (not used on the site at the moment; add data-theme="night" to a page's <html> to switch it on) ---------- */
[data-theme="night"] {
  --bg: #1c1330; --surface: #281d3f; --surface-tint: #31264b; --line: #3b2f55; --line-strong: #7d7095;
  --ink: #fff8ef; --ink-muted: #c3b8d6; --accent: #26afca; --on-accent: #2a1b3d; --focus-ring: #f2bb16; --error: #ff7a86;
  --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); background-repeat: no-repeat; color: var(--ink); font: 400 16px/26px var(--font-sans); -webkit-font-smoothing: antialiased; }
html:has(body[class*="glow-"]) { background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 var(--space-4); }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: var(--radius-pill); z-index: 10; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-5); }
.narrow { max-width: 720px; }
@media (max-width: 640px) { .wrap { padding: 0 var(--space-4); } }

/* ---------- Type ---------- */
.display-xl, .display-l, .display-m { font-family: var(--font-display); font-weight: 400; }
.display-xl { font-size: 88px; line-height: 88px; }
.display-l { font-size: 60px; line-height: 62px; }
.display-m { font-size: 40px; line-height: 44px; }
.heading-1 { font: 500 40px/48px var(--font-serif); letter-spacing: -0.01em; }
.heading-2 { font: 500 30px/38px var(--font-serif); }
.heading-3 { font: 600 22px/30px var(--font-serif); }
.lede { font: 400 21px/32px var(--font-serif); max-width: 34em; }
.body-l { font-size: 18px; line-height: 30px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.eyebrow { font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }
@media (max-width: 640px) {
  .display-xl { font-size: 56px; line-height: 58px; }
  .display-l { font-size: 44px; line-height: 48px; }
  .display-m { font-size: 32px; line-height: 36px; }
  .heading-1 { font-size: 32px; line-height: 40px; }
  .heading-2 { font-size: 26px; line-height: 34px; }
  .lede { font-size: 18px; line-height: 28px; }
}

/* The sun dot: the full stop from the logo. */
.sun { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.04em; border-radius: var(--radius-pill); background: var(--citrus-tangerine); vertical-align: baseline; }
[data-theme="night"] .sun, .on-dark .sun { background: var(--citrus-lemon); }

/* ---------- Backgrounds ---------- */
.bg-citrus { background: var(--grad-citrus); color: var(--plum); }
.bg-bloom { background: var(--grad-bloom); color: var(--sand); }
.bg-pool { background: var(--grad-pool); color: var(--plum); }
.bg-night { background: var(--grad-night); color: var(--sand); }
.bg-pastel { background: var(--grad-pastel); color: var(--plum); }
.bg-peach { background: var(--grad-peach); color: var(--plum); }
.glow-citrus {
  background:
    radial-gradient(55% 70% at 8% 12%, rgba(242, 187, 22, 0.36), rgba(242, 187, 22, 0) 70%),
    radial-gradient(45% 60% at 92% 20%, rgba(251, 93, 46, 0.22), rgba(251, 93, 46, 0) 70%),
    radial-gradient(60% 60% at 60% 105%, rgba(242, 174, 180, 0.55), rgba(242, 174, 180, 0) 70%),
    var(--bg);
}
.glow-pool {
  background:
    radial-gradient(55% 70% at 10% 15%, rgba(38, 175, 202, 0.26), rgba(38, 175, 202, 0) 70%),
    radial-gradient(45% 65% at 90% 10%, rgba(201, 238, 243, 0.90), rgba(201, 238, 243, 0) 70%),
    radial-gradient(60% 60% at 70% 100%, rgba(184, 161, 207, 0.40), rgba(184, 161, 207, 0) 70%),
    var(--bg);
}
[data-theme="night"] .glow-pool, [data-theme="night"].glow-pool {
  background:
    radial-gradient(55% 70% at 10% 15%, rgba(38, 175, 202, 0.22), rgba(38, 175, 202, 0) 70%),
    radial-gradient(45% 65% at 90% 10%, rgba(123, 92, 165, 0.30), rgba(123, 92, 165, 0) 70%),
    radial-gradient(60% 60% at 70% 100%, rgba(38, 175, 202, 0.14), rgba(38, 175, 202, 0) 70%),
    var(--bg);
}
.glow-bloom {
  background:
    radial-gradient(55% 70% at 12% 20%, rgba(242, 174, 180, 0.60), rgba(242, 174, 180, 0) 70%),
    radial-gradient(50% 65% at 88% 15%, rgba(184, 161, 207, 0.55), rgba(184, 161, 207, 0) 70%),
    radial-gradient(55% 55% at 55% 105%, rgba(230, 90, 127, 0.20), rgba(230, 90, 127, 0) 70%),
    var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5); border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 700 16px/20px var(--font-sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-sun { background: var(--citrus-lemon); color: var(--plum); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent); padding: 0 var(--space-3); }
.btn-ghost:hover { box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.btn-on-dark { background: var(--sand); color: var(--plum); }
.btn-danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: 15px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); font: 600 13px/1 var(--font-sans); white-space: nowrap; color: var(--plum); background: var(--sea-soft); }
.tag svg { width: 14px; height: 14px; fill: currentColor; }
.tag-skating { background: var(--sea-soft); }
.tag-boxing, .tag-making { background: var(--citrus-butter); }
.tag-dance { background: var(--bloom-blush); }
.tag-languages { background: var(--bloom-lilac); }
.tag-quiet { background: var(--surface-tint); color: var(--ink-muted); }
.tag-new, .tag-free { background: var(--citrus-lemon); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Header and footer ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.logo .logo-night { display: none; }
[data-theme="night"] .logo .logo-day { display: none; }
[data-theme="night"] .logo .logo-night { display: block; }
.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-pill); }
.nav a:not(.btn):hover { background: var(--surface-tint); }
@media (max-width: 640px) { .nav .nav-link { display: none; } .logo img { height: 28px; } }

.site-footer { margin-top: var(--space-8); padding: var(--space-7) 0 var(--space-6); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.site-footer img { height: 40px; width: auto; }
.site-footer a { color: var(--sand); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer h2 { font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--space-3); color: var(--sand); }
.site-footer .copy { grid-column: 1 / -1; font-size: 13px; }
.site-footer .signoff { margin: var(--space-4) 0 0; font: 400 32px/1.1 var(--font-display); color: var(--sand); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
@media (max-width: 640px) { .section { padding: var(--space-7) 0; } }
.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.panel { border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); }
@media (max-width: 640px) { .panel { padding: var(--space-6) var(--space-4); } }

/* Hero: just your picture. The whole picture always shows (nothing is cropped). */
.hero { padding: var(--space-4) 0 0; }
.hero-picture { display: block; }
.hero-picture img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--grad-pastel); box-shadow: var(--shadow-soft); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
[id] { scroll-margin-top: 88px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-soft); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--sea-soft); color: var(--plum); font: 400 26px/1 var(--font-display); margin-bottom: var(--space-4); }
.steps li:nth-child(2)::before { background: var(--citrus-butter); }
.steps li:nth-child(3)::before { background: var(--bloom-blush); }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { margin: 0; color: var(--ink-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* About: your photo in a circle (like the dot in the logo), with the text curving round it.
   Each text column has an invisible half-circle (the ::before) that the lines wrap around. */
.about-stage { --circle: 500px; --hug: 264px; position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(var(--hug) * 2); }
.about-circle { position: absolute; top: calc(var(--hug) - var(--circle) / 2); left: 50%; width: var(--circle); height: var(--circle); margin: 0 0 0 calc(var(--circle) / -2); }
.about-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc-text { font: 400 36px/1 var(--font-display); letter-spacing: 0.01em; }
.arc-me { fill: var(--bloom-violet); }
.arc-you { fill: var(--bloom-hibiscus); }
.arc-sun { fill: var(--citrus-tangerine); }
.about-ring { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; padding: 3%; border-radius: 50%; background: var(--grad-citrus); box-shadow: var(--shadow-lift); }
.about-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--grad-bloom); }
.about-text p { font-size: 18px; line-height: 30px; }
.about-text::before { content: ""; width: var(--hug); height: calc(var(--hug) * 2); }
.about-me { text-align: right; }
/* The two polygons trace the photo ring plus the curved headings, so the lines follow them closely. */
.about-me::before { float: right; shape-outside: polygon(100.0% 89.8%, 100.0% 89.8%, 91.7% 89.6%, 83.5% 88.9%, 75.4% 87.8%, 67.6% 86.3%, 60.2% 84.4%, 53.2% 82.2%, 46.8% 79.6%, 40.9% 76.6%, 35.6% 73.4%, 31.1% 69.9%, 27.3% 66.2%, 24.3% 62.3%, 22.2% 58.3%, 20.9% 54.2%, 18.1% 50.0%, 11.4% 45.3%, 5.9% 40.0%, 8.5% 35.1%, 12.1% 30.4%, 16.7% 25.9%, 22.2% 21.7%, 28.5% 17.8%, 35.6% 14.3%, 43.4% 11.1%, 51.9% 8.3%, 60.9% 6.1%, 70.3% 4.2%, 80.0% 2.9%, 89.9% 2.2%, 100.0% 1.9%, 100.0% 1.9%); }
.about-you::before { float: left; shape-outside: polygon(0.0% 1.9%, -0.0% 1.9%, 10.1% 2.2%, 20.0% 2.9%, 29.7% 4.2%, 39.1% 6.1%, 48.1% 8.3%, 56.6% 11.1%, 64.4% 14.3%, 71.5% 17.8%, 77.8% 21.7%, 83.3% 25.9%, 87.9% 30.4%, 91.5% 35.1%, 94.1% 40.0%, 95.7% 45.0%, 86.7% 50.0%, 93.3% 54.9%, 89.5% 59.5%, 80.2% 63.0%, 72.7% 66.2%, 68.9% 69.9%, 64.4% 73.4%, 59.1% 76.6%, 53.2% 79.6%, 46.8% 82.2%, 39.8% 84.4%, 32.4% 86.3%, 24.6% 87.8%, 16.5% 88.9%, 8.3% 89.6%, 0.0% 89.8%, 0.0% 89.8%); }
@media (max-width: 1240px) { .about-stage { --circle: 460px; --hug: 243px; } .about-text p { font-size: 17px; line-height: 28px; } }
@media (max-width: 1080px) {
  .about-stage { display: block; min-height: 0; }
  .about-circle { position: relative; top: 0; left: 0; margin: 0 auto var(--space-5); width: min(420px, 100%); height: auto; aspect-ratio: 1; }
  .about-text::before { display: none; }
  .about-me { text-align: left; }
  .about-you { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 2px dotted var(--bloom-lilac); }
}

/* Members area preview */
.preview-title { margin: var(--space-7) 0 var(--space-5); }
.preview-more { margin: var(--space-4) 0 0; }
#members .cta { margin-top: var(--space-6); }
.cta-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* Teaching and speaking */
.speaking { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-7); align-items: center; }
.speaking .eyebrow { color: var(--plum); }
.speaking h2 { margin-bottom: var(--space-4); }
.speaking-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--grad-bloom); box-shadow: var(--shadow-lift); }
.speaking-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: var(--space-2) 0 var(--space-5); padding: 0; }
.chips li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background: rgba(255, 248, 239, 0.75); color: var(--plum); font: 600 14px/1 var(--font-sans); }
@media (max-width: 860px) { .speaking { grid-template-columns: 1fr; gap: var(--space-5); } .speaking-photo { max-width: 360px; order: -1; } }

.cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.cta h2 { margin-bottom: var(--space-2); }
.cta p { margin: 0; max-width: 34em; }

.faq { display: grid; gap: var(--space-3); }
.faq details { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; font: 600 18px/28px var(--font-serif); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/28px var(--font-sans); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: var(--space-3) 0 0; color: var(--ink-muted); }
.faq-more { margin-top: var(--space-5); }

/* ---------- Video cards ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }
.video { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.video:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 10; text-decoration: none; background: var(--grad-pool); }
.video-thumb.topic-boxing, .video-thumb.topic-making { background: var(--grad-citrus); }
.video-thumb.topic-dance { background: var(--grad-bloom); }
.video-thumb.topic-languages { background: var(--grad-pastel); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--sand); color: var(--plum); box-shadow: var(--shadow-soft); }
.video-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.video-play.locked svg { margin-left: 0; }
.video-duration { position: absolute; right: var(--space-3); bottom: var(--space-3); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: rgba(42, 27, 61, 0.80); color: var(--sand); font: 600 13px/1 var(--font-sans); }
.video-duration svg { width: 14px; height: 14px; fill: currentColor; }
.video-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.video-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.video-title { margin: var(--space-1) 0 0; font: 600 22px/30px var(--font-serif); color: var(--ink); }
.video-title a { color: inherit; text-decoration: none; }
.video-meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.video-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); }
.price { font: 400 32px/1 var(--font-display); color: var(--ink); }

.bundle { display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center; border-radius: var(--radius-lg); padding: var(--space-6); }
.bundle ul { margin: var(--space-2) 0 0; padding-left: 20px; }
.bundle .price { color: var(--plum); }
.bundle-buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
@media (max-width: 640px) { .bundle { grid-template-columns: 1fr; padding: var(--space-5); } }

/* ---------- Forms ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-soft); }
@media (max-width: 640px) { .card { padding: var(--space-5); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field-label { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.input, select.input, textarea.input { min-height: 48px; padding: 0 var(--space-5); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); width: 100%; }
textarea.input { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); min-height: 96px; resize: vertical; }
.input::placeholder { color: var(--ink-muted); }
.input:hover { border-color: var(--ink-muted); }
.input:focus-visible { border-color: var(--accent); }
.help { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 22px; margin-bottom: var(--space-4); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.alert { display: flex; gap: var(--space-2); align-items: flex-start; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 15px; line-height: 22px; margin-bottom: var(--space-4); }
.alert svg { width: 18px; height: 18px; fill: currentColor; flex: none; margin-top: 2px; }
.alert-error { background: color-mix(in srgb, var(--error) 12%, var(--surface)); color: var(--error); }
.alert-info { background: var(--sea-soft); color: var(--plum); }
.tabs { display: flex; gap: var(--space-1); background: var(--surface-tint); border-radius: var(--radius-pill); padding: 4px; margin-bottom: var(--space-5); }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font: 700 15px/1 var(--font-sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.turnstile { min-height: 65px; margin-bottom: var(--space-4); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.switch input { appearance: none; width: 52px; height: 30px; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background 0.15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--sand); transition: transform 0.15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(22px); }

/* ---------- Pages ---------- */
.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: var(--space-6) var(--space-4); }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { margin-bottom: var(--space-2); }
.members-hello { padding: var(--space-7) 0 var(--space-6); }
.list-section { margin-bottom: var(--space-7); }
.list-section h2 { margin-bottom: var(--space-5); }
.empty { color: var(--ink-muted); background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #000; box-shadow: var(--shadow-lift); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: var(--space-6) 0 var(--space-4); font-weight: 600; text-decoration: none; }
.legal h1 { margin: var(--space-7) 0 var(--space-5); }
.legal h2 { font: 600 22px/30px var(--font-serif); margin: var(--space-6) 0 var(--space-3); }
.legal .todo { background: var(--citrus-butter); color: var(--plum); padding: 0 4px; border-radius: 4px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin ---------- */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.admin th, .admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-weight: 700; color: var(--ink-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.admin tr.clickable { cursor: pointer; }
.admin tr.clickable:hover td { background: var(--surface-tint); }
.admin .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.admin .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.admin .stat { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-soft); }
.admin .stat b { display: block; font: 400 36px/1 var(--font-display); margin-bottom: 6px; }
.admin .table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.admin .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2); }
@media (max-width: 760px) { .admin .grid-2 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .video { transition: none; }
  .btn:hover, .video:hover { transform: none; }
  .spinner { animation-duration: 3s; }
}
