/* ==========================================================================
   Lightbulb Lane Tutoring - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: change the custom properties in :root below.
   - --violet / --violet-deep   main brand color (buttons, links, toggles)
   - --coral / --mint / --sun   cheerful accent colors for cards and stickers
   - --*-soft                   pale tints of each accent for backgrounds
   - --ink / --muted            text colors (keep 4.5:1 contrast on --paper)
   - --font-display / --font-body heading and body fonts. If you change them,
     also update the Google Fonts <link> in the <head> of every page.
   ========================================================================== */
:root {
  --paper: #fffdf7;
  --white: #ffffff;
  --ink: #1e1b3a;
  --muted: #4f4b6b;
  --line: #e4e0f2;
  --violet: #5b3fd6;
  --violet-deep: #4329b0;
  --violet-soft: #ece8ff;
  --coral: #ff7a59;
  --coral-text: #b8391a;
  --coral-soft: #ffe6de;
  --mint: #2bb38a;
  --mint-text: #13734f;
  --mint-soft: #daf5ea;
  --sun: #ffcf4d;
  --sun-soft: #fff4cf;
  --sky-soft: #e0f0ff;
  --ok: #13734f;
  --ok-bg: #daf5ea;
  --error: #b42318;
  --error-bg: #fdecea;

  --font-display: "Lexend", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Verdana", "Segoe UI", system-ui, sans-serif;

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 20px;
  --pop: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(.3, 1.3, .5, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--violet); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.pill-label { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); font: 600 .9rem/1.2 var(--font-display); margin: 0 0 1rem; }
.pill-label svg { width: 1rem; height: 1rem; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%); padding: 0 .1em; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.grid-paper { background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.1rem; padding: .75rem 1.5rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--violet); color: #fff; font: 600 1.05rem/1 var(--font-display); text-decoration: none; cursor: pointer; box-shadow: var(--pop); transition: transform .15s var(--ease), box-shadow .15s, background-color .2s; }
.btn:hover { background: var(--violet-deep); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sun-soft); color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffd969; color: var(--ink); }
.btn svg { width: 1.15rem; height: 1.15rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 247, .95); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 2.6rem; height: 2.6rem; flex: none; }
.logo-text { font: 700 1.3rem/1 var(--font-display); letter-spacing: -.02em; }
.logo-text small { display: block; font: 500 .78rem/1 var(--font-body); color: var(--muted); letter-spacing: .04em; margin-top: .25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .35rem; }
.site-nav a { display: block; padding: .55rem .95rem; border-radius: 12px; color: var(--ink); font: 500 1rem/1.2 var(--font-display); text-decoration: none; }
.site-nav a:hover { background: var(--violet-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.site-nav .nav-cta { background: var(--violet); color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); margin-left: .4rem; }
.site-nav .nav-cta:hover { background: var(--violet-deep); color: #fff; }
.site-nav .nav-cta[aria-current="page"] { background: var(--violet-deep); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); padding: .5rem .85rem; font: 600 1rem/1 var(--font-display); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + .6rem); background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: .6rem; gap: .25rem; }
  .site-nav a { padding: .85rem 1rem; }
  .site-nav .nav-cta { margin: .4rem 0 0; text-align: center; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .6rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 400px) { .logo-text small { display: none; } .logo svg { width: 2.2rem; height: 2.2rem; } }

/* ---------- Placeholder ---------- */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ph-bg, var(--sky-soft)); aspect-ratio: 4 / 3; color: var(--violet); }
.ph svg { width: 42%; height: auto; }
.ph-label { position: absolute; left: .8rem; bottom: .8rem; max-width: calc(100% - 1.6rem); font: 600 .78rem/1.2 var(--font-display); background: var(--white); color: var(--ink); border: 2px solid var(--ink); padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .95rem; }
.hero-points svg { width: 1rem; height: 1rem; color: var(--mint-text); }
.hero-art { position: relative; padding: 1.5rem 1rem 2rem; }
.hero-art .ph { aspect-ratio: 5 / 4; border-radius: 40% 60% 46% 54% / 50% 40% 60% 50%; --ph-bg: var(--violet-soft); box-shadow: 8px 8px 0 var(--ink); }
.hero-art .ph .ph-label { left: 50%; transform: translateX(-50%); bottom: 12%; }
.float { position: absolute; z-index: 2; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: .5rem .8rem; font: 700 1rem/1.1 var(--font-display); box-shadow: 3px 3px 0 var(--ink); animation: bob 5s ease-in-out infinite; }
.float small { display: block; font: 500 .75rem/1.2 var(--font-body); color: var(--muted); }
.float-1 { top: 0; left: 0; background: var(--sun); transform: rotate(-6deg); }
.float-2 { top: 18%; right: 0; background: var(--mint-soft); animation-delay: -1.5s; }
.float-3 { bottom: .5rem; left: 8%; background: var(--coral-soft); animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.sticker { position: absolute; z-index: 3; right: 4%; bottom: 0; width: 7.5rem; height: 7.5rem; border-radius: 50%; background: var(--coral); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; text-align: center; font: 700 1.05rem/1.1 var(--font-display); transform: rotate(10deg); box-shadow: 3px 3px 0 var(--ink); }
.sticker span { display: block; font-size: 1.7rem; }
@media (max-width: 520px) { .sticker { width: 6rem; height: 6rem; font-size: .9rem; } .sticker span { font-size: 1.35rem; } .float { font-size: .9rem; } }

/* ---------- Subjects + level tabs ---------- */
.level-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: .4rem; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--pop); margin-bottom: 2.2rem; }
.level-tab { border: 0; background: transparent; color: var(--ink); padding: .65rem 1.05rem; border-radius: 12px; font: 600 1rem/1.1 var(--font-display); cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; }
.level-tab small { font: 400 .78rem/1.2 var(--font-body); color: var(--muted); }
.level-tab:hover { background: var(--violet-soft); }
.level-tab[aria-selected="true"] { background: var(--violet); color: #fff; }
.level-tab[aria-selected="true"] small { color: #e4defd; }
.subjects { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); list-style: none; margin: 0; padding: 0; text-align: left; }
.subject { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--pop); transition: transform .2s var(--ease); }
.subject:hover { transform: translateY(-3px) rotate(-.5deg); }
.subject .ic { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--c-soft, var(--violet-soft)); color: var(--c, var(--violet-deep)); border: 2px solid var(--ink); margin-bottom: .9rem; }
.subject .ic svg { width: 1.5rem; height: 1.5rem; }
.subject h3 { margin-bottom: .3rem; }
.subject p { color: var(--muted); font-size: .97rem; margin: 0 0 .7rem; }
.subject .topics { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.subject .topics li { font-size: .82rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.subject[data-color="coral"] { --c: var(--coral-text); --c-soft: var(--coral-soft); }
.subject[data-color="mint"] { --c: var(--mint-text); --c-soft: var(--mint-soft); }
.subject[data-color="sun"] { --c: #7a5a00; --c-soft: var(--sun-soft); }
.subject[data-color="sky"] { --c: #1f5f99; --c-soft: var(--sky-soft); }
.level-note { margin-top: 1.5rem; color: var(--muted); }

/* ---------- How it works ---------- */
.how { background: var(--violet); color: #f1edff; border-block: 2px solid var(--ink); }
.how h2 { color: #fff; }
.how .lead { color: #ddd5ff; }
.how .pill-label { background: var(--sun); color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: st; }
.step { counter-increment: st; position: relative; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 3.3rem 1.3rem 1.3rem; box-shadow: 6px 6px 0 var(--ink); }
.step::before { content: counter(st); position: absolute; top: -1.2rem; left: 1.2rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 1.5rem/1 var(--font-display); }
.step:nth-child(2)::before { background: var(--mint-soft); }
.step:nth-child(3)::before { background: var(--coral-soft); }
.step:nth-child(4)::before { background: var(--sky-soft); }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Tutors ---------- */
.tutor-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tutor { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--pop); }
.tutor .ph { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; aspect-ratio: 4 / 3; }
.tutor-body { padding: 1.1rem 1.25rem 1.3rem; }
.tutor-body p { color: var(--muted); font-size: .95rem; margin: .2rem 0 .7rem; }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.badges li { font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--mint-soft); color: var(--mint-text); }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.review { margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--pop); }
.review:nth-child(1) { background: var(--sun-soft); }
.review:nth-child(2) { background: var(--mint-soft); }
.review:nth-child(3) { background: var(--coral-soft); }
.review-tag { display: inline-block; font: 600 .78rem/1.2 var(--font-display); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .6rem; margin-bottom: .9rem; }
.review blockquote { margin: 0 0 1rem; font-size: 1.08rem; }
.review blockquote p { margin: 0; }
.review figcaption { font-size: .95rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--sun); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem 3rem; align-items: center; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.cta > * { position: relative; z-index: 1; }
.cta p { margin: 0; font-size: 1.1rem; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr auto; } }

/* ---------- Page head ---------- */
.page-head { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 2px solid var(--ink); text-align: center; }
.page-head .lead { margin: 0 auto; }

/* ---------- Pricing ---------- */
.billing { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-bottom: 2.5rem; }
.toggle { display: inline-flex; position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .3rem; box-shadow: var(--pop); }
.toggle button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--ink); padding: .7rem 1.3rem; border-radius: 999px; font: 600 1rem/1.1 var(--font-display); cursor: pointer; transition: color .2s; }
.toggle button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.save-badge { display: inline-block; margin-left: .35rem; font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: var(--mint); color: var(--ink); }
.toggle button[aria-pressed="true"] .save-badge { background: var(--sun); }
.billing-note { color: var(--muted); margin: 0; text-align: center; }
.plans { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 1.8rem 1.6rem; box-shadow: var(--pop); }
.plan.is-featured { background: var(--violet-soft); box-shadow: 8px 8px 0 var(--violet); }
.plan-flag { position: absolute; top: -1rem; right: 1.2rem; background: var(--coral); border: 2px solid var(--ink); border-radius: 999px; padding: .25rem .8rem; font: 700 .85rem/1.2 var(--font-display); transform: rotate(4deg); }
.plan h2 { font-size: 1.5rem; margin-bottom: .2rem; }
.plan-sub { color: var(--muted); margin-bottom: 1.2rem; }
.price { display: flex; align-items: baseline; gap: .35rem; margin: 0; }
.price strong { font: 700 3rem/1 var(--font-display); letter-spacing: -.03em; }
.price span { color: var(--muted); }
.price-detail { min-height: 1.6em; color: var(--mint-text); font-weight: 700; font-size: .95rem; margin: .3rem 0 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; }
.plan li svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .25rem; color: var(--mint-text); }
.plan .btn { margin-top: auto; }
.extras { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 2.5rem; }
.extra { border: 2px dashed var(--ink); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--white); }
.extra strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.extra span { color: var(--muted); font-size: .97rem; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: none; border: 0; padding: 1.1rem 1.25rem; text-align: left; font: 600 1.1rem/1.35 var(--font-display); color: var(--ink); cursor: pointer; border-radius: 14px; }
.faq-btn::after { content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq-btn[aria-expanded="true"]::after { content: "\2212"; background: var(--violet); color: #fff; }
.faq-panel { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq-panel p { margin: 0; }

/* ---------- Trial form ---------- */
.trial-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 980px) { .trial-grid { grid-template-columns: 1.6fr 1fr; } }
.form-card { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(1.4rem, 4vw, 2.5rem); }
.form-card h2 { font-size: 1.45rem; display: flex; align-items: center; gap: .6rem; margin-top: 1.8rem; }
.form-card h2:first-of-type { margin-top: 0; }
.form-card h2 span { width: 2.2rem; height: 2.2rem; border-radius: 10px; display: inline-grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); font-size: 1.1rem; flex: none; }
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.chip-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-options label { position: relative; margin: 0; font-weight: 400; }
.chip-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-options span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 700; font-size: .97rem; transition: background-color .15s, transform .15s var(--ease); }
.chip-options span:hover { background: var(--violet-soft); }
.chip-options input:checked + span { background: var(--violet); color: #fff; transform: translateY(-1px); box-shadow: 2px 2px 0 var(--ink); }
.chip-options input:checked + span::before { content: "\2713"; }
.chip-options input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.goal-cards { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.goal-cards label { position: relative; margin: 0; font-weight: 400; }
.goal-cards input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.goal-cards span { display: grid; gap: .2rem; justify-items: center; text-align: center; padding: .9rem .6rem; border: 2px solid var(--ink); border-radius: 16px; cursor: pointer; background: var(--white); height: 100%; }
.goal-cards b { font-family: var(--font-display); font-weight: 600; }
.goal-cards small { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.goal-cards i { font-style: normal; font-size: 1.5rem; line-height: 1; }
.goal-cards input:checked + span { background: var(--sun-soft); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.goal-cards input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.next-card { position: sticky; top: 6rem; background: var(--mint-soft); border: 2px solid var(--ink); border-radius: 24px; padding: 1.6rem; box-shadow: var(--pop); }
.next-card ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: n; }
.next-card li { counter-increment: n; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; }
.next-card li::before { content: counter(n); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 1rem/1 var(--font-display); }
.next-card strong { display: block; font-family: var(--font-display); }
.next-card span { color: var(--muted); font-size: .95rem; }
.promise { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 2px dashed var(--ink); font-size: .95rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
label, .legend { display: block; font-weight: 700; margin-bottom: .4rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: .7rem .85rem; }
textarea { min-height: 6.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--error) !important; background: #fff8f7; }
.field-error { display: block; color: var(--error); font-weight: 700; font-size: .93rem; margin-top: .35rem; }
.field-error:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
fieldset.is-invalid .chip-options span { border-color: var(--error); }
.form-status { margin-top: 1rem; padding: 1rem 1.15rem; border-radius: 14px; border: 2px solid currentColor; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status.is-error { background: var(--error-bg); color: var(--error); }
.form-note { font-size: .93rem; color: var(--muted); margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d6ee; padding: clamp(3rem, 6vw, 4rem) 0 2rem; margin-top: clamp(1rem, 3vw, 2rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-bottom: 2rem; border-bottom: 1px solid rgba(217, 214, 238, .2); }
.site-footer .logo, .site-footer .logo-text { color: #fff; }
.site-footer .logo-text small { color: #c9c4ea; }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #ece9ff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--sun); }
.site-footer address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.4rem; font-size: .92rem; color: #c9c4ea; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .subject:hover, .btn:hover { transform: none; }
}
