/* Main page only. Section order follows how a parent decides: who, proof, what, show me, who are you, questions, contact. */

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: var(--edge); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 1.2rem/1 var(--display); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.topbar nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 4px 22px; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.top-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 700; }

/* Hero */
.hero { background: var(--hero); color: var(--on-hero); padding-block: 40px 56px; overflow: hidden; border-bottom: var(--edge); }
.hero :focus-visible { outline-color: var(--on-hero); }
.hero .wrap { display: grid; gap: 26px; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero h1 { font-size: clamp(3rem, 13.5vw, 7.2rem); font-weight: 800; line-height: .9; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero h1 mark { background: var(--mark); color: var(--on-mark); padding: 0 .12em .06em; margin-left: -.04em; display: inline-block; transform: rotate(-1.5deg); border-radius: 10px; }
.hero-sub { font-size: clamp(1.18rem, 3.4vw, 1.45rem); line-height: 1.35; font-weight: 500; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.portrait { justify-self: center; width: min(78%, 360px); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(-5deg); }

/* Proof strip */
.proof { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: var(--edge); }
.proof li { padding: 26px 20px; display: grid; gap: 4px; align-content: start; border-bottom: var(--edge); }
.proof li:last-child { border-bottom: 0; }
.proof li:nth-child(1) { background: var(--b1); color: var(--on-b1); }
.proof li:nth-child(2) { background: var(--b3); color: var(--on-b3); }
.proof li:nth-child(3) { background: var(--b2); color: var(--on-b2); }
.proof strong { font: 800 clamp(2rem, 7vw, 2.9rem)/1 var(--display); letter-spacing: -.03em; }

/* Classes */
.classes { padding-block: 64px 0; }
.classes-head { display: grid; gap: 16px; padding-bottom: 44px; }
.classes-head p { max-width: 34em; font-size: 1.15rem; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.facts li { display: grid; gap: 2px; padding: 18px 20px; background: var(--white); border: var(--edge); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
.facts b { font: 800 1.25rem/1.15 var(--display); }
.facts span { color: var(--muted); }

/* Work */
.work { padding-block: 64px 72px; overflow: hidden; }
.work .wrap { display: grid; gap: 34px; }
.work .go { color: var(--cream); }
.soon { padding: 20px 22px; border: 3px dashed var(--muted); border-radius: 18px; }
.soon strong { display: block; font: 800 1.4rem/1.2 var(--display); }

/* About */
.about { padding-block: 64px; }
.about .wrap { display: grid; gap: 18px; }
.about h2 { max-width: 13em; }
.about p { max-width: 36em; }
.big-number { display: block; margin-block: 6px; font: 800 clamp(3.1rem, 14vw, 7rem)/.95 var(--display); letter-spacing: -.04em; }
.big-number small { display: block; margin-top: 6px; font: 500 1rem/1.4 var(--body); letter-spacing: 0; color: var(--muted); }
.logo-note { color: var(--muted); }

/* Parents FAQ */
.parents { padding-block: 64px; border-top: var(--edge); }
.parents .wrap { display: grid; gap: 22px; }
.faq { display: grid; gap: 16px; margin-top: 8px; }
.faq details { background: var(--white); border: var(--edge); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; font: 800 clamp(1.15rem, 3.6vw, 1.4rem)/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.8rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 20px; max-width: 40em; }

/* Contact */
.contact { background: var(--close); color: var(--on-close); text-align: center; border-top: var(--edge); padding-block: 72px 64px; }
.contact .wrap { display: grid; justify-items: center; gap: 24px; }
.contact h2 { font-size: clamp(3rem, 13vw, 7rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.contact p { max-width: 30em; font-weight: 500; }
.contact small { font-size: .98rem; font-weight: 500; max-width: 30em; }

@media (min-width: 720px) {
  .proof { grid-template-columns: repeat(3, 1fr); }
  .proof li { border-bottom: 0; border-right: var(--edge); padding: 30px 28px; }
  .proof li:last-child { border-right: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .topbar nav ul { display: flex; }
  .hero { padding-block: 64px 80px; }
  .hero .wrap { grid-template-columns: 1.35fr 1fr; align-items: center; column-gap: 48px; }
  .portrait { width: 100%; }
  .work .wrap { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .work .section-title, .work .soon { grid-column: 1 / -1; }
}

/* Link cards: guides under the parents FAQ and "Keep reading" on guide pages. */
.related { display: grid; gap: 12px; }
.related a { display: block; padding: 16px 18px; background: var(--white); border: var(--edge); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); text-decoration: none; font: 800 1.15rem/1.25 var(--display); }
.related a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.guides { margin-top: 12px; }

/* Small phones: keep the top bar on one line */
.lang, .btn.small, .brand { white-space: nowrap; }
@media (max-width: 420px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Site assistant */
.ask { padding-block: 64px; border-top: var(--edge); background: var(--b3); color: var(--on-b3); }
.ask .wrap { display: grid; gap: 18px; }
.ask-lead { max-width: 36em; font-size: 1.12rem; }
.chat { display: grid; background: var(--white); color: var(--ink); border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.chat-log { display: flex; flex-direction: column; gap: 12px; min-height: 220px; max-height: min(60vh, 520px); overflow-y: auto; padding: 20px; scroll-behavior: smooth; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 16px; }
.chat-chips[hidden] { display: none; }
.chip { min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); font: 700 .95rem/1.2 var(--body); cursor: pointer; text-align: left; }
.chip:hover { background: var(--mark); color: var(--on-mark); }
.bubble { display: grid; gap: 4px; max-width: 88%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 16px; }
.bubble .who { font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; opacity: .75; }
.bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble a { font-weight: 700; }
.bubble.user { align-self: flex-end; background: var(--btn); color: var(--on-btn); border-bottom-right-radius: 4px; }
.bubble.assistant { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 4px; }
.bubble.error { background: #FFE9E3; }
.bubble p.pending { opacity: .65; }
.chat-note { align-self: center; font-size: .9rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--cream); }
.chat-note.ok { background: var(--mark); color: var(--on-mark); }
.chat-note.warn { background: #FFE9E3; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px; border-top: var(--edge); background: var(--cream); }
.chat-form textarea { flex: 1; min-height: 68px; max-height: 160px; resize: vertical; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; font: 400 1rem/1.4 var(--body); background: var(--white); color: var(--ink); }
.chat-form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.chat-form .btn { min-height: 52px; padding: 10px 18px; box-shadow: 4px 4px 0 var(--ink); }
.chat-form .btn:disabled { opacity: .55; cursor: progress; transform: none; }
.chat-fine { font-size: .9rem; max-width: 46em; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .chat-log { scroll-behavior: auto; } }

/* Enquiry form (contact section) */
.enquiry { display: grid; gap: 14px; width: min(100%, 620px); padding: 22px; text-align: left; background: var(--white); color: var(--ink); border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.enquiry .field { display: grid; gap: 6px; font-weight: 700; font-size: .98rem; }
.enquiry input, .enquiry select, .enquiry textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.enquiry textarea { resize: vertical; }
.enquiry input:focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.enquiry [aria-invalid="true"] { border-color: #C2361A; background: #FFE9E3; }
.enquiry .field-row { display: grid; gap: 14px; }
.enquiry .age input { max-width: 140px; }
.who-field { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; font-weight: 500; }
.who-field legend { font-weight: 700; margin-bottom: 6px; width: 100%; }
.who-field label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.who-field input { width: 20px; height: 20px; min-height: 0; accent-color: var(--ink); }
.enquiry .btn { justify-self: start; }
.enquiry .btn:disabled { opacity: .55; cursor: progress; transform: none; }
.enquiry small { color: var(--muted); font-size: .9rem; }
.enquiry-status { font-weight: 700; min-height: 1.4em; }
.enquiry-status.ok { color: #13663F; }
.enquiry-status.err { color: #A62A12; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.or-linkedin { font-weight: 500; }
.or-linkedin a { font-weight: 700; }
@media (min-width: 640px) { .enquiry .field-row { grid-template-columns: 200px 1fr; } }
