/* BirdieBrain marketing site.
   A sunlit course: sky, fairway and flag colours, rounded friendly shapes.
   Greens match the app at app.thebirdiebrain.com (#16a34a); dark sections
   use the app's charcoal (--night*) so the jump into the app feels familiar. */
:root {
  --sky-top: #cfe9f3;
  --sky: #e8f5f1;
  --mist: #f5faf6;
  --paper: #ffffff;
  --fairway: #16a34a;
  --fairway-dark: #0f7a36;
  --grass: #4cbf6b;
  --pine: #0e2a1f;
  --ink: #12261c;
  --muted: #4d6157;
  --line: #d6e5dc;
  --flag: #ffcf3a;
  --flag-ink: #5a4300;
  --danger: #b42318;

  /* Dark surfaces, matched to the app (birdiebrain-frontend tailwind + index.css) */
  --night: #0b0e13;
  --night-raised: #151a21;
  --night-line: #252b35;
  --night-text: #d2d9e2;
  --night-muted: #b7c0cc;
  --night-faint: #9aa4b2;

  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.6rem, 5.6vw, 4.6rem);

  --wrap: 74rem;
  --r-sm: 10px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 0 1px 2px rgba(14, 42, 31, .06), 0 12px 32px -12px rgba(14, 42, 31, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--mist); overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--fairway-dark); }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--fairway); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--pine); }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .75rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header: floats over the sky, gains a backing once you scroll */
.site-header { position: sticky; top: 0; z-index: 30; transition: background .25s, box-shadow .25s; }
.site-header[data-scrolled="true"] { background: rgba(245, 250, 246, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--pine); text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1.3rem; }
.logo:hover { color: var(--pine); }
.logo-mark { width: 2rem; height: 2rem; transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:hover { color: var(--fairway-dark); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--paper); }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--flag); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.nav-toggle { display: none; background: var(--paper); border: 1px solid var(--line); color: var(--pine); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: var(--step--1); font-weight: 600; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 4.5rem; left: .75rem; right: .75rem; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-radius: var(--r); box-shadow: var(--shadow); }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem 0; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; font-size: var(--step--1);
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--fairway); color: var(--paper); box-shadow: 0 6px 16px -6px rgba(22, 163, 74, .6); }
.btn-primary:hover { background: var(--fairway-dark); color: var(--paper); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(22, 163, 74, .7); }
.btn-soft { background: var(--paper); color: var(--pine); border-color: var(--line); }
.btn-soft:hover { border-color: var(--fairway); color: var(--pine); }
.btn-dark { background: var(--night); color: var(--paper); }
.btn-dark:hover { background: var(--night-raised); color: var(--paper); transform: translateY(-1px); }
.btn-lg { font-size: var(--step-0); padding: 1rem 1.6rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn[hidden] { display: none; }

/* ---------- Hero: the course in morning light ---------- */
.hero { position: relative; margin-top: -4.5rem; padding-top: 4.5rem; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 60%, #dff1e5 100%); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { display: flex; align-items: center; gap: .55rem; font-size: var(--step--1); color: var(--muted); margin-top: 1.25rem; }
.hero-note .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--fairway); flex: none; }
.clouds { position: absolute; inset: 0 0 auto 0; height: 60%; z-index: 0; pointer-events: none; }
.course { position: relative; z-index: 1; margin-top: -3.5rem; pointer-events: none; }
.course svg { width: 100%; height: auto; }
@media (max-width: 979px) { .course { margin-top: -1rem; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-note .dot { animation: pulse 2.4s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } }
  .ball-flight { stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: flight 2.4s var(--ease) .8s forwards; }
  .ball-landed { opacity: 0; animation: appear .3s ease-out 3.1s forwards; }
  .flag-cloth { transform-box: fill-box; transform-origin: left center; animation: wave 2.6s ease-in-out infinite; }
  .cloud { animation: drift 70s linear infinite; }
  .cloud.slow { animation-duration: 110s; animation-delay: -40s; }
  @keyframes flight { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
  @keyframes wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.9); } }
  @keyframes drift { from { transform: translateX(-25vw); } to { transform: translateX(110vw); } }
}
@media (prefers-reduced-motion: reduce) { .ball { display: none; } .ball-flight { stroke-dasharray: 4 10; } }

/* The app card that floats in the hero (styled like the real app) */
.app-card {
  background: #151a21; color: #f4f6fa; border-radius: var(--r); padding: 1.4rem; font-size: .93rem; line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 40px 70px -24px rgba(14, 42, 31, .55); border: 1px solid #2b333d;
}
.hero .app-card { transform: rotate(1.2deg); position: relative; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .hero .app-card { animation: card-in .9s var(--ease) .2s both, bob 7s ease-in-out 1.2s infinite; }
  @keyframes card-in { from { opacity: 0; transform: translateY(24px) rotate(3deg); } to { opacity: 1; transform: rotate(1.2deg); } }
  @keyframes bob { 0%, 100% { transform: rotate(1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(-8px); } }
}
.app-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid #2b333d; padding-bottom: .9rem; margin-bottom: .9rem; }
.avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #10331f; color: #86efac; font-weight: 700; font-size: .85rem; flex: none; }
.who { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.who strong { display: block; }
.who span { color: #9aa4b2; font-size: .8rem; }
.app-label { color: #86efac; font-weight: 600; font-size: .85rem; margin: 0 0 .6rem; }
.app-card dl { margin: 0; display: grid; gap: .8rem; }
.app-card dt { color: #9aa4b2; font-size: .78rem; }
.app-card dd { margin: 0; }
.drills { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .4rem; }
.drills li { display: flex; justify-content: space-between; gap: .75rem; background: #0f1218; border: 1px solid #252b35; border-radius: 10px; padding: .5rem .7rem; }
.tag { font-size: .72rem; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; align-self: center; }
.tag-due { background: #10331f; color: #86efac; }
.tag-late { background: #3a2a0c; color: #fcd34d; }
.tag-done { background: #1a2b45; color: #93c5fd; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-white { background: var(--paper); }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* Scroll reveal: only when JS has run and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* Lesson tour: three tabs drive the app screen */
.tour { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 940px) { .tour { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; } }
.tour-tabs { display: grid; gap: .75rem; }
.tour-tab {
  text-align: left; font: inherit; color: inherit; background: var(--mist); border: 2px solid transparent; border-radius: var(--r);
  padding: 1.1rem 1.25rem 1.2rem; cursor: pointer; position: relative; overflow: hidden; transition: background .2s, border-color .2s, box-shadow .2s;
}
.tour-tab:hover { border-color: var(--line); }
.tour-tab[aria-selected="true"] { background: var(--paper); border-color: var(--fairway); box-shadow: var(--shadow); }
.tour-tab .when { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--fairway-dark); background: #e2f5e8; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .45rem; }
.tour-tab strong { display: block; font-family: var(--display); font-stretch: 112%; font-size: 1.2rem; color: var(--pine); margin-bottom: .25rem; }
.tour-tab .desc { display: block; color: var(--muted); font-size: .95rem; }
.tour-tab .timer { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--flag); }
.tour-tab[aria-selected="true"] .timer.run { animation: timer 7s linear forwards; }
@keyframes timer { to { width: 100%; } }
.tour-stage { position: relative; background: linear-gradient(160deg, #dff3e6, #cfe9f3); border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 2rem); }
.tour-panel { animation: panel-in .45s var(--ease); }
.tour-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour-panel, .js .stepped .step.current { animation: none; } .tour-tab .timer { display: none; } }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .5rem 0 1rem; }
.mini-stats div { background: #0f1218; border: 1px solid #252b35; border-radius: 10px; padding: .55rem .6rem; }
.mini-stats b { display: block; font-size: 1.1rem; }
.mini-stats small { color: #9aa4b2; font-size: .72rem; }
.bars { display: grid; gap: .5rem; }
.bar { display: grid; grid-template-columns: 4.4rem 1fr 3.6rem; align-items: center; gap: .5rem; font-size: .8rem; color: #b7c0cc; }
.bar i { display: block; height: .55rem; border-radius: 999px; background: #22c55e; width: var(--w); }
.bar em { font-style: normal; text-align: right; color: #f4f6fa; }
@media (prefers-reduced-motion: no-preference) {
  .tour-panel .bar i { animation: grow .9s var(--ease) both; }
  .tour-panel .bar:nth-child(2) i { animation-delay: .08s; }
  .tour-panel .bar:nth-child(3) i { animation-delay: .16s; }
  .tour-panel .bar:nth-child(4) i { animation-delay: .24s; }
  @keyframes grow { from { width: 0; } }
}
.field-mock { background: #0f1218; border: 1px solid #252b35; border-radius: 10px; padding: .55rem .7rem; margin-top: .25rem; color: #d2d9e2; }
.field-mock.private { border-style: dashed; color: #9aa4b2; }
.mock-actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.mock-btn { background: #16a34a; color: #fff; border-radius: 8px; padding: .4rem .8rem; font-size: .8rem; font-weight: 600; }
.mock-btn.ghost { background: transparent; border: 1px solid #333a45; color: #d2d9e2; }

/* Shot playground */
.range { background: var(--night); color: var(--night-text); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 940px) { .range { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }
.range h2 { color: var(--paper); }
.range p { color: var(--night-muted); }
.week-switch { display: inline-flex; flex-wrap: wrap; background: var(--night-raised); border-radius: 999px; padding: .3rem; gap: .25rem; margin: .25rem 0 1.5rem; }
.week-switch button { font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--night-muted); background: transparent; border: 0; border-radius: 999px; padding: .55rem 1rem; cursor: pointer; transition: background .2s, color .2s; }
.week-switch button:hover { color: var(--paper); }
.week-switch button[aria-pressed="true"] { background: var(--fairway); color: var(--paper); }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.readout { background: var(--night-raised); border: 1px solid var(--night-line); border-radius: var(--r-sm); padding: .8rem .9rem; }
.readout b { display: block; font-family: var(--display); font-stretch: 112%; font-size: 1.6rem; color: var(--paper); font-variant-numeric: tabular-nums; line-height: 1.2; }
.readout small { color: var(--night-faint); font-size: .8rem; }
.target-wrap { background: radial-gradient(ellipse at 50% 35%, #34935a 0%, #237243 60%, #1b5e39 100%); border-radius: var(--r); padding: .75rem; }
.target-wrap svg { width: 100%; height: auto; }
.target-cap { display: flex; justify-content: space-between; color: var(--night-muted); font-size: .8rem; margin-top: .6rem; gap: 1rem; }
.shot-dot { transition: transform .8s var(--ease), opacity .4s; }
@media (prefers-reduced-motion: reduce) { .shot-dot { transition: none; } }
.range-small { font-size: .8rem; color: var(--night-faint); margin: 1rem 0 0; }

/* Features */
.features { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--paper); border-radius: var(--r); padding: 1.5rem; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { width: 2.75rem; height: 2.75rem; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: #e2f5e8; color: var(--fairway-dark); }
.feature .ico svg { width: 1.5rem; height: 1.5rem; }
.feature:nth-child(3n+2) .ico { background: #fff3c8; color: #8a6400; }
.feature:nth-child(3n) .ico { background: #dcf0f7; color: #1d6b86; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Students */
.student-strip { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .student-strip { grid-template-columns: 1fr 1fr; } }
.phone { width: min(100%, 20rem); margin-inline: auto; background: #0b0e13; border-radius: 2.6rem; padding: .7rem; box-shadow: 0 30px 60px -20px rgba(14, 42, 31, .45); transform: rotate(-2deg); }
.phone .app-card { border-radius: 2rem; padding: 1.1rem 1rem 1.4rem; box-shadow: none; border: 0; }
.notch { width: 5rem; height: .35rem; background: #252b35; border-radius: 999px; margin: 0 auto 1rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #e2f5e8; }
.checklist li::after { content: ""; position: absolute; left: .38rem; top: .5em; width: .5rem; height: .28rem; border-left: 2px solid var(--fairway-dark); border-bottom: 2px solid var(--fairway-dark); transform: rotate(-45deg); }

/* Founding Coach band */
.founding { background: var(--flag); color: var(--pine); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .founding { grid-template-columns: 1.4fr 1fr; } }
.founding p { color: var(--flag-ink); }
.price-big { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(4rem, 9vw, 6rem); line-height: .95; }
.price-big small { display: block; font-family: var(--body); font-size: 1rem; font-weight: 500; margin-top: .6rem; color: var(--flag-ink); letter-spacing: 0; }
.tees { display: flex; gap: .5rem; margin-top: 1.4rem; flex-wrap: wrap; }
.tees svg { width: 1.5rem; height: 2.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .tees.in svg { animation: tee-pop .5s var(--ease) both; }
  .js .tees svg { opacity: 0; }
  .js .tees.in svg { opacity: 1; }
  @keyframes tee-pop { from { opacity: 0; transform: translateY(10px) scale(.6); } to { opacity: 1; transform: none; } }
}
.tees-cap { font-size: .85rem; color: var(--flag-ink); margin: .5rem 0 0; }

/* Inner page heads */
.page-head { position: relative; margin-top: -4.5rem; padding: calc(4.5rem + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(5rem, 9vw, 7rem); background: linear-gradient(180deg, var(--sky-top), var(--sky)); overflow: hidden; }
.page-head h1 { max-width: 16ch; font-size: clamp(2.4rem, 5vw, 3.75rem); position: relative; z-index: 1; }
.page-head p { color: var(--muted); font-size: var(--step-1); position: relative; z-index: 1; }
.page-head .hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; }

/* Pricing */
.billing { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; gap: .25rem; margin-bottom: 2rem; }
.billing button { font: inherit; font-size: var(--step--1); font-weight: 600; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--night); color: var(--paper); }
.save { background: var(--flag); color: var(--pine); font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; margin-left: .3rem; }
.plans { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
@media (min-width: 940px) { .plans { grid-template-columns: 1.1fr 1fr 1fr; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-featured { background: var(--night); color: var(--night-text); border-color: var(--night-line); }
.plan-featured h3, .plan-featured .plan-price { color: var(--paper); }
.plan-featured li, .plan-featured .plan-sub { color: var(--night-muted); }
.plan h3 { font-size: var(--step-2); margin-bottom: .25rem; }
.plan-price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 2.6rem; line-height: 1.1; margin: .75rem 0 .25rem; color: var(--pine); font-variant-numeric: tabular-nums; }
.plan-price span { font-family: var(--body); font-weight: 500; font-size: var(--step--1); }
.plan-sub { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.25rem; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .8rem; height: .45rem; border-left: 2.5px solid var(--fairway); border-bottom: 2.5px solid var(--fairway); transform: rotate(-45deg); }
.plan-featured li::before { border-color: #22c55e; }
.plan .btn { align-self: flex-start; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; background: #e2f5e8; color: var(--fairway-dark); margin-bottom: .75rem; align-self: flex-start; }
.plan-featured .pill { background: #10331f; color: #86efac; }

.faq { max-width: 48rem; display: grid; gap: .75rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 1.25rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--fairway); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 980px) { .form-layout { grid-template-columns: 1fr 1.25fr; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .45rem; margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .97rem; padding: 0; margin-bottom: .45rem; }
.field > label { margin-bottom: 0; }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.field input:not([type="radio"]), .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8rem .95rem; border: 1.5px solid #c3d4c9; border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fairway); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: .6rem 1rem; border: 1.5px solid #c3d4c9; border-radius: 999px; cursor: pointer; font-size: .95rem; font-weight: 500; transition: background .15s, border-color .15s, color .15s; background: var(--paper); }
.chips span:hover { border-color: var(--fairway); }
.chips input:checked + span { background: var(--night); border-color: var(--night); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--fairway); outline-offset: 2px; }
.field-error { color: var(--danger); font-size: .88rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-sm); font-size: var(--step--1); }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e3f6e9; color: #14532d; border: 1px solid #a7dfba; }
.form-status.err { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; }

/* Step-by-step application (JS shows one step at a time; without JS all show) */
.progress { display: none; gap: .4rem; margin-bottom: 1.5rem; }
.js .progress { display: flex; }
.progress i { flex: 1; height: .4rem; border-radius: 999px; background: var(--line); transition: background .3s; }
.progress i.on { background: var(--fairway); }
.step-title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.45rem; color: var(--pine); margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.js .stepped .step:not(.current) { display: none; }
.js .stepped .step.current { animation: panel-in .4s var(--ease); }
.step + .step { margin-top: 1.5rem; }
.js .step + .step { margin-top: 0; }
.step-nav { display: none; justify-content: space-between; gap: .75rem; align-items: center; margin-top: .5rem; }
.js .step-nav { display: flex; }
.js .no-js-only { display: none; }
.form-done { text-align: center; padding: 1rem 0; }
.form-done svg { width: 8rem; margin: 0 auto 1rem; }
.form-done h2 { font-size: var(--step-2); }
.form-done p { margin-inline: auto; color: var(--muted); }

.perks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.perks li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; }
.perks .ico { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #e2f5e8; color: var(--fairway-dark); display: grid; place-items: center; }
.perks li:nth-child(2) .ico { background: #fff3c8; color: #8a6400; }
.perks li:nth-child(3) .ico { background: #dcf0f7; color: #1d6b86; }
.perks .ico svg { width: 1.35rem; height: 1.35rem; }
.perks strong { display: block; color: var(--pine); }
.perks span { color: var(--muted); font-size: .95rem; }
.journey { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: s; display: grid; }
.journey li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; padding-bottom: 1.4rem; position: relative; }
.journey li::before { content: counter(s); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--fairway); color: var(--fairway-dark); display: grid; place-items: center; font-weight: 800; font-family: var(--display); position: relative; z-index: 1; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.4rem; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--fairway) 0 4px, transparent 4px 9px); }
.journey li:last-child::before { content: ""; background: var(--flag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4v16' stroke='%230e2a1f' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M9 4.5l8 3.5-8 3.5z' fill='%230e2a1f'/%3E%3C/svg%3E") center / 1.2rem no-repeat; border-color: var(--flag); }
.journey strong { display: block; color: var(--pine); padding-top: .35rem; }
.journey span { color: var(--muted); font-size: .95rem; }

/* About */
.prose p { font-size: var(--step-1); line-height: 1.7; }
.team { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .team { grid-template-columns: 1fr 1fr; } }
.person { display: flex; gap: 1rem; align-items: center; background: var(--mist); border-radius: var(--r); padding: 1.25rem; }
.person .avatar { width: 3.5rem; height: 3.5rem; font-size: 1.2rem; background: #10331f; color: #86efac; }
.person h3 { margin-bottom: .1rem; }
.person p { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); padding: 4rem 0 2.5rem; font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer .logo { color: var(--paper); margin-bottom: .75rem; }
.site-footer h2 { color: var(--paper); font-size: 1rem; margin-bottom: .75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #86efac; }
.site-footer p { margin: 0; max-width: 34ch; }
.footer-cta { margin-top: 1.25rem; }
.site-footer .footer-base { border-top: 1px solid var(--night-line); margin-top: 2.5rem; padding-top: 1.5rem; max-width: none; }

.center { text-align: center; }
.center p, .center .section-head { margin-inline: auto; }

/* Phone tweaks */
@media (max-width: 700px) {
  .clouds { display: none; }
  .course { margin-top: 1.5rem; }
  .course svg { height: 130px; }
  .readout { padding: .7rem .6rem; }
  .readout b { font-size: 1.15rem; }
  .readout small { font-size: .72rem; }
  .hero .app-card { transform: none; }
}
