:root {
  color-scheme: light dark;
  --maroon: #6b1f1f;
  --maroon-dark: #511717;
  --cream: #f5efe4;
  --cream-dark: #ebe0d1;
  --paper: #fffaf3;
  --ink: #231713;
  --muted: #5b4840;
  --accent: #6b1f1f;
  --line: #cdb9a8;
  --white: #fff9f1;
  --dark: #221416;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --section: clamp(3rem, 8vw, 7rem);
  --body: 1rem;
  --heading: clamp(2.125rem, 5vw, 4rem);
  --display: clamp(4.5rem, 7.5vw, 6rem);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #201818;
    --cream-dark: #2b2020;
    --paper: #312424;
    --ink: #fff2e8;
    --muted: #ddc7ba;
    --accent: #f3b1a6;
    --line: #745951;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: var(--body)/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-family: var(--serif); line-height: 1.06; text-wrap: balance; }
h2 { font-size: var(--heading); margin-bottom: var(--space-2); letter-spacing: -.04em; }
h3 { font-size: 1.4rem; }
p + p { margin-top: var(--space-2); }
button,input,select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.narrow { max-width: 49rem; }
.section { padding-block: var(--section); scroll-margin-top: 9rem; }
.skip { position: fixed; z-index: 9; top: .5rem; left: .5rem; padding: .7rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.eyebrow { margin-bottom: var(--space-1); color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .875rem; }
.masthead { position: sticky; z-index: 5; top: 0; height: 0; }
.announcement { position: relative; padding: .5rem 3.25rem; background: var(--maroon-dark); color: var(--white); text-align: center; font-size: .875rem; }
.announcement a { font-weight: 800; white-space: nowrap; }
.announcement button { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: inherit; min-width: 44px; min-height: 44px; font-size: 1.5rem; }
.site-header { color: var(--white); background: #22141670; }
.masthead.scrolled .site-header, .masthead.menu-open .site-header { background: var(--cream); color: var(--ink); box-shadow: 0 5px 18px #1b0b0b23; }
.nav-inner, .brand, nav { display: flex; align-items: center; }
.nav-inner { min-height: 4.5rem; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { gap: .65rem; font-weight: 800; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .4rem; background: var(--maroon); color: white; font: bold 1.7rem var(--serif); }
nav { gap: .7rem; flex-wrap: wrap; }
nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.menu-toggle { border: 1px solid currentColor; border-radius: 99px; padding: .45rem .85rem; min-height: 44px; color: inherit; background: transparent; }
.hero { min-height: max(70vh, 35rem); position: relative; isolation: isolate; display: grid; align-items: center; padding-block: 10.5rem 3rem; color: var(--white); background: var(--dark); text-align: center; }
.hero picture, .hero picture img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture { z-index: -2; }
.hero picture img { object-fit: cover; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(180deg,#40191bd9,#150d0ee6 70%,#100b0bee); }
.hero h1 { font-size: 2.75rem; letter-spacing: -.055em; margin-block: .65rem 1rem; }
.hero-description { max-width: 56ch; margin-inline: auto; font-size: 1.125rem; }
.pill { display: inline-block; color: var(--white); border: 1px solid #fff9f188; border-radius: 99px; padding: .35rem .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-3); justify-content: center; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .875rem 1.1rem; border: 1px solid transparent; border-radius: 99px; background: var(--maroon); color: white; font-weight: 750; line-height: 1.2; text-decoration: none; text-align: center; }
.button:hover { background: var(--maroon-dark); transform: translateY(-1px); }
.button.ghost { color: var(--white); border-color: var(--white); background: transparent; }
.button.secondary { background: var(--cream-dark); color: var(--ink); border-color: var(--line); }
.education,.faq { background: var(--cream-dark) url('images/why-jhatka-pattern.svg'); }
.cards,.split,.about,.footer-grid { display: grid; gap: var(--space-2); }
.cards { margin-top: var(--space-4); }
.card,.form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.card svg { width: 2.3rem; height: 2.3rem; stroke: var(--accent); fill: none; stroke-width: 1.45; margin-bottom: .65rem; }
.card p,.about p:not(.eyebrow) { color: var(--muted); margin-block: .65rem; }
.standards { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.standards h2 { font-size: 1.45rem; margin-bottom: 0; }
.badges,.about-facts { display: flex; gap: .65rem; margin-block: 1rem 0; list-style: none; padding: 0; }
.badges { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .35rem; }
.badges li,.about-facts li { display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .5rem; font-weight: 650; }
.badges li { flex: 0 0 auto; scroll-snap-align: start; }
.badges svg { width: 1.1rem; height: 1.1rem; color: var(--accent); }
.about { align-items: center; }
.about img { width: 100%; border-radius: 1rem; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.text-link { font-weight: 700; }
.waitlist { background: var(--cream-dark); }
.fields { display: grid; gap: var(--space-2); }
.fields label { display: grid; gap: .35rem; font-weight: 700; }
.fields input:not([type="checkbox"]), .fields select { width: 100%; min-height: 44px; padding: .65rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--ink); background: var(--cream); }
.fields .check { display: flex; align-items: center; gap: .65rem; font-weight: 500; min-height: 44px; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--maroon); flex: none; }
.form-note { color: var(--muted); margin-block: .75rem; }
form .button { width: 100%; }
#form-status:not(:empty),#copy-status:not(:empty) { margin-block: .5rem; }
#success .actions { justify-content: flex-start; margin-bottom: 1rem; }
.location-map { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 1rem; margin-top: var(--space-3); }
.map-figure { margin: 0; }
.map-figure figcaption { margin-top: .4rem; color: var(--muted); font-size: .875rem; }
.avatar { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--maroon); color: white; }
.locations img { width: 7rem; margin-bottom: 1rem; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; padding: .9rem 0; }
details p { padding-bottom: .9rem; color: var(--muted); }
.footer { color: var(--white); background: var(--dark); padding-block: var(--space-4); }
.footer h2 { font: 750 1rem var(--sans); letter-spacing: normal; }
.footer-grid > div > a:not(.brand) { display: block; width: fit-content; padding-block: .2rem; }
.footer .brand { margin-bottom: .75rem; }
.copyright { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #927970; }
.netlify-badge,#nl-badge-frame,footer [class*="netlify"] { display: none !important; }
@media (max-width: 47.99rem) {
  .nav-inner:has(.menu-toggle:not([hidden])) nav { display: none; }
  .menu-open .nav-inner:has(.menu-toggle:not([hidden])) nav { display: grid; align-content: start; gap: .5rem; position: fixed; inset: var(--menu-top, 8rem) 0 0; background: var(--cream); color: var(--ink); padding: 1.5rem; }
  .menu-open nav a { font-size: 1.15rem; }
}
@media (min-width: 48rem) {
  .shell { width: min(100% - 4rem, 74rem); }
  .nav-inner { min-height: 5rem; }
  nav { gap: 1.2rem; }
  .menu-toggle { display: none; }
  .hero { min-height: max(85vh, 39rem); text-align: left; }
  .hero::after { background: linear-gradient(180deg,#36161abf,#170e11a6),linear-gradient(90deg,#1d1014c9,transparent); }
  .hero h1 { font-size: var(--display); }
  .hero-description { margin-inline: 0; }
  .actions { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split,.about { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .about img { align-self: center; }
  .fields { grid-template-columns: 1fr 1fr; }
  .span { grid-column: 1 / -1; }
  form .button { width: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr .8fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .15s ease, transform .15s ease; }
  .enter { animation: enter .38s ease both; }
  @keyframes enter { from { opacity: .45; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
}

.hero-grid { display: grid; align-items: center; gap: 2rem; }
.hero-copy { min-width: 0; }
.hero-flyer { width: min(100%, 440px); margin: 0 auto; }
.flyer-trigger { position: relative; display: block; border: 1px solid #fff9f151; border-radius: 16px; background: var(--cream); box-shadow: 0 24px 60px -20px #6b1f1f59; }
.flyer-trigger img { width: 100%; border-radius: 15px; }
.flyer-ribbon { position: absolute; top: .75rem; right: .75rem; color: white; background: var(--maroon); border-radius: 99px; padding: 6px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; box-shadow: 0 3px 12px #23171355; }
.hero-flyer figcaption { color: var(--white); margin-top: .65rem; font-size: .875rem; text-align: center; }
@media (max-width: 63.99rem) { .hero { text-align: center; } .hero .actions { justify-content: center; } .hero-description { margin-inline: auto; } }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
  .hero h1 { font-size: clamp(3.6rem, 6.1vw, 6rem); }
}
@media (min-width: 64rem) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .flyer-trigger { transition: transform 300ms ease; }
  .flyer-trigger:hover { transform: scale(1.015); }
}

.flyer-dialog { width: min(94vw, 48rem); max-height: 94dvh; border: 1px solid var(--line); border-radius: 16px; padding: .75rem; background: var(--paper); color: var(--ink); }
.flyer-dialog::backdrop { background: #190e12dd; }
.flyer-dialog .button { position: sticky; top: 0; display: flex; margin: 0 0 .5rem auto; }
.flyer-dialog img { width: 100%; max-height: 79dvh; object-fit: contain; }

.draw-intro h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.draw-perks { display: grid; gap: .5rem; padding: 0; list-style: none; margin: 1.25rem 0; }
.draw-perks li { background: var(--paper); border-radius: 1rem; padding: .55rem .85rem; font-weight: 650; }
.draw-perks li::before { content: '✓'; color: var(--accent); margin-right: .5rem; font-weight: 800; }
.prize { display: grid; width: fit-content; padding: 1rem 1.4rem; border-radius: 1rem; color: white; background: var(--maroon); }
.prize strong { font: bold 3rem/1 var(--serif); }
.prize span { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.prize small { margin-top: .25rem; }
.waitlist .form-panel { border-radius: 20px; box-shadow: 0 20px 50px -30px #6b1f1f66; }
.survey-group { min-width: 0; padding: 0; margin: 0 0 1.5rem; border: 0; }
.survey-group > legend { padding: 0; margin-bottom: .75rem; color: var(--accent); font: bold 1.45rem var(--serif); }
.survey-group > legend span { margin-left: .35rem; font: 650 .8rem var(--sans); color: var(--muted); }
.survey-items { display: grid; gap: 1rem; }
.survey-items > label { display: grid; gap: .4rem; font-weight: 700; }
.survey-items select { width: 100%; min-height: 44px; padding: .65rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--ink); background: var(--cream); }
.choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices legend { padding: 0; font-weight: 700; }
.choices > div { display: flex; flex-wrap: wrap; gap: .25rem .65rem; }
.choices label,.survey-group .check { display: flex; align-items: center; gap: .45rem; min-height: 44px; }
.choices input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--maroon); }
.field-error { color: var(--accent); font-size: .8125rem; }
.field-error:empty { display: none; }
[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.success-mark { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .8rem; border-radius: 50%; background: var(--maroon); color: white; font-size: 1.6rem; }
#success h3 { margin-bottom: .5rem; }
#referral-tools { margin-block: 1rem; }
@media (min-width: 64rem) { .draw-intro { position: sticky; top: 10rem; align-self: start; } }
.hero .flyer-picture, .hero .flyer-picture img { position: static; height: auto; }
.hero .flyer-picture { display: block; }
