/* AVA Classroom PH brand: navy + Amazon orange + grainy white-gray (from the social media backgrounds) */
:root {
  --navy: #1d2a47;
  --navy-2: #2a3a5f;
  --navy-ink: #131c33;
  --orange: #f39a1d;
  --orange-2: #e07f00;
  --orange-soft: #fff1dc;
  --cream: #efefef;
  --grain: linear-gradient(rgba(242,242,242,.6), rgba(242,242,242,.6)), url("/img/grain.jpg") 0 0 / 150px 150px, var(--cream);
  --paper: #ffffff;
  --ink: #1b2236;
  --muted: #4e5568;
  --line: #dcdcdc;
  --ok: #1f8a4c;
  --ok-soft: #e4f5ea;
  --bad: #c0392b;
  --bad-soft: #fbe7e4;
  --warn-soft: #fff4d6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(29, 42, 71, 0.08);
  --shadow-lg: 0 24px 60px rgba(29, 42, 71, 0.16);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--grain);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--orange-2); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-2); margin-bottom: .75rem;
}
.hl { color: var(--orange); }
.hl-under { background: linear-gradient(transparent 62%, rgba(243,154,29,.35) 62%); padding: 0 .1em; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer;
  font: 600 1rem/1 var(--font); padding: .9em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--orange); color: var(--navy-ink); box-shadow: 0 6px 18px rgba(243,154,29,.35); }
.btn-primary:hover { background: #f7a937; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: .55em 1em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--orange-2); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(239,239,239,.92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand b { display: block; font-size: 1.02rem; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .9rem; padding: .5em .6em; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { background: var(--orange-soft); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.brand span { white-space: nowrap; }
.brand { min-width: 0; }
@media (max-width: 420px) { .hide-xs { display: none; } .btn { white-space: normal; text-align: center; line-height: 1.25; } .brand b { font-size: .95rem; } .nav { gap: .6rem; } }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: block; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .nav-cta .hire-link { display: none; }
  .nav.open + .mobile-menu { display: flex; }
}
.mobile-menu {
  display: none; flex-direction: column; padding: .5rem 16px 1rem; gap: .25rem; border-top: 1px solid var(--line); background: var(--cream);
}
.mobile-menu a { padding: .7rem .5rem; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 8px; }
.mobile-menu a:hover { background: var(--orange-soft); }
@media (max-width: 520px) {
  .brand small { display: none; }
  .nav-cta .btn { padding: .55em .9em; font-size: .85rem; }
}

/* ---------- sections */
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.bg-paper { background: transparent; }
.bg-navy { background: var(--navy); color: #dfe5f3; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .muted { color: #aab4cc; }
.bg-navy .card { color: var(--ink); }
.bg-navy .card h3 { color: var(--navy); }
.bg-navy .card .muted { color: var(--muted); }
.bg-orange { background: transparent; }

/* ---------- hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2rem; }
.proof { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.proof div b { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.proof div span { font-size: .82rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; border: 6px solid #fff; transform: rotate(1.5deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: 18px; padding: .8rem 1rem;
  box-shadow: var(--shadow-lg); display: flex; gap: .7rem; align-items: center; max-width: 320px; transform: rotate(-2deg);
}
.hero-badge img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.hero-badge b { display: block; color: var(--navy); font-size: .95rem; line-height: 1.2; }
.hero-badge span { font-size: .78rem; color: var(--muted); }
.hero-sticker {
  position: absolute; right: -10px; top: 18px; background: var(--orange); color: var(--navy-ink); font-weight: 800;
  border-radius: 999px; padding: .55rem 1rem; box-shadow: var(--shadow); transform: rotate(6deg); font-size: .9rem;
}
/* two formal portraits, overlapping like photo cards */
.hero-duo { position: relative; aspect-ratio: 1 / 1.08; }
.hero-duo figure { position: absolute; width: 60%; aspect-ratio: 3 / 4; margin: 0; border-radius: 24px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); background: #fff; }
.hero-duo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.hero-duo .duo-chris { left: 0; top: 0; transform: rotate(-2.5deg); }
.hero-duo .duo-mitch { right: 0; bottom: 0; transform: rotate(2deg); z-index: 1; }
.hero-duo figcaption { position: absolute; top: 12px; left: 12px; background: rgba(19,28,51,.82); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .04em; padding: .3em .8em; border-radius: 999px; }
.hero-badge { z-index: 2; }
.hero-photo-wide { aspect-ratio: 4 / 3; }
/* wide photo: the name badge hangs below it so it doesn't cover Chris & Mitch */
.hero-photo-wide ~ .hero-badge { bottom: -44px; }
.hero-art:has(.hero-photo-wide) { margin-bottom: 44px; }
.hero-photo-wide img { object-position: center 40%; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 420px; margin: 0 auto; }
  .hero-badge { left: 8px; }
}

/* ---------- strip */
.strip { background: var(--navy); color: #fff; padding: 16px 0; overflow: hidden; display: flex; align-items: center; }
.strip-label { flex: none; margin-left: 16px; padding: .35em .9em; border-radius: 999px; background: var(--orange); color: var(--navy-ink); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 1; box-shadow: 10px 0 16px var(--navy); }
.strip-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.strip-track { display: flex; width: max-content; animation: strip-scroll 45s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-row { display: flex; gap: 2.5rem; padding-right: 2.5rem; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.strip-row span::before { content: "📌"; margin-right: .45em; }  /* pinned on the class bulletin board */
@keyframes strip-scroll { to { transform: translateX(-50%); } }
/* people who turn off motion get a still, wrapped list instead */
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; width: auto; }
  .strip-row { flex-wrap: wrap; white-space: normal; gap: .6rem 2rem; padding: 0 16px; }
  .strip-row[aria-hidden] { display: none; }
}

/* ---------- cards & grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 26px; }
.card-flat { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; }

/* about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
/* two formal portraits side by side */
.about-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-duo figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4.2; background: #fff; }
.about-duo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.about-duo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(19,28,51,.85)); color: #dfe5f3; font-size: .74rem; line-height: 1.3; }
.about-duo figcaption b { display: block; color: #fff; font-size: .92rem; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos img { border-radius: 18px; width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow); }
.about-photos .tall { grid-row: span 2; aspect-ratio: 3/4.6; }
.about-photos .sq { aspect-ratio: 1; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.5rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.person h3 { margin-bottom: .2em; }
.person .role { color: var(--orange-2); font-weight: 600; font-size: .85rem; margin-bottom: .5em; display: block; }
.person p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* courses */
.course-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.course-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--navy-2)); position: relative; display: grid; place-items: center; color: #fff; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover .ph { font-weight: 800; font-size: 1.4rem; padding: 1rem 1.5rem; text-align: center; line-height: 1.2; }
.course-cover .ph em { color: var(--orange); font-style: normal; }
.course-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-body p { color: var(--muted); font-size: .95rem; }
.price { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.chip { font-size: .75rem; font-weight: 600; background: var(--orange-soft); color: var(--orange-2); padding: .25em .7em; border-radius: 999px; }
.chip-navy { background: #e8ecf5; color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checklist li { padding-left: 1.8em; position: relative; margin: .45em 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .05em; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--orange); color: var(--navy-ink); font-weight: 800; font-size: .8em; display: grid; place-items: center;
}
.bg-navy .checklist li::before { background: var(--orange); }

/* training (1-on-1 + group) */
.offer { position: relative; display: flex; flex-direction: column; }
.offer.featured { border: 2px solid var(--orange); }
.offer .tag { position: absolute; top: -13px; left: 24px; background: var(--orange); color: var(--navy-ink); font-weight: 700; font-size: .75rem; padding: .3em .8em; border-radius: 999px; }
.offer .price { margin: .4rem 0 .2rem; }
.offer .btn { margin-top: auto; }
.seatbar { height: 8px; background: #eee6d8; border-radius: 99px; overflow: hidden; margin: .4rem 0 .2rem; }
.seatbar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.batch { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: var(--cream); }
.batch-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }

/* free */
.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-card .vbox { aspect-ratio: 16/9; background: #0d1426; }
.video-card .vbox iframe, .video-card .vbox video { width: 100%; height: 100%; border: 0; }
.video-card .vbody { padding: 18px 20px 20px; }
.video-card .vbody p { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }

/* empty states */
.empty {
  border: 2px dashed #d9cfbe; border-radius: var(--radius); padding: 44px 24px; text-align: center; background: rgba(255,255,255,.55);
}
.empty .icon { font-size: 2.4rem; line-height: 1; margin-bottom: .6rem; }
.empty h3 { margin-bottom: .3em; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 1.2rem; }
.bg-navy .empty { border-color: #3c4d74; background: rgba(255,255,255,.03); }
.bg-navy .empty p { color: #aab4cc; }

/* testimonials */
.story { display: flex; flex-direction: column; gap: .9rem; }
.story blockquote { margin: 0; font-size: 1rem; color: var(--ink); }
.story blockquote::before { content: "“"; font-size: 3rem; line-height: 0; vertical-align: -.45em; color: var(--orange); margin-right: .1em; }
.story .who { display: flex; gap: .7rem; align-items: center; }
.story .who img, .story .who .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--orange-soft); display: grid; place-items: center; font-weight: 700; color: var(--orange-2); }
.story .who b { display: block; color: var(--navy); line-height: 1.2; }
.story .who span { font-size: .82rem; color: var(--muted); }
.story .vbox { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0d1426; }
.story .vbox iframe, .story .vbox video { width: 100%; height: 100%; border: 0; }

/* hire */
.hire { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #dfe5f3; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.hire h2 { color: #fff; }
.hire .checklist li { color: #dfe5f3; }
.hire-img { border-radius: 18px; overflow: hidden; border: 4px solid rgba(255,255,255,.15); aspect-ratio: 4/3; }
.hire-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hire { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--orange-soft); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.contact-item b { display: block; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-item span, .contact-item a { color: var(--ink); white-space: pre-line; word-break: break-word; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; }
.socials a:hover { background: var(--orange); color: var(--navy-ink); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--navy-ink); color: #aab4cc; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #dfe5f3; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: #fff; font-size: .95rem; margin-bottom: .8em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: .35em 0; }
.foot-bottom { border-top: 1px solid #26314d; margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- forms */
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--navy); }
label.f .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid #ddd5c6; border-radius: 12px;
  padding: .75em .9em; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(243,154,29,.18); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .3em; accent-color: var(--orange); width: 18px; height: 18px; }
.alert { padding: .8rem 1rem; border-radius: 12px; font-size: .93rem; }
.alert-err { background: var(--bad-soft); color: #8d2419; }
.alert-ok { background: var(--ok-soft); color: #13623a; }
.alert-info { background: var(--warn-soft); color: #7a5300; }
.dropzone {
  border: 2px dashed #d3c8b4; border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s; position: relative;
}
.dropzone:hover, .dropzone.drag { border-color: var(--orange); background: var(--orange-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { max-height: 220px; margin: 0 auto .5rem; border-radius: 8px; }

/* ---------- modal */
.modal { position: fixed; inset: 0; background: rgba(19,28,51,.55); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 22px; width: min(620px, 100%); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-lg); position: relative; animation: pop .18s ease; }
.modal-box.wide { width: min(900px, 100%); }
.modal-x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--cream); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--navy); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; transition: .25s; z-index: 200; max-width: calc(100% - 32px); font-size: .93rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); }

/* ---------- checkout */
.checkout-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-grid aside { order: -1; } .checkout-grid .summary { position: static; } }
@media (max-width: 760px) {
  .summary { padding: 18px 20px; }
  .summary .checklist, .summary #sum-sub, .summary .line:not(.total), .summary .secure + .secure { display: none; }
  .summary .total { border-top: 0; margin-top: 0; padding-top: .3rem; }
  #login-link { display: inline-block; padding: .5em 0; }
}
.steps { counter-reset: s; display: grid; gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.step > h3 { display: flex; align-items: center; gap: .6rem; }
.step > h3::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.pay-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pay-tab { border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 8px; cursor: pointer; font: 700 .95rem var(--font); color: var(--navy); display: grid; gap: 4px; place-items: center; }
.pay-tab .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 800; }
.pay-tab[aria-pressed=true] { border-color: var(--orange); background: var(--orange-soft); }
.qr-panel { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; background: var(--cream); border-radius: 14px; padding: 18px; }
.qr-panel .qr { background: #fff; border-radius: 12px; padding: 10px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); }
.qr-panel .qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-panel ol { padding-left: 1.2em; margin: .5rem 0 0; font-size: .93rem; }
.qr-panel ol li { margin: .3em 0; }
.acct { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px dashed var(--line); padding: .35rem 0; font-size: .93rem; }
.acct b { color: var(--navy); }
@media (max-width: 560px) { .qr-panel { grid-template-columns: 1fr; } .qr-panel > div:first-child { width: 100%; max-width: 260px; margin: 0 auto; } }
.acct-val { display: inline-flex; align-items: center; gap: .5rem; }
.copy-btn { border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 600 .78rem var(--font); border-radius: 999px; padding: .45em .85em; cursor: pointer; min-height: 32px; }
.copy-btn:active { background: var(--orange-soft); }

/* Phone vs computer payment instructions: on a touch phone you can't scan your own screen. */
@media (hover: hover), (pointer: fine) { .phone-only { display: none !important; } }
@media (hover: none) and (pointer: coarse) { .desktop-only { display: none !important; } }
.summary { position: sticky; top: 92px; }
.summary .line { display: flex; justify-content: space-between; padding: .45rem 0; }
.summary .total { border-top: 2px solid var(--navy); margin-top: .5rem; padding-top: .8rem; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.secure { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* ---------- auth */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(440px, 100%); }
.auth-card .brandmark { width: 80px; height: 80px; border-radius: 16px; margin: 0 auto 1rem; background: #fff; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }

/* ---------- portal */
.portal { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; padding: 28px 0 60px; }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; padding-top: 12px; } .portal aside { order: 2; } .lesson-list { max-height: none; } }
.lesson-list { list-style: none; padding: 0; margin: 0; max-height: 70vh; overflow: auto; }
.lesson-list li button { width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; border-radius: 10px; cursor: pointer; font: 500 .93rem var(--font); color: var(--ink); display: flex; gap: .7rem; align-items: flex-start; }
.lesson-list li button:hover { background: var(--cream); }
.lesson-list li button.active { background: var(--orange-soft); color: var(--navy); font-weight: 700; }
.lesson-list .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eef0f5; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--navy); }
.lesson-list .done .num { background: var(--ok); color: #fff; }
.player { aspect-ratio: 16/9; background: #0d1426; border-radius: 16px; overflow: hidden; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.status.pending { background: var(--warn-soft); color: #7a5300; }
.status.approved { background: var(--ok-soft); color: var(--ok); }
.status.rejected { background: var(--bad-soft); color: var(--bad); }
.status.new { background: var(--orange-soft); color: var(--orange-2); }
.status.replied, .status.closed { background: #eef0f5; color: var(--muted); }

/* ---------- admin */
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 72px); }
.admin-side { background: var(--navy); padding: 20px 12px; }
.admin-side button { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; border: 0; background: none; color: #c9d1e4; font: 500 .95rem var(--font); padding: .7rem .9rem; border-radius: 10px; cursor: pointer; margin-bottom: 2px; }
.admin-side button:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side button.active { background: var(--orange); color: var(--navy-ink); font-weight: 700; }
.admin-side .badge { background: var(--bad); color: #fff; border-radius: 99px; font-size: .72rem; padding: .1em .55em; font-weight: 700; }
.admin-main { padding: 28px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
@media (max-width: 860px) {
  /* align-content: start stops the menu row stretching to half the screen height */
  .admin { grid-template-columns: 1fr; align-content: start; }
  .admin-side { display: flex; align-items: center; overflow-x: auto; gap: 4px; padding: 8px 10px; position: sticky; top: 72px; z-index: 10; }
  .admin-side button { flex: none; white-space: nowrap; width: auto; gap: .4rem; margin: 0; padding: .55rem .8rem; font-size: .88rem; }
  .admin-side #logout { margin-top: 0 !important; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f5f5f5; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.receipt-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.toolbar { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h2 { margin: 0; font-size: 1.6rem; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: .45em 1em; border-radius: 999px; font: 600 .85rem var(--font); color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--navy); color: #fff; }
.lesson-row { display: flex; gap: .8rem; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lesson-row .grow { flex: 1; min-width: 0; }
.progress { height: 8px; background: #eee; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.settings-grid { display: grid; gap: 22px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 22px; background: #fff; margin: 0; min-width: 0; }
label.f { min-width: 0; }
legend { font-weight: 700; color: var(--navy); padding: 0 .4em; }

/* ---------- phones: comfortable tap targets, tables as cards, sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .btn-sm { min-height: 44px; padding: .6em 1.1em; }
  .site-header .btn-sm { min-height: 40px; }
  .copy-btn { min-height: 38px; }
  .seg button { min-height: 40px; padding: .5em 1em; }
  .linkbtn, a.small, .contact-item a, .site-footer li a, .auth-card p a { display: inline-block; padding: .55em 0; }
  .site-footer li { margin: 0; }
  .pay-tab { min-height: 72px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 2rem; }

  .table-stack { background: none; border: 0; overflow: visible; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack thead { display: none; }
  .table-stack tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px; margin-bottom: 12px; }
  .table-stack td { border: 0; padding: 6px 12px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; text-align: right; }
  .table-stack td > * { text-align: right; }
  .table-stack td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; text-align: left; flex: none; padding-top: .2em; }
  .table-stack td:not([data-label]) { display: block; text-align: center; }
  .table-stack td:not([data-label])::before { content: none; }
  .table-stack td.actions { justify-content: flex-end; gap: 8px; }
  .table-stack td.actions::before { content: none; }

  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(239,239,239,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; min-height: 48px; }
  body.has-cta .site-footer { padding-bottom: 96px; }
}

/* ---------- loading states, spam honeypot, very small phones */
.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 28px 0; margin: 0; }
.loading::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.offer .loading { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
/* Hidden "honeypot" field: invisible to people, but bots fill it in. */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.checkout-grid > *, .steps, .step, .qr-panel > * { min-width: 0; }
@media (max-width: 360px) {
  .step { padding: 16px 14px; }
  .pay-tabs { gap: 6px; }
  .pay-tab { font-size: .8rem; padding: 10px 2px; }
  .qr-panel { padding: 12px; }
  .acct { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .nav { gap: .4rem; }
  .brand { gap: .45rem; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: .84rem; }
  .site-header .btn-sm { padding: .5em .8em; min-height: 38px; }
  .menu-btn { padding: 6px; }
}

/* ---------- Privacy & Terms pages */
.legal { padding: 40px 0 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .2em; }
.legal section { padding: 0; margin-top: 2.2rem; scroll-margin-top: 90px; }
.legal h2 { font-size: 1.35rem; margin-bottom: .6em; }
.legal h3 { font-size: 1.02rem; margin: 1.2em 0 .4em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: .35em 0; }
.legal-summary { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--radius); padding: 20px 22px; margin: 1.5rem 0; box-shadow: var(--shadow); }
.legal-summary h2 { font-size: 1.1rem; }
.legal-summary .checklist { margin: 0; padding: 0; }
.legal-summary table td { font-size: .88rem; }
.legal-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-size: .9rem; }
.legal-toc a { text-decoration: none; padding: .35em 0; }
.legal-contact { list-style: none; padding: 0 !important; }
.foot-legal a { color: #dfe5f3; }
@media (max-width: 560px) { .legal-toc { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .legal-summary .table-stack td { display: block; text-align: left; }
  .legal-summary .table-stack td::before { display: block; margin-bottom: .15em; }
  .legal-summary .table-stack td > * { text-align: left; }
}

/* ---------- ₱99 eBook promo (home page) */
.ebook-promo { background: transparent; }
.ebook-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.book-brand { display: flex; gap: 8px; align-items: center; font-size: .66rem; font-weight: 700; }
.book-brand img { width: 30px; height: 30px; border-radius: 7px; background: #fff; object-fit: contain; padding: 1px; }
.book-title { font-weight: 900; font-size: 1.7rem; line-height: 1.1; letter-spacing: .04em; }
.book-title b { color: var(--orange); }
.book-sub { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #f3c46b; }
.book-foot { font-size: .72rem; font-style: italic; color: #c9d1e4; border-top: 1px solid rgba(255,255,255,.2); padding-top: 8px; }
.ebook-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }
.ebook-buy .price { font-size: 2.4rem; margin-right: 6px; }
/* 3D book: W x H cover, T thick. Faces are placed around the centre with translateZ. */
.book3d-stage { --bw: 260px; --bh: 364px; --bt: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; perspective: 1300px; padding: 10px 0; }
.book3d { position: relative; width: var(--bw); height: var(--bh); transform-style: preserve-3d; transform: rotateX(var(--rx, -6deg)) rotateY(var(--ry, -28deg)); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.book3d.dragging { cursor: grabbing; }
.b-face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.b-front, .b-back { inset: 0; border-radius: 4px 12px 12px 4px; padding: 22px 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px), linear-gradient(160deg, #26324d, #1b253d); box-shadow: inset 7px 0 0 rgba(0,0,0,.28); }
.b-front { transform: translateZ(calc(var(--bt) / 2)); }
.b-back { transform: rotateY(180deg) translateZ(calc(var(--bt) / 2)); border-radius: 12px 4px 4px 12px; box-shadow: inset -7px 0 0 rgba(0,0,0,.28); justify-content: flex-start; gap: 10px; font-size: .76rem; color: #dfe5f3; overflow: hidden; }
.b-back p { margin: 0; line-height: 1.5; }
.b-back ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.b-back .book-brand { margin-top: auto; }
.book-back-h { font-size: 1.05rem; color: #fff; line-height: 1.25; }
.b-spine { width: var(--bt); height: var(--bh); left: calc((var(--bw) - var(--bt)) / 2); transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  background: linear-gradient(90deg, #141c30, #26324d 45%, #141c30); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0; border-radius: 3px; }
.b-spine span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-weight: 800; font-size: .7rem; letter-spacing: .16em; }
.b-spine img { width: 24px; height: 24px; border-radius: 5px; background: #fff; object-fit: contain; }
.b-pages { width: var(--bt); height: calc(var(--bh) - 8px); top: 4px; left: calc((var(--bw) - var(--bt)) / 2); transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f7f3ea 0 2px, #e3dccd 2px 3px); }
.b-top, .b-bottom { width: calc(var(--bw) - 6px); height: var(--bt); top: calc((var(--bh) - var(--bt)) / 2); left: 0;
  background: repeating-linear-gradient(0deg, #f7f3ea 0 2px, #e3dccd 2px 3px); }
.b-top { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2 - 3px)); }
.b-bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2 - 3px)); }
.book-level { align-self: flex-start; background: var(--orange); color: var(--navy-ink); font-weight: 800; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.book3d-hint { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .ebook-grid { grid-template-columns: 1fr; text-align: left; } .book3d-stage { --bw: 220px; --bh: 308px; --bt: 30px; } .b-front, .b-back { padding: 18px 16px; } .b-back { font-size: .66rem; gap: 7px; } .book-back-h { font-size: .9rem; } .b-back ul { gap: 2px; } .book-title { font-size: 1.4rem; } }

/* ---------- AI mock interview promo (home page) */
.iv-promo { background: linear-gradient(160deg, #26324d, #1b253d); }
.iv-promo-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.iv-promo-faces { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.iv-promo-faces figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.iv-promo-faces figure:nth-child(2) { transform: translateY(26px); }
.iv-promo-faces img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; display: block; }
.iv-promo-faces figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: .85rem; padding: .25em .8em; border-radius: 999px; }
@media (max-width: 860px) { .iv-promo-grid { grid-template-columns: 1fr; } .iv-promo-faces { max-width: 420px; } }
@media (max-width: 360px) { .brand b { font-size: .78rem; } .brand img { width: 34px; height: 34px; } }
.hero-badge span { white-space: nowrap; }
/* the longer brand name needs the room: short button labels earlier */
@media (max-width: 600px) { .hide-xs { display: none; } }
/* EN / TL language switch in the header */
.lang-switch { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch button { border: 0; background: transparent; color: var(--navy); font: 700 .74rem var(--font); padding: .38em .7em; cursor: pointer; letter-spacing: .04em; }
.lang-switch button.on { background: var(--navy); color: #fff; }
@media (max-width: 420px) { .lang-switch button { padding: .34em .5em; font-size: .68rem; } }
.tl-only { display: none; }
html[lang="fil"] .tl-only { display: block; }
.legal-note { background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; font-size: .88rem; }
.menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .35rem 0 .6rem; border-bottom: 1px solid var(--line); margin-bottom: .25rem; font-weight: 600; color: var(--navy); }
/* small phones: the switch lives in the ☰ menu so the logo and name keep their room */
@media (max-width: 560px) { .nav-cta .lang-switch { display: none; } }
@media (min-width: 561px) { .menu-lang { display: none; } }
.nav-cta .btn { white-space: nowrap; }
@media (max-width: 420px) { .nav-cta .btn { padding: .5em .8em; font-size: .78rem; } .nav { gap: .4rem; } }
@media (max-width: 380px) { html[lang="fil"] .brand b { font-size: .74rem; } html[lang="fil"] .brand img { width: 32px; height: 32px; } }
/* admin eBook editor */
.ed-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ed-bar select { flex: 1; min-width: 220px; padding: .55em .7em; border-radius: 10px; border: 1.5px solid var(--line); font: 500 .92rem var(--font); background: #fff; }
.seg button.on { background: var(--navy); color: #fff; }
.ed-tools { position: sticky; top: 70px; z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.ed-tools > button:not(.btn) { border: 1px solid var(--line); background: #f6f6f6; border-radius: 8px; padding: .35em .7em; font: 600 .82rem var(--font); cursor: pointer; }
.ed-tools > button:not(.btn):hover { border-color: var(--orange); }
.ed-spacer { flex: 1; }
.ed-short { max-width: 360px; }
.ed-area { margin-top: 6px; }
.ed-area .eb-module { display: block; }
.ed-area .eb-module[contenteditable="true"]:focus { outline: none; }
.ed-area .eb-body { display: block; }
.ed-area .eb-lesson > h3 { padding: 14px clamp(16px, 3vw, 26px) 4px; font-size: 1.1rem; color: var(--navy); }
.ed-area .eb-lesson > .eb-meta { padding: 0 clamp(16px, 3vw, 26px) 10px; margin: 0; }
.ed-area [contenteditable="true"] *:hover:not(.ed-only):not(.ed-only *) { outline: 1px dashed rgba(243,154,29,.55); outline-offset: 2px; }
.ed-area .eb-explain { display: block; }
.ed-area .ed-btn { display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .7em .9em; margin: 6px 0; font: 500 .94rem var(--font); }
.ed-area .ed-ph { background: #fff; border: 1.5px dashed #d8c9a8; border-radius: 10px; padding: .6em .8em; color: var(--muted); white-space: pre-wrap; min-height: 2.4em; }
.ed-area .ed-ph::before { content: "Hint inside the box: "; font-weight: 700; color: var(--orange-2); }
.ed-area .eb-template { white-space: pre-wrap; padding: 12px 14px; font-size: .9rem; }
.ed-only { display: flex; gap: 8px; align-items: center; font: 700 .78rem var(--font); color: var(--navy); background: #eef1f8; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; user-select: none; }
.ed-only input, .ed-only select { flex: 1; font: 500 .88rem var(--font); padding: .3em .5em; border: 1px solid var(--line); border-radius: 6px; }
.ed-area .eb-coach { display: block; margin-top: 10px; border: 1.5px dashed #9fb0d4; border-radius: 10px; padding: 8px 12px; background: #f4f6fb; }
.ed-area .eb-coach::before { content: "Advice shown after the student answers (edit freely)"; display: block; font: 700 .72rem var(--font); color: #4a5a85; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.ed-area .eb-coach-sample { white-space: pre-line; }
/* world clock strip at the top of the header */
.wclock { background: var(--navy); color: #dfe5f3; font-size: .8rem; }
.wclock-in { display: flex; align-items: center; gap: 10px; min-height: 34px; padding-top: 3px; padding-bottom: 3px; }
.wc-ico { font-size: .95rem; }
.wc-side { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; min-width: 0; }
.wc-lbl { color: #aab4cc; }
.wc-time { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.wc-client .wc-time { color: var(--orange); }
.wc-day { color: #8f9bb8; font-size: .72rem; }
.wc-swap { color: var(--orange); font-weight: 700; }
.wclock select { background: #26324d; color: #fff; border: 1px solid #3c4d74; border-radius: 999px; padding: .2em .6em; font: 600 .76rem var(--font); max-width: 230px; cursor: pointer; align-self: center; }
.wc-btn { margin-left: auto; background: transparent; color: #fff; border: 1px solid #3c4d74; border-radius: 999px; padding: .25em .9em; font: 700 .74rem var(--font); cursor: pointer; }
.wc-btn:hover, .wclock select:hover { border-color: var(--orange); }
.wc-panel { background: #1a2540; border-top: 1px solid #2c3a5c; }
.wc-panel-in { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 12px; }
.wc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #dfe5f3; font-weight: 600; }
.wc-row label { display: inline-flex; align-items: center; gap: 8px; }
.wc-row input, .wc-row select { background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: .3em .5em; font: 600 .85rem var(--font); }
.wc-out { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wc-out b { color: var(--orange); font-size: 1.15rem; }
.wc-out span { color: #fff; font-weight: 600; }
.wc-out small { color: #aab4cc; }
.wc-note { margin: 0; color: #aab4cc; font-size: .76rem; flex-basis: 100%; }
@media (max-width: 760px) {
  .wc-word, .wc-ico, .wc-day { display: none; }
  .wclock-in { gap: 7px; font-size: .74rem; }
  .wclock select { max-width: 112px; padding: .2em .45em; font-size: .7rem; text-overflow: ellipsis; }
  .wc-btn { padding: .22em .6em; font-size: .68rem; }
}
@media (max-width: 380px) { .wc-swap { display: none; } .wclock select { max-width: 92px; } }
/* header: menu tucked into ☰ when it doesn't fit (set by app.js) */
.nav.compact .nav-links { display: none; }
.nav.compact .menu-btn { display: block; margin-left: 0; }
.nav.compact .nav-cta { margin-left: auto; }
.nav.compact.open + .mobile-menu { display: flex; }
/* the header may use a little more width than the page so the longer Tagalog menu fits on regular laptops */
.site-header .wrap { width: min(1320px, 100% - 32px); }
.nav-links { gap: 0; }
.nav-links a { padding: .5em .35em; font-size: .82rem; }
.ed-area .eb-sample { white-space: pre-wrap; padding: 10px 12px; font-size: .9rem; background: #f1f8f3; border: 1.5px dashed #9cc9ab; border-radius: 10px; margin: -.3rem 0 1rem; }
.ed-area .eb-sample::before { content: "Filled-in sample (shown under the template)"; display: block; font: 700 .72rem var(--font); color: #2f7a4a; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; white-space: normal; }
/* 3D book: clearer page edges and a soft shadow so it stands off the grainy background */
.book3d-stage { gap: 0; }
.b-pages { background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 22%, transparent 78%, rgba(0,0,0,.22)), repeating-linear-gradient(90deg, #f3ecdc 0 2px, #c9bc9f 2px 3px); box-shadow: inset 0 0 0 1px rgba(60,45,20,.35); }
.b-top, .b-bottom { background: linear-gradient(0deg, rgba(0,0,0,.18), transparent 25%, transparent 75%, rgba(0,0,0,.2)), repeating-linear-gradient(0deg, #f3ecdc 0 2px, #c9bc9f 2px 3px); box-shadow: inset 0 0 0 1px rgba(60,45,20,.35); }
.b-front { box-shadow: inset 7px 0 0 rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.08); }
.book3d-shadow { width: calc(var(--bw) * 1.05); height: 26px; margin-top: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(19,28,51,.42), rgba(19,28,51,.18) 60%, transparent); filter: blur(4px); pointer-events: none; }
.book3d-hint { margin-top: 12px; }
/* page edges: warmer paper, darker edges and an outline so they stand apart from the light background */
.b-pages { background: linear-gradient(90deg, rgba(40,28,10,.38), rgba(40,28,10,.08) 18%, transparent 40%, transparent 70%, rgba(40,28,10,.42)), repeating-linear-gradient(90deg, #eadcbc 0 2px, #a8946c 2px 3px); box-shadow: 0 0 0 1px rgba(50,36,14,.55), inset 0 0 6px rgba(40,28,10,.35); }
.b-top, .b-bottom { background: linear-gradient(0deg, rgba(40,28,10,.38), transparent 30%, transparent 70%, rgba(40,28,10,.4)), repeating-linear-gradient(0deg, #eadcbc 0 2px, #a8946c 2px 3px); box-shadow: 0 0 0 1px rgba(50,36,14,.55), inset 0 0 6px rgba(40,28,10,.35); }

/* Gentle photo motion for the coming-soon interview preview. */
.iv-preview { min-width: 0; }
.iv-preview .iv-promo-faces img { animation: iv-portrait-drift 9s ease-in-out infinite alternate; transform-origin: 50% 65%; }
.iv-preview figure:nth-child(2) img { animation-delay: -4.5s; }
.iv-wave { display: inline-flex; gap: 3px; height: 16px; align-items: center; margin-left: 7px; vertical-align: middle; }
.iv-wave i { width: 3px; height: 12px; border-radius: 3px; background: #ffb45b; animation: iv-speaking 1.2s ease-in-out infinite alternate; }
.iv-wave i:nth-child(2) { animation-delay: -.3s; }
.iv-wave i:nth-child(3) { animation-delay: -.7s; }
.iv-wave i:nth-child(4) { animation-delay: -.5s; }
.iv-preview-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; color: #c9d1e4; font-size: .75rem; }
.iv-motion-toggle { background: transparent; color: #fff; border: 1px solid #8793ad; border-radius: 999px; padding: .45rem .8rem; font: inherit; cursor: pointer; }
.iv-motion-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.iv-preview.is-paused img, .iv-preview.is-paused .iv-wave i { animation-play-state: paused; }
@keyframes iv-portrait-drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.07) translateY(-1%); } }
@keyframes iv-speaking { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .iv-preview .iv-promo-faces img, .iv-preview .iv-wave i { animation: none; }
  .iv-motion-toggle { display: none; }
}
/* mock interview: VA Mitch avatar intro video (vertical) */
.iv-intro { margin: 0 auto; width: 100%; max-width: 340px; }
.iv-intro-frame { border-radius: 22px; overflow: hidden; background: #0f1628; box-shadow: 0 22px 48px rgba(0,0,0,.4); border: 3px solid rgba(255,255,255,.12); aspect-ratio: 9 / 16; }
.iv-intro video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0f1628; }
.iv-intro figcaption { margin-top: 12px; color: #c9d1e4; font-size: .85rem; text-align: center; line-height: 1.45; }
@media (max-width: 860px) { .iv-intro { max-width: 300px; } }

/* Free sign-up link: in the header on wider screens, in the ☰ menu on phones */
@media (max-width: 520px) { .signup-link { display: none; } }
