/* =========================================================
   پارس آموز — homepage (loaded only by index.html).
   Every rule sits under `.home` or an `h-`/`ui-` class, so no other page changes.

   Palette: a deep petrol ink, the app's own teal (#66B5CE) deepened for text and buttons,
   and the class register's three marks (present / absent / late) as the only other colours.
   Motif: the ruled page and red margin line of a Persian school notebook, behind the hero
   register and the closing panel.
   ========================================================= */

.home {
  --h-ink: #0E2530;
  --h-text: #31444C;
  --h-muted: #5D6F77;
  --h-faint: #8999A0;
  --h-paper: #F3F6F6;
  --h-surface: #FFFFFF;
  --h-line: #DAE3E6;
  --h-line-soft: #E8EEF0;
  --h-teal: #17788F;
  --h-teal-ink: #0F5C6E;
  --h-teal-soft: #E2F0F3;
  --h-brand: #66B5CE;
  --h-present: #0F7F63;
  --h-present-soft: #E1F2EC;
  --h-absent: #B83A33;
  --h-absent-soft: #FBE8E6;
  --h-late: #9A620E;
  --h-late-soft: #FBF0DC;
  --h-bell: #E3A13A;
  --h-shadow: 0 1px 2px rgba(14, 37, 48, .05), 0 14px 32px -18px rgba(14, 37, 48, .28);
  --h-shadow-lg: 0 2px 4px rgba(14, 37, 48, .04), 0 30px 60px -24px rgba(14, 37, 48, .34);
  background: var(--h-paper);
  color: var(--h-text);
}

/* ---------- shared chrome, retuned on this page only ---------- */
.home .site-header { background: rgba(243, 246, 246, .86); border-bottom-color: var(--h-line-soft); }
.home .site-header.is-scrolled { background: rgba(255, 255, 255, .92); }
.home .btn { border-radius: 12px; }
.home .btn-primary { background: var(--h-teal); color: #fff; box-shadow: 0 10px 22px -12px rgba(23, 120, 143, .8); }
.home .btn-primary:hover { background: var(--h-teal-ink); box-shadow: 0 14px 26px -12px rgba(15, 92, 110, .8); transform: translateY(-1px); }
.home .btn-ghost { color: var(--h-ink); border-color: var(--h-line); }
.home .btn-ghost:hover { border-color: var(--h-teal); }
.home .nav-menu > li > a:hover, .home .nav-trigger:hover, .home .nav-menu > li.is-open .nav-trigger { background: var(--h-teal-soft); color: var(--h-teal-ink); }
.home .to-top { background: var(--h-teal); box-shadow: var(--h-shadow); }
.home :focus-visible { outline-color: var(--h-brand); }

/* ---------- type ---------- */
.home h1, .home h2, .home h3 { color: var(--h-ink); letter-spacing: 0; text-wrap: balance; }
.h-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .88rem; font-weight: 700; color: var(--h-teal); }
.h-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.h-section { padding-block: clamp(64px, 8vw, 112px); }
.h-section--white { background: var(--h-surface); border-block: 1px solid var(--h-line-soft); }
.h-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.h-head h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.5; font-weight: 800; margin: 0 0 14px; }
.h-lead { margin: 0; max-width: 62ch; font-size: clamp(1rem, 1.25vw, 1.09rem); line-height: 2.05; color: var(--h-muted); }
.h-lead a { color: var(--h-teal); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.h-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 64px; align-items: end; }
.h-head--split h2 { margin: 0; }

.h-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--h-teal); }
.h-more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.h-more:hover { color: var(--h-teal-ink); }
.h-more:hover svg { transform: translateX(-4px); }
.h-more--quiet { color: var(--h-muted); font-weight: 600; }
.h-more--quiet:hover { color: var(--h-ink); }

/* =========================================================
   Hero
   ========================================================= */
.h-hero { padding-block: clamp(36px, 5.5vw, 76px) 0; overflow: hidden; }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.h-hero h1 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.4; font-weight: 800; }
.h-hero h1 span { display: block; color: var(--h-teal); }

/* the «پارس آموز چیست؟» answer box (AEO) reads as the page's lead paragraph */
.home .h-hero .answer-box { margin: 0 0 30px; padding: 2px 18px 2px 0; padding-inline: 18px 0; background: none; border: 0; border-inline-start: 2px solid var(--h-brand); border-radius: 0; }
.home .h-hero .answer-box-label { margin-bottom: 4px; font-size: .8rem; font-weight: 700; color: var(--h-muted); }
.home .h-hero .answer-box p { font-size: clamp(1.02rem, 1.35vw, 1.14rem); line-height: 2; color: var(--h-text); max-width: 56ch; }

.h-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.h-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 2px solid var(--h-line); font-weight: 700; color: var(--h-ink); transition: border-color .2s; }
.h-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.h-link:hover { border-color: var(--h-teal); }
.h-link:hover svg { transform: translateX(-4px); }

/* login for people who already use the system (most visitors search the brand to reach their school) */
.h-login { max-width: 520px; margin-top: 34px; padding-top: 24px; border-top: 1px dashed var(--h-line); }
.h-login label { display: block; margin-bottom: 10px; font-size: .92rem; font-weight: 700; color: var(--h-ink); }
.h-login-row { display: flex; gap: 10px; }
.h-login-field { flex: 1; min-width: 0; height: 50px; display: flex; align-items: center; gap: 2px; padding-inline: 14px; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.h-login-field:focus-within { border-color: var(--h-teal); box-shadow: 0 0 0 3px rgba(23, 120, 143, .16); }
.h-login-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--h-ink); text-align: right; }
.h-login-field input::placeholder { color: var(--h-faint); }
.h-login-field span { color: var(--h-muted); font-size: .95rem; white-space: nowrap; }
.h-login-btn { flex: none; height: 50px; display: inline-flex; align-items: center; gap: 8px; padding-inline: 20px; border: 0; border-radius: 12px; background: var(--h-ink); color: #fff; font: inherit; font-weight: 700; transition: background .15s; }
.h-login-btn:hover { background: #1B3A47; }
.h-login-btn svg { width: 18px; height: 18px; }
.h-login .form-note { margin: 10px 0 0; }
.h-login-alt { margin: 10px 0 0; font-size: .88rem; color: var(--h-muted); }
.h-login-alt a { color: var(--h-teal); font-weight: 700; }

/* ---------- hero art: the real web dashboard, the real app in front of it ----------
   Every size is in cqi (1% of the art column's width), so the whole picture scales as one piece:
   the browser runs off the screen's left edge on purpose, the phone steps out toward the words. */
.h-hero-art { position: relative; aspect-ratio: 560 / 640; }
.h-shots { position: absolute; inset: 0; container-type: inline-size; }
.h-shots-stage {
  position: absolute; top: 6cqi; bottom: 11cqi; inset-inline-start: 8cqi; inset-inline-end: -100vw;
  border-start-start-radius: 5cqi; border-end-start-radius: 5cqi; overflow: hidden;
  background: linear-gradient(155deg, #66B5CE 0%, #2B8DA6 42%, #0F5C6E 100%);
}
/* the notebook again: faint ruling, as on the closing panel */
.h-shots-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 calc(5.4cqi - 1px), rgba(255, 255, 255, .08) calc(5.4cqi - 1px) 5.4cqi);
}
.h-shot-web { position: absolute; z-index: 1; top: 13cqi; inset-inline-start: 15cqi; width: 150cqi; margin: 0; overflow: hidden; border-radius: 2.2cqi; background: #fff; box-shadow: 0 7cqi 14cqi -5cqi rgba(6, 30, 40, .55), 0 0 0 1px rgba(14, 37, 48, .1); }
.h-shot-bar { display: flex; align-items: center; gap: 1.1cqi; height: 6.2cqi; padding-inline: 2.6cqi; background: #EEF3F4; border-bottom: 1px solid #DCE4E7; }
.h-shot-bar i { width: 1.7cqi; height: 1.7cqi; border-radius: 50%; background: #C9D5D9; }
.h-shot-bar span { flex: 0 1 60cqi; margin-inline-start: 2cqi; padding: .3cqi 2cqi; border-radius: 1.2cqi; background: #fff; font-size: 1.9cqi; line-height: 1.7; color: #6C7E85; text-align: left; white-space: nowrap; overflow: hidden; }
.h-shot-img { display: block; width: 100%; height: auto; }
.h-shot-web picture, .h-shot-app picture { display: block; }
.h-shot-app { position: absolute; z-index: 2; bottom: 0; inset-inline-start: -3cqi; width: 41cqi; margin: 0; padding: 1.6cqi; border-radius: 7cqi; background: #0D1B21; box-shadow: 0 8cqi 14cqi -4cqi rgba(6, 30, 40, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.h-shot-app picture { overflow: hidden; border-radius: 0 0 5.4cqi 5.4cqi; }
.h-shot-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 5cqi; padding-inline: 3.2cqi; border-radius: 5.4cqi 5.4cqi 0 0; background: #F8FAFC; font-size: 1.9cqi; font-weight: 700; color: var(--h-ink); }
.h-cam { position: absolute; top: 1.3cqi; left: 50%; width: 2.2cqi; height: 2.2cqi; border-radius: 50%; background: #0D1B21; translate: -50% 0; }
.h-sys { display: flex; align-items: center; gap: .8cqi; }
.h-sys i { display: block; width: 2.2cqi; height: 1.4cqi; border-radius: .4cqi; background: var(--h-ink); }
.h-sys i:first-child { width: 1.8cqi; height: 1.8cqi; border-radius: 0; background: none; border-left: .9cqi solid transparent; border-bottom: 1.8cqi solid var(--h-ink); }
/* one moment the screenshots cannot show: the notification a family gets */
.h-shots .h-toast { position: absolute; z-index: 3; bottom: 4cqi; inset-inline-start: 48cqi; width: 42cqi; gap: 2cqi; padding: 2.4cqi; border-radius: 3cqi; }
.h-shots .h-toast-ic { width: 6.4cqi; height: 6.4cqi; border-radius: 1.8cqi; }
.h-shots .h-toast-ic svg { width: 3.8cqi; height: 3.8cqi; }
.h-shots .h-toast small { font-size: 1.9cqi; }
.h-shots .h-toast b { font-size: 2.5cqi; }
.h-shots .h-toast > div > span { font-size: 2.2cqi; }
.h-toast { display: flex; align-items: flex-start; border: 1px solid var(--h-line); background: rgba(255, 255, 255, .97); box-shadow: var(--h-shadow-lg); animation: h-rise .6s cubic-bezier(.2, .8, .3, 1) backwards; animation-delay: .9s; }
.h-toast-ic { flex: none; display: grid; place-items: center; background: var(--h-brand); color: #fff; }
.h-toast small { display: block; color: var(--h-faint); }
.h-toast b { display: block; margin: .2em 0; color: var(--h-ink); }
.h-toast > div > span { display: block; line-height: 1.75; color: var(--h-text); }
/* the load-time moment never hides anything: a frame that is never played still shows the card */
@keyframes h-rise { from { opacity: .4; transform: translateY(14px); } }

/* facts: only what is true and checkable */
.h-facts { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: clamp(44px, 6vw, 76px) 0 0; padding: 26px 0 30px; border-top: 1px solid var(--h-line); }
.h-facts li { display: flex; flex-direction: column; gap: 3px; padding-inline-start: 20px; border-inline-start: 1px solid var(--h-line); }
.h-facts li:first-child { padding-inline-start: 0; border: 0; }
.h-facts b { font-size: 1.3rem; font-weight: 800; color: var(--h-ink); }
.h-facts span { font-size: .85rem; line-height: 1.75; color: var(--h-muted); }

/* =========================================================
   One school day
   ========================================================= */
.h-day { position: relative; list-style: none; margin: 0; padding: 0; }
/* the day's line, running past every stop */
.h-day::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 7px; width: 2px; background: var(--h-line); }
.h-stop { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 250px; gap: 0 clamp(28px, 4vw, 64px); align-items: start; padding-block: clamp(34px, 4vw, 52px); }
.h-stop + .h-stop { border-top: 1px solid var(--h-line-soft); }
.h-stop-time { position: sticky; top: 100px; padding-inline-start: 34px; }
.h-stop-time::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--h-surface); border: 3px solid var(--h-teal); }
.h-stop-time time { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.3; color: var(--h-ink); font-variant-numeric: tabular-nums; }
.h-stop-time span { font-size: .88rem; font-weight: 700; color: var(--h-teal); }
.h-stop-body h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.55; font-weight: 800; }
.h-stop-body > p { margin: 0; max-width: 60ch; font-size: 1.02rem; line-height: 2.05; color: var(--h-text); }
.h-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 22px; padding: 0; }
.h-ticks li { display: flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--h-ink); }
.h-ticks svg { width: 17px; height: 17px; flex: none; color: var(--h-present); }
.h-stop-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.h-stop-media { display: flex; justify-content: center; }
.h-stop-media .slot-img { max-height: 520px; width: auto; }

/* a phone around a real screenshot (or a screen drawn in HTML) */
.h-phone { width: 238px; max-width: 100%; aspect-ratio: 572 / 1100; container-type: inline-size; padding: 8px; border-radius: 36px; background: #0D1B21; box-shadow: 0 32px 60px -30px rgba(14, 37, 48, .6), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.h-phone picture { display: block; height: 100%; }
.h-phone-screen { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #fff; overflow: hidden; }

/* --- drawn screens: every size is in cqi (1% of the phone's width), so the screen scales with its frame --- */
/* live audio class */
.ui-live { height: 100%; display: flex; flex-direction: column; gap: 3.9cqi; padding: 8.1cqi 6.3cqi 6.3cqi; background: linear-gradient(#143846, #0B1F27); color: #DDEBEF; font-size: 5.62cqi; line-height: 1.6; }
.ui-live-top { display: flex; align-items: center; gap: 3.6cqi; }
.ui-live-dot { padding: 1px 3.6cqi; border-radius: 2.7cqi; background: #D9483F; color: #fff; font-size: 4.9cqi; font-weight: 800; }
.ui-live-time { color: #9FB9C1; font-variant-numeric: tabular-nums; }
.ui-rec { display: inline-flex; align-items: center; gap: 2.25cqi; margin-inline-start: auto; font-size: 4.75cqi; color: #F3B2AC; }
.ui-rec::before { content: ""; width: 3.15cqi; height: 3.15cqi; border-radius: 50%; background: #E5534B; }
.ui-live-title b { display: block; font-size: 7.06cqi; color: #fff; }
.ui-live-title span { font-size: 5.18cqi; color: #9FB9C1; }
.ui-speaker { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3.6cqi 0 1.8cqi; }
.ui-speaker b { font-size: 6.19cqi; color: #fff; }
.ui-speaker small { font-size: 5.04cqi; color: #9FB9C1; }
.ui-av { width: 15.3cqi; height: 15.3cqi; display: grid; place-items: center; border-radius: 50%; background: #24495A; color: #fff; font-size: 5.76cqi; font-weight: 800; }
.ui-av--lg { width: 27.9cqi; height: 27.9cqi; margin-bottom: 5.4cqi; font-size: 10.08cqi; background: var(--h-brand); box-shadow: 0 0 0 2.7cqi rgba(102, 181, 206, .25), 0 0 0 5.85cqi rgba(102, 181, 206, .1); animation: ui-speak 1.8s ease-in-out infinite; }
@keyframes ui-speak { 50% { box-shadow: 0 0 0 4.05cqi rgba(102, 181, 206, .3), 0 0 0 8.1cqi rgba(102, 181, 206, .08); } }
.ui-seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.5cqi 2.7cqi; }
.ui-seat { display: flex; flex-direction: column; align-items: center; gap: 0.9cqi; }
.ui-seat small { font-size: 4.61cqi; color: #9FB9C1; }
.ui-seat.is-hand .ui-av { background: var(--h-bell); color: #3A2606; }
.ui-doc { display: flex; align-items: center; gap: 3.6cqi; margin-top: auto; padding: 4.05cqi 4.5cqi; border-radius: 4.5cqi; background: rgba(255, 255, 255, .07); font-size: 5.04cqi; }
.ui-doc svg { width: 7.2cqi; height: 7.2cqi; flex: none; color: var(--h-brand); }
.ui-controls { display: flex; justify-content: center; gap: 3.6cqi; }
.ui-controls span { height: 15.3cqi; min-width: 15.3cqi; display: grid; place-items: center; padding-inline: 5.4cqi; border-radius: 7.65cqi; background: rgba(255, 255, 255, .1); font-size: 5.04cqi; font-weight: 700; }
.ui-controls svg { width: 7.2cqi; height: 7.2cqi; }
.ui-controls .is-leave { background: #C2413B; color: #fff; }

/* --- drawn screen: the principal's daily report --- */
.ui-report { height: 100%; display: flex; flex-direction: column; gap: 3.2cqi; padding: 0 5.4cqi 6.3cqi; background: var(--h-paper); color: var(--h-text); font-size: 5.47cqi; line-height: 1.7; }
.ui-report-head { margin-inline: -5.4cqi; padding: 7.6cqi 7.2cqi 5cqi; border-radius: 0 0 8.1cqi 8.1cqi; background: var(--h-brand); color: #fff; text-align: center; }
.ui-report-head b { display: block; font-size: 6.84cqi; }
.ui-report-head span { font-size: 5.04cqi; opacity: .92; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.7cqi; }
.ui-tiles div { padding: 2.6cqi 1.8cqi; border: 1px solid var(--h-line-soft); border-radius: 4.5cqi; background: #fff; text-align: center; }
.ui-tiles b { display: block; font-size: 7.56cqi; color: var(--h-ink); }
.ui-tiles span { font-size: 4.46cqi; color: var(--h-muted); }
.ui-block { padding: 3.4cqi 4.5cqi; border: 1px solid var(--h-line-soft); border-radius: 5.4cqi; background: #fff; }
.ui-block b { display: flex; align-items: center; gap: 2.7cqi; margin-bottom: 1.8cqi; font-size: 5.33cqi; color: var(--h-ink); }
.ui-block p { display: flex; align-items: center; gap: 3.15cqi; margin: 0; font-size: 5.04cqi; line-height: 1.95; }
.ui-flag { flex: none; width: 3.15cqi; height: 3.15cqi; border-radius: 50%; background: var(--h-absent); }
.ui-block--ai { border-color: #D2E8EE; background: #F0F8FA; }
.ui-block--ai b svg { width: 6.75cqi; height: 6.75cqi; color: var(--h-teal); }
.ui-block--ai p { display: block; }
.ui-tabs { display: flex; justify-content: space-between; margin: auto -5.4cqi -6.3cqi; padding: 4.05cqi 4.5cqi 4.95cqi; background: #fff; border-top: 1px solid var(--h-line-soft); font-size: 4.32cqi; color: var(--h-faint); }
.ui-tabs span { display: flex; flex-direction: column; align-items: center; gap: 1.8cqi; }
.ui-tabs span::before { content: ""; width: 7.2cqi; height: 7.2cqi; border-radius: 2.25cqi; background: #E3E9EB; }
.ui-tabs .is-on { color: var(--h-teal); font-weight: 700; }
.ui-tabs .is-on::before { background: var(--h-brand); }

/* =========================================================
   AI — what you give it, what you get back
   ========================================================= */
.h-ai { background: var(--h-ink); color: #C2D4D9; }
.h-ai h2, .h-ai h3 { color: #fff; }
.h-ai .h-kicker { color: var(--h-brand); }
.h-ai .h-lead { color: #A7BCC3; }
.h-ai-head { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(44px, 5vw, 68px); }
.h-ai-head h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.5; font-weight: 800; }
.h-btn-light { margin-top: 26px; background: #fff; color: var(--h-ink); }
.h-btn-light:hover { background: #E3F0F3; transform: translateY(-1px); }
.h-browser { margin: 0; }
.h-browser-frame { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.h-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EDF2F3; border-bottom: 1px solid #DCE4E6; }
.h-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9D5D9; }
.h-browser-bar span { flex: 1; margin-inline-start: 10px; padding: 2px 10px; border-radius: 7px; background: #fff; font-size: .72rem; color: #6C7E85; text-align: left; }
.h-browser img { display: block; width: 100%; height: auto; }
.h-browser figcaption { margin-top: 12px; font-size: .84rem; color: #8DA6AE; }
.h-ai-table { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.h-ai-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.h-ai-row h3 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.h-ai-k { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 700; color: #7C989F; }
.h-ai-give { margin: 0; font-size: .96rem; line-height: 1.9; color: #E4EEF1; }
.h-ai-get { margin: 0; font-size: .96rem; line-height: 1.9; color: #B7E0EC; }
.h-ai-arrow { display: grid; place-items: center; color: var(--h-brand); }
.h-ai-arrow svg { width: 20px; height: 20px; }
.h-ai-voice { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: .96rem; color: #A7BCC3; }
.h-ai-voice svg { flex: none; width: 20px; height: 20px; color: var(--h-brand); }

/* =========================================================
   Every module + what is new this year
   ========================================================= */
.h-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
.h-group h3 { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 2px solid var(--h-ink); font-size: .95rem; font-weight: 800; }
.h-group ul { list-style: none; margin: 0; padding: 0; }
.h-group li a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 1px 10px; padding: 13px 0; border-bottom: 1px solid var(--h-line); }
.h-ix-ic { grid-row: span 2; padding-top: 4px; color: var(--h-teal); }
.h-ix-ic svg { width: 20px; height: 20px; }
.h-group li b { font-size: .98rem; color: var(--h-ink); transition: color .15s; }
.h-group li a > span:last-child { font-size: .85rem; line-height: 1.8; color: var(--h-muted); }
.h-group li a:hover b { color: var(--h-teal); }

.h-fresh { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px 40px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 18px; }
.h-fresh-head h3 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; }
.h-fresh-head p { margin: 0; font-size: .92rem; line-height: 1.9; color: var(--h-muted); }
.h-fresh ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; margin: 0; padding: 0; }
.h-fresh li, .h-fresh li a { display: flex; flex-direction: column; gap: 3px; }
.h-fresh b { font-size: .96rem; color: var(--h-ink); transition: color .15s; }
.h-fresh b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 8px; border-radius: 50%; background: var(--h-bell); vertical-align: middle; }
.h-fresh span { font-size: .86rem; line-height: 1.85; color: var(--h-muted); }
.h-fresh a:hover b { color: var(--h-teal); }

/* =========================================================
   Roles
   ========================================================= */
.h-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; background: var(--h-paper); border: 1px solid var(--h-line); border-radius: 18px; }
.h-role { padding: 26px 24px 28px; }
.h-role + .h-role { border-inline-start: 1px solid var(--h-line); }
.h-role h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.08rem; font-weight: 800; }
.h-role h3 span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--h-surface); color: var(--h-teal); box-shadow: inset 0 0 0 1px var(--h-line); }
.h-role h3 svg { width: 20px; height: 20px; }
.h-role ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.h-role li { display: flex; gap: 8px; font-size: .93rem; line-height: 1.85; color: var(--h-text); }
.h-role li svg { flex: none; width: 17px; height: 17px; margin-top: 5px; color: var(--h-present); }

/* =========================================================
   Getting started + price
   ========================================================= */
.h-start { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.h-steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 0; padding: 0; }
.h-steps li { padding: 22px 0 24px; border-top: 1px solid var(--h-line); }
.h-step-no { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 12px; border: 1.5px solid var(--h-teal); border-radius: 50%; font-weight: 800; color: var(--h-teal); }
.h-steps h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; }
.h-steps p { margin: 0; font-size: .94rem; line-height: 1.95; color: var(--h-muted); }
.h-price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 30px 28px; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 18px; box-shadow: var(--h-shadow); }
.h-price h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; }
.h-price p { margin: 0 0 12px; line-height: 1.95; color: var(--h-text); }
.h-price .h-more { margin-top: 4px; }

/* =========================================================
   Solutions (plain links to the commercial landing pages)
   ========================================================= */
.h-solutions { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin: 0; padding: 0; }
.h-solutions a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--h-line); }
.h-solutions b { font-size: 1rem; color: var(--h-ink); transition: color .15s; }
.h-solutions a span { grid-row: 2; font-size: .86rem; line-height: 1.8; color: var(--h-muted); }
.h-solutions a svg { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; color: var(--h-faint); transition: transform .2s, color .2s; }
.h-solutions a:hover b, .h-solutions a:hover svg { color: var(--h-teal); }
.h-solutions a:hover svg { transform: translateX(-4px); }

/* =========================================================
   FAQ (same markup + script as the FAQ page)
   ========================================================= */
.h-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.h-faq-wrap .h-head { margin-bottom: 0; }
.h-faq-wrap .h-lead { margin-bottom: 20px; }
.home .h-faq .faq-item { margin: 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid var(--h-line); border-radius: 0; box-shadow: none; }
.home .h-faq .faq-item:first-child { border-top: 1px solid var(--h-line); }
.home .h-faq .faq-q { padding: 20px 0; font-size: 1.03rem; color: var(--h-ink); }
.home .h-faq .faq-q .pm { width: 26px; height: 26px; background: none; color: var(--h-teal); }
.home .h-faq .faq-q .pm svg { width: 20px; height: 20px; }
.home .h-faq .faq-item.is-open .faq-q .pm { transform: rotate(180deg); background: none; color: var(--h-teal); }
.home .h-faq .faq-a .faq-a-inner { padding: 0 0 22px; font-size: .97rem; line-height: 2; color: var(--h-text); }

/* =========================================================
   Closing panel
   ========================================================= */
.h-section--end { padding-top: 0; }
.h-final { --fp: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 56px; align-items: center; padding: var(--fp); border-radius: 22px; background: var(--h-teal-ink); color: #D3E9EF; }
.h-final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to left, transparent 0 calc(var(--fp) * .55), rgba(255, 140, 128, .38) calc(var(--fp) * .55) calc(var(--fp) * .55 + 1.5px), transparent calc(var(--fp) * .55 + 1.5px)),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(255, 255, 255, .06) 31px 32px);
}
.h-final > * { position: relative; }
.h-final h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.5; color: #fff; }
.h-final p { margin: 0; line-height: 2.05; }
.h-final-actions { display: flex; flex-wrap: wrap; gap: 12px; max-width: 470px; }
.h-final .btn-primary { background: #fff; color: var(--h-teal-ink); box-shadow: none; }
.h-final .btn-primary:hover { background: #E3F0F3; }
.h-final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.h-final .btn-ghost:hover { border-color: #fff; }
.h-final-actions p { width: 100%; font-size: .92rem; color: #B9DAE3; }
.h-final-actions p a { color: #fff; font-weight: 700; white-space: nowrap; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1140px) {
  .h-stop { grid-template-columns: 124px minmax(0, 1fr) 230px; }
  .h-phone { width: 230px; }
  .h-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-fresh { grid-template-columns: 1fr; }
  .h-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-role:nth-child(3) { border-inline-start: 0; }
  .h-role:nth-child(n+3) { border-top: 1px solid var(--h-line); }
  .h-ai-row { grid-template-columns: 170px minmax(0, 1fr) 22px minmax(0, 1fr); }
  .h-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .h-facts li:nth-child(4) { padding-inline-start: 0; border: 0; }
  .h-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .h-hero-grid, .h-ai-head, .h-start, .h-faq-wrap, .h-final, .h-head--split { grid-template-columns: minmax(0, 1fr); }
  /* phones and tablets: the picture comes right after the headline, before the paragraph and forms */
  .h-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .h-hero-copy { display: contents; }
  .h-hero-copy > .h-kicker { order: 1; }
  .h-hero-copy > h1 { order: 2; }
  .h-hero-art { order: 3; max-width: 540px; width: 100%; margin: 4px auto 38px; }
  .h-hero-copy > .answer-box { order: 4; }
  .h-hero-copy > .h-cta { order: 5; }
  .h-hero-copy > .h-login { order: 6; }
  .h-stop { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline-start: 34px; }
  .h-stop-time { position: relative; top: auto; display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-inline-start: 0; }
  .h-stop-time::before { inset-inline-start: -34px; top: 9px; }
  .h-stop-time time { font-size: 1.5rem; }
  .h-stop-media { justify-content: flex-start; margin-top: 26px; }
  .h-ai-head { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .h-shots .h-toast { display: none; }
  .h-hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .h-cta .btn { width: 100%; }
  .h-cta { gap: 16px; }
  .h-login-field span { font-size: .85rem; }
  .h-login-btn { padding-inline: 16px; }
  .home .h-hero .answer-box p { font-size: 1rem; line-height: 1.95; }
  .h-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-facts li, .h-facts li:nth-child(4) { padding-inline-start: 14px; border-inline-start: 1px solid var(--h-line); }
  .h-facts li:nth-child(odd) { padding-inline-start: 0; border: 0; }
  .h-facts li:last-child { grid-column: 1 / -1; }
  .h-phone { width: 220px; }
  .h-stop-media { justify-content: center; }
  .h-index, .h-fresh ul, .h-roles, .h-steps, .h-solutions { grid-template-columns: minmax(0, 1fr); }
  .h-role + .h-role { border-inline-start: 0; border-top: 1px solid var(--h-line); }
  .h-ai-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .h-ai-arrow { display: none; }
  .h-ai-get { padding-inline-start: 12px; border-inline-start: 2px solid var(--h-brand); }
  .h-final-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .h-toast, .ui-av--lg { animation: none; }
}
