/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* the hidden attribute must beat any display rule */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }  /* clear the sticky nav when jumping to #anchors */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);          /* plain surface: text never sits on grid lines */
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 6px; }
p  { max-width: 66ch; }
a  { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }

/* ---------- nav ---------- */
nav { position: sticky; top: 0; z-index: 50; background: rgba(252,252,250,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.navin { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-decoration: none; letter-spacing: -.02em; }
.logo em { font-style: normal; color: var(--pen); }
.navlinks { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.navlinks a { text-decoration: none; color: var(--graphite); font-weight: 500; }
.navlinks a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.navbook { background: var(--pen); color: var(--paper) !important; padding: 9px 16px; font-weight: 600; border-radius: var(--radius); }
.navbook:hover { background: var(--pen-dark); text-decoration: none !important; }
.navtrial { border: 1.5px solid var(--ink); color: var(--ink) !important; padding: 8px 14px; font-weight: 600 !important; border-radius: var(--radius); }
.navtrial:hover { background: var(--ink); color: var(--paper) !important; text-decoration: none !important; }
@media (max-width: 760px) { .navlinks a:not(.navbook):not(.navtrial) { display: none; } .navlinks { gap: 10px; } }

/* ---------- hero ---------- */
/* The grid is decorative only: it lives behind the hero, is faint, and is
   masked so it fades out under the headline text on the left. */
header { position: relative; padding: 64px 0 44px; isolation: isolate; }
header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 78% 45%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 90% at 78% 45%, #000 20%, transparent 100%);
}
@media (max-width: 880px) {
  header::before {
    -webkit-mask-image: linear-gradient(#000 0%, transparent 55%);
            mask-image: linear-gradient(#000 0%, transparent 55%);
    opacity: .4;
  }
}
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  /* on phones the proof (the code panel) comes right after the headline, before the buttons */
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; }
  .hero-screen { order: 2; }
  .hero-copy .lede { order: 3; }
  .hero-copy .cta-row { order: 4; }
  .hero-copy .annot { order: 5; }
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.mark { background: linear-gradient(transparent 62%, var(--highlight) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: var(--radius); font-size: 1rem; }
.btn-solid { background: var(--pen); color: var(--paper); }
.btn-solid:hover { background: var(--pen-dark); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: var(--paper); }
.btn-block { display: block; text-align: center; margin-top: 18px; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* the screen: what a student actually makes */
.screen { border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: 0 8px 24px rgba(22,50,79,.08); }
.screen-bar { background: var(--ink); color: var(--paper); padding: 7px 12px; font-family: var(--font-mono); font-size: .72rem; display: flex; gap: 7px; align-items: center; }
.screen-bar b { width: 8px; height: 8px; border-radius: 50%; background: #5A6672; display: inline-block; }
.screen-body { padding: 18px; font-family: var(--font-mono); font-size: .83rem; line-height: 1.75; }
.c-key { color: var(--pen); }
.c-str { color: var(--code-str); }
.c-com { color: var(--code-com); }
.screen-out { border-top: 1px dashed var(--rule); margin-top: 14px; padding-top: 14px; color: var(--ink); font-weight: 700; }
.screen-note { font-size: .8rem; color: var(--muted); margin-top: 10px; font-family: var(--font-body); }

/* red pen annotation */
.annot { font-family: var(--font-display); color: var(--pen); font-weight: 700; font-size: .95rem; display: inline-flex; gap: 8px; align-items: flex-start; margin-top: 18px; max-width: 60ch; }
.annot svg { flex: none; margin-top: 2px; }

/* ---------- sections ---------- */
section { padding: 60px 0; border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: 32px; max-width: 60ch; }
.sec-head p { color: var(--graphite); margin-top: 8px; }

/* december: the headline product */
.dec { background: var(--ink); color: var(--paper); padding: 44px; border-radius: var(--radius); }
.dec h2 { color: var(--paper); }
.dec > p { color: #C5D2DE; }
.dec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; margin-top: 26px; }
.dec-main { display: flex; flex-direction: column; }
.dec-main .btn { align-self: flex-start; margin-top: auto; padding-top: 13px; }
.dec-main ul { margin-bottom: 26px; }
@media (max-width: 880px) { .dec { padding: 28px; } .dec-grid { grid-template-columns: 1fr; gap: 26px; } }
.dec ul { list-style: none; display: grid; gap: 11px; }
.dec li { display: flex; gap: 11px; align-items: flex-start; color: #DCE6EF; font-size: .97rem; }
.tick { flex: none; color: var(--highlight); font-weight: 700; }
.pricebox { border: 1px solid #3E5A78; border-radius: var(--radius); padding: 22px; }
.pricebox .prow + .prow { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #3E5A78; }
.prow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pricebox .who { font-size: .95rem; font-weight: 600; color: var(--paper); }
.pricebox .amt { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--paper); line-height: 1.1; }
.prow-meta { list-style: none; padding: 0; margin: 6px 0 0; font-size: .83rem; color: #9FB3C6; display: grid; gap: 2px; }
.pricebox .per { font-size: .83rem; color: #9FB3C6; display: block; }
.pricebox .promo { display: inline-block; background: var(--highlight); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: var(--radius); margin-bottom: 10px; }

/* course entries as a marked-up list, not identical cards */
.courses { display: grid; gap: 0; }
.course { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.course:first-child { border-top: 1px solid var(--rule); }
.course .age { font-family: var(--font-mono); font-size: .78rem; color: var(--graphite); white-space: nowrap; }
.course .body p { font-size: .95rem; color: var(--graphite); margin-top: 4px; }
.course .fee { text-align: right; white-space: nowrap; display: grid; gap: 2px; }
.course .fee b { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1.05; color: var(--ink); }
.course .fee .lvl { font-size: .85rem; font-weight: 600; color: var(--ink); }
.course .fee span { font-size: .8rem; color: var(--graphite); }
.course .fee .launch { display: inline-block; justify-self: end; margin-top: 6px; background: var(--highlight); color: var(--ink); font-weight: 700; padding: 3px 8px; border-radius: 6px; }
@media (max-width: 700px) { .course { grid-template-columns: 1fr; gap: 6px; } .course .fee { text-align: left; } .course .fee .launch { justify-self: start; } }

.promo-badge { display: inline-block; margin-top: 22px; background: var(--highlight); padding: 8px 14px; border-radius: var(--radius); font-size: .93rem; }
.promo-badge strong { color: var(--pen); margin-right: 6px; }
.fine { margin-top: 12px; font-size: .88rem; color: var(--graphite); }

/* why: three short reasons */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 820px) { .reasons { grid-template-columns: 1fr; gap: 26px; } }
.reason p { font-size: .95rem; color: var(--graphite); margin-top: 6px; }
.reason .num { font-family: var(--font-mono); color: var(--pen); font-size: .8rem; display: block; margin-bottom: 8px; }

/* free workshop strip */
.free { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border: 2px dashed var(--pen); border-radius: var(--radius); padding: 28px; background: var(--paper-2); }
@media (max-width: 760px) { .free { grid-template-columns: 1fr; } }
.free .tag { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--pen); line-height: 1; }
.free .cta { text-align: center; }
.free .cta .btn { margin-top: 12px; }

/* booking */
.book { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .book { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin: 16px 0 6px; }
label .opt { font-weight: 400; color: var(--graphite); margin-left: 6px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--rule); border-radius: var(--radius); font-family: var(--font-body); font-size: .97rem; background: var(--paper-2); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(22,50,79,.12); }
textarea { min-height: 88px; resize: vertical; }
button[type=submit] { margin-top: 22px; width: 100%; background: var(--ink); color: var(--paper); border: none; padding: 14px; font-size: 1rem; font-weight: 600; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); }
button[type=submit]:hover { background: var(--pen); }
.aside { border-left: 2px solid var(--rule); padding-left: 22px; }
.aside h3 { margin-bottom: 8px; }
.aside p { font-size: .93rem; color: var(--graphite); }
.aside .alt { margin-top: 20px; }
.wa { display: inline-block; margin-top: 14px; background: var(--whatsapp); color: #fff; text-decoration: none; padding: 12px 18px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; }

/* form states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 14px; color: var(--pen); font-weight: 600; font-size: .93rem; }
.form-success { border: 2px solid var(--code-str); border-radius: var(--radius); padding: 24px; background: var(--paper-2); }
.form-success h3 { color: var(--code-str); }
.form-success p { color: var(--graphite); font-size: .95rem; }
button[type=submit]:disabled { opacity: .6; cursor: default; }

/* faq */
details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--pen); font-weight: 700; flex: none; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 10px; color: var(--graphite); font-size: .95rem; }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 44px 0; color: var(--graphite); font-size: .92rem; }
footer a { color: var(--ink); }
footer .brand { margin-bottom: 10px; }

/* floating WhatsApp */
@media (max-width: 760px) { body { padding-bottom: 84px; } }
.sticky-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--whatsapp); color: #fff; text-decoration: none; padding: 13px 18px; border-radius: var(--radius); font-weight: 600; box-shadow: 0 3px 14px rgba(0,0,0,.18); font-size: .93rem; }

/* ---------- starter course ---------- */
/* Starter sits on a pale band with the price card on the LEFT, so it reads as a
   limited-time offer rather than a second hero. */
#starter { background: #FFF7DB; background-image: none; padding: 48px 0 56px; }
#starter .sec-head { margin-bottom: 26px; }
#starter .sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
#starter .tick { color: var(--pen); }
#starter .kicker { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pen); margin-bottom: 6px; }
.starter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.starter-main { padding: 8px 0; }
.starter-main li { font-size: 1.05rem; }
.starter-main .fine { margin-top: 14px; }
.starter-grid .pricebox { order: -1; background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 26px 28px; }
.starter-grid .prow-meta { font-size: .95rem; gap: 5px; margin-top: 10px; }
.starter-grid .prow-meta b { color: var(--ink); font-weight: 600; }
.starter-grid .prow-meta .pay { color: var(--pen); font-weight: 600; }
.starter-grid .pricebox .amt { font-size: 2.3rem; }
.starter-main ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.starter-main li { display: flex; gap: 10px; align-items: flex-start; }
.pricebox.light { border-color: var(--pen); background: var(--paper-2); }
.pricebox.light .prow + .prow { border-top-color: var(--pen); }
.pricebox.light .who, .pricebox.light .amt { color: var(--ink); }
.pricebox.light .prow-meta, .pricebox.light .per { color: var(--ink-soft); }
@media (max-width: 880px) { .starter-grid { grid-template-columns: 1fr; gap: 26px; } .starter-grid .pricebox { order: 1; } }

/* ---------- private 1-to-1 ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.pack { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 2px solid var(--pen); border-radius: var(--radius); background: var(--paper); color: inherit; text-decoration: none; }
.pack:hover { background: var(--paper-2); }
.pack .amt { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.pack .who { font-weight: 700; }
.pack .per { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 760px) { .packs { grid-template-columns: 1fr; } }
.free + .free { margin-top: 16px; }

/* ---------- date tag, about strip, privacy line ---------- */
.date-tag { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--highlight); color: var(--ink); font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.about { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; background: var(--paper-2); }
.about-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--paper); box-shadow: 0 0 0 3px var(--pen); display: block; }
.about h2 { margin-bottom: 8px; }
.about p { max-width: 62ch; }
.about .fine { margin-top: 8px; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; justify-items: center; text-align: center; } .about-photo { width: 160px; height: 160px; } }
.privacy { margin-top: 10px; }
.cf-turnstile { margin: 6px 0 14px; }

.pylogo { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: .4em; }

.pricetable-wrap { overflow-x: auto; margin: 10px 0 12px; }
.pricetable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pricetable th, .pricetable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.pricetable th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--graphite); }

details p + p { margin-top: 10px; }
