/* velang.app subpages (site/page.template.html). Builds on site/home.css (v4, concept 06). */

/* page hero: centred, white, small cast above the headline */
.page-hero { text-align: center; padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.page-cast { display: flex; justify-content: center; gap: 16px; margin-bottom: 22px; }
.page-cast .float { position: relative; width: 64px; }
.page-cast .float:nth-child(2) { width: 76px; --d: 5.6s; --delay: -1.5s; }
.page-cast .float:nth-child(3) { --d: 4.8s; --delay: -3s; }
.page-kicker { display: inline-block; padding: 6px 14px; border: 2px solid var(--line); border-radius: 12px; color: var(--deep); font-size: 14px; font-weight: 600; }
.page-hero h1 { margin: 16px auto 0; max-width: 16ch; font-size: clamp(40px, 6vw, 72px); }
.page-lede { margin: 16px auto 0; max-width: 34em; color: var(--muted); font-size: 20px; }

/* sections */
.page-section { padding: clamp(40px, 6vw, 72px) 0; }
.page-section h2 { margin-bottom: 8px; }

/* panels become v4 rows: one visual and short copy side by side */
.panels { padding-block: clamp(8px, 2vw, 24px); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); align-items: center; padding: clamp(36px, 6vw, 72px) 0; }
.panel--reverse .panel-visual { order: -1; }
.panel-visual { position: relative; display: flex; justify-content: center; }
.panel-kicker { display: inline-block; margin-bottom: 12px; color: var(--deep); font-size: 15px; font-weight: 600; }
.panel-copy h2 { margin-bottom: 14px; }
.panel-copy p { color: var(--muted); font-size: 20px; max-width: 30ch; }
.panel-copy p + p { margin-top: 8px; }
.panel-status { font-weight: 600; }
.panel-link { color: var(--action); font-weight: 600; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 26px 24px; border: 2px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 5px 0 var(--line); }
.card--sky { background: var(--select); }
.card--gold { border-color: var(--gold); box-shadow: 0 5px 0 #E2B13F; }
.card-tag { display: inline-block; margin-bottom: 10px; color: var(--deep); font-size: 14px; font-weight: 600; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.15; }
.card p { margin-top: 8px; color: var(--muted); }
.card a { color: var(--action); font-weight: 600; }

/* founder quote */
.quote-band { text-align: center; }
.quote-band blockquote { max-width: 22em; margin: 0 auto; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; text-wrap: balance; }
.quote-band cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; color: var(--muted); }
.quote-band cite strong { color: var(--ink); }

/* questions (same look as the homepage FAQ) */
.qa { max-width: 760px; margin-top: 24px; display: grid; gap: 12px; }
.qa details { border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--action); font-size: 24px; line-height: 1; }
.qa details[open] summary::after { content: "−"; }
.qa details p { padding: 0 22px 20px; color: var(--muted); }
.qa a { color: var(--action); font-weight: 600; }

/* contact */
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px; border: 2px solid var(--line); border-radius: 28px; background: var(--select); box-shadow: 0 6px 0 var(--line); }
.contact-card h2 { font-size: clamp(26px, 3.4vw, 40px); overflow-wrap: anywhere; }
.contact-card p { margin-top: 8px; color: var(--muted); }
.contact-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.contact-links a { color: var(--deep); font-weight: 600; }
.contact-card .btn { background: var(--action); color: #fff; box-shadow: 0 5px 0 var(--deep); }

/* closing: the homepage band, without the curve svg */
.closing { margin-top: clamp(40px, 6vw, 72px); padding: clamp(56px, 8vw, 96px) 16px; border-radius: 50% 50% 0 0 / clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; background: var(--action); color: #fff; text-align: center; }
.closing h2 { max-width: 14ch; margin: 0 auto 28px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-light { background: #fff; color: var(--deep); box-shadow: 0 5px 0 var(--sky); }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 4px 0 var(--deep); }
.btn .arrow { margin-inline-start: 8px; }
.page main > :last-child:not(.closing) { padding-bottom: clamp(56px, 8vw, 96px); }

/* legal prose (text kept exactly as published) */
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.prose { max-width: 72ch; font-size: 17px; }
.prose section { padding: 26px 0; border-bottom: 2px solid var(--select); }
.prose section:first-child { padding-top: 0; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.prose p, .prose li { margin-top: 10px; color: var(--muted); }
.prose ul { padding-inline-start: 22px; }
.prose a { color: var(--action); }
.notice { padding: 18px 20px; border: 2px solid var(--gold); border-radius: 18px; }
.updated { margin-top: 20px; font-size: 14px; color: var(--muted); }
.prose-aside { position: sticky; top: 24px; display: grid; gap: 12px; }
.prose-aside .aside-block, .prose-aside > div { padding: 20px; border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line); font-size: 15px; color: var(--muted); }
.prose-aside h2 { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.prose-aside a { color: var(--action); display: block; }

/* exam pages: modules at a glance, part lists, real app screens */
.page-kicker:empty { display: none; }
.exam-mark { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; }
.exam-mark b { font-weight: inherit; }
.exam-mark i { font-style: normal; padding: .1em .28em; border: 3px solid var(--line); border-radius: .22em; font-size: .62em; line-height: 1.1; color: var(--action); box-shadow: 0 4px 0 var(--line); }
.glance-section { padding-top: 0; text-align: center; }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.glance-tile { display: grid; gap: 2px; padding: 22px 16px; border: 2px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 5px 0 var(--line); }
.glance-tile span { color: var(--deep); font-weight: 600; }
.glance-tile strong { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; color: var(--ink); }
.glance-tile small { color: var(--muted); font-size: 15px; }
.glance-note { margin-top: 22px; color: var(--muted); font-size: 18px; }
.glance-actions { margin-top: 24px; }
.glance-actions .btn { min-width: 240px; }
.exam-pages { margin-top: 24px; font-size: 18px; }
.parts { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 30em; }
.parts li { padding: 6px 12px; border-radius: 12px; background: var(--select); color: var(--ink); font-size: 15px; }
.parts b { color: var(--deep); margin-inline-end: 4px; }
.phone { width: min(300px, 78vw); margin: 0; border: 2px solid var(--line); border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 6px 0 var(--line); }
.phone img { display: block; width: 100%; height: auto; }

/* exam pages: each part as the app's format lesson shows it (generated by site/gen-exam-parts.mjs) */
.exam-parts { margin: 0 0 clamp(24px, 4vw, 48px); }
.part-tabs { display: none; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.exam-parts.is-tabbed .part-tabs { display: flex; }
.part-tabs button { flex: none; padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; font: 600 16px var(--sans, inherit); color: var(--muted); cursor: pointer; }
.part-tabs button[aria-selected="true"] { color: var(--action); border-bottom-color: var(--action); }
.part-tabs button:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; border-radius: 8px; }
.part { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "paper head" "paper vel"; grid-template-rows: auto 1fr; column-gap: clamp(20px, 4vw, 48px); align-items: start; }
.part[hidden] { display: none; }
.paper { grid-area: paper; }
.part-head { grid-area: head; }
.vel-tip { grid-area: vel; }
.part + .part { margin-top: 28px; }
.exam-parts.is-tabbed .part + .part { margin-top: 0; }
.paper { padding: 22px 24px 24px; border: 1px solid #D9DEE3; border-radius: 6px; background: #fff; box-shadow: 0 2px 0 #E6E9EC, 0 12px 28px rgba(21, 51, 87, .06); font-size: 16px; color: var(--ink); }
.paper header span:last-child { white-space: nowrap; }
.paper header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid #D9DEE3; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.paper h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.25; }
.paper-situation { margin-top: 12px; }
.paper ul { margin-top: 14px; padding: 14px 0 0 20px; border-top: 1px solid #ECEFF2; display: grid; gap: 6px; }
.paper-instructions { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ECEFF2; font-size: 14px; color: var(--muted); }
.part-title { font-family: var(--display); font-weight: 800; font-size: 24px; }
.part-meta { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.part-meta li { padding: 5px 12px; border-radius: 12px; background: var(--select); color: var(--deep); font-size: 15px; font-weight: 600; }
.part-what { margin-top: 12px; color: var(--muted); font-size: 18px; }
.vel-tip { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 22px; }
.vel-tip img { width: 76px; height: auto; }
.vel-bubble { padding: 16px 18px; border: 2px solid var(--line); border-radius: 22px 22px 22px 6px; background: #fff; box-shadow: 0 4px 0 var(--line); }
[dir="rtl"] .vel-bubble { border-radius: 22px 22px 6px 22px; }
.vel-move { font-weight: 600; font-size: 17px; color: var(--ink); }
.vel-example { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #F0F1F2; font-size: 15px; display: grid; gap: 6px; }
.vel-example mark { background: var(--select); color: var(--ink); font-weight: 700; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ex-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.ex-answer { justify-self: start; padding: 3px 10px; border: 2px solid var(--action); border-radius: 10px; color: var(--action); font-weight: 700; }

@media (max-width: 820px) {
  .part { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "paper" "vel"; grid-template-rows: none; }
  .paper { margin-top: 18px; }
  .part-tabs button { padding: 12px 12px; }
}

@media (max-width: 960px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prose-wrap { grid-template-columns: minmax(0, 1fr); }
  .prose-aside { position: static; }
}
@media (max-width: 820px) {
  .panel { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .panel--reverse .panel-visual { order: 0; }
  .panel-copy p { margin-inline: auto; }
  .parts { justify-content: center; margin-inline: auto; }
}
@media (max-width: 640px) {
  .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); }
  .contact-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .page-lede { font-size: 18px; }
}

/* Exam page: links to its guides (spec 019 FR-010) */
.guide-links { list-style: none; padding: 0; margin: 24px 0 0; max-width: 760px; display: grid; gap: 12px; }
.guide-links li { border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line); padding: 18px 22px; }
.guide-links a { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 19px; text-decoration: none; }
.guide-links a::after { content: ""; position: absolute; inset: 0; }
.guide-links li { position: relative; }
.guide-links li:hover { border-color: var(--action); box-shadow: 0 3px 0 var(--action); }
.guide-links a:focus-visible { outline: none; }
.guide-links li:focus-within { outline: 3px solid var(--action); outline-offset: 3px; }
.guide-links span { display: block; color: var(--muted); font-size: 16px; margin-top: 4px; }
.guide-more { margin-top: 18px; font-weight: 700; }
.guide-more a { color: var(--action); }

/* Exam page module with no app screen: copy only, above its part overview */
.panel--solo { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(8px, 2vw, 20px); }
.panel--solo .panel-copy p { max-width: 52ch; }
.glance--long .glance-tile { align-content: start; }
.glance--long .glance-tile span { display: grid; place-items: center; min-height: 3em; }
@media (min-width: 961px) { .glance--long .glance-tile span { min-height: 3.2em; } }
.glance--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .glance--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance--3 .glance-tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Exam page, direction B2 (owner 2026-10-26): the app on the paper, module tabs, pick your exam */
.xp-modules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); align-items: center; padding-bottom: clamp(24px, 4vw, 48px); }
.xp-phone { justify-self: center; width: min(300px, 80vw); margin: 0; padding: 9px; border: 2px solid var(--line); border-radius: 46px; background: #fff; box-shadow: 0 6px 0 var(--line); }
.xp-phone img { display: block; width: 100%; height: auto; border-radius: 36px; }
.xp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: #EEF1F4; }
.xp-tabs button { min-height: 44px; border: 1.5px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); font: 700 15px var(--display); cursor: pointer; }
.xp-tabs button[aria-selected="true"] { border-color: #8FBBDD; background: #CFE4F4; box-shadow: 0 3px 0 #8FBBDD; color: var(--deep); font-weight: 800; }
.xp-panel { margin-top: 24px; }
.xp-panel h2 { margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 40px); }
.xp-panel p { color: var(--muted); font-size: 20px; max-width: 30ch; }
.xp-panel .panel-link { display: inline-block; margin-top: 12px; }
.js-tabs .xp-panel:not(.on) { display: none; }
.xp-pick { display: grid; grid-template-columns: 72px repeat(4, minmax(0, 76px)); gap: 10px; align-items: center; margin-top: 20px; }
.xp-pick b { font-family: var(--display); font-weight: 800; font-size: 19px; }
.xp-pick a { display: grid; place-items: center; min-height: 52px; border: 2px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--line); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; }
.xp-pick a:hover { background: var(--select); }
.xp-vel { display: flex; align-items: flex-end; gap: 12px; max-width: 640px; }
.xp-vel img { width: 72px; height: 72px; flex: none; }
.xp-vel p { flex: 1; padding: 14px 18px; border-radius: 20px; background: #F0F1F2; font-size: 18px; }
@media (max-width: 760px) {
  /* on a phone the tabs sit above the screen they change */
  .xp-modules { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .xp-side { display: contents; }
  .xp-tabs { order: -1; }
  .xp-panel { margin-top: 4px; }
  .xp-tabs button { font-size: 14px; }
  .xp-pick { grid-template-columns: 64px repeat(4, minmax(0, 1fr)); }
}
