/* ---------- brand tokens (inlined from shared/brand/colors.css) ----------
 * Kept inline so the landing site has zero external CSS hops.
 * If you change shared/brand/colors.css, update this block.
 */
:root {
  --bg-deep:        #07090d;
  --bg-base:        #0a0e14;
  --bg-elev:        #11161f;
  --line-soft:      rgba(255, 255, 255, 0.06);
  --line-strong:    rgba(255, 255, 255, 0.12);

  --text-primary:   #e6edf3;
  --text-secondary: #8b949e;
  --text-muted:     #6e7681;

  --accent:         #58a6ff;
  --accent-strong:  #79b8ff;
  --accent-glow:    rgba(88, 166, 255, 0.45);

  --subject-physics:   #ff7eb6;
  --subject-chemistry: #79c0ff;
  --subject-math:      #d2a8ff;

  --success:        #56d364;
  --danger:         #f85149;

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;

  --font-sans:      'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont,
                    'Segoe UI', system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: radial-gradient(ellipse at top, #0d1320 0%, var(--bg-base) 55%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.aurora__blob--a {
  top: -25vmax;
  left: -15vmax;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
}
.aurora__blob--b {
  bottom: -30vmax;
  right: -20vmax;
  background: radial-gradient(circle, var(--subject-math) 0%, transparent 60%);
  animation-duration: 34s;
  animation-direction: alternate-reverse;
}
.aurora__blob--c {
  top: 10vmax;
  right: -10vmax;
  background: radial-gradient(circle, var(--subject-physics) 0%, transparent 60%);
  opacity: 0.35;
  animation-duration: 40s;
}
.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vmax, -3vmax, 0) scale(1.1); }
  100% { transform: translate3d(-3vmax, 5vmax, 0) scale(0.95); }
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 18px rgba(88, 166, 255, 0.35));
}
.brand__mark-svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Twinkle: each star rotates continuously and pulses brightness twice per cycle.
   The rotating 4-pointed shape + scale wobble + offset delays/durations across
   the 11 stars together produce a "light moving around the cap" effect.
   transform-box: fill-box anchors transforms to each star's own centre. */
.brand__mark-svg .star {
  transform-origin: center;
  transform-box: fill-box;
  animation: twinkle 2.4s linear infinite;
  will-change: opacity, transform;
}
.brand__mark-svg .star--1  { animation-delay: 0s;    animation-duration: 2.8s; }
.brand__mark-svg .star--2  { animation-delay: 0.6s;  animation-duration: 2.2s; }
.brand__mark-svg .star--3  { animation-delay: 1.0s;  animation-duration: 3.0s; }
.brand__mark-svg .star--4  { animation-delay: 0.3s;  animation-duration: 1.9s; }
.brand__mark-svg .star--5  { animation-delay: 1.4s;  animation-duration: 2.3s; }
.brand__mark-svg .star--6  { animation-delay: 0.8s;  animation-duration: 1.7s; }
.brand__mark-svg .star--7  { animation-delay: 1.7s;  animation-duration: 2.1s; }
.brand__mark-svg .star--8  { animation-delay: 0.5s;  animation-duration: 2.5s; }
.brand__mark-svg .star--9  { animation-delay: 1.2s;  animation-duration: 2.0s; }
.brand__mark-svg .star--10 { animation-delay: 0.2s;  animation-duration: 1.6s; }
.brand__mark-svg .star--11 { animation-delay: 1.5s;  animation-duration: 2.7s; }
@keyframes twinkle {
  0%   { opacity: 1;    transform: scale(1)    rotate(0deg); }
  25%  { opacity: 0.25; transform: scale(0.4)  rotate(90deg); }
  50%  { opacity: 1;    transform: scale(1.25) rotate(180deg); }
  75%  { opacity: 0.25; transform: scale(0.4)  rotate(270deg); }
  100% { opacity: 1;    transform: scale(1)    rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand__mark-svg .star { animation: none; }
}
.brand__name { font-size: 18px; }
.brand__tld { color: var(--text-secondary); font-weight: 500; }

.topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(86, 211, 100, 0.08);
  border: 1px solid rgba(86, 211, 100, 0.25);
  color: #a8e6b1;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.topbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(86, 211, 100, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(86, 211, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(86, 211, 100, 0); }
}

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(20px, 4vw, 56px) clamp(20px, 5vw, 56px) 40px;
  align-items: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
}

.hero__copy { max-width: 620px; }
.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.hero__title {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero__title--accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--subject-math) 60%, var(--subject-physics) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero__lede {
  margin: 0 0 28px;
  max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
}

.subjects {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subject {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.subject:hover { transform: translateY(-1px); }
.subject__icon { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.subject__icon svg { width: 1.1em; height: 1.1em; display: block; }
.subject--physics   { color: var(--subject-physics); }
.subject--physics:hover   { border-color: var(--subject-physics);   box-shadow: 0 6px 24px -10px var(--subject-physics); }
.subject--chemistry { color: var(--subject-chemistry); }
.subject--chemistry:hover { border-color: var(--subject-chemistry); box-shadow: 0 6px 24px -10px var(--subject-chemistry); }
.subject--math      { color: var(--subject-math); }
.subject--math:hover      { border-color: var(--subject-math);      box-shadow: 0 6px 24px -10px var(--subject-math); }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}
.bullets li { display: flex; gap: 10px; }
.bullets span { color: var(--success); font-weight: 700; }

/* ---------- perks tick list (inside the card, above the form) ----------
   Vertical, scannable list of free study material a visitor will get. Each
   row is a green-tick badge + bold goodie name + subtle one-liner. The badge
   gets a soft halo on row hover so the list feels alive without distracting.
   Stagger-fades in on first paint to draw the eye. */
.perks {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
@media (max-width: 420px) {
  .perks { grid-template-columns: 1fr; }
}
.perks__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(4px);
  animation: perks-in 360ms ease-out forwards;
}
.perks__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.perks__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}
.perks__desc {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-muted);
}
.perks__item:nth-child(1) { animation-delay: 60ms; }
.perks__item:nth-child(2) { animation-delay: 120ms; }
.perks__item:nth-child(3) { animation-delay: 180ms; }
.perks__item:nth-child(4) { animation-delay: 240ms; }
.perks__item:nth-child(5) { animation-delay: 300ms; }
.perks__item:nth-child(6) { animation-delay: 360ms; }
.perks__check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--success);
  background: rgba(86, 211, 100, 0.14);
  border: 1px solid rgba(86, 211, 100, 0.4);
  box-shadow: 0 0 0 0 rgba(86, 211, 100, 0);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.perks__check svg { width: 12px; height: 12px; display: block; }
.perks__item:hover .perks__check {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(86, 211, 100, 0.12);
}
@keyframes perks-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .perks__item { opacity: 1; transform: none; animation: none; }
  .perks__item:hover .perks__check { transform: none; }
}

/* ---------- card ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(160deg, rgba(88, 166, 255, 0.45), rgba(210, 168, 255, 0.18) 50%, rgba(255, 126, 182, 0.25));
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  isolation: isolate;
}
.card__inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, rgba(17, 22, 31, 0.92), rgba(10, 14, 20, 0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
}
.card__face[hidden] { display: none; }

.card__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card__sub {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ---------- form ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; position: relative; }
.field__label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.field__optional { color: var(--text-muted); font-weight: 400; }
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(7, 9, 13, 0.55);
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: rgba(7, 9, 13, 0.78);
}
.field--invalid input,
.field--invalid select {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(248, 81, 73, 0.18);
}
.field__error {
  font-size: 12.5px;
  color: var(--danger);
  min-height: 1em;
  line-height: 1.2;
}

.field__group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(7, 9, 13, 0.55);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field__group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.field__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 14px;
  border-right: 1px solid var(--line-strong);
}
.field__group input {
  border: 0;
  background: transparent;
  border-radius: 0;
}
.field__group input:focus { box-shadow: none; }

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px !important;
}
select option { background: var(--bg-elev); color: var(--text-primary); }

/* ---------- button ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  user-select: none;
}
.btn--primary {
  color: #06121e;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 14px 30px -10px var(--accent-glow);
}
.btn--primary:hover  { transform: translateY(-1px); box-shadow: 0 18px 36px -10px var(--accent-glow); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-glow), 0 14px 30px -10px var(--accent-glow);
}
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn--ghost {
  margin-top: 18px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(6, 18, 30, 0.35);
  border-top-color: #06121e;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn[data-loading="true"] .btn__label   { opacity: 0.6; }
.btn[data-loading="true"] .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- "FREE" angled sticker on the card corner ----------
   Translucent lime-green starburst with a single big "FREE" word. Sits on
   the top-LEFT edge of the card next to the heading. Mostly hangs OUTSIDE
   the card boundary (negative `left`) so it never overlaps body text.
   On narrower screens we tighten the offset and add left padding to the
   title/sub so the sticker still has clear space. Lives inside `.card` as
   a sibling of `.card__inner` (which clips); `.card` itself doesn't clip.
   Aria-hidden because the offer is repeated in the heading and CTA. */
.sticker {
  position: absolute;
  top: -40px;
  left: -60px;
  width: 108px;
  height: 108px;
  z-index: 5;
  pointer-events: none;
  transform: rotate(-12deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 8px 16px rgba(132, 204, 22, 0.4));
  animation: sticker-wiggle 4s ease-in-out infinite;
  will-change: transform;
}
.sticker__burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sticker__copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #052e16;
}
.sticker__big {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
@keyframes sticker-wiggle {
  0%, 100% { transform: rotate(-12deg) scale(1);    }
  50%      { transform: rotate(-6deg)  scale(1.05); }
}
/* Below 880px the hero stacks (card spans full width) — sticker can no
   longer hang off the left edge cleanly, so we tuck it inside the corner
   and reserve space in the title/sub for it. */
@media (max-width: 880px) {
  .sticker { width: 80px; height: 80px; top: -14px; left: -12px; }
  .sticker__big { font-size: 22px; }
  .card__title, .card__sub { padding-left: 70px; }
}
@media (max-width: 420px) {
  .sticker { width: 68px; height: 68px; top: -12px; left: -10px; }
  .sticker__big { font-size: 18px; }
  .card__title, .card__sub { padding-left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
}

/* "FREE" highlight inside the primary button — gold pill with a soft pulse
   so it's the first word the eye lands on. */
.btn__free {
  display: inline-block;
  margin: 0 4px;
  padding: 1px 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1100;
  background: linear-gradient(135deg, #ffe066 0%, #ffb028 100%);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 200, 60, 0.45);
  animation: free-pulse 2.4s ease-in-out infinite;
  will-change: transform, box-shadow;
}
.btn--primary:hover .btn__free { box-shadow: 0 0 18px rgba(255, 200, 60, 0.7); }
@keyframes free-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 12px rgba(255, 200, 60, 0.45); }
  50%      { transform: scale(1.07); box-shadow: 0 0 22px rgba(255, 200, 60, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .btn__free { animation: none; }
}

.form__legal {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- thank you ---------- */
.thanks { text-align: center; padding: 8px 4px; animation: fadeUp 0.45s ease both; }
.thanks__check {
  width: 84px;
  height: 84px;
  margin: 6px auto 18px;
}
.thanks__check svg { width: 100%; height: 100%; }
.thanks__check-circle {
  stroke: var(--success);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: drawCircle 0.5s ease forwards;
}
.thanks__check-tick {
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawTick 0.35s 0.45s ease forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawTick   { to { stroke-dashoffset: 0; } }
@keyframes fadeUp     { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.thanks__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.thanks__body {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.thanks__body strong { color: var(--text-primary); }
.thanks__small { margin: 0; color: var(--text-muted); font-size: 13px; }

/* ---------- footer ---------- */
.footer {
  padding: 24px clamp(20px, 5vw, 56px) 28px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer__line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.footer__link--soon { text-decoration: line-through; opacity: 0.7; cursor: not-allowed; }

/* ---------- accessibility / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora__blob,
  .topbar__dot,
  .thanks__check-circle,
  .thanks__check-tick { animation: none !important; }
  .thanks__check-circle { stroke-dashoffset: 0; }
  .thanks__check-tick   { stroke-dashoffset: 0; }
}
