/* ==========================================================================
   Ezyo website styles
   1. Tokens   2. Base   3. Layout   4. Components   5. Pages   6. Utilities
   Use the tokens below for every colour, size, radius and shadow; do not add
   raw hex values in components.
   ========================================================================== */

/* Inter (SIL Open Font License), self-hosted variable font, Latin subset. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand, from the Ezyo logo. Sky is primary; orange and green are accents. */
  --brand-50: #f0f8fe;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;
  --brand-500: #0ea5e9;   /* logo sky: decoration only, too light for text */
  --brand-600: #0277bd;   /* buttons, white text passes AA (4.8:1) */
  --brand-700: #0369a1;   /* links and emphasis on light backgrounds */
  --accent: #0277bd;      /* eyebrows and highlighted words (same as brand-600) */
  --navy-800: #0b3a75;
  --navy-900: #0b2f63;    /* logo navy: text accents only, not backgrounds */
  --navy-950: #081f42;
  --orange-500: #ff9d08;  /* logo orange */
  --orange-50: #fff5e6;
  --orange-700: #b45309;
  --green-500: #05bf67;   /* logo green */
  --green-50: #e7f8ef;
  --green-700: #047857;
  --red-50: #fef3f2;
  --red-700: #b42318;
  --violet-50: #f4f0ff;   /* product-tour stat cards, matching the app */
  --violet-700: #6d28d9;
  --pink-600: #db2777;
  --paper: #fffdf6;       /* notebook page in the marksheet demo */
  --pen-ink: #1d4ed8;
  --margin-red: #f2a1a1;

  /* Neutrals */
  --ink: #0f2a44;         /* headings */
  --text: #33485d;        /* body copy */
  --muted: #5b6f84;       /* secondary copy, 5.2:1 on white */
  --line: #dbe7f2;
  --line-strong: #c3d5e6;
  --surface: #ffffff;
  --surface-soft: #f5f9fd;
  --on-dark: #ffffff;
  --on-dark-muted: #c6d6ea;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 5vw, 3.5rem);
  --fs-display: clamp(2.5rem, 5.6vw, 4.25rem);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --lh-tight: 1.12;
  --lh-body: 1.65;
  --tracking-tight: -0.025em;
  --tracking-caps: 0.1em;

  /* Shape and depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgb(11 47 99 / 0.06), 0 1px 3px rgb(11 47 99 / 0.06);
  --shadow-md: 0 10px 30px rgb(11 47 99 / 0.08);
  --shadow-lg: 0 24px 60px rgb(11 47 99 / 0.14);
  --focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand-600);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --section-y: 88px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: var(--fw-heavy); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); margin: 0 0 0.5em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding-left: 1.25rem; }
::selection { background: var(--brand-200); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 18px; background: var(--brand-700); color: var(--on-dark); font-weight: var(--fw-bold); border-radius: 0 0 var(--r-md) 0; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-soft { background: var(--surface-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { margin: 14px 0 12px; }
.section-head p, .section-lead { color: var(--muted); font-size: var(--fs-md); }
.section-lead { max-width: 740px; margin: 0 auto; text-align: center; }
.grid-3, .blog-grid, .pricing-grid, .premium-feature-grid, .flow-cards, .automation-grid, .audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Let grid children shrink to the viewport instead of their content width. */
:is(.hero-grid, .split, .contact-grid, .qr-demo, .tour, .scan-demo, .ms-demo) > * { min-width: 0; }

/* 4. Components ------------------------------------------------------------ */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--brand-600); color: var(--on-dark); box-shadow: 0 8px 20px rgb(2 119 189 / 0.22); }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.btn-secondary:hover { background: var(--brand-100); }
.btn-outline { background: var(--surface); color: var(--navy-900); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-ghost:hover { background: var(--brand-50); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Eyebrow label and accent text */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-full); background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-700); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; line-height: 1.4; }
.accent { color: var(--brand-600); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-700); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.text-link:hover { text-decoration: underline; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.navbar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { flex: none; border-radius: var(--r-md); transition: opacity 0.2s, transform 0.2s var(--ease); }
.brand:hover { opacity: 0.85; transform: translateY(-1px); }
.brand-logo { height: 40px; width: auto; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 32px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text); }
.nav-links > a { position: relative; padding: 6px 0; white-space: nowrap; transition: color 0.2s; }
.nav-links > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: var(--r-full); background: var(--brand-600); transform: scaleX(0); transition: transform 0.2s var(--ease); }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--brand-700); }
.nav-links > a:hover::after, .nav-links > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { flex: none; display: flex; align-items: center; gap: 20px; }
.nav-login { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink); }
.nav-login:hover { color: var(--accent); }
.nav-cta { min-height: 40px; }
.cta-short, .nav-mobile-cta { display: none; }
.mobile-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--navy-900); }
.mobile-toggle-icon, .mobile-toggle-icon::before, .mobile-toggle-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, background-color 0.2s; }
.mobile-toggle-icon::before, .mobile-toggle-icon::after { content: ""; position: relative; }
.mobile-toggle-icon::before { top: -6px; }
.mobile-toggle-icon::after { top: 4px; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-icon { background: transparent; }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .mobile-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero, .page-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 8% 0%, var(--brand-100) 0, transparent 38%), radial-gradient(circle at 95% 15%, var(--brand-50) 0, transparent 34%), linear-gradient(180deg, var(--surface) 0%, var(--brand-50) 100%); border-bottom: 1px solid var(--line); }
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { max-width: 900px; margin: 20px 0 16px; }
.hero p, .page-hero p { max-width: 680px; color: var(--muted); font-size: var(--fs-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; color: var(--muted); font-size: var(--fs-xs); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--brand-700); font-weight: var(--fw-semibold); }
.breadcrumb a:hover { text-decoration: underline; }

/* Cards */
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.feature-card:hover { transform: translateY(-3px); }

/* Icon tiles: one shape everywhere, colours rotate through the brand set. */
.icon-box, .automation-icon, .feature-icon, .channel-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--brand-50); color: var(--brand-700); }
.icon-box .icon, .automation-icon .icon, .feature-icon .icon { width: 24px; height: 24px; }
:is(.feature-card, .automation-card, .premium-feature):nth-child(4n+2) :is(.icon-box, .automation-icon, .feature-icon) { background: var(--green-50); color: var(--green-700); }
:is(.feature-card, .automation-card, .premium-feature):nth-child(4n+3) :is(.icon-box, .automation-icon, .feature-icon) { background: var(--orange-50); color: var(--orange-700); }
:is(.feature-card, .automation-card, .premium-feature):nth-child(4n+4) :is(.icon-box, .automation-icon, .feature-icon) { background: var(--brand-100); color: var(--navy-900); }

/* Check lists */
.list-check { display: grid; gap: 12px; margin-top: 24px; }
.list-check > div { display: flex; align-items: flex-start; gap: 12px; }
.check { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-size: var(--fs-xs); font-weight: var(--fw-heavy); }
.check .icon { width: 14px; height: 14px; stroke-width: 2.6; }

/* Metrics and illustrative previews */
.visual-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--brand-50), var(--surface)); box-shadow: var(--shadow-md); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.metric b { display: block; color: var(--navy-900); font-size: var(--fs-xl); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); line-height: 1.2; }
.metric span { color: var(--muted); font-size: var(--fs-xs); }
.preview-table { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.preview-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm); }
.preview-row span { color: var(--muted); }
.preview-row b { color: var(--ink); font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; text-align: right; }
.visual-card > .preview-row + .preview-row { margin-top: 8px; }
.visual-card > .preview-row:last-child { border-color: var(--brand-200); background: var(--brand-50); }
.visual-card > .eyebrow { margin-bottom: 16px; }
.preview-row:empty { height: 10px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--brand-50); }
.preview-row:empty:nth-child(2) { width: 86%; }
.preview-row:empty:nth-child(3) { width: 72%; }
.preview-row:empty:nth-child(4) { width: 92%; }
.feature-chip { display: inline-flex; margin-bottom: 12px; padding: 4px 10px; border-radius: var(--r-full); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; }
.status-badge { padding: 3px 10px; border-radius: var(--r-full); background: var(--green-50); color: var(--green-700); font-size: var(--fs-xs); font-weight: var(--fw-heavy); }

/* Long-form content */
.content-prose { max-width: 800px; overflow-wrap: break-word; }
.content-prose h2 { margin: 48px 0 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.content-prose h3 { margin: 32px 0 10px; font-size: var(--fs-lg); }
.content-prose p, .content-prose li { color: var(--text); }
.content-prose li + li { margin-top: 6px; }
.content-prose a:not(.btn) { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.content-prose .grid-3 { margin-block: 24px; }
.seo-callout { margin: 28px 0; padding: 24px; border: 1px solid var(--brand-200); border-radius: var(--r-lg); background: var(--brand-50); }
.seo-callout strong { color: var(--ink); }
.post-meta, .blog-meta { margin-top: 12px; color: var(--muted); font-size: var(--fs-xs); }

/* Blog and guides */
.blog-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card:hover { transform: translateY(-3px); }
.blog-thumb { position: relative; display: flex; justify-content: space-between; align-items: flex-start; height: 150px; padding: 18px; overflow: hidden; background: linear-gradient(160deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); }
.blog-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: url("../img/wave.66563d13a1fc.svg") no-repeat 0 100% / 100% 100%; }
.blog-thumb span { position: relative; z-index: 1; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-sm); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; }
.blog-thumb .icon { position: relative; z-index: 1; width: 44px; height: 44px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--brand-600); }
.blog-card h2 a::after, .blog-card h3 a::after { content: ""; position: absolute; inset: 0; }
.blog-body { display: flex; flex: 1; flex-direction: column; }
.blog-more { margin-top: auto; padding-top: 14px; color: var(--brand-700); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.blog-card:hover .blog-more { text-decoration: underline; }
.page-hero-center { text-align: center; }
.page-hero-center .breadcrumb ol { justify-content: center; }
.page-hero-center h1, .page-hero-center p { margin-inline: auto; }
.blog-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.blog-topics span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.blog-topics .icon { width: 16px; height: 16px; color: var(--brand-600); }
.blog-body { padding: 22px; }
.blog-body h2 a, .blog-body h3 a { color: var(--ink); }
.blog-body h2, .blog-body h3 { margin: 12px 0 8px; font-size: var(--fs-md); }
.blog-body h2 a:hover, .blog-body h3 a:hover { color: var(--brand-700); text-decoration: underline; }
.blog-article { max-width: 760px; }
.blog-article p { font-size: var(--fs-md); line-height: 1.85; margin-bottom: 22px; }

/* Pricing */
.price-card { position: relative; }
.price { margin: 14px 0 8px; color: var(--ink); font-size: 2.5rem; font-weight: var(--fw-heavy); letter-spacing: -0.04em; line-height: 1.1; }
.price small { color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0; }
.price-list { list-style: none; display: grid; gap: 10px; margin: 22px 0; padding: 0; font-size: var(--fs-sm); }
.price-list li { display: flex; gap: 10px; }
.price-list .icon { color: var(--green-700); width: 18px; height: 18px; margin-top: 2px; }
.home-price { margin-top: 16px; color: var(--navy-900); font-size: var(--fs-xl); font-weight: var(--fw-heavy); }

.price-card-featured { border-color: var(--brand-600); box-shadow: var(--shadow-lg); }
.price-flag { position: absolute; top: -13px; right: 20px; padding: 4px 12px; border-radius: var(--r-full); background: var(--brand-600); color: var(--on-dark); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.price-card .btn { width: 100%; }
.pricing-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center; }
.pricing-note .icon { color: var(--green-700); stroke-width: 2.4; }
.pricing-terms { max-width: 640px; margin: 14px auto 0; padding-left: 20px; color: var(--muted); font-size: var(--fs-sm); }
.included-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.doc-fees { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.doc-fees-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc-fees-head b { color: var(--ink); font-size: var(--fs-md); }
.doc-fees-head span { color: var(--muted); font-size: var(--fs-xs); }
.doc-fees dl { margin: 0; }
.doc-fees dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-fees dt { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.doc-fees dt .icon { width: 18px; height: 18px; color: var(--brand-600); }
.doc-fees dd { flex: none; margin: 0; padding: 3px 10px; border-radius: var(--r-full); background: var(--green-50); color: var(--green-700); font-size: var(--fs-xs); font-weight: var(--fw-heavy); }
.doc-fees p { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.doc-fees p a { color: var(--brand-700); font-weight: var(--fw-semibold); }

/* Price table: one row per student slab, one shared "included" list. */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.plan-table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-row-head { padding-block: 12px; background: var(--surface-soft); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.plan-row-head span:last-child, .plan-price { text-align: right; }
.plan-row b { display: block; color: var(--ink); font-size: var(--fs-md); }
.plan-row small { color: var(--muted); font-size: var(--fs-xs); }
.plan-row em { display: inline-block; margin: 6px 0 0 6px; padding: 2px 10px; border-radius: var(--r-full); background: var(--brand-600); color: var(--on-dark); font-size: 0.7rem; font-style: normal; font-weight: var(--fw-bold); }
.plan-row.is-featured { background: var(--brand-50); box-shadow: inset 4px 0 0 var(--brand-600); }
.plan-price { color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); white-space: nowrap; }
.plan-price small { font-weight: var(--fw-semibold); letter-spacing: 0; }
.plan-price s { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: 0; }
.plan-included h3 { margin-top: 14px; font-size: var(--fs-lg); }
.plan-included .btn { width: 100%; }
.plan-included:hover { transform: none; }

/* FAQ (<details>, works without JS) */
.faq { display: grid; gap: 12px; max-width: 840px; margin: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.faq-q { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; color: var(--ink); font-weight: var(--fw-bold); cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q span { flex: none; color: var(--brand-600); font-size: var(--fs-lg); line-height: 1; transition: transform 0.2s; }
.faq-item[open] .faq-q span { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a a { color: var(--brand-700); text-decoration: underline; }

/* Call to action band */
.cta-section { padding-block: 72px; }
.cta-box { position: relative; overflow: hidden; padding: 56px 56px 110px; border: 1px solid var(--brand-200); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--text); box-shadow: var(--shadow-md); }
.cta-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: url("../img/wave.66563d13a1fc.svg") no-repeat 0 100% / 100% 100%; pointer-events: none; }
.cta-box h2 { position: relative; z-index: 1; max-width: 700px; color: var(--ink); }
.cta-box p { position: relative; z-index: 1; max-width: 640px; color: var(--muted); }
.cta-box .hero-actions { position: relative; z-index: 1; }
.cta-box .btn-secondary { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-dark); box-shadow: 0 8px 20px rgb(2 119 189 / 0.22); }
.cta-box .btn-secondary:hover { background: var(--brand-700); }
.cta-box .btn-outline { background: var(--surface); border-color: var(--brand-200); color: var(--brand-700); }

/* Highlight band (light blue) */
.premium-band { background: linear-gradient(180deg, var(--brand-50), var(--surface)); color: var(--text); border-block: 1px solid var(--line); }
.premium-band .section-head h2 { color: var(--ink); }
.premium-band .section-head p { color: var(--muted); }
.eyebrow-on-dark { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.workflow-step { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.workflow-step small { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--brand-600); color: var(--on-dark); font-weight: var(--fw-heavy); }
.workflow-step h3 { margin: 16px 0 8px; color: var(--ink); }
.workflow-step p { color: var(--muted); font-size: var(--fs-sm); }

/* Forms */
.contact-form, .feedback-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .fieldset legend { color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 120px; padding-top: 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgb(2 119 189 / 0.14); }
.field [aria-invalid="true"] { border-color: var(--red-700); background: var(--red-50); }
.field-help { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.field-error { margin: 0; color: var(--red-700); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.req { color: var(--red-700); }
.fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fieldset legend { margin-bottom: 8px; padding: 0; }
.form-intro { margin: 4px 0 20px; color: var(--muted); font-size: var(--fs-sm); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.consent input, .check-option input { width: 18px; height: 18px; min-height: 0; margin-top: 1px; flex: none; accent-color: var(--brand-600); }
.consent a { color: var(--brand-700); text-decoration: underline; }
.btn-submit { width: 100%; min-height: 52px; font-size: var(--fs-base); }
.form-status { display: none; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.form-status.is-visible { display: block; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: var(--red-700); }
.form-fallback { padding: 16px; border: 1px solid var(--red-700); border-radius: var(--r-lg); background: var(--red-50); font-size: var(--fs-sm); }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Institution tabs (radio buttons styled as a segmented control) */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-soft); }
.tab { position: relative; }
.tab input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tab span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px; border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-bold); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.tab:hover span { color: var(--brand-700); }
.tab input:checked + span { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--brand-200); }
.tab input:focus-visible + span { box-shadow: var(--focus); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkbox-grid[hidden] { display: none; }
.check-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-medium); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.check-option:hover { border-color: var(--brand-200); }
.check-option:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); color: var(--ink); }

/* SweetAlert-style confirmation popup (see showAlert in main.js) */
.swal { width: min(420px, calc(100% - 32px)); padding: 32px 28px 26px; border: 0; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); text-align: center; animation: swal-in 0.3s var(--ease); }
.swal::backdrop { background: rgb(11 47 99 / 0.35); animation: swal-fade 0.3s ease; }
.swal h2 { margin: 18px 0 8px; font-size: var(--fs-xl); }
.swal p { margin: 0 0 22px; color: var(--muted); }
.swal-ok { min-width: 120px; }
.swal-icon { width: 84px; height: 84px; margin: 0 auto; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.swal-success .swal-icon { stroke: var(--green-500); }
.swal-error .swal-icon { stroke: var(--red-700); }
.swal-icon circle { stroke-dasharray: 151; stroke-dashoffset: 0; opacity: 0.35; animation: swal-circle 0.6s ease both; }
.swal-icon path { stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 0; animation: swal-check 0.4s ease 0.45s both; }
@keyframes swal-in { from { opacity: 0; transform: scale(0.85); } }
@keyframes swal-fade { from { opacity: 0; } }
@keyframes swal-circle { from { stroke-dashoffset: 151; opacity: 1; } }
@keyframes swal-check { from { stroke-dashoffset: 40; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.contact-card { padding: 32px; overflow-wrap: anywhere; }
.channel > span:last-child { min-width: 0; }
.channel-icon { flex-shrink: 0; }
.contact-card:hover { transform: none; }
.h2-compact { margin: 14px 0 8px; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.contact-channels { list-style: none; display: grid; gap: 10px; margin: 20px 0 0; padding: 0; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-soft); transition: border-color 0.2s, transform 0.2s var(--ease); }
.channel:hover { border-color: var(--brand-600); transform: translateY(-2px); }
.channel-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-600); color: var(--on-dark); }
.channel-icon-wa { background: var(--green-700); }
.channel strong { display: block; color: var(--ink); }
.channel small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-address { display: grid; gap: 2px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.contact-address strong { color: var(--ink); }

/* Customer voices */
.customer-voice { position: relative; overflow: hidden; padding-block: 72px 120px; background: linear-gradient(180deg, var(--brand-50), var(--surface)); color: var(--text); border-block: 1px solid var(--line); }
.customer-voice::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: url("../img/wave.66563d13a1fc.svg") no-repeat 0 100% / 100% 100%; pointer-events: none; }
.customer-voice .container { position: relative; z-index: 1; }
.customer-voice h2 { color: var(--ink); }
.customer-voice blockquote { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.customer-voice blockquote .icon { color: var(--brand-600); width: 28px; height: 28px; }
.voice-card { display: flex; flex-direction: column; }
.voice-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px; border-radius: var(--r-full); background: var(--green-50); color: var(--green-700); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.customer-voice .voice-badge .icon { width: 14px; height: 14px; color: var(--green-700); stroke-width: 2.6; }
.voice-card p { flex: 1; }
.voice-card footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.voice-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-weight: var(--fw-heavy); }
.voice-card footer strong { display: block; color: var(--ink); }
.voice-card footer small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.customer-voice blockquote p { margin: 14px 0; color: var(--ink); font-size: var(--fs-md); }
.customer-voice blockquote footer { color: var(--muted); font-size: var(--fs-sm); }
.voice-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.voice-cta strong { color: var(--ink); font-size: var(--fs-md); }
.voice-cta p { margin: 4px 0 0; color: var(--muted); }
.customer-voice .btn-secondary { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-dark); }
.customer-voice .btn-secondary:hover { background: var(--brand-700); }

/* Footer (light, with the app wave along the top edge) */
.footer { position: relative; padding: 110px 0 28px; background: var(--surface-soft); color: var(--muted); font-size: var(--fs-sm); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 80px; background: url("../img/wave.66563d13a1fc.svg") no-repeat 0 0 / 100% 100%; transform: scaleY(-1); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: inline-flex; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.footer-brand img { height: 56px; width: auto; }
.footer-desc { max-width: 320px; margin-top: 16px; }
.footer-contact { display: grid; gap: 8px; margin-top: 18px; overflow-wrap: anywhere; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: var(--fw-semibold); }
.footer-contact a:hover { color: var(--brand-700); text-decoration: underline; }
.footer-hours { font-size: var(--fs-xs); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-link { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--brand-700); transition: background-color 0.2s, border-color 0.2s; }
.social-link:hover { border-color: var(--brand-200); background: var(--brand-50); }
.social-link.is-soon { opacity: 0.55; cursor: default; }
.social-link.is-soon:hover { border-color: var(--line); background: var(--surface); }
.footer-heading { margin: 0 0 14px; color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: 0.02em; }
.footer-links { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--brand-700); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); }

/* 5. Pages ----------------------------------------------------------------- */

/* Home */
.market-hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.market-hero h1 { max-width: 680px; margin: 22px 0; font-size: var(--fs-display); letter-spacing: -0.045em; line-height: 1.04; }
.market-hero p { font-size: var(--fs-lg); max-width: 580px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .icon { width: 18px; height: 18px; color: var(--green-700); stroke-width: 2.4; }
/* Hero screenshots: the phone sits in front so the mobile app leads; the web
   dashboard sits behind it. */
.app-showcase { position: relative; max-width: 620px; margin: 0; }
.app-showcase img { display: block; width: 100%; height: auto; }
.app-showcase-desktop { position: absolute; top: 18%; left: 0; width: 86%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.app-showcase-phone { position: relative; z-index: 1; width: 40%; margin-left: auto; padding: 8px; border-radius: 34px; border: 1px solid var(--brand-200); background: linear-gradient(160deg, var(--surface), var(--brand-100)); box-shadow: var(--shadow-lg); }
.app-showcase-phone img { border-radius: 27px; }
.app-showcase-badge { position: absolute; z-index: 2; left: 4%; bottom: 10%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.app-showcase-badge .icon { width: 28px; height: 28px; color: var(--brand-600); }
.app-showcase-badge strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
.app-showcase-badge small { display: block; color: var(--muted); font-size: var(--fs-xs); }

/* Product tour: screen tabs beside an illustrative Ezyo window. A panel's
   animations replay each time it is shown. Base styles are the finished
   screen and keyframes animate *from* hidden, so with motion off the final
   state shows. */
.tour { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-tabs { position: relative; display: grid; gap: 8px; }
.tour-tab { position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%; overflow: hidden; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--r-lg); background: transparent; text-align: left; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.tour-tab:hover { background: var(--surface-soft); }
.tour-tab .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--muted); }
.tour-tab strong { display: block; color: var(--ink); font-size: var(--fs-base); }
.tour-tab small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.tour-tab[aria-selected="true"] { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.tour-tab[aria-selected="true"] .icon { color: var(--brand-600); }
.tour-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--brand-500); transform: scaleX(0); transform-origin: left; }
.tour.is-auto .tour-tab[aria-selected="true"] .tour-progress { animation: tour-progress 7s linear both; }
.tour:hover .tour-progress, .tour:focus-within .tour-progress,
.tour.is-paused .tour-progress, .tour.is-paused .tour-screens * { animation-play-state: paused; }
@keyframes tour-progress { to { transform: scaleX(1); } }

.tour-window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface-soft); box-shadow: var(--shadow-lg); }
.tour-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tour-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: var(--on-dark); font-size: var(--fs-xs); font-weight: var(--fw-heavy); }
.tour-school b { display: block; color: var(--ink); font-size: var(--fs-sm); line-height: 1.2; }
.tour-school small { display: block; color: var(--muted); font-size: 0.75rem; }
.tour-user { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.tour-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 510px; }
.tour-nav { list-style: none; display: grid; align-content: start; gap: 4px; margin: 0; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--surface); }
.tour-nav li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); transition: background-color 0.25s, color 0.25s; }
.tour-nav .icon { width: 16px; height: 16px; }
.tour-nav li.is-active { background: var(--brand-50); color: var(--brand-700); }
.tour-screens { min-width: 0; padding: 22px; }
.tour-panel:focus-visible { border-radius: var(--r-md); }

/* Pieces shared by the tour screens */
.tp-caption { display: none; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tp-head h3 { margin: 0; font-size: var(--fs-lg); }
.tp-head p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-xs); }
.tp-chip { flex: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--brand-700); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.tp-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tp-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.tp-row b, .tp-student b, .tp-receipt-head b, .tp-profile-top b { display: block; color: var(--ink); font-size: var(--fs-sm); line-height: 1.3; }
.tp-row small, .tp-student small, .tp-receipt-head small, .tp-profile-top small { display: block; color: var(--muted); font-size: 0.75rem; }
.tp-list { display: grid; gap: 10px; }
.tp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.tp-row > div { min-width: 0; }
.tp-toast { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--green-500); border-radius: var(--r-md); background: var(--green-50); }
.tp-toast > .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--green-700); color: var(--on-dark); stroke-width: 2.6; }
.tp-toast b { display: block; color: var(--green-700); font-size: var(--fs-sm); }
.tp-toast small { display: block; color: var(--text); font-size: 0.75rem; }
.tp-lines { display: grid; gap: 8px; margin: 12px 0 0; font-size: var(--fs-xs); }
.tp-lines div { display: flex; justify-content: space-between; gap: 10px; }
.tp-lines dt { color: var(--muted); }
.tp-lines dd { margin: 0; color: var(--ink); font-weight: var(--fw-semibold); text-align: right; }
.tp-red { color: var(--red-700) !important; }

/* Dashboard screen */
.tp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tp-stat { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tp-stat-blue { background: linear-gradient(160deg, var(--brand-50), var(--surface)); }
.tp-stat-green { background: linear-gradient(160deg, var(--green-50), var(--surface)); }
.tp-stat-violet { background: linear-gradient(160deg, var(--violet-50), var(--surface)); }
.tp-stat-red { background: linear-gradient(160deg, var(--red-50), var(--surface)); }
.tp-stat-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: var(--r-md); background: var(--surface); color: var(--brand-600); }
.tp-stat-icon .icon { width: 18px; height: 18px; }
.tp-stat-green .tp-stat-icon { color: var(--green-700); }
.tp-stat-violet .tp-stat-icon { color: var(--violet-700); }
.tp-stat-red .tp-stat-icon { color: var(--red-700); }
.tp-stat small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: var(--fw-semibold); }
.tp-stat b { display: block; color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); line-height: 1.25; }
.tp-stat-red b { color: var(--red-700); }
.tp-stat em { display: block; color: var(--muted); font-size: 0.75rem; font-style: normal; }
.tp-boy { color: var(--brand-700); }
.tp-girl { color: var(--pink-600); }
.tp-ring { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; transform: rotate(-90deg); }
.tp-ring circle { fill: none; stroke-width: 4; }
.tp-ring-bg { stroke: var(--line); }
.tp-ring-fg { stroke: var(--green-500); stroke-linecap: round; stroke-dasharray: 72 100; animation: tp-ring 1.2s var(--ease) 0.8s both; }
.tp-chart { margin-top: 14px; padding: 14px 16px; }
.tp-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: var(--fs-xs); }
.tp-chart-head b { color: var(--ink); font-size: var(--fs-sm); }
.tp-key { display: inline-block; width: 8px; height: 8px; margin: 0 5px 0 12px; border-radius: 50%; background: var(--line-strong); }
.tp-key-col { background: var(--brand-600); }
.tp-trend { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.tp-trend-exp, .tp-trend-col { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.tp-trend-exp { stroke: var(--line-strong); stroke-dasharray: 0.012 0.012; }
.tp-trend-col { stroke: var(--brand-600); stroke-dasharray: 1; animation: tp-draw 1.6s var(--ease) 1.4s both; }
.tp-trend-fill { fill: var(--brand-100); opacity: 0.7; animation: tp-fade 0.8s ease 2.6s both; }
.tp-months { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 0.7rem; }

/* Collect fee screen */
.tp-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--brand-200); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 4px rgb(2 119 189 / 0.08); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.tp-search .icon { width: 18px; height: 18px; color: var(--muted); }
.tp-type { display: inline-block; width: 5.4ch; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--brand-600); animation: tp-type 0.9s steps(5) 0.5s both, tp-caret 0.8s step-end infinite; }
.tp-student { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; }
.tp-due { flex: none; margin-left: auto; padding: 4px 10px; border-radius: var(--r-full); background: var(--red-50); color: var(--red-700); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.tp-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px; }
.tp-field small { display: block; color: var(--muted); font-size: 0.75rem; }
.tp-field b { color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-heavy); }
.tp-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-method { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.tp-method-pick { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); animation: tp-pick 0.3s ease 1.9s both; }
.tp-btn { display: flex; justify-content: center; margin-top: 12px; padding: 12px; border-radius: var(--r-md); background: var(--brand-600); color: var(--on-dark); font-size: var(--fs-sm); font-weight: var(--fw-bold); animation: tp-rise 0.5s var(--ease) 1.4s both, tp-press 0.3s ease 2.5s; }

/* Due fee screen */
.tp-amt { flex: none; margin-left: auto; text-align: right; }
.tp-row .tp-amt b { color: var(--red-700); }
.tp-remind { display: inline-grid; flex: none; min-width: 82px; padding: 7px 10px; border-radius: var(--r-md); background: var(--green-700); color: var(--on-dark); font-size: var(--fs-xs); font-weight: var(--fw-bold); animation: tp-remind 0.3s ease both; }
.tp-remind > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.tp-remind > span:first-child { opacity: 0; animation: tp-out 0.2s ease both; }
.tp-remind > span:last-child { animation: tp-fade 0.3s ease both; }
.tp-remind .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.tp-remind.tp-r1, .tp-remind.tp-r1 > span { animation-delay: 1.8s; }
.tp-remind.tp-r2, .tp-remind.tp-r2 > span { animation-delay: 2.3s; }
.tp-remind.tp-r3, .tp-remind.tp-r3 > span { animation-delay: 2.8s; }
.tp-remind.tp-r4, .tp-remind.tp-r4 > span { animation-delay: 3.3s; }

/* Fee receipt screen */
.tp-receipt-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tp-receipt { position: relative; overflow: hidden; padding: 18px; }
.tp-receipt-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); }
.tp-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.tp-total b { font-size: var(--fs-lg); }
.tp-stamp { position: absolute; top: 22px; right: 16px; padding: 3px 12px; border: 2px solid var(--green-700); border-radius: var(--r-sm); background: var(--surface); color: var(--green-700); font-size: var(--fs-sm); font-weight: var(--fw-heavy); letter-spacing: 0.14em; transform: rotate(-12deg); animation: tp-stamp 0.4s var(--ease) 1.2s both; }
.tp-share { display: grid; gap: 10px; }
.tp-share-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.tp-share-btn .icon { width: 18px; height: 18px; color: var(--muted); }
.tp-share-wa { border-color: var(--green-700); background: var(--green-50); color: var(--green-700); }
.tp-share-wa .icon { color: var(--green-700); }
.tp-bubble { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg); background: var(--green-700); color: var(--on-dark); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.tp-bubble .icon { width: 16px; height: 16px; stroke-width: 2.6; }

/* Follow-ups screen */
.tp-call-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.tp-call-icon .icon { width: 16px; height: 16px; }
.tp-time { flex: none; margin-left: auto; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.tp-done, .tp-todo { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; }
.tp-done { background: var(--green-700); color: var(--on-dark); animation: tp-done 0.35s ease both; }
.tp-done .icon { width: 13px; height: 13px; stroke-width: 2.8; }
.tp-todo { box-shadow: inset 0 0 0 2px var(--line-strong); }
.tp-note { justify-self: start; margin: -4px 0 0 48px; padding: 7px 12px; border-radius: var(--r-md); background: var(--orange-50); color: var(--orange-700); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }

/* Students screen */
.tp-students { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.tp-table { overflow: hidden; }
.tp-tr { display: grid; grid-template-columns: 1.5fr 0.5fr 1.2fr 0.6fr; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: var(--fs-xs); }
.tp-tr:last-child { border-bottom: 0; }
.tp-tr b { color: var(--ink); font-weight: var(--fw-semibold); }
.tp-th { background: var(--surface-soft); color: var(--muted); font-size: 0.7rem; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; }
.tp-picked { background: var(--brand-50); }
.tp-badge { justify-self: start; padding: 2px 8px; border-radius: var(--r-full); background: var(--green-50); color: var(--green-700); font-size: 0.7rem; font-weight: var(--fw-bold); }
.tp-badge-due { background: var(--red-50); color: var(--red-700); }
.tp-profile { padding: 16px; animation: tp-slide 0.5s var(--ease) both; }
.tp-profile-top { display: flex; align-items: center; gap: 10px; }

/* Documents screen */
.tp-docs { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.tp-docform { padding: 16px; }
.tp-docform-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); }
.tp-docform-head b { display: block; color: var(--ink); font-size: var(--fs-sm); line-height: 1.3; }
.tp-docform-head small { display: block; color: var(--muted); font-size: 0.75rem; }
.tp-docform-head .lq-photo { margin-left: auto; }
.tp-sign { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--muted); font-size: 0.7rem; }
.tp-sign span { flex: 1; padding-top: 6px; border-top: 1px dashed var(--line-strong); }
.tp-sign span + span { text-align: right; }
.tp-doclist { display: grid; gap: 8px; }
.tp-docitem { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.tp-docitem .icon { width: 16px; height: 16px; color: var(--muted); }
.tp-docitem-on { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.tp-docitem-on .icon { color: var(--brand-700); }
.tp-docbtns { display: flex; gap: 8px; margin-top: 4px; }
.tp-docbtns span { flex: 1; padding: 9px 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-bold); text-align: center; }
.tp-docbtns span:first-child { border-color: var(--brand-600); background: var(--brand-600); color: var(--on-dark); }

/* Tour motion: shared entrances, then per-element delays (kept last so the
   delay wins over each animation shorthand above). */
.tp-in { animation: tp-rise 0.5s var(--ease) both; }
.tp-pop { animation: tp-pop 0.45s var(--ease) both; }
.tp-fill { animation: tp-fade 0.4s ease both; }
.tp-d1 { animation-delay: 0.2s; }
.tp-d2 { animation-delay: 0.4s; }
.tp-d3 { animation-delay: 0.6s; }
.tp-d4 { animation-delay: 0.8s; }
.tp-d5 { animation-delay: 1.1s; }
.tp-d6 { animation-delay: 1.6s; }
.tp-d7 { animation-delay: 2s; }
.tp-d8 { animation-delay: 2.2s; }
.tp-d9 { animation-delay: 2.9s; }
.tp-d10 { animation-delay: 3.8s; }
@keyframes tp-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes tp-pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } }
@keyframes tp-slide { from { opacity: 0; transform: translateX(18px); } }
@keyframes tp-fade { from { opacity: 0; } }
@keyframes tp-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes tp-ring { from { stroke-dasharray: 0 100; } }
@keyframes tp-draw { from { stroke-dashoffset: 1; } }
@keyframes tp-type { from { width: 0; } }
@keyframes tp-caret { 50% { border-color: transparent; } }
@keyframes tp-pick { from { border-color: var(--line); background: var(--surface); color: var(--text); } }
@keyframes tp-press { 50% { transform: scale(0.96); } }
@keyframes tp-remind { from { background: var(--brand-600); } }
@keyframes tp-stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } }
@keyframes tp-done { from { background: var(--surface); color: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); } }

/* Area-wise report: a column chart. Column heights come from data-count and
   the set's data-max (the top of the axis) via main.js. */
.area-chart { --plot: 260px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.area-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.area-top figcaption b { display: block; color: var(--ink); font-size: var(--fs-md); }
.area-top figcaption span { color: var(--muted); font-size: var(--fs-xs); }
.area-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface-soft); }
.area-switch button { min-height: 36px; padding: 0 18px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-bold); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.area-switch button[aria-pressed="true"] { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.area-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.area-stats div { padding: 14px 16px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.area-stats b { display: block; color: var(--navy-900); font-size: var(--fs-xl); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); line-height: 1.2; }
.area-stats span { color: var(--muted); font-size: var(--fs-xs); }
.area-scroll { overflow-x: auto; padding-top: 18px; }
.area-plot { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; min-width: 620px; }
.area-axis { position: relative; height: var(--plot); color: var(--muted); font-size: 0.7rem; font-variant-numeric: tabular-nums; text-align: right; }
.area-axis span { position: absolute; right: 0; transform: translateY(-50%); }
.area-axis span:nth-child(1) { top: 0; }
.area-axis span:nth-child(2) { top: 25%; }
.area-axis span:nth-child(3) { top: 50%; }
.area-axis span:nth-child(4) { top: 75%; }
.area-axis span:nth-child(5) { top: 100%; }
.area-cols { position: relative; list-style: none; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); margin: 0; padding: 0; }
.area-cols::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--plot); border-bottom: 2px solid var(--line-strong); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(var(--plot) / 4)); }
.area-cols li { display: grid; grid-template-rows: var(--plot) auto; justify-items: center; min-width: 0; }
.area-colwrap { position: relative; width: 100%; height: var(--plot); }
.area-col { position: absolute; bottom: 0; left: 0; right: 0; width: min(30px, 64%); height: calc(var(--h, 0) * var(--plot)); margin-inline: auto; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); transform-origin: bottom; transition: transform 0.8s var(--ease) calc(var(--i, 0) * 60ms); }
.area-cols li:first-child .area-col { background: linear-gradient(180deg, var(--green-500), var(--green-700)); }
.area-colwrap b { position: absolute; left: 0; right: 0; bottom: calc(var(--h, 0) * var(--plot) + 4px); color: var(--ink); font-size: var(--fs-xs); text-align: center; font-variant-numeric: tabular-nums; transition: opacity 0.4s ease calc(0.5s + var(--i, 0) * 60ms); }
.area-name { padding: 8px 0 0; color: var(--text); font-size: 0.7rem; font-weight: var(--fw-semibold); line-height: 1.25; text-align: center; }
.area-chart.is-armed .area-col { transform: scaleY(0); }
.area-chart.is-armed .area-colwrap b { opacity: 0; }
.area-chart.is-armed .is-playing .area-col { transform: none; }
.area-chart.is-armed .is-playing .area-colwrap b { opacity: 1; }
.area-hint { display: none; margin: 8px 0 0; color: var(--muted); font-size: var(--fs-xs); text-align: right; }

/* Register scan: one 12s loop in four 3s steps (photo, read rows, hide
   numbers, check and save). The step list highlights in time with it. Base
   styles are the finished result so reduced motion shows it. */
.scan-demo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.scan-stage { position: relative; padding-bottom: 120px; }
.scan-photo { position: relative; overflow: hidden; border: 6px solid var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.scan-photo img { display: block; width: 100%; height: auto; }
.scan-corners { position: absolute; inset: 6%; opacity: 0; animation: sc-corners 12s linear infinite; }
.scan-corners i { position: absolute; width: 34px; height: 34px; border: 0 solid var(--on-dark); filter: drop-shadow(0 0 3px rgb(0 0 0 / 0.5)); }
.scan-corners i:nth-child(1) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; }
.scan-corners i:nth-child(2) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; }
.scan-corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; }
.scan-corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; }
.scan-flash { position: absolute; inset: 0; background: var(--surface); opacity: 0; animation: sc-flash 12s linear infinite; }
.scan-line { position: absolute; inset: 0; opacity: 0; animation: sc-line 12s linear infinite; }
.scan-line::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-500); box-shadow: 0 0 18px 6px rgb(14 165 233 / 0.45); }
.scan-mask { position: absolute; top: 21%; height: 62%; display: grid; place-items: center; border: 2px dashed var(--brand-600); border-radius: var(--r-sm); background: rgb(240 248 254 / 0.35); animation: sc-mask 12s var(--ease) infinite; }
.scan-mask-aadhaar { left: 5.6%; width: 11.6%; }
.scan-mask-phone { left: 30.6%; width: 13.4%; }
.scan-mask em { padding: 4px 8px; border-radius: var(--r-full); background: var(--brand-600); color: var(--on-dark); font-size: 0.7rem; font-style: normal; font-weight: var(--fw-bold); white-space: nowrap; }
.scan-records { position: absolute; right: -12px; bottom: 0; width: min(330px, 62%); padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.scan-records-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.scan-records-head b { color: var(--ink); font-size: var(--fs-sm); }
.scan-records-head small { color: var(--muted); font-size: 0.75rem; }
.scan-rec { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.scan-rec .tp-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
.scan-rec div { min-width: 0; flex: 1; }
.scan-rec b { display: block; color: var(--ink); font-size: var(--fs-xs); }
.scan-rec small { display: block; overflow: hidden; color: var(--muted); font-size: 0.7rem; white-space: nowrap; text-overflow: ellipsis; }
.scan-rec .tp-done { animation: sc-check 12s ease infinite; }
.scan-rec-2 .tp-done { animation-delay: 0.3s; }
.scan-rec-3 .tp-done { animation-delay: 0.6s; }
.scan-rec-4 .tp-done { animation-delay: 0.9s; }
.scan-rec-1 { animation: sc-rec1 12s var(--ease) infinite; }
.scan-rec-2 { animation: sc-rec2 12s var(--ease) infinite; }
.scan-rec-3 { animation: sc-rec3 12s var(--ease) infinite; }
.scan-rec-4 { animation: sc-rec4 12s var(--ease) infinite; }
.scan-save { margin-top: 8px; padding: 9px; border-radius: var(--r-md); background: var(--brand-600); color: var(--on-dark); font-size: var(--fs-xs); font-weight: var(--fw-bold); text-align: center; animation: sc-save 12s var(--ease) infinite; }
.scan-steps { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.scan-steps li { display: flex; gap: 14px; padding: 16px; border: 1px solid transparent; border-radius: var(--r-lg); animation: sc-step 12s linear infinite; }
.scan-steps li > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-sm); font-weight: var(--fw-heavy); animation: sc-num 12s linear infinite; }
.scan-steps b { display: block; color: var(--ink); }
.scan-steps p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.scan-steps li:nth-child(2), .scan-steps li:nth-child(2) > span { animation-delay: 3s; }
.scan-steps li:nth-child(3), .scan-steps li:nth-child(3) > span { animation-delay: 6s; }
.scan-steps li:nth-child(4), .scan-steps li:nth-child(4) > span { animation-delay: 9s; }
@keyframes sc-corners { 0%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes sc-flash { 0%, 18% { opacity: 0; } 20% { opacity: 0.9; } 24%, 100% { opacity: 0; } }
@keyframes sc-line { 0%, 25% { opacity: 0; transform: translateY(8%); } 27% { opacity: 1; transform: translateY(8%); } 48% { opacity: 1; transform: translateY(90%); } 50%, 100% { opacity: 0; transform: translateY(90%); } }
@keyframes sc-mask { 0%, 51% { opacity: 0; transform: scale(0.85); } 55%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sc-rec1 { 0%, 29% { opacity: 0; transform: translateY(8px); } 32%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sc-rec2 { 0%, 34% { opacity: 0; transform: translateY(8px); } 37%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sc-rec3 { 0%, 39% { opacity: 0; transform: translateY(8px); } 42%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sc-rec4 { 0%, 44% { opacity: 0; transform: translateY(8px); } 47%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sc-check { 0%, 77% { background: var(--surface); color: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); } 80%, 100% { background: var(--green-700); color: var(--on-dark); box-shadow: none; } }
@keyframes sc-save { 0%, 91% { opacity: 0.35; transform: none; } 93% { opacity: 1; transform: scale(0.97); } 95%, 97% { opacity: 1; transform: none; } 100% { opacity: 0.35; } }
@keyframes sc-step { 0%, 24% { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-md); } 25%, 100% { border-color: transparent; background: transparent; box-shadow: none; } }
@keyframes sc-num { 0%, 24% { background: var(--brand-600); color: var(--on-dark); } 25%, 100% { background: var(--brand-50); color: var(--brand-700); } }

/* Marksheet demo: marks are written in a notebook (0-46%), photographed
   (48-64%), and a digital marksheet appears (64-97%). 14s loop; base styles
   are the finished state for reduced motion. */
.ms-demo { display: grid; grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 1fr); gap: 24px; align-items: center; max-width: 1080px; margin-inline: auto; }
.ms-page { position: relative; height: 250px; overflow: hidden; padding: 18px 20px 0 56px; border-radius: var(--r-md); background-color: var(--paper); background-image: linear-gradient(to right, transparent 42px, var(--margin-red) 42px 44px, transparent 44px), repeating-linear-gradient(to bottom, transparent 0 33px, var(--brand-200) 33px 34px); background-position: 0 0, 0 18px; background-repeat: no-repeat, repeat; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
.ms-hand { height: 34px; margin: 0; overflow: hidden; color: var(--pen-ink); font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive; font-size: 17px; line-height: 34px; white-space: nowrap; }
.ms-row { display: grid; grid-template-columns: 1.3fr repeat(5, 0.75fr); }
.ms-head { font-weight: var(--fw-bold); text-decoration: underline; text-underline-offset: 4px; }
.ms-l1 { animation: ms-l1 14s linear infinite; }
.ms-l2 { animation: ms-l2 14s linear infinite; }
.ms-l3 { animation: ms-l3 14s linear infinite; }
.ms-l4 { animation: ms-l4 14s linear infinite; }
.ms-l5 { animation: ms-l5 14s linear infinite; }
.ms-l6 { animation: ms-l6 14s linear infinite; }
.ms-pen { position: absolute; top: 188px; left: 86%; width: 26px; height: 26px; fill: none; stroke: var(--pen-ink); stroke-width: 1.6; stroke-linejoin: round; opacity: 0; animation: ms-pen 14s linear infinite; }
.ms-frame { position: absolute; inset: 8px; opacity: 0; animation: ms-frame 14s linear infinite; }
.ms-frame i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--brand-600); }
.ms-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; }
.ms-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; }
.ms-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; }
.ms-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; }
.ms-flash { position: absolute; inset: 0; background: var(--surface); opacity: 0; animation: ms-flash 14s linear infinite; }
.ms-scan { position: absolute; inset: 0; opacity: 0; animation: ms-scan 14s linear infinite; }
.ms-scan::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-500); box-shadow: 0 0 16px 5px rgb(14 165 233 / 0.4); }
.ms-arrow { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.ms-phone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-600); color: var(--on-dark); box-shadow: 0 8px 20px rgb(2 119 189 / 0.25); animation: ms-phone 14s ease infinite; }
.ms-phone .icon { width: 26px; height: 26px; }
.ms-sheet { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); animation: ms-sheet 14s var(--ease) infinite; }
.ms-switch { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 28px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); }
.ms-switch button { min-height: 38px; padding: 0 18px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-bold); transition: background-color 0.2s, color 0.2s; }
.ms-switch button[aria-selected="true"] { background: var(--brand-600); color: var(--on-dark); }
/* Printed documents: school header, details, signatures and seal */
.dp-doc { padding: 16px 18px 14px; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--brand-200), var(--shadow-lg); }
.dp-head { display: flex; align-items: center; justify-content: center; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-600); text-align: center; }
.dp-logo { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-200); color: var(--on-dark); font-size: var(--fs-xs); font-weight: var(--fw-heavy); }
.dp-head b { display: block; color: var(--brand-700); font-size: var(--fs-sm); font-weight: var(--fw-heavy); letter-spacing: 0.08em; }
.dp-head small { display: block; color: var(--muted); font-size: 0.68rem; }
.dp-title { width: fit-content; margin: 8px auto; padding: 3px 12px; border-radius: var(--r-full); background: var(--brand-50); color: var(--ink); font-size: 0.7rem; font-weight: var(--fw-bold); letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.dp-cert .dp-title { margin-top: 12px; padding: 0; background: none; color: var(--brand-700); font-family: Georgia, "Times New Roman", serif; font-size: var(--fs-lg); letter-spacing: 0.12em; }
.dp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin: 6px 0 8px; font-size: 0.7rem; }
.dp-info div { display: flex; gap: 6px; }
.dp-info dt { color: var(--muted); }
.dp-info dd { margin: 0; color: var(--ink); font-weight: var(--fw-semibold); }
.dp-table { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.dp-tr { display: grid; grid-template-columns: 1.6fr 0.6fr 0.7fr 0.6fr; gap: 6px; padding: 4px 8px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.7rem; }
.dp-tr > :not(:first-child) { text-align: right; }
.dp-tr b { color: var(--ink); }
.dp-th { background: var(--brand-50); color: var(--brand-700); font-size: 0.6rem; font-weight: var(--fw-bold); letter-spacing: 0.05em; text-transform: uppercase; }
.dp-total { border-bottom: 0; background: var(--surface-soft); font-weight: var(--fw-bold); }
.dp-result { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dp-result span { padding: 2px 9px; border-radius: var(--r-full); background: var(--brand-50); color: var(--brand-700); font-size: 0.68rem; font-weight: var(--fw-bold); }
.dp-result span:first-child { background: var(--green-50); color: var(--green-700); }
.dp-meta { margin: 0 0 10px; color: var(--muted); font-size: 0.65rem; text-align: center; }
.dp-body { margin: 0 0 8px; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 0.78rem; line-height: 1.65; }
.dp-body b { color: var(--ink); }
.dp-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 0.62rem; text-align: center; }
.dp-sign > span { display: grid; gap: 2px; min-width: 72px; }
.dp-sign i { padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); color: var(--pen-ink); font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive; font-size: 0.85rem; font-style: normal; }
.dp-sign > .dp-seal { display: grid; place-items: center; min-width: 0; width: 54px; height: 54px; border: 2px dashed var(--brand-500); border-radius: 50%; color: var(--brand-600); font-size: 0.5rem; font-weight: var(--fw-heavy); letter-spacing: 0.05em; text-transform: uppercase; transform: rotate(-12deg); }
.ms-stamp { position: absolute; top: -12px; right: 12px; padding: 2px 8px; border: 2px solid var(--green-700); border-radius: var(--r-sm); background: var(--surface); color: var(--green-700); font-size: 0.7rem; font-weight: var(--fw-heavy); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-8deg); animation: ms-stamp 14s var(--ease) infinite; }
.ms-f1 { animation: ms-f1 14s ease infinite; }
.ms-f2 { animation: ms-f2 14s ease infinite; }
.ms-f3 { animation: ms-f3 14s ease infinite; }
.ms-f4 { animation: ms-f4 14s ease infinite; }
.ms-f5 { animation: ms-f5 14s ease infinite; }
.ms-f6 { animation: ms-f6 14s ease infinite; }
.ms-f7 { animation: ms-f7 14s ease infinite; }
.ms-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin: 36px auto 0; padding: 0; }
.ms-steps li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--r-lg); }
.ms-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 6px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-sm); font-weight: var(--fw-heavy); }
.ms-steps b { color: var(--ink); font-size: var(--fs-sm); }
.ms-steps small { color: var(--muted); font-size: var(--fs-xs); }
.ms-s1 { animation-name: ms-s1; }
.ms-s2 { animation-name: ms-s2; }
.ms-s3 { animation-name: ms-s3; }
.ms-s4 { animation-name: ms-s4; }
.ms-steps li { animation-duration: 14s; animation-timing-function: linear; animation-iteration-count: infinite; }
.ms-note { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 760px; margin: 24px auto 0; padding: 14px 18px; border: 1px solid var(--brand-200); border-radius: var(--r-lg); background: var(--surface); color: var(--brand-700); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center; }
.ms-note .icon { flex: none; width: 22px; height: 22px; }
@keyframes ms-l1 { 0%, 1% { opacity: 1; clip-path: inset(0 100% 0 0); } 7%, 97% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes ms-l2 { 0%, 8% { opacity: 1; clip-path: inset(0 100% 0 0); } 14%, 97% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes ms-l3 { 0%, 15% { opacity: 1; clip-path: inset(0 100% 0 0); } 22%, 97% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes ms-l4 { 0%, 23% { opacity: 1; clip-path: inset(0 100% 0 0); } 30%, 97% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes ms-l5 { 0%, 31% { opacity: 1; clip-path: inset(0 100% 0 0); } 38%, 97% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes ms-l6 { 0%, 39% { opacity: 1; clip-path: inset(0 100% 0 0); } 46%, 97% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes ms-pen { 0% { opacity: 0; left: 4%; top: 18px; } 1% { opacity: 1; left: 4%; top: 18px; } 7% { opacity: 1; left: 86%; top: 18px; } 8% { opacity: 1; left: 4%; top: 52px; } 14% { opacity: 1; left: 86%; top: 52px; } 15% { opacity: 1; left: 4%; top: 86px; } 22% { opacity: 1; left: 86%; top: 86px; } 23% { opacity: 1; left: 4%; top: 120px; } 30% { opacity: 1; left: 86%; top: 120px; } 31% { opacity: 1; left: 4%; top: 154px; } 38% { opacity: 1; left: 86%; top: 154px; } 39% { opacity: 1; left: 4%; top: 188px; } 46% { opacity: 1; left: 86%; top: 188px; } 47%, 100% { opacity: 0; left: 86%; top: 188px; } }
@keyframes ms-frame { 0%, 47% { opacity: 0; } 49%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes ms-flash { 0%, 54% { opacity: 0; } 55.5% { opacity: 0.9; } 58%, 100% { opacity: 0; } }
@keyframes ms-scan { 0%, 57% { opacity: 0; transform: translateY(4%); } 58% { opacity: 1; transform: translateY(4%); } 63% { opacity: 1; transform: translateY(94%); } 64%, 100% { opacity: 0; transform: translateY(94%); } }
@keyframes ms-phone { 0%, 47%, 66%, 100% { transform: none; } 52%, 60% { transform: scale(1.15); } }
@keyframes ms-sheet { 0%, 63% { opacity: 0; transform: translateX(-16px); } 67%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ms-f1 { 0%, 67% { opacity: 0; } 69%, 100% { opacity: 1; } }
@keyframes ms-f2 { 0%, 70% { opacity: 0; } 72%, 100% { opacity: 1; } }
@keyframes ms-f3 { 0%, 73% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes ms-f4 { 0%, 76% { opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes ms-f5 { 0%, 79% { opacity: 0; } 81%, 100% { opacity: 1; } }
@keyframes ms-f6 { 0%, 82% { opacity: 0; } 84%, 100% { opacity: 1; } }
@keyframes ms-f7 { 0%, 85% { opacity: 0; transform: translateY(6px); } 87%, 100% { opacity: 1; transform: none; } }
@keyframes ms-stamp { 0%, 88% { opacity: 0; transform: rotate(-8deg) scale(0.8); } 91%, 100% { opacity: 1; transform: rotate(-8deg); } }
@keyframes ms-s1 { 0%, 46% { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-md); } 47%, 100% { border-color: transparent; background: transparent; box-shadow: none; } }
@keyframes ms-s2 { 0%, 46% { border-color: transparent; background: transparent; box-shadow: none; } 47%, 57% { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-md); } 58%, 100% { border-color: transparent; background: transparent; box-shadow: none; } }
@keyframes ms-s3 { 0%, 57% { border-color: transparent; background: transparent; box-shadow: none; } 58%, 64% { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-md); } 65%, 100% { border-color: transparent; background: transparent; box-shadow: none; } }
@keyframes ms-s4 { 0%, 64% { border-color: transparent; background: transparent; box-shadow: none; } 65%, 99% { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-md); } 100% { border-color: transparent; background: transparent; box-shadow: none; } }

/* Looping feature illustrations (work like small GIFs, but crisp and light). */
.loop-grid { display: grid; gap: 24px; max-width: 1080px; margin-inline: auto; }
.loop-card { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 22px 32px 64px 22px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.loop-card h3 { margin-bottom: 8px; font-size: var(--fs-lg); }
.loop-card p { color: var(--muted); font-size: var(--fs-sm); }
.loop-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; height: 220px; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--brand-50), var(--surface-soft)); }

/* Documents: student and school document lists */
.doc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc-group { padding: 22px 22px 64px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.doc-group-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.doc-group-head h3 { margin: 0; font-size: var(--fs-lg); }
.doc-group-head p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.doc-group:nth-child(2) .feature-icon { background: var(--green-50); color: var(--green-700); }
.doc-items { list-style: none; display: grid; margin: 0; padding: 0; }
.doc-items li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc-items li:last-child { border-bottom: 0; }
.doc-items li > .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-600); }
.doc-items span { min-width: 0; }
.doc-items small a { color: var(--brand-700); font-weight: var(--fw-semibold); }
.doc-items b { display: block; color: var(--ink); font-size: var(--fs-sm); }
.doc-items small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; }
.doc-items em { grid-column: 2; justify-self: start; margin-top: 6px; padding: 2px 9px; border-radius: var(--r-full); background: var(--brand-50); color: var(--brand-700); font-size: 0.7rem; font-style: normal; font-weight: var(--fw-bold); white-space: nowrap; }
.doc-footnote { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.doc-footnote .icon { color: var(--green-700); stroke-width: 2.4; }
.doc-footnote a { color: var(--brand-700); }
.doc-footnote a:hover { text-decoration: underline; }
/* Upcoming / New: three sample templates fanned out, one per style. */
.new-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1080px; margin-inline: auto; padding: 22px 36px 22px 22px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.new-text h3 { margin: 12px 0 8px; font-size: var(--fs-xl); }
.new-text > p { color: var(--muted); font-size: var(--fs-sm); }
.new-text .list-check { margin: 18px 0 22px; font-size: var(--fs-sm); }
.new-stage { display: flex; align-items: center; justify-content: center; height: 360px; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--brand-50), var(--surface-soft)); }
.nt-doc { position: relative; display: flex; flex-direction: column; gap: 9px; flex: none; width: 170px; height: 240px; margin-bottom: 30px; padding: 12px; background: var(--surface); box-shadow: var(--shadow-md); font-size: 0.55rem; color: var(--ink); }
.nt-doc + .nt-doc { margin-left: -34px; }
.nt-classic { padding-right: 46px; transform: rotate(-6deg) translateY(10px); }
.nt-modern { z-index: 1; transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.nt-premium { padding-left: 46px; transform: rotate(6deg) translateY(10px); }
.nt-head { display: flex; align-items: center; gap: 6px; padding-bottom: 7px; border-bottom: 1.5px solid var(--brand-700); font-weight: var(--fw-heavy); letter-spacing: 0.02em; }
.nt-crest { width: 18px; height: 18px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; }
.nt-title { align-self: center; margin: 2px 0 4px; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nt-line { height: 6px; border-bottom: 1px dotted var(--line-strong); }
.nt-short { width: 60%; }
.nt-sign { align-self: flex-end; margin-top: auto; padding-top: 3px; border-top: 1px solid var(--ink); font-size: 0.5rem; }
.nt-doc small { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); padding: 2px 9px; border-radius: var(--r-full); background: var(--surface); color: var(--brand-700); font-size: 0.65rem; font-weight: var(--fw-bold); white-space: nowrap; box-shadow: var(--shadow-sm); }
.nt-classic { outline: 3px double var(--brand-700); outline-offset: -8px; }
.nt-classic .nt-head { flex-direction: column; color: var(--brand-700); }
.nt-modern .nt-head { margin: -12px -12px 0; padding: 10px 12px; border: 0; background: var(--brand-600); color: var(--on-dark); }
.nt-modern .nt-title { align-self: flex-start; color: var(--brand-700); text-transform: none; letter-spacing: 0; }
.nt-premium .nt-head { margin: -12px -12px 0 -46px; padding: 10px 12px 10px 46px; border-bottom: 3px solid var(--orange-500); background: var(--navy-950); color: var(--orange-50); }
.nt-premium .nt-crest { color: var(--orange-500); }
.nt-premium .nt-title { color: var(--navy-900); }

/* Wave: the layered wave from the Ezyo app, along the bottom of cards. */
.loop-card, .doc-group, .area-stats div, .visual-card .premium-feature, .scan-records, .plan-table, .plan-included { position: relative; overflow: hidden; }
.loop-card::after, .doc-group::after, .area-stats div::after, .visual-card .premium-feature::after, .plan-table::after, .plan-included::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: url("../img/wave.66563d13a1fc.svg") no-repeat 0 100% / 100% 100%; pointer-events: none; }
.area-stats div::after { height: 24px; }
.visual-card .premium-feature { padding-bottom: 64px; }
.plan-table { padding-bottom: 64px; }
.plan-table .plan-row:last-child { border-bottom: 1px solid var(--line); }
.plan-included { padding-bottom: 76px; }
/* QR ID card: the QR is scanned, then a sample fee card opens (6s loop).
   Base styles are the opened state for reduced motion. */
.loop-stage-qr { justify-content: flex-start; height: 390px; padding-left: 4%; }
.lq-card { position: relative; width: 206px; padding: 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-md); animation: lq-card 6s var(--ease) infinite; }
.lq-head { margin: -10px -10px 10px; padding: 6px 10px; border-radius: var(--r-md) var(--r-md) 0 0; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: var(--on-dark); font-size: 0.7rem; font-weight: var(--fw-bold); }
.lq-body { display: flex; align-items: center; gap: 10px; padding-right: 52px; }
.lq-photo { flex: none; width: 40px; height: 48px; }
.lq-photo rect { fill: var(--brand-100); }
.lq-photo circle, .lq-photo path { fill: var(--brand-600); }
.lq-info { display: grid; min-width: 0; overflow: hidden; line-height: 1.3; }
.lq-info b { overflow: hidden; color: var(--ink); font-size: 0.72rem; white-space: nowrap; text-overflow: ellipsis; }
.lq-info small { overflow: hidden; color: var(--muted); font-size: 0.62rem; white-space: nowrap; text-overflow: ellipsis; }
.lq-qr { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; background: repeating-linear-gradient(45deg, var(--navy-900) 0 4px, var(--surface) 4px 8px); outline: 2px solid transparent; outline-offset: 3px; border-radius: 2px; animation: lq-frame 6s ease infinite; }
.lq-qr i { position: absolute; top: 0; left: -4px; right: -4px; height: 2px; background: var(--green-500); box-shadow: 0 0 8px var(--green-500); opacity: 0; animation: lq-scan 6s ease-in-out infinite; }
.lq-fee { position: absolute; top: 50%; right: 3%; width: min(400px, 66%); padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateY(-50%); transform-origin: left center; animation: lq-fee 6s var(--ease) infinite; }
.lq-fee-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lq-fee-head b { color: var(--ink); font-size: var(--fs-xs); }
.lq-fee-head small { color: var(--muted); font-size: 0.65rem; }
.lq-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.lq-sum div { position: relative; overflow: hidden; padding: 8px 8px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.lq-sum div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-600); }
.lq-sum .lq-sum-paid::before { background: var(--green-500); }
.lq-sum .lq-sum-over::before { background: var(--red-700); }
.lq-sum small { display: block; color: var(--muted); font-size: 0.6rem; font-weight: var(--fw-semibold); }
.lq-sum b { color: var(--ink); font-size: 0.85rem; font-weight: var(--fw-heavy); }
.lq-table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); }
.lq-tr { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr; gap: 4px; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; color: var(--text); font-size: 0.62rem; }
.lq-tr:last-child { border-bottom: 0; }
.lq-tr > :not(:first-child) { text-align: right; }
.lq-tr b { display: block; color: var(--ink); font-size: 0.66rem; }
.lq-tr small { display: block; color: var(--muted); font-size: 0.55rem; }
.lq-th { background: var(--brand-50); color: var(--brand-700); font-size: 0.55rem; font-weight: var(--fw-bold); letter-spacing: 0.05em; text-transform: uppercase; }
.lq-paid { border-left-color: var(--green-500); background: var(--green-50); }
.lq-paid > span:nth-child(2) { color: var(--green-700); font-weight: var(--fw-bold); }
.lq-over { border-left-color: var(--red-700); background: var(--red-50); }
.lq-over > span:nth-child(2), .lq-over > span:nth-child(4) { color: var(--red-700); font-weight: var(--fw-bold); }
.lq-next { border-left-color: var(--line-strong); background: var(--surface-soft); color: var(--muted); }
@keyframes lq-card { 0% { opacity: 0; transform: translateY(8px); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes lq-frame { 0%, 12% { outline-color: transparent; } 16%, 42% { outline-color: var(--green-500); } 46%, 100% { outline-color: transparent; } }
@keyframes lq-scan { 0%, 14% { opacity: 0; transform: none; } 16% { opacity: 1; transform: none; } 28% { opacity: 1; transform: translateY(40px); } 40% { opacity: 1; transform: none; } 42%, 100% { opacity: 0; transform: none; } }
@keyframes lq-fee-sm { 0%, 44% { opacity: 0; transform: translateY(20px); } 52%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes lq-fee { 0%, 44% { opacity: 0; transform: translateY(-50%) translateX(-30px) scale(0.6); } 52%, 94% { opacity: 1; transform: translateY(-50%); } 100% { opacity: 0; transform: translateY(-50%); } }
/* WhatsApp reminder */
.lw-chat { display: grid; gap: 8px; width: min(250px, 90%); }
.lw-msg { display: block; max-width: 88%; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); font-size: 0.75rem; line-height: 1.4; }
.lw-msg b { color: var(--ink); }
.lw-out { justify-self: end; border-radius: 12px 12px 3px 12px; background: var(--green-50); }
.lw-msg .icon { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; color: var(--green-700); stroke-width: 2.8; }
.lw-msg:nth-child(1) { animation: lw-1 6s var(--ease) infinite; }
.lw-msg:nth-child(2) { animation: lw-2 6s var(--ease) infinite; }
.lw-msg:nth-child(3) { animation: lw-3 6s var(--ease) infinite; }
@keyframes lw-1 { 0% { opacity: 0; transform: translateY(8px); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lw-2 { 0%, 22% { opacity: 0; transform: translateY(8px); } 28%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes lw-3 { 0%, 44% { opacity: 0; transform: translateY(8px); } 50%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.premium-feature-grid { margin-top: 36px; }
.premium-feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.premium-feature .feature-icon { margin-bottom: 20px; }
.premium-feature h3 { margin-bottom: 8px; }
.premium-feature p { color: var(--muted); font-size: var(--fs-sm); }
.visual-card .premium-feature + .premium-feature { margin-top: 14px; }
.flow-cards { margin-top: 32px; }
.flow-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.flow-number { display: block; margin-bottom: 12px; color: var(--brand-700); font-size: var(--fs-xs); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-caps); }
.flow-card p { color: var(--muted); font-size: var(--fs-sm); }

/* Automation */
.automation-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.automation-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.automation-card h3 { margin: 18px 0 8px; }
.automation-card p { color: var(--muted); font-size: var(--fs-sm); }
.automation-trigger { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.automation-trigger b { color: var(--brand-700); }

/* Student ID and fee card illustration */
.qr-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.id-card-demo, .fee-card-demo { position: relative; min-height: 260px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.id-card-head { display: flex; align-items: center; height: 52px; margin: -8px -8px 18px; padding: 0 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: var(--on-dark); font-weight: var(--fw-bold); }
.id-profile { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.id-photo { display: grid; place-items: center; width: 64px; height: 76px; border-radius: var(--r-md); background: var(--brand-100); color: var(--navy-900); font-weight: var(--fw-heavy); }
.id-lines { display: grid; gap: 8px; align-content: center; }
.id-line { height: 9px; border-radius: var(--r-full); background: var(--line); }
.id-line:nth-child(2) { width: 70%; }
.id-line:nth-child(3) { width: 50%; }
.qr-box { position: absolute; right: 22px; bottom: 20px; width: 70px; height: 70px; border: 6px solid var(--surface); outline: 1px solid var(--line); border-radius: var(--r-sm); background: repeating-linear-gradient(45deg, var(--navy-900) 0 5px, var(--surface) 5px 10px); }
.fee-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.fee-row:last-child { border-bottom: 0; }
.fee-row span { color: var(--muted); }

/* 6. Utilities and motion -------------------------------------------------- */
.hero-actions.u-center-actions, .u-center-actions { justify-content: center; }
.u-mt-16 { margin-top: 16px; }
.u-m-0 { margin: 0; }
.u-minh-0 { min-height: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Reduced motion (Windows "Animation effects" off, macOS "Reduce motion") stops
   decorative motion only. The product explainers keep playing: they are how
   the page explains Ezyo, and tabs let visitors stop them. */
/* Home: bento grid of reasons and a big-number band (less text, more scanning) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento-tile { position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); color: var(--text); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.bento-tile:hover { transform: translateY(-3px); border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.bento-wide { grid-column: span 2; }
.bento-num { position: absolute; top: 20px; right: 22px; color: var(--line-strong); font-size: var(--fs-sm); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.bento-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: var(--r-lg); background: var(--brand-50); color: var(--brand-600); }
.bento-icon .icon { width: 26px; height: 26px; }
.bento-tile h3 { margin: 28px 0 6px; font-size: var(--fs-lg); }
.bento-tile p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.bento-dark { border-color: var(--brand-600); background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: var(--on-dark); }
.bento-dark:hover { border-color: var(--brand-700); }
.bento-dark h3 { color: var(--on-dark); font-size: var(--fs-xl); }
.bento-dark p { color: rgb(255 255 255 / 0.88); font-size: var(--fs-base); }
.bento-dark .bento-icon { background: rgb(255 255 255 / 0.18); color: var(--on-dark); }
.bento-dark .bento-num { color: rgb(255 255 255 / 0.6); }
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-band div { padding: 28px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat-band b { display: block; color: var(--brand-600); font-size: var(--fs-3xl); font-weight: var(--fw-heavy); letter-spacing: var(--tracking-tight); line-height: 1.1; }
.stat-band span { display: block; margin-top: 8px; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 980px) { .bento, .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento, .stat-band { grid-template-columns: 1fr; } .bento-wide { grid-column: auto; } .bento-tile { min-height: 0; } .bento-tile h3 { margin-top: 18px; } }

/* Home: QR ID card → real student page */
.qr-showcase { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; }
.qr-flow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 32px; align-items: center; }
.qr-flow .qr-delivery { grid-column: 1 / -1; justify-self: start; }
/* Portrait student ID card (QR section) */
.idc3 { position: relative; width: 270px; overflow: hidden; justify-self: center; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: idc3-float 6s ease-in-out infinite; }
.idc3-slot { position: absolute; z-index: 2; top: 10px; left: 50%; width: 46px; height: 8px; margin-left: -23px; border-radius: var(--r-full); background: rgb(255 255 255 / 0.55); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25); }
.idc3-head { display: flex; align-items: center; gap: 10px; padding: 30px 16px 40px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: var(--on-dark); }
.idc3-head b { display: block; font-size: 0.8rem; font-weight: var(--fw-heavy); letter-spacing: 0.06em; }
.idc3-head small { display: block; color: rgb(255 255 255 / 0.85); font-size: 0.68rem; }
.idc3-crest { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--brand-700); font-weight: var(--fw-heavy); }
.idc3-body { display: grid; justify-items: center; gap: 8px; margin-top: -30px; padding: 0 18px 14px; text-align: center; }
.idc3-photo { display: grid; place-items: center; width: 76px; height: 76px; border: 4px solid var(--surface); border-radius: 50%; background: linear-gradient(160deg, var(--brand-100), var(--brand-200)); box-shadow: var(--shadow-md); color: var(--brand-700); font-size: 1.8rem; font-weight: var(--fw-heavy); }
.idc3-name { color: var(--ink); font-size: var(--fs-lg); line-height: 1.2; }
.idc3-pills { display: flex; gap: 6px; }
.idc3-pills span { padding: 2px 10px; border-radius: var(--r-full); background: var(--brand-50); color: var(--brand-700); font-size: 0.72rem; font-weight: var(--fw-bold); }
.idc3-rows { display: grid; gap: 4px; width: 100%; margin: 4px 0 0; font-size: 0.75rem; }
.idc3-rows div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.idc3-rows dt { color: var(--muted); }
.idc3-rows dd { margin: 0; color: var(--ink); font-weight: var(--fw-semibold); }
.idc3-qr { position: relative; margin-top: 6px; padding: 6px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); }
.idc3-qr .qr-svg { width: 104px; height: 104px; }
.idc3-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-500); box-shadow: 0 0 12px var(--brand-500); animation: idc3-scan 2.4s ease-in-out infinite; }
.idc3-hint { color: var(--muted); font-size: 0.68rem; }
.idc3-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: var(--brand-50); color: var(--brand-700); font-size: 0.68rem; font-weight: var(--fw-heavy); letter-spacing: 0.12em; }
.idc3-sign { color: var(--muted); font-weight: var(--fw-semibold); font-style: italic; letter-spacing: 0; }
@keyframes idc3-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes idc3-scan { 0%, 100% { top: 4px; opacity: 0; } 15%, 85% { opacity: 1; } 50% { top: calc(100% - 7px); } }
@media (prefers-reduced-motion: reduce) { .idc3, .idc3-scan { animation: none; } }
@media (max-width: 860px) { .idc3 { animation: none; } }
.qr-steps { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.qr-steps li { display: flex; align-items: center; gap: 14px; }
.qr-steps li > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-600); color: var(--on-dark); font-weight: var(--fw-bold); }
.qr-steps b { display: block; color: var(--ink); }
.qr-steps small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.qr-delivery { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--green-50); color: var(--green-700); font-weight: var(--fw-semibold); }
.qr-delivery .icon { width: 18px; height: 18px; }
.qr-phone { margin: 0; justify-self: center; text-align: center; }
.qr-phone-frame { width: min(300px, 80vw); max-height: 600px; overflow: hidden; padding: 10px; border-radius: 40px; background: var(--navy-900); box-shadow: var(--shadow-lg); }
.qr-phone-frame img { width: 100%; border-radius: 30px; }
.qr-phone figcaption { margin-top: 12px; color: var(--muted); font-size: var(--fs-xs); }
.mini-loops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 56px auto 0; }
.mini-loop { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
.mini-loop .loop-stage { height: 180px; }
.mini-loop .loop-text { padding: 0 6px 6px; }
@media (max-width: 860px) { .qr-showcase, .mini-loops { grid-template-columns: 1fr; } .qr-flow { grid-template-columns: 1fr; justify-items: center; } .qr-flow .qr-delivery { justify-self: center; } }

/* Reviews: action cards (feedback form, Google review) */
.voice-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.voice-grid > .voice-card { flex: 0 1 calc((100% - 40px) / 3); min-width: 280px; }
.voice-grid + .voice-actions { margin-top: 28px; }
.voice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.voice-actions-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.voice-action { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.voice-action h3 { margin: 2px 0 4px; }
.voice-action p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.voice-action .btn { grid-column: 1 / -1; justify-self: start; }
.voice-action-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--brand-50); color: var(--brand-600); }
.voice-action-icon .icon { width: 24px; height: 24px; }
.voice-action-google { background: var(--surface); border: 1px solid var(--line); color: var(--brand-600); font-size: 1.4rem; font-weight: var(--fw-heavy); }
@media (max-width: 760px) { .voice-actions { grid-template-columns: 1fr; } }

/* Home: benefit cards and live demo */
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.benefit-grid .feature-card { display: flex; flex-direction: column; }
@media (max-width: 1100px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .benefit-grid { grid-template-columns: 1fr; } }
.compare-note { max-width: 720px; margin: 28px auto 0; color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.compare-note a { color: var(--brand-600); font-weight: var(--fw-semibold); }
.benefit-grid .feature-card p { flex: 1; }
.card-link { margin-top: 12px; color: var(--brand-700); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.demo-grid:has(> :only-child) { grid-template-columns: minmax(0, 460px); justify-content: center; }
.demo-card { display: flex; flex-direction: column; align-items: flex-start; }
.demo-card h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.demo-card h3 .icon { width: 24px; height: 24px; color: var(--brand-600); }
.demo-card .hero-actions { margin-top: 18px; }
.demo-card .sample-note { display: flex; align-items: center; gap: 6px; }
.demo-card .sample-note .icon { width: 16px; height: 16px; flex: none; color: var(--green-700); }
.demo-creds { display: grid; gap: 10px; width: 100%; margin: 6px 0 0; }
.demo-creds div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.demo-creds dt { color: var(--muted); font-size: var(--fs-sm); }
.demo-creds dd { margin: 0; color: var(--ink); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; user-select: all; }
.demo-qr { align-self: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.qr-svg { display: block; }
@media (max-width: 680px) { .demo-grid { grid-template-columns: 1fr; } }

/* How-to guides (/help/) */
.guide-group + .guide-group { margin-top: 56px; }
.guide-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.guide-group-head h2 { margin: 0; font-size: var(--fs-xl); }
.guide-group-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: var(--on-dark); }
.guide-group-icon .icon { width: 20px; height: 20px; }
.guide-group-count { margin-left: auto; padding: 4px 12px; border-radius: var(--r-full); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.guide-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.guide-card:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.guide-card:hover::before { transform: scaleX(1); }
.guide-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.guide-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--brand-50); color: var(--brand-600); transition: background-color 0.25s, color 0.25s; }
.guide-card-icon .icon { width: 24px; height: 24px; }
.guide-card:hover .guide-card-icon { background: var(--brand-600); color: var(--on-dark); }
.guide-app { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-full); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.guide-app .icon { width: 14px; height: 14px; }
.guide-card h3 { margin-bottom: 8px; color: var(--ink); font-size: var(--fs-md); line-height: 1.3; }
.guide-card p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: var(--fs-sm); }
.guide-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.guide-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-md); transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s; }
.guide-card:hover .guide-go { transform: translateX(4px); background: var(--brand-600); color: var(--on-dark); }
@media (max-width: 980px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-where { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.guide-where .icon { width: 18px; height: 18px; color: var(--brand-600); }
.guide-body { max-width: 760px; }
.guide-steps { list-style: none; display: grid; gap: 14px; margin: 0 0 32px; padding: 0; }
.guide-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.guide-steps li > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-600); color: var(--on-dark); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.guide-steps p { margin: 4px 0 0; color: var(--ink); }
.guide-tips { margin-bottom: 28px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface-soft); }
.guide-tips h2, .guide-related h2 { font-size: var(--fs-lg); }
.guide-related { margin-top: 40px; }
.guide-related a, .guide-back a { color: var(--brand-600); font-weight: var(--fw-semibold); }
.guide-back { margin-top: 28px; }

/* Analytics consent banner (only rendered when GA4 is set in Admin) */
.consent-bar { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); }
.consent-bar[hidden] { display: none; }
.consent-bar p { flex: 1 1 320px; margin: 0; }
.consent-actions { display: flex; gap: 10px; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.sample-note, .hero .sample-note, .page-hero .sample-note { margin-top: 14px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; }
.app-store-link { color: var(--brand-700); font-weight: var(--fw-semibold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :not(:is(.tour, .loop-stage, .scan-demo, .ms-demo, .ms-steps) *),
  :not(:is(.tour, .loop-stage, .scan-demo, .ms-demo, .ms-steps) *)::before,
  :not(:is(.tour, .loop-stage, .scan-demo, .ms-demo, .ms-steps) *)::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1280px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-links.open { display: grid; gap: 2px; position: absolute; top: calc(var(--header-h) - 4px); left: var(--gutter); right: var(--gutter); max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); font-size: var(--fs-base); }
  .nav-links.open > a { padding: 12px; border-radius: var(--r-md); }
  .nav-links.open > a::after { display: none; }
  .nav-links.open > a:hover { background: var(--brand-50); }
  .nav-links.open .nav-mobile-cta { display: grid; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .mobile-toggle { display: grid; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  :root { --section-y: 72px; }
  .hero-grid, .split, .contact-grid, .qr-demo { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .blog-grid, .pricing-grid, .premium-feature-grid, .flow-cards, .automation-grid, .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: 1fr; gap: 16px; }
  .doc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-tabs { display: flex; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
  .tour-tab { flex: none; width: auto; align-items: center; gap: 8px; padding: 10px 14px; border-color: var(--line); background: var(--surface); }
  .tour-tab small { display: none; }
  .tour-tab strong { font-size: var(--fs-sm); white-space: nowrap; }
  .tour-body { grid-template-columns: 1fr; min-height: 0; }
  .tour-nav { display: none; }
  .tp-caption { display: block; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
  .scan-demo { grid-template-columns: 1fr; gap: 24px; }
  .loop-card { grid-template-columns: 1fr; gap: 20px; padding-right: 22px; }
  .new-card { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .doc-groups, .plan-layout, .ms-demo { grid-template-columns: 1fr; }
  .ms-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-arrow { grid-auto-flow: column; align-items: center; justify-content: center; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --header-h: 64px; --section-y: 60px; }
  .brand-logo { height: 34px; }
  .page-hero { padding: 52px 0 48px; }
  .market-hero { padding: 52px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .grid-3, .blog-grid, .pricing-grid, .premium-feature-grid, .flow-cards, .automation-grid, .audience-grid, .workflow, .form-row, .checkbox-grid { grid-template-columns: 1fr; }
  .app-showcase-phone { width: 46%; padding: 6px; border-radius: 26px; }
  .app-showcase-phone img { border-radius: 21px; }
  .app-showcase-desktop { width: 90%; }
  .app-showcase-badge { left: 0; bottom: 6%; max-width: 62%; padding: 10px 12px; }
  .cta-box { padding: 36px 22px; }
  .contact-card { padding: 22px; }
  .voice-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .tour-screens { padding: 14px; }
  .tour-bar { padding: 10px 14px; }
  .tp-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tp-stat { padding: 12px; }
  .tp-stat b { font-size: var(--fs-lg); }
  .tp-receipt-wrap, .tp-students, .tp-docs { grid-template-columns: 1fr; }
  .tp-profile { display: none; }
  .tp-row { gap: 10px; padding: 10px; }
  .tp-row .tp-avatar, .tp-row .tp-call-icon { display: none; }
  .tp-remind { min-width: 64px; }
  .tp-note { margin-left: 0; }
  .tp-tr { grid-template-columns: 1.4fr 0.5fr 0.6fr; }
  .tp-tr > :nth-child(3) { display: none; }
  .area-chart { --plot: 220px; padding: 16px; }
  .area-hint { display: block; }
  .area-plot { min-width: 980px; }
  .area-stats { gap: 8px; }
  .area-stats div { padding: 10px 10px 24px; }
  .scan-stage { padding-bottom: 0; }
  .scan-records { position: relative; right: auto; width: auto; margin-top: 12px; }
  .scan-mask em { padding: 2px 5px; font-size: 0.6rem; }
  .scan-corners i { width: 20px; height: 20px; }
  .area-stats b { font-size: var(--fs-lg); }
  .loop-grid, .included-grid { grid-template-columns: 1fr; }
  .loop-stage-qr { align-items: flex-start; height: 520px; padding: 16px 0 0 3%; }
  .lq-fee { top: auto; bottom: 10px; left: 3%; right: 3%; width: auto; transform: none; animation-name: lq-fee-sm; }
  .doc-group { padding: 18px 16px 48px; }
  .new-card { padding: 14px 14px 22px; }
  .new-stage { height: 300px; }
  .nt-doc { width: 128px; height: 184px; padding: 9px; gap: 7px; font-size: 0.45rem; }
  .nt-doc + .nt-doc { margin-left: -30px; }
  .nt-classic { padding-right: 39px; }
  .nt-premium { padding-left: 39px; }
  .nt-modern .nt-head { margin: -9px -9px 0; padding: 8px 9px; }
  .nt-premium .nt-head { margin: -9px -9px 0 -39px; padding: 8px 9px 8px 39px; }
  .nt-title { font-size: 0.55rem; }
  .plan-row { padding: 14px 16px; }
  .ms-page { padding-left: 50px; transform: none; }
  .ms-hand { font-size: 15px; }
  .ms-steps li { padding: 12px; }
  .plan-row > span:first-child small { display: none; }
  .plan-price { font-size: var(--fs-lg); }
  .tab span { flex-direction: column; gap: 2px; min-height: 58px; font-size: var(--fs-xs); }
}
@media (max-width: 420px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .navbar { gap: 10px; }
  .brand-logo { height: 30px; }
  .nav-cta { display: none; }
  .nav-actions { gap: 12px; }
  .metric-grid { grid-template-columns: 1fr; }
}
