/* Academia Korea — site styles.
   Colors and type mirror the brand kit (/tokens.css). Accent text colors are
   darkened variants so small text keeps 4.5:1 contrast. */

:root {
  --navy: #17375D;
  --navy-hover: #285580;
  --sky: #298DCD;
  --sky-text: #1D74AD;
  --pink: #E96187;
  --cream: #FFF9F1;
  --canvas: #FFFDF9;
  --surface: #FFFFFF;
  --text: #203955;
  --muted: #5F7287;
  --border: #E4EAF0;
  --input-border: #CBD6E1;
  --error: #C7375F;
  --success: #137A57;

  --shadow-card: 0 12px 38px rgba(28, 57, 92, .075);
  --shadow-soft: 0 5px 22px rgba(28, 57, 92, .055);

  --font-display: "Nunito", "Pretendard Variable", Pretendard, sans-serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-hand: "Patrick Hand", "Nunito", cursive;

  --max-width: 1250px;
  --gutter: 30px;
  --header-h: 84px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Korean: break between words, never mid-word. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1.5px solid var(--navy);
  font-weight: 750;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px #15365919; }
.btn.primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn.outline { background: #ffffffd7; color: var(--navy); }
.btn.outline:hover { background: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
  border-bottom: 1px solid #ecf0f4;
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 55, 93, .07); }

.nav {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.brand-mark { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -.6px;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
}
.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .6px;
  line-height: 1;
  margin-top: 6px;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  margin-left: auto;
  font-weight: 650;
  font-size: 15px;
}
.nav-links a { padding: 8px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--sky-text); }
.nav-links .nav-menu-cta { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 5px 12px #19375d24;
  transition: background-color .2s;
}
.nav-cta:hover { background: var(--navy-hover); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s, opacity .2s;
}
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--canvas);
}

.hero-inner {
  min-height: 620px;
  padding-top: 72px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content { position: relative; z-index: 1; }

.eyebrow,
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sky-text);
}

.hero h1 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(42px, 4.35vw, 66px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -1.5px;
  max-width: 740px;
  margin: 16px 0 20px;
}
.hero h1 span { color: var(--sky); }

.hero-desc {
  color: #5E6872;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.75;
  max-width: 520px;
  margin: 0;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Photo bleeds off the right edge on desktop; stacks under the copy on mobile. */
.hero-media {
  position: absolute;
  inset: 0 0 0 43%;
  margin: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--canvas) 0%,
    rgba(255, 253, 249, .94) 7%,
    rgba(255, 253, 249, .7) 17%,
    rgba(255, 253, 249, .35) 29%,
    rgba(255, 253, 249, .1) 40%,
    rgba(255, 253, 249, 0) 50%);
  pointer-events: none;
}

/* Decorative stickers sit in the empty space left of / below the child, never on her face.
   Offsets track the image crop (object-position 70%), so they stay clear at every desktop width. */
.hero-sticker,
.hero-sun,
.hero-tag {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.hero-sticker {
  top: 64px;
  left: calc(70% - 390px);
  transform: rotate(-8deg);
  padding: 12px 24px;
  border: 3px solid #f59ba6;
  border-radius: 48% 52% 50% 48%;
  background: rgba(255, 255, 255, .55);
  color: #e06a7b;
  font: 28px/1 var(--font-hand);
  white-space: nowrap;
}
.hero-sticker::after { content: ' ♡'; }
.hero-sun {
  top: 26px;
  right: 5%;
  color: #f7b824;
  font: 800 72px/1 var(--font-hand);
}
.hero-tag {
  right: 4%;
  bottom: 58px;
  transform: rotate(6deg);
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  color: var(--navy);
  font: 26px/1.12 var(--font-hand);
  text-align: center;
}
.hero-tag .heart { color: var(--pink); }

.hero-mini {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: flex;
  gap: 25px;
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.hero-mini li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 140px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--navy);
}
.hero-mini img { width: 50px; height: 50px; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-heading { text-align: center; margin-bottom: 36px; }
.section-heading h2 {
  font: 900 clamp(30px, 3vw, 42px)/1.25 var(--font-display);
  color: var(--navy);
  letter-spacing: -.8px;
  margin: 9px 0 10px;
}
.section-heading p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; }

/* ---------- Programs ---------- */

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  border-radius: 24px;
  border: 1px solid #ebedf0;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.program::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: 64% center;
}
.program::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--wash), var(--wash) 17%, color-mix(in srgb, var(--wash) 82%, transparent) 38%, transparent 85%);
}
.program.english { --wash: #EAF6FF; --accent: #1A6CA8; }
.program.math    { --wash: #EAF9EB; --accent: #177A4B; }
.program.science { --wash: #FFF1E8; --accent: #B0521C; }
.program.english::before { background-image: url('../photos/english-boy.webp'); }
.program.math::before    { background-image: url('../photos/math-boy.webp'); }
.program.science::before { background-image: url('../photos/science-girl.webp'); }

.program-icon { width: 47px; height: 47px; margin-bottom: 8px; }
.program h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 900 27px/1.2 var(--font-display);
  color: var(--navy);
  margin: 0 0 8px;
}
.program .status {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 8px;
}
.program .tagline {
  font-size: 13px;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 12px;
  max-width: 230px;
}
.program-desc {
  max-width: 205px;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.6;
  margin: 0 0 20px;
}
.program-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #d1dce4;
  border-radius: 999px;
  background: #fffffff0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  transition: border-color .2s, background-color .2s;
}
.program-cta:hover { border-color: var(--navy); background: #fff; }
/* Stretch the CTA's hit area over the whole card. */
.program-cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

@media (hover: hover) {
  .program { transition: translate .25s ease, box-shadow .25s ease; }
  .program::before { transition: transform .6s ease; }
  .program:hover { translate: 0 -4px; box-shadow: var(--shadow-card); }
  .program:hover::before { transform: scale(1.04); }
  .program:hover .program-cta { border-color: var(--navy); background: #fff; }
}

/* ---------- How it works ---------- */

.how-wrap {
  background: var(--cream);
  border-radius: 48px;
  padding: 68px 0;
  margin: 12px 0;
}

.step-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.step {
  background: #fff;
  border: 1px solid #f3eee9;
  border-radius: 24px;
  padding: 27px 25px 24px;
  box-shadow: var(--shadow-soft);
}
.step-illustration { height: 85px; display: flex; justify-content: center; align-items: center; }
.step-illustration img { width: 77px; height: 77px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #2B85C0;
  color: #fff;
  font: 900 16px var(--font-display);
}
.step:nth-child(2) .number { background: #5A82CF; }
.step:nth-child(3) .number { background: #2C8F8D; }
.step:nth-child(4) .number { background: #2E8E73; }
.step h3 { font: 900 20px var(--font-display); color: var(--navy); margin: 0; }
.step p { font-size: 14px; line-height: 1.7; margin: 11px 0 0; color: var(--muted); }

/* ---------- Progress / promise ---------- */

.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.promise-visual { position: relative; padding-bottom: 64px; }
.promise-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 90% 40%;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}
/* Sits over the bottom-right of the photo (the tablet), clear of the family's faces. */
.report {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: 260px;
  background: #fff;
  border-radius: 21px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(22, 65, 103, .2);
  transform: rotate(-3deg);
}
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.chip {
  background: #E7F6ED;
  color: var(--success);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.bars {
  display: flex;
  gap: 9px;
  align-items: end;
  height: 97px;
  margin: 15px 0 12px;
  border-bottom: 2px solid #E7ECF2;
}
.bars i { display: block; width: 35px; border-radius: 7px 7px 0 0; background: #A0D8FC; }
.bars i:nth-child(1) { height: 32px; }
.bars i:nth-child(2) { height: 47px; background: #8ADAC1; }
.bars i:nth-child(3) { height: 61px; background: #FFC86A; }
.bars i:nth-child(4) { height: 81px; background: #62B7E9; }
.report-note { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 8px 0 0; }
.report-note strong { color: var(--navy); }
.report-sample {
  position: absolute;
  right: 18px;
  bottom: -11px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.promise-text h2 {
  color: var(--navy);
  font: 900 clamp(30px, 3vw, 44px)/1.25 var(--font-display);
  margin: 11px 0 16px;
}
.promise-text > p { color: var(--muted); line-height: 1.8; max-width: 520px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; font-weight: 650; }
.ticks li span { color: #178560; font-weight: 900; }

/* ---------- Split sections (middle school, parents) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.split-text h2 {
  color: var(--navy);
  font: 900 clamp(30px, 3vw, 44px)/1.25 var(--font-display);
  margin: 11px 0 16px;
}
.split-text > p { color: var(--muted); line-height: 1.8; max-width: 520px; margin: 0; }
.split-text .btn { margin-top: 26px; }

.split-photo { position: relative; margin: 0; }
.split-photo > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}
.teen-photo > img { object-position: 72% 40%; }
.family-photo > img { object-position: 55% 45%; }

/* Top-left of the teen photos is always the bright window, away from faces. */
.photo-sticker {
  position: absolute;
  top: 24px;
  left: 24px;
  transform: rotate(-7deg);
  padding: 10px 20px;
  border: 3px solid #f59ba6;
  border-radius: 48% 52% 50% 48%;
  background: rgba(255, 255, 255, .75);
  color: #e06a7b;
  font: 24px/1 var(--font-hand);
  white-space: nowrap;
  pointer-events: none;
}

.parents-wrap {
  background: #F1F8FD;
  border-radius: 48px;
  padding: 72px 0;
  margin: 12px 0;
}
.parent-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.parent-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid #E3EEF6;
  border-radius: 18px;
  background: #fff;
}
.parent-points img { width: 48px; height: 48px; flex-shrink: 0; }
.parent-points h3 { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--navy); margin: 2px 0 4px; }
.parent-points p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Contact ---------- */

.contact { padding: 64px 0 88px; }

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  align-items: center;
  padding: 52px;
  border-radius: 33px;
  background: linear-gradient(110deg, #193C66, #245D8B);
  color: #fff;
}
.contact-intro { padding-top: 8px; }
.contact-intro .kicker { color: #A9D6F5; }
.contact-intro h2 { font: 900 clamp(28px, 3vw, 38px)/1.3 var(--font-display); margin: 10px 0 14px; }
.contact-intro > p { color: #D6E7F5; line-height: 1.75; margin: 0; max-width: 460px; }

.contact-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-steps li { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.contact-steps li span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font: 900 15px var(--font-display);
}

.contact-intro .contact-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #D6E7F5;
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
}
.contact-intro .contact-note img { width: 36px; height: 36px; flex-shrink: 0; }

.contact-channels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact-channels a { text-decoration: underline; text-underline-offset: 3px; }

.form-card {
  background: #fff;
  color: var(--text);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(9, 30, 56, .25);
}

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

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.field .optional { font-weight: 500; font-size: 12px; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background: #fff;
  font-size: 16px; /* 16px+ keeps iOS from zooming on focus */
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%2317375D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.field select:invalid { color: #8A9AAB; }
.field select option { color: var(--text); }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8A9AAB; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(41, 141, 205, .18);
}
.field.has-error input,
.field.has-error select { border-color: var(--error); }
.field.is-prefilled select { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41, 141, 205, .18); }

.field-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #F5F8FB;
}
.consent .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.consent .check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.consent details { margin: 8px 0 0 30px; font-size: 13px; color: var(--muted); }
.consent summary {
  cursor: pointer;
  width: fit-content;
  color: var(--sky-text);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0; }
.consent dt { font-weight: 700; color: var(--text); white-space: nowrap; }
.consent dd { margin: 0; }
.consent details p { margin: 0; }
.consent details a { color: var(--sky-text); text-decoration: underline; }
.consent.has-error { box-shadow: inset 0 0 0 1.5px var(--error); }
.consent .field-error { margin-left: 30px; }

.form-submit { width: 100%; }
.form-status { margin: 12px 0 0; font-size: 14px; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

.form-success { text-align: center; padding: 28px 8px; outline: none; }
.form-success img { width: 72px; height: 72px; margin: 0 auto 14px; }
.form-success h3 { font: 900 24px/1.3 var(--font-display); color: var(--navy); margin: 0 0 10px; }
.form-success p { color: var(--muted); line-height: 1.7; margin: 0 0 22px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 44px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
}
.footer .brand-mark { width: 40px; height: 40px; }
.footer .brand-name { font-size: 20px; }
.footer-brand p { margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; color: var(--text); }
.footer-links a { padding: 6px 0; }
.footer-links a:hover { color: var(--sky-text); }
.footer-links .privacy-link { font-weight: 800; color: var(--navy); }
.footer-biz { grid-column: 1 / -1; margin: 0; line-height: 1.7; }
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

/* Floating "apply" button on phones (shown by JS between the hero and the form). */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav-links { gap: 20px; font-size: 14px; }
  .hero-sticker, .hero-sun, .hero-tag { display: none; }
  .hero-media { left: 40%; }
  .program-grid { gap: 12px; }
  .program { padding: 22px; }
  .program-desc { max-width: 175px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 40px; gap: 36px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; --gutter: 24px; }

  .nav { gap: 12px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 22px; }
  .brand-sub { font-size: 11px; margin-top: 5px; }
  .nav-cta { margin-left: auto; padding: 11px 16px; font-size: 14px; }

  /* Collapsible menu (only when JS is available to open it). */
  .js .menu-toggle { display: inline-flex; }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(23, 55, 93, .1);
    font-size: 17px;
  }
  .js .site-header.is-open .nav-links { display: flex; }
  .js .nav-links a { padding: 15px 4px; border-bottom: 1px solid #EEF2F6; }
  .js .nav-links .nav-menu-cta {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 15px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 750;
  }
  html:not(.js) .nav-links { display: none; }

  /* Hero: copy, then photo, then the four promises — nothing overlaps the photo. */
  .hero { background: var(--canvas); }
  .hero-inner { min-height: 0; padding-top: 44px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(36px, 7.4vw, 54px); letter-spacing: -1px; margin: 12px 0 16px; }
  .hero-desc { font-size: 17px; max-width: 560px; }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    margin-top: 28px;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }
  .hero-media::after { display: none; }
  .hero-media img { object-position: 72% 35%; }
  .hero-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
    margin-top: 16px;
  }
  .hero-mini li {
    flex-direction: row;
    text-align: left;
    gap: 10px;
    max-width: none;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
  }
  .hero-mini img { width: 38px; height: 38px; flex-shrink: 0; }
  .hero-mini br { display: none; }

  .section { padding: 56px 0; }

  .program-grid { grid-template-columns: 1fr; gap: 14px; }
  .program { min-height: 250px; padding: 24px; }
  .program::before { background-position: 75% 30%; }
  .program::after { background: linear-gradient(90deg, var(--wash), var(--wash) 30%, color-mix(in srgb, var(--wash) 80%, transparent) 50%, transparent 90%); }
  .program-desc { max-width: 60%; }

  .promise { grid-template-columns: 1fr; gap: 28px; }
  .promise-visual { padding-bottom: 0; }
  .report {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: 270px;
    margin: -44px 10px 0 auto;
  }

  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-photo > img { border-radius: 24px; }
  .photo-sticker { top: 16px; left: 16px; font-size: 20px; padding: 8px 16px; }
  .parents-wrap { padding: 56px 0; }

  .contact { padding: 40px 0 64px; }
  .contact-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .contact-intro { padding-top: 0; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .hero-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-mini li { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .nav-cta { display: none; }
  .js .menu-toggle { margin-left: auto; }
  html:not(.js) .nav-cta { display: inline-flex; }

  .hero-media { aspect-ratio: 4 / 3; }
  .hero-buttons .btn { flex: 1 1 auto; }

  .how-wrap, .parents-wrap { border-radius: 28px; padding: 48px 0; }
  .step-grid { grid-template-columns: 1fr; gap: 12px; }
  .step {
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 14px;
    padding: 18px;
  }
  .step-illustration { grid-row: 1 / 3; align-items: start; height: auto; }
  .step-illustration img { width: 68px; height: 68px; }
  .step-head { margin-top: 2px; }
  .step p { grid-column: 2; margin-top: 6px; }

  .contact-card { margin: 0 calc(var(--gutter) * -1 + 8px); padding: 32px 20px 20px; border-radius: 28px; }
  .contact-intro { padding: 0 6px; }
  .form-card { padding: 22px 18px; border-radius: 20px; }

  .footer { padding-bottom: 96px; }
  .footer-inner { grid-template-columns: 1fr; }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 40;
    transform: translateY(160%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .mobile-cta.is-visible { transform: none; visibility: visible; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 10px 28px rgba(16, 47, 84, .3); }
}

@media (max-width: 420px) {
  .brand-name { font-size: 20px; }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .hero-mini li { font-size: 12.5px; padding: 10px; gap: 8px; }
  .hero-mini img { width: 34px; height: 34px; }
  .program-desc { max-width: 64%; font-size: 13px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), translate .25s ease, box-shadow .25s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal.is-visible:hover { transition-delay: 0s; }
  .program-grid > :nth-child(2), .step-grid > :nth-child(2) { --reveal-delay: .08s; }
  .program-grid > :nth-child(3), .step-grid > :nth-child(3) { --reveal-delay: .16s; }
  .step-grid > :nth-child(4) { --reveal-delay: .24s; }

  .js .reveal .bars i { transform: scaleY(.12); transform-origin: bottom; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.is-visible .bars i { transform: none; }
  .js .reveal .bars i:nth-child(2) { transition-delay: .12s; }
  .js .reveal .bars i:nth-child(3) { transition-delay: .24s; }
  .js .reveal .bars i:nth-child(4) { transition-delay: .36s; }
}

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Simple pages (privacy, thanks, 404) ---------- */

.page-back { margin-left: auto; padding: 10px 4px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.page-back:hover { color: var(--sky-text); }

.page { max-width: 780px; margin: 0 auto; padding: 56px var(--gutter) 88px; }
.page h1 { font: 900 clamp(28px, 4vw, 38px)/1.3 var(--font-display); color: var(--navy); margin: 8px 0 12px; }
.page h2 { font-size: 19px; color: var(--navy); margin: 40px 0 10px; }
.page p, .page li { line-height: 1.8; }
.page ul { padding-left: 20px; }
.page .lead { color: var(--muted); }
.page mark { background: #FFF4D3; color: #7A5410; padding: 0 4px; border-radius: 4px; }
.table-scroll { overflow-x: auto; }
.page table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.page th, .page td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.page th { background: #F5F8FB; color: var(--navy); white-space: nowrap; }

.page-center {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-center img { width: 88px; height: 88px; margin-bottom: 16px; }
.page-center p { color: var(--muted); margin: 0; }
.page-center .btn { margin-top: 28px; }

.footer-simple { padding: 28px 0 32px; }
.footer-simple .footer-meta { border-top: 0; padding-top: 0; }
