/* site.css - the shared shell of mymentorai.com (skeleton, 2026-11-21). Loaded on every page, after the kit's
   system.css, ui/cards.css, motion/motion.css and layout/layout.css and before ui/base.css (site.json order).
   1. the palette and fonts of the approved home (v2/home), the dark ground, tokens for the consent and form files
   2. the header extras (the language switch, the Coming soon card in the Product menu)
   3. the footer (the home's dark footer look, the grant strip on its white plate, the company block)
   4. the text pages (section.doc) on the new ground
   5. the side-page section shells: .section--auto, .kicker, .src-note, .sheet, the closing band (.band-close)
   6. focus and reduced motion
   The kit's rules stay the system: one grid, one type scale, one button pair. Builders never edit this file. */

/* ================================================================ 1. palette (v2/home, word for word) */
:root {
  --p-bg: #0a0d14; --p-surface: #131824; --p-ink: #e9edf3; --p-muted: #82868d;
  --p-accent: #17ead9; --p-accent-ink: #0a0d14; --p-action: #17ead9; --p-action-ink: #0a0d14;
  --p-inv-bg: #e9edf3; --p-inv-surface: #d7dbe1; --p-inv-ink: #0a0d14; --p-inv-muted: #54575f;
  --p-inv-accent: #0a0d14; --p-inv-accent-ink: #e9edf3; --p-inv-action: #0a0d14; --p-inv-action-ink: #e9edf3;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}
/* shared extras: the quiet grey of source lines and numbers (the home's --src), the footer's ground */
:root {
  --src: #a3a8b0;
  --foot-bg: color-mix(in oklab, #0a0d14 72%, #000);
  /* aliases the consent banner (consent.css) and the contact form (contact-form.css) read; without them both
     fall back to dark ink on a white card, which clashes with the dark page */
  --font-body: var(--font-text); --font-heading: var(--font-display);
  --color-ink: #e9edf3; --color-ink-muted: #a3a8b0; --color-muted: #a3a8b0; --color-ink-hover: #ffffff; --color-on-ink: #0a0d14;
  --color-surface: #131824; --color-surface-alt: #1b2231;
  --color-line: rgb(233 237 243 / .16); --color-line-strong: rgb(233 237 243 / .36);
  --color-accent: #17ead9; --color-on-accent: #0a0d14; --color-link: #17ead9; --color-focus: #17ead9;
  --color-danger: #ff8a80; --color-danger-bg: rgb(255 138 128 / .12);
  --color-success: #5fe3c0; --color-success-bg: rgb(23 234 217 / .1); --color-ok: #5fe3c0;
  --shadow-lg: 0 18px 48px rgb(0 0 0 / .55);
}
html, body { background: var(--p-bg); }
/* main takes the focus from the skip link (tabindex -1): no ring round the whole page */
main:focus, main:focus-visible { outline: none; }

/* ================================================================ 2. header extras */
/* the language switch: the short code in the bar (its full name is in the aria-label) */
.site-nav__lang { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; }
/* a small laptop (1024-1199): the bar holds one more word than v2/home (Sign in), and the Italian words are longer,
   so its gaps and the button's padding step down one size; nothing wraps or reaches the logo */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-nav .nav__bar { gap: var(--s-5); }
  .site-nav .nav__actions { gap: var(--s-3); }
  .site-nav .nav__actions .btn { padding-inline: var(--s-4); }
}
/* the Coming soon card in the Product menu: plain rows with a small 2027 mark, no tick, no count, no progress bar
   (decision 2026-11-21: nothing in it may read as done); same card size and place as v2/home */
.nav .menu-soon .menu-soon__rule { height: 1px; margin: 1.5px 16px 9.5px; background: var(--u-line); }
.nav .menu-soon .ui-check { color: var(--u-ink); }
.nav .menu-soon .ui-check__label::after { display: none; }
.menu-soon__tag {
  display: inline-grid; place-items: center; flex: none; height: 18px; padding: 0 6px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--u-line-2); font: 500 10px/1 var(--font-mono); letter-spacing: .03em; color: var(--u-muted);
}

/* ================================================================ 3. footer (the home's look: opaque, over the canvas) */
.site-foot {
  --bg: var(--foot-bg); --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink); --action: var(--p-action); --action-ink: var(--p-action-ink);
  --line: color-mix(in oklab, var(--p-ink) 11%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 20%, transparent);
  position: relative; z-index: 3; background: var(--foot-bg); color: var(--p-ink);
}
.footer.site-foot { padding-top: 96px; }
.footer__mark { font-size: clamp(30px, 1.72vw + 23.3px, 48px); }
.footer__logo { width: .8em; height: auto; margin-right: .22em; flex: none; }
.site-foot__brand .btn { margin-top: var(--s-5); }
/* column heads are h2 (the page's outline goes on from its last h2), set as the kit's footer heads */
.site-foot .footer__col h2 { font: 500 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-4); text-wrap: wrap; }
/* the official grant strip is the positive artwork: it keeps a white plate on the dark footer (legal obligation:
   one link to /it/progetto-finanziato/, never dropped, never redrawn) */
.footer__grant { display: flex; }
.site-foot__grant { display: block; width: min(100%, 560px); padding: 12px 16px; background: #ffffff; border-radius: var(--r-sm); }
.site-foot__grant img { width: 100%; height: auto; }
.site-foot__grant:focus-visible { outline-offset: 4px; }
.site-foot .footer__legal { align-items: flex-end; }
.site-foot__company { flex: 1 1 60ch; max-width: 100ch; line-height: 1.6; }
.site-foot .footer__legal .site-foot__company a { display: inline; min-height: 0; min-width: 0; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-foot__copy { flex: none; }
@media (max-width: 639px) { .footer.site-foot { padding-top: 64px; } }

/* ================================================================ 4. the text pages (privacy, terms, cookies, ...)
   section.doc sits right in main, so the kit's one-screen rule (main > section: one screen tall, the .wrap a flex
   column at 100%) would cut a long legal text; a text page grows with its words instead. doc.css does the rest. */
main > section.doc.doc { height: auto; min-height: 0; padding: calc(var(--nav) + var(--s-8)) 0 var(--s-10); }
main > section.doc.doc > .wrap:not(.grid) { height: auto; display: grid; flex: none; }
@media (max-width: 639px) { main > section.doc.doc { padding: calc(var(--nav) + var(--s-6)) 0 var(--s-9); } }

/* ================================================================ 5. side-page section shells
   Every side page is a stack of kit sections in main (system.css: one or two screens each, --h, .g2, .hero).
   <section class="section" id="x" aria-labelledby="x-h"><div class="wrap"> h2 first, then the content </div></section>
   These few additions are shared; a page's own CSS goes in assets/css/<slug>.css. */
/* a section whose content is a long list or a form: it grows with its content instead of one screen */
main > section.section--auto.section--auto { height: auto; min-height: 0; }
main > section.section--auto.section--auto > .wrap:not(.grid) { height: auto; }
/* the small mono line above a heading, and a source line under a figure */
.kicker { display: block; margin-bottom: var(--s-4); font: 500 var(--t-label)/1.4 var(--font-mono); letter-spacing: .02em; color: var(--src); }
.src-note { font-size: var(--t-small); line-height: 1.5; color: var(--src); }
.src-note a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
/* the one light sheet a page may lay over the dark ground (with .ground-inverse), rounded like the home's */
.sheet { border-radius: clamp(24px, 3vw, 44px); overflow: clip; }

/* the closing band: the LAST section of every page body (the footer partial holds no close). The home has its
   own (#close); a side page writes:
   <section class="section band-close" id="close" aria-labelledby="close-h"><div class="wrap">
     <img class="band-close__mark" src="/assets/img/mark.svg" alt="" width="98" height="90">
     <h2 id="close-h" class="band-close__line">..</h2>
     <p class="band-close__note">..</p>
     <a class="btn btn--primary btn--xl btn--wide" href="https://tutor.mymentorai.com/#/register">Start the free plan<svg class="m-arrow" ...></svg></a>
   </div></section> */
main > section.band-close.band-close { height: auto; min-height: 0; padding: var(--s-10) 0 var(--s-9); border-top: 1px solid var(--line); }
main > section.band-close.band-close > .wrap:not(.grid) { height: auto; display: flex; flex-direction: column; align-items: flex-start; }
.band-close__mark { width: 98px; height: 90px; }
.band-close__line { margin-top: var(--s-6); font-size: clamp(40px, 4.4vw + 12px, 96px); line-height: .98; letter-spacing: var(--display-tracking-xl); max-width: 16ch; text-wrap: balance; }
.band-close__note { margin-top: var(--s-5); max-width: 52ch; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.band-close__note a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.band-close > .wrap > .btn--xl { margin-top: var(--s-7); align-self: stretch; }
@media (max-width: 639px) {
  main > section.band-close.band-close { padding: var(--s-9) 0 var(--s-8); }
  .band-close__mark { width: 65px; height: 60px; }
}

/* ================================================================ 6. focus and reduced motion */
/* the kit's ring is the action colour (teal on dark, ink on the light sheet); anchors land on a section's top as the
   kit sets (scroll-padding 0: every section's own top padding clears the fixed header) */
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }
/* a control reached with Tab is scrolled clear of the fixed header (review A-03); section anchors are unchanged */
:where(a, button, input, select, textarea, summary, [tabindex]) { scroll-margin-top: calc(var(--nav) + 16px); }
/* keyboard focus in the Product panel: its links are focusable at once (visibility without the 150 ms intent
   delay); the panel's fade keeps its delay, so it looks the same as on hover (review A-06) */
@media (min-width: 1024px) {
  .nav__item:focus-within > .nav__menu { visibility: visible; transition-delay: 150ms, 150ms, 0s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
