/* HalaChat marketing site — brand tokens from halachat.vercel.app/brand (approved 21 Oct 2026) */
/* Arabic text: IBM Plex Sans Arabic (SIL OFL 1.1, see assets/fonts/OFL-IBM-Plex.txt). Arabic glyphs only; Latin and digits use the system font. */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+06??, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+06??, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+06??, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+06??, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
:root {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell,
    "Helvetica Neue", Helvetica, Arial, "Noto Naskh Arabic UI", "Noto Naskh Arabic", system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-arabic: "IBM Plex Sans Arabic", var(--font-system);

  --primary: #26216e;
  --primary-700: #1d1958;
  --signature: #ffb27a;
  --background: #f7f5f1;
  --foreground: #1a1840;
  --card: #fff;
  --secondary: #e8e5fb;
  --signature-soft: #ffe6d3;
  --muted: #efece6;
  --muted-foreground: #5e5c78;
  --input: #8a869e;
  --border: #e6e2da;
  --success: #2f7d5b;
  --destructive: #c4321f;
  --community: #ffb27a;

  --radius: 14px;
  --radius-card: 20px;
  --shadow-card: 0 1px 2px #1a18400f, 0 12px 32px -18px #1a18404d;
  --shadow-lift: 0 2px 4px #1a184014, 0 30px 60px -30px #1a184066;
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --dur: 280ms;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
}

@media (prefers-contrast: more) {
  :root { --muted-foreground: #1a1840; --border: #8a869e; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { line-height: 1.75; }
:lang(ar) * { letter-spacing: normal !important; text-transform: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #fff; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--card);
  color: var(--primary); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; transition: top var(--dur) var(--ease); }
.skip:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.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; }

/* ---------- type */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--primary); margin: 0 0 16px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signature); box-shadow: 0 0 0 4px var(--signature-soft); }
.on-dark .kicker { color: #fff; }
.on-dark .kicker::before { box-shadow: 0 0 0 4px #ffb27a33; }
:lang(en) .kicker { letter-spacing: 0.06em; text-transform: uppercase; font-size: 12.5px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.4; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); max-width: 20ch; }
:lang(ar) .h2 { max-width: 22ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted-foreground); max-width: 60ch; margin: 18px 0 0; }
.on-dark .lead { color: #d9d6f5; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head.center .h2, .section-head.center .lead { margin-inline: auto; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -12px #26216e99; }
.btn-primary:hover { background: var(--primary-700); }
.btn-signature { background: var(--signature); color: var(--primary); box-shadow: 0 10px 24px -12px #ffb27aaa; }
.btn-signature:hover { background: #ffc196; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--input); }
.btn-outline:hover { border-color: var(--primary); background: #fff; }
.on-dark .btn-outline { color: #fff; border-color: #ffffff59; }
.on-dark .btn-outline:hover { background: #ffffff14; border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* ---------- header */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease); color: #fff; }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.site-header.is-scrolled { background: #f7f5f1e6; color: var(--foreground); box-shadow: 0 1px 0 var(--border); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.brand-link { display: flex; align-items: center; flex: none; }
.brand-link img { height: 30px; width: auto; }
.brand-link .logo-dark { display: none; }
.is-scrolled .brand-link .logo-light { display: none; }
.is-scrolled .brand-link .logo-dark { display: block; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 10px; opacity: 0.88; transition: opacity var(--dur), background-color var(--dur); }
.nav a:hover { opacity: 1; background: #ffffff14; }
.is-scrolled .nav a:hover { background: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #ffffff4d; background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; }
.is-scrolled .lang-switch { border-color: var(--input); }
.lang-switch:hover { background: #ffffff14; }
.is-scrolled .lang-switch:hover { background: var(--muted); }
.site-header .btn-primary { background: var(--signature); color: var(--primary); box-shadow: none; }
.site-header.is-scrolled .btn-primary { background: var(--primary); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #ffffff4d; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.is-scrolled .menu-toggle { border-color: var(--input); }

/* ---------- hero */
.hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; padding-block: 148px 96px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 85% 30%, #3b34a3 0%, transparent 60%), radial-gradient(40% 50% at 10% 90%, #ffb27a26 0%, transparent 70%); }
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 14ch; }
:lang(ar) .hero h1 { max-width: 15ch; }
.hero h1 .hl { color: var(--signature); }
.hero .lead { font-size: clamp(18px, 1.7vw, 21px); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: #d9d6f5; font-size: 15px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--signature); width: 18px; height: 18px; }

.hero-visual { position: relative; min-height: 600px; display: grid; place-items: center; }
.orbit { position: absolute; width: min(560px, 120%); aspect-ratio: 1; }
.orbit .ring-path { fill: none; stroke: #ffffff2e; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s var(--ease) 0.2s forwards; }
.orbit .ring-dot { fill: var(--signature); transform-origin: center; transform-box: fill-box; transform: scale(0); animation: pop 0.5s var(--ease) 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
.orbit-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #ffffff1a; border: 1px solid #ffffff26; backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; white-space: nowrap; }
[dir="rtl"] .orbit-chip { padding: 8px 8px 8px 14px; }
.orbit-chip i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; color: var(--primary); background: #fff; }
.orbit-chip.c1 { top: 5%; inset-inline-start: -6%; }
.orbit-chip.c2 { top: 36%; inset-inline-end: -9%; }
.orbit-chip.c3 { top: 44%; inset-inline-start: -10%; }
.orbit-chip.c4 { bottom: 26%; inset-inline-end: -10%; }
.orbit-chip.c1 i { background: var(--signature); }
.orbit-chip.c3 i { background: var(--secondary); }

/* phone mockup */
.phone { position: relative; z-index: 2; width: 318px; border-radius: 46px; background: #0f0d33; padding: 11px; box-shadow: 0 40px 80px -30px #0008, 0 0 0 1px #ffffff1f inset; }
.phone-screen { border-radius: 36px; overflow: hidden; background: var(--background); color: var(--foreground); height: 610px; display: flex; flex-direction: column; }
.phone-notch { height: 30px; display: flex; justify-content: center; align-items: center; background: #fff; }
.phone-notch span { width: 92px; height: 24px; border-radius: 0 0 14px 14px; background: #0f0d33; margin-top: -8px; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; background: #fff; border-bottom: 1px solid var(--border); }
.avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--secondary); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.avatar .dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--community); border: 2px solid #fff; top: -1px; inset-inline-end: -1px; transition: background-color var(--dur) var(--ease); }
.app-bar b { display: block; font-size: 14.5px; line-height: 1.25; }
.app-bar small { color: var(--muted-foreground); font-size: 12px; }
.chat { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.day { align-self: center; font-size: 11px; color: var(--muted-foreground); background: var(--muted); padding: 2px 10px; border-radius: 99px; }
.notice { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.notice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.badge-official { background: var(--secondary); color: var(--primary); }
.badge-urgent { background: #fbe4e0; color: var(--destructive); }
.notice h4 { font-size: 14px; line-height: 1.35; }
.notice p { margin: 4px 0 8px; font-size: 12.5px; color: var(--muted-foreground); line-height: 1.5; }
.notice-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; }
.chip-cal { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 600; background: var(--signature-soft); padding: 3px 8px; border-radius: 8px; }
.state { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-foreground); font-weight: 600; }
.state .icon { width: 14px; height: 14px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.45; }
.bubble.in { background: #fff; border: 1px solid var(--border); border-end-start-radius: 4px; align-self: flex-start; }
.bubble.out { background: var(--primary); color: #fff; border-end-end-radius: 4px; align-self: flex-end; }
.bubble small { display: block; font-size: 10.5px; opacity: 0.7; margin-top: 2px; }
.event { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.event-date { width: 44px; flex: none; text-align: center; border-radius: 12px; background: var(--signature); color: var(--primary); padding: 4px 0; line-height: 1.1; }
.event-date b { display: block; font-size: 17px; }
.event-date span { font-size: 10px; font-weight: 700; }
.event div:nth-child(2) { flex: 1; min-width: 0; }
.event strong { font-size: 13px; display: block; }
.event small { font-size: 11px; color: var(--muted-foreground); }
.event .mini-btn { font-size: 11.5px; font-weight: 700; background: var(--primary); color: #fff; border-radius: 10px; padding: 6px 10px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; background: #fff; border-top: 1px solid var(--border); }
.composer span { flex: 1; font-size: 12.5px; color: var(--muted-foreground); background: var(--background); border: 1px solid var(--input); border-radius: 12px; padding: 8px 10px; }
.composer i { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; }

.float-card { position: absolute; z-index: 3; background: #fff; color: var(--foreground); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 200px; animation: floaty 6s ease-in-out infinite; }
.float-card .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card b { display: block; font-size: 13.5px; line-height: 1.3; }
.float-card small { color: var(--muted-foreground); font-size: 12px; }
.float-card.f1 { top: 12%; inset-inline-end: -4%; }
.float-card.f2 { bottom: 22%; inset-inline-start: -8%; animation-delay: -2s; }
.float-card.f3 { bottom: 2%; inset-inline-end: 0; animation-delay: -4s; }
.ic-lav { background: var(--secondary); color: var(--primary); }
.ic-apr { background: var(--signature); color: var(--primary); }
.ic-red { background: #fbe4e0; color: var(--destructive); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sample-note { position: absolute; bottom: -34px; inset-inline: 0; text-align: center; font-size: 12px; color: #c9c6ee; }

/* ---------- scattered → connected */
.scatter { background: var(--background); }
.scatter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.scatter-stage { container-type: inline-size; position: relative; aspect-ratio: 1.1; border-radius: 28px; background: var(--card); box-shadow: var(--shadow-card); border: 1px solid var(--border); overflow: hidden; }
.scatter-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px); background-size: 22px 22px; opacity: 0.8; }
.shard { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--muted); font-size: 14px; font-weight: 600; color: var(--muted-foreground); white-space: nowrap;
  transition: transform 900ms var(--ease), opacity 900ms var(--ease); transform: translate(var(--x), var(--y)) rotate(var(--r)); left: 50%; top: 50%; translate: -50% -50%; }
.shard .icon { width: 18px; height: 18px; }
.scatter-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 38%; aspect-ratio: 1; display: grid; place-items: center; opacity: 0; transform: scale(0.7); transition: opacity 700ms var(--ease) 300ms, transform 700ms var(--ease) 300ms; }
.scatter-core svg { width: 100%; height: 100%; }
.scatter-core span { position: absolute; font-weight: 800; color: var(--primary); font-size: clamp(16px, 2vw, 20px); }
.scatter-stage.is-connected .shard { transform: translate(var(--cx), var(--cy)) rotate(0) scale(0.92); background: #fff; color: var(--primary); box-shadow: var(--shadow-card); outline: 1px solid var(--border); }
.scatter-stage.is-connected .shard .icon { color: var(--success); }
.scatter-stage.is-connected .scatter-core { opacity: 1; transform: scale(1); }
.scatter-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.scatter-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted-foreground); }
.scatter-points .icon { color: var(--destructive); margin-top: 3px; }
.replay { margin-top: 24px; }

/* ---------- bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile h3 { font-size: 20px; margin: 16px 0 8px; }
.tile p { margin: 0; color: var(--muted-foreground); }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--secondary); color: var(--primary); }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; }
.tile-dark { background: var(--primary); color: #fff; border-color: transparent; }
.tile-dark p { color: #d9d6f5; }
.tile-dark .ic { background: #ffffff1a; color: var(--signature); }
.tile-apricot { background: var(--signature-soft); border-color: #ffd5b5; }
.tile-apricot .ic { background: var(--signature); }
.states { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.states span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #ffffff14; border: 1px solid #ffffff26; font-size: 14px; font-weight: 600; }
.states .icon { width: 16px; height: 16px; color: var(--signature); }
.sync-demo { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sync-demo div { background: var(--background); border: 1px solid var(--border); border-radius: 12px; padding: 10px; font-size: 13px; }
.sync-demo b { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-foreground); margin-bottom: 4px; }
.sync-demo b .icon { width: 14px; height: 14px; }
.sync-demo .val { font-weight: 700; color: var(--primary); }
.sync-demo .changed { animation: blink 3s ease-in-out infinite; }
@keyframes blink { 0%, 60%, 100% { background: transparent; } 70%, 90% { background: var(--signature-soft); } }
.digest { margin-top: 16px; display: grid; gap: 8px; }
.digest div { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; border: 1px solid #ffd5b5; }
.digest .urgent { border-color: #f1b8ae; color: var(--destructive); font-weight: 600; }
.digest .icon { width: 16px; height: 16px; }
.group-list { margin-top: 18px; display: grid; gap: 8px; }
.group-list div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--background); border: 1px solid var(--border); font-size: 14px; }
.group-list .gi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--secondary); color: var(--primary); }
.group-list .gi .icon { width: 16px; height: 16px; }
.group-list b { font-weight: 600; }
.group-list small { margin-inline-start: auto; color: var(--muted-foreground); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.group-list small .icon { width: 14px; height: 14px; }

/* ---------- engage */
.engage { background: var(--card); }
.engage-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.e-card { border-radius: var(--radius-card); padding: 24px; background: var(--background); border: 1px solid var(--border); }
.e-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--signature); color: var(--primary); }
.e-card h3 { font-size: 18px; margin: 16px 0 6px; }
.e-card p { margin: 0; color: var(--muted-foreground); font-size: 15px; }

.council { margin-top: 24px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--primary); color: #fff; }
.council-copy { padding: clamp(28px, 5vw, 56px); }
.council-copy h3 { font-size: clamp(26px, 3vw, 36px); margin-top: 6px; }
.council-copy p { color: #d9d6f5; margin: 14px 0 0; max-width: 48ch; }
.council-flow { position: relative; padding: clamp(28px, 5vw, 56px); background: #1d1958; display: grid; gap: 14px; align-content: center; }
.cf-step { display: flex; gap: 14px; align-items: flex-start; background: #ffffff0f; border: 1px solid #ffffff1f; border-radius: 16px; padding: 14px 16px; }
.cf-step .num { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--primary); background: var(--signature); }
.cf-step b { display: block; }
.cf-step small { color: #c9c6ee; font-size: 14px; }
.cf-tag { font-size: 12px; font-weight: 700; color: var(--signature); }

/* ---------- audiences */
.audience { background: var(--background); }
.tabs { display: inline-flex; padding: 6px; gap: 4px; background: var(--muted); border-radius: 16px; margin-bottom: 28px; }
.tab { min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; background: transparent; font-weight: 600; cursor: pointer; color: var(--muted-foreground); transition: background-color var(--dur), color var(--dur); }
.tab[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow-card); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-card); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(24px, 2.6vw, 32px); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .tick { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--secondary); color: var(--primary); margin-top: 1px; }
.checks .tick .icon { width: 15px; height: 15px; stroke-width: 2.25; }
.panel-art { position: relative; min-height: 300px; border-radius: 22px; background: var(--secondary); display: grid; place-items: center; overflow: hidden; }
.panel-art .big-ring { width: 62%; }
.panel-art .pa-card { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-card); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-art .pa-card .icon { width: 18px; height: 18px; color: var(--primary); }
.pa-1 { top: 14%; inset-inline-start: 8%; } .pa-2 { bottom: 16%; inset-inline-end: 8%; } .pa-3 { top: 46%; inset-inline-end: 4%; }

.identity { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 28px 32px; }
.identity .mark { width: 96px; height: 96px; }
.identity .mark .dot { transition: fill var(--dur) var(--ease); }
.identity h3 { font-size: 22px; }
.identity p { margin: 6px 0 0; color: var(--muted-foreground); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--primary); background: var(--secondary); }

/* ---------- steps */
.steps-sec { background: var(--card); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; inset-inline: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); }
.steps li { position: relative; text-align: center; }
.step-badge { position: relative; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 5px solid var(--primary); font-weight: 800; color: var(--primary); }
.step-badge::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--signature); top: -4px; inset-inline-end: -4px; border: 2px solid #fff; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted-foreground); }

/* ---------- trust */
.trust { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.trust::after { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 70px solid #ffffff08; top: -260px; inset-inline-end: -200px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.t-card { border-radius: var(--radius-card); padding: 24px; background: #ffffff0d; border: 1px solid #ffffff1f; transition: background-color var(--dur) var(--ease); }
.t-card:hover { background: #ffffff17; }
.t-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #ffffff14; color: var(--signature); }
.t-card h3 { font-size: 17px; margin: 16px 0 6px; }
.t-card p { margin: 0; color: #d9d6f5; font-size: 14.5px; }

/* ---------- pricing */
.pricing { background: var(--background); }
.price-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.price-card { position: relative; background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--border); box-shadow: var(--shadow-lift); overflow: hidden; }
.price-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 34px solid var(--signature-soft); top: -120px; inset-inline-end: -110px; }
.plan-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); background: var(--secondary); padding: 6px 12px; border-radius: 10px; font-size: 14px; position: relative; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 4px; position: relative; flex-wrap: wrap; }
.price .amount { font-size: clamp(56px, 7vw, 80px); font-weight: 800; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
:lang(en) .price .amount { letter-spacing: -0.03em; }
.price .unit { font-size: 18px; font-weight: 600; color: var(--muted-foreground); }
.price-sub { margin: 0; color: var(--muted-foreground); font-weight: 600; }
.price-extra { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--signature-soft); color: var(--primary); font-weight: 600; }
.price-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.price-list .icon { color: var(--success); width: 20px; height: 20px; margin-top: 2px; }
.price-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 13.5px; color: var(--muted-foreground); margin: 18px 0 0; }

.calc { position: sticky; top: 96px; background: var(--primary); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; }
.calc-note { margin-top: 20px !important; font-size: 13.5px !important; }
.calc h3 { font-size: 22px; }
.calc p { color: #d9d6f5; margin: 8px 0 0; font-size: 15px; }
.calc label { display: block; margin-top: 28px; font-weight: 600; }
.calc-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.calc input[type="number"] { width: 110px; min-height: 48px; border-radius: 12px; border: 1.5px solid #ffffff4d; background: #ffffff14; color: #fff; padding: 0 12px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.calc input[type="range"] { flex: 1; accent-color: var(--signature); height: 44px; }
.calc-total { margin-top: 32px; padding-top: 24px; border-top: 1px solid #ffffff26; }
.calc-total .big { font-size: clamp(44px, 5vw, 60px); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-total .big small { font-size: 18px; font-weight: 600; color: #d9d6f5; }
.calc-break { margin-top: 14px; display: grid; gap: 6px; font-size: 14.5px; color: #d9d6f5; }
.calc-break div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed #ffffff33; padding-top: 6px; }
.calc-break b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- faq */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 18px; margin-bottom: 12px; transition: box-shadow var(--dur) var(--ease); }
.faq details[open] { box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 17px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); color: var(--primary); flex: none; transition: transform var(--dur) var(--ease); }
.faq details[open] .pm { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted-foreground); }

/* ---------- final cta */
.final { padding-block: 0 var(--section); background: var(--background); }
.final-card { position: relative; overflow: hidden; border-radius: 36px; background: var(--primary); color: #fff; padding: clamp(40px, 7vw, 88px); text-align: center; isolation: isolate; }
.final-card .bg-ring { position: absolute; z-index: -1; width: 560px; top: 50%; left: 50%; translate: -50% -50%; opacity: 0.12; }
.final-card h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; margin-inline: auto; }
.final-card p { color: #d9d6f5; font-size: 19px; margin: 18px auto 0; max-width: 52ch; }
.final-card .hero-ctas { justify-content: center; }

/* ---------- footer */
.site-footer { background: var(--foreground); color: #c9c6ee; padding-block: 56px 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 30px; width: auto; }
.site-footer p { margin: 16px 0 0; max-width: 40ch; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid #ffffff1f; font-size: 14px; }
.foot-bottom .lang-switch { border-color: #ffffff33; color: #fff; }

/* ---------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open { background: var(--background); color: var(--foreground); }
  .site-header.menu-open .logo-light { display: none; }
  .site-header.menu-open .logo-dark { display: block; }
  .site-header.menu-open .nav { display: flex; position: absolute; top: 76px; inset-inline: 0; flex-direction: column; padding: 12px var(--gutter) 20px; background: var(--background); box-shadow: 0 12px 24px -12px #1a18404d; }
  .hero-grid, .scatter-grid, .price-wrap, .faq-wrap, .council, .panel { grid-template-columns: 1fr; }
  .hero-visual { min-height: 640px; }
  .trust-grid, .engage-cards { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 3; }
  .steps { grid-template-columns: 1fr; text-align: start; }
  .steps::before { display: none; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; text-align: start; }
  .steps li .step-badge { margin: 0; grid-row: span 2; }
  .identity { grid-template-columns: auto 1fr; }
  .swatches { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 680px) {
  .header-actions .btn { display: none; }
  .hero { padding-block: 120px 80px; }
  .hero-visual { min-height: 600px; margin-top: 12px; }
  .orbit-chip.c2, .orbit-chip.c4 { display: none; }
  .float-card.f1 { inset-inline-end: -2%; top: 4%; }
  .float-card.f2 { inset-inline-start: -2%; }
  .trust-grid, .engage-cards, .price-list, .foot-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .sync-demo { grid-template-columns: 1fr; }
  .identity { grid-template-columns: 1fr; text-align: start; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .orbit .ring-path { stroke-dashoffset: 0; }
  .orbit .ring-dot { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* =================== v2: school-leadership page =================== */

/* admin dashboard mock (hero) */
.admin-visual { min-height: 560px; }
.dash { position: relative; z-index: 2; width: min(560px, 100%); border-radius: 20px; background: #fff; color: var(--foreground); box-shadow: 0 40px 80px -30px #0009, 0 0 0 1px #ffffff1f; overflow: hidden; }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--muted); border-bottom: 1px solid var(--border); }
.dash-top .dots { display: flex; gap: 6px; }
.dash-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8d4cc; }
.dash-url { flex: 1; text-align: center; font-size: 12px; color: var(--muted-foreground); background: #fff; border-radius: 8px; padding: 4px 10px; margin-inline-end: 44px; }
.dash-body { display: grid; grid-template-columns: 148px 1fr; min-height: 400px; }
.dash-side { background: var(--primary); color: #d9d6f5; padding: 16px 10px; display: grid; align-content: start; gap: 4px; }
.dash-side > span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px; border-radius: 10px; }
.dash-side > span.on { background: #ffffff1a; color: #fff; font-weight: 600; }
.dash-side .ds-logo { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.dash-main { padding: 16px; display: grid; gap: 12px; align-content: start; background: var(--background); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-head b { display: block; font-size: 15px; }
.dash-head small { font-size: 12px; color: var(--muted-foreground); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--success); background: #e3f1ea; padding: 3px 10px; border-radius: 99px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.kpi small { display: block; font-size: 11.5px; color: var(--muted-foreground); }
.kpi b { display: block; margin-top: 2px; font-size: 22px; color: var(--primary); font-variant-numeric: tabular-nums; }
.kpi b span { font-size: 13px; color: var(--muted-foreground); font-weight: 600; }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--success); font-weight: 600; }
.kpi-bar { height: 6px; border-radius: 99px; background: var(--muted); margin-top: 8px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--signature); border-radius: inherit; }
.dcard { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.dcard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.dstates { display: flex; flex-wrap: wrap; gap: 6px; }
.dstates > span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; background: var(--background); border: 1px solid var(--border); border-radius: 99px; padding: 3px 9px; }
.dstates .icon { width: 13px; height: 13px; color: var(--primary); }
.dstates b { font-variant-numeric: tabular-nums; }
.drow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 7px 0; border-top: 1px dashed var(--border); }
.dcard-h + .drow { border-top: 0; padding-top: 0; }
.drow .icon { color: var(--primary); }
.drow em { margin-inline-start: auto; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--signature-soft); color: var(--primary); }
.drow em.ok { background: #e3f1ea; color: var(--success); }
.admin-visual .float-card.f1 { top: 2%; inset-inline-end: -6%; }
.admin-visual .float-card.f2 { bottom: 6%; inset-inline-start: -8%; }

/* services */
.services { background: var(--card); }
.role-tabs { flex-wrap: wrap; }
.role-tabs .tab { display: inline-flex; align-items: center; gap: 8px; }
.services .panel { background: var(--background); }
.svc-list { gap: 12px; }
.svc-list .tick { width: 30px; height: 30px; border-radius: 10px; }
.svc-list .tick .icon { width: 16px; height: 16px; stroke-width: 1.75; }

/* school identity */
.identity-sec { background: var(--background); overflow: hidden; }
.idn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.idn-pick { margin: 28px 0 10px; font-weight: 700; color: var(--primary); }
.school-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.school-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 8px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; font-size: 14.5px; transition: border-color var(--dur), background-color var(--dur), transform var(--dur); }
.school-opt:hover { transform: translateY(-1px); }
.school-opt[aria-pressed="true"] { border-color: var(--primary); background: var(--secondary); }
.so-logo { width: 30px; height: 30px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; color: #fff; background: var(--c); border-radius: 50%; }
.school-opt[data-shape="shield"] .so-logo { border-radius: 8px 8px 50% 50%; }
.school-opt[data-shape="square"] .so-logo { border-radius: 8px; }
.school-opt[data-shape="hex"] .so-logo { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); border-radius: 0; }
.idn-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.idn-stage::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 60px solid var(--community); opacity: 0.14; transition: border-color 500ms var(--ease); }
.phone-school .phone-screen { height: 620px; }
.school-notch { background: var(--community); transition: background-color 500ms var(--ease); }
.school-banner { display: flex; align-items: center; gap: 12px; padding: 6px 16px 18px; background: var(--community); color: #fff; transition: background-color 500ms var(--ease); }
.school-logo { width: 48px; height: 48px; flex: none; display: grid; place-items: center; background: #fff; color: var(--community); font-weight: 800; font-size: 20px; border-radius: 50%; box-shadow: 0 0 0 3px #ffffff59; transition: color 500ms var(--ease), border-radius 400ms var(--ease); }
.school-logo[data-shape="shield"] { border-radius: 12px 12px 50% 50%; }
.school-logo[data-shape="square"] { border-radius: 12px; }
.school-logo[data-shape="hex"] { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); border-radius: 0; box-shadow: none; }
.school-logo.xs { width: 24px; height: 24px; font-size: 11px; background: var(--community); color: #fff; box-shadow: none; }
.sb-text b { display: block; font-size: 16px; line-height: 1.3; }
.on-hala { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--primary); background: #fff; padding: 2px 8px 2px 6px; border-radius: 99px; }
.school-tabs { display: flex; gap: 4px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.school-tabs span { padding: 5px 10px; border-radius: 99px; }
.school-tabs .on { background: var(--secondary); color: var(--primary); }
.post-from { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.group-row { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.group-row .gi { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--secondary); color: var(--primary); }
.group-row b { display: block; font-size: 13px; }
.group-row small { display: block; font-size: 11.5px; color: var(--muted-foreground); line-height: 1.4; }
.app-nav { display: flex; justify-content: space-around; padding: 10px 12px 16px; background: #fff; border-top: 1px solid var(--border); color: var(--muted-foreground); }
.app-nav span { width: 40px; height: 32px; display: grid; place-items: center; border-radius: 10px; }
.app-nav .on { background: var(--secondary); color: var(--primary); }
.idn-stage .idn-f1 { bottom: 10%; inset-inline-end: 0; }

/* pillars ring */
.pillars { background: var(--card); }
.pillar-ring { position: relative; width: min(660px, 100%); aspect-ratio: 1; margin: 0 auto; --r: 248px; }
.pillar-ring .ring-bg { position: absolute; inset: 20%; width: 60%; height: 60%; }
.pnode { position: absolute; left: 50%; top: 50%; width: 136px; min-height: 100px; margin: -50px 0 0 -68px; transform: rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 22px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--foreground); box-shadow: var(--shadow-card); transition: background-color var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur); }
[dir="rtl"] .pnode { transform: rotate(calc(180deg - var(--a))) translate(var(--r)) rotate(calc(var(--a) - 180deg)); }
.pnode:hover { border-color: var(--primary); box-shadow: var(--shadow-lift); }
.pnode .pn-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--secondary); color: var(--primary); transition: background-color var(--dur); }
.pnode[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.pnode[aria-pressed="true"] .pn-ic { background: var(--signature); }
.pnode.core::after { content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--signature); box-shadow: 0 0 0 3px var(--signature-soft); }
.pcenter { position: absolute; inset: 31%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; }
.pc-num { font-weight: 800; font-size: 13px; color: var(--primary); background: var(--signature-soft); padding: 2px 10px; border-radius: 99px; }
.pcenter b { font-size: clamp(22px, 2.6vw, 30px); color: var(--primary); line-height: 1.2; }
.pcenter p { margin: 0; color: var(--muted-foreground); font-size: 14.5px; line-height: 1.55; }
.pcenter a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); text-decoration: none; min-height: 44px; }
.pcenter a:hover { text-decoration: underline; }

/* pillar section header */
.pillar-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); background: var(--secondary); padding-block: 6px; padding-inline: 6px 16px; border-radius: 99px; margin-bottom: 18px; }
.pt-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.on-dark .pillar-tag { background: #ffffff14; color: #fff; }
.on-dark .pt-num { background: var(--signature); color: var(--primary); }
.core-tag { display: inline-block; margin-inline-start: 10px; font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--signature); padding: 5px 12px; border-radius: 99px; vertical-align: top; margin-top: 6px; }
.section-head.center .pillar-tag { margin-inline: auto; }

/* SMS vs HalaChat */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
.cmp { position: relative; border-radius: var(--radius-card); padding: 30px; border: 1px solid var(--border); display: flex; flex-direction: column; }
.cmp-sms { background: var(--muted); color: var(--foreground); }
.cmp-hc { background: var(--primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-lift); }
.cmp-label { font-size: 12.5px; font-weight: 700; color: var(--muted-foreground); }
.cmp-hc .cmp-label { color: var(--signature); }
.cmp h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-top: 8px; }
.cmp ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.cmp li { display: flex; gap: 10px; align-items: flex-start; }
.cmp-sms li .icon { color: var(--destructive); margin-top: 2px; }
.cmp-hc li .icon { color: var(--signature); margin-top: 2px; }
.price-chip { align-self: flex-start; margin-top: auto; padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.cmp ul + .price-chip { margin-top: 24px; }
.cmp-sms .price-chip { background: #fff; color: var(--destructive); border: 1px solid #f1b8ae; }
.cmp-hc .price-chip { background: var(--signature); color: var(--primary); }
.mini-bento { margin-top: 16px; }
.span-6 { grid-column: span 6; }
.tile-row { display: flex; gap: 18px; align-items: center; }
.tile-row h3 { margin-top: 0; }

/* connection routing */
.route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.route > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--background); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; }
.route .arrow { color: var(--input); }
.route .done { background: #e3f1ea; color: var(--success); border-color: #bfe0cf; }

/* AI demo */
.ai-sec { background: var(--background); }
.ai-wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: center; }
.ai-card { background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-lift); }
.ai-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ai-step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--background); font-weight: 600; cursor: pointer; transition: background-color var(--dur), color var(--dur), border-color var(--dur); }
.ai-step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--muted); }
.ai-step[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.ai-step[aria-pressed="true"] .n { background: var(--signature); color: var(--primary); }
.ai-box { border-radius: 18px; background: var(--background); border: 1.5px solid var(--input); padding: 18px 20px; min-height: 180px; }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--secondary); padding: 3px 10px; border-radius: 99px; }
.ai-text { margin: 12px 0 0; font-size: 17px; line-height: 1.75; transition: opacity 250ms var(--ease); }
.ai-text.is-draft { color: var(--muted-foreground); font-style: italic; }
:lang(ar) .ai-text.is-draft, .ai-text.is-draft:lang(ar) { font-style: normal; }
.ai-text.swap { opacity: 0; }
.ai-foot { margin-top: 14px; font-size: 13.5px; color: var(--muted-foreground); }
.ai-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.ai-foot .icon { color: var(--success); vertical-align: -3px; }
.ai-side { margin: 0; }

/* SMS comparison in calculator */
.sms-compare { margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff26; }
.sc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 12px; color: #fff !important; font-size: 15px !important; }
.sc-title .icon { color: var(--signature); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.calc .sc-grid label { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 500; color: #d9d6f5; }
.calc .sc-grid input { width: 100%; text-align: start; min-height: 46px; border-radius: 12px; border: 1.5px solid #ffffff4d; background: #ffffff14; color: #fff; padding: 0 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-grid input::placeholder { color: #c9c6ee; font-weight: 500; font-size: 14px; }
.sc-out { margin: 12px 0 0 !important; font-size: 14.5px !important; color: #fff !important; background: #ffffff0f; border: 1px solid #ffffff1f; border-radius: 12px; padding: 12px 14px; line-height: 1.6; }
.sc-out b { color: var(--signature); }

@media (max-width: 1080px) {
  .idn-grid, .compare, .ai-wrap { grid-template-columns: 1fr; }
  .span-6 { grid-column: span 6; }
  .admin-visual .float-card.f1 { inset-inline-end: 0; }
  .admin-visual .float-card.f2 { inset-inline-start: 0; }
}
@media (max-width: 760px) {
  .pillar-ring { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pillar-ring .ring-bg { display: none; }
  .pnode, [dir="rtl"] .pnode { position: static; transform: none; margin: 0; width: auto; }
  .pcenter { position: static; grid-column: 1 / -1; order: -1; inset: auto; padding: 8px 0 12px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .idn-stage { min-height: 600px; }
  .idn-stage::before { width: 360px; height: 360px; border-width: 40px; }
  .sc-grid { grid-template-columns: 1fr; }
  .tile-row { flex-direction: column; align-items: flex-start; }
  .span-6 { grid-column: auto; }
}

/* hero: app screen */
.app-visual { min-height: 660px; }
.hero-phone { width: 330px; }
.hero-phone .phone-screen { height: 640px; }
.hero-phone .school-banner { padding-bottom: 14px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--border); }
.chat-head .gi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--secondary); color: var(--primary); flex: none; }
.chat-head b { display: block; font-size: 13.5px; line-height: 1.3; }
.chat-head small { font-size: 11.5px; color: var(--muted-foreground); }
.ack-btn { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 11.5px; color: #fff; background: var(--primary); padding: 4px 10px; border-radius: 8px; }
.bubble small .icon { display: inline; vertical-align: -3px; width: 13px; height: 13px; }
.app-visual .float-card { bottom: auto; top: auto; inset-inline-start: auto; min-width: 0; }
.app-visual .float-card.f1 { top: 40%; inset-inline-end: -16%; }
.app-visual .float-card.f2 { display: none; }
.app-visual .float-card.f3 { top: auto; bottom: 8%; inset-inline-end: -16%; }
@media (max-width: 1080px) {
  .app-visual .float-card.f1, .app-visual .float-card.f3 { inset-inline-end: 0; }
  .app-visual .float-card.f2 { inset-inline-start: 0; }
}
@media (max-width: 680px) {
  .hero-phone { width: 300px; }
  .app-visual .float-card { display: none; }
}

/* hero: parent home screen */
.parent-home .school-banner { position: relative; }
.bell { position: relative; margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffffff2e; color: #fff; }
.bell i { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #fff; color: var(--destructive); font-style: normal; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.ph-body { flex: 1; overflow: hidden; padding: 12px; display: grid; gap: 8px; align-content: start; }
.child-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow-card); margin-top: -26px; position: relative; }
.child-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--primary); background: var(--signature); box-shadow: 0 0 0 3px var(--signature-soft); }
.child-card b { display: block; font-size: 14.5px; line-height: 1.3; }
.child-card small { font-size: 11.5px; color: var(--muted-foreground); }
.child-switch { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 99px; background: var(--secondary); color: var(--primary); }
.mini-av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: #fff; color: var(--primary); }
.ph-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.ph-sec-h b { font-size: 13px; }
.ph-sec-h span { font-size: 11.5px; font-weight: 600; color: var(--primary); }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.week span { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 0 9px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.week small { font-size: 9.5px; color: var(--muted-foreground); }
.week b { font-size: 14px; font-variant-numeric: tabular-nums; }
.week .has::after { content: ""; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--community); }
.week .today { background: var(--primary); border-color: var(--primary); color: #fff; }
.week .today small { color: #d9d6f5; }
.week .ev { background: var(--signature-soft); border-color: #ffd5b5; }
.agenda { display: grid; gap: 6px; }
.ag { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 7px 10px 7px 7px; }
[dir="rtl"] .ag { padding: 7px 7px 7px 10px; }
.ag-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--community); }
.ag.alt .ag-bar { background: var(--primary); }
.ag div { flex: 1; min-width: 0; }
.ag b { display: block; font-size: 12.5px; line-height: 1.3; }
.ag small { font-size: 10.5px; color: var(--muted-foreground); }
.ag .icon { color: var(--muted-foreground); }
.ag .icon.ok { color: var(--success); }
.msg-list { display: grid; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.msg { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-top: 1px solid var(--border); }
.msg:first-child { border-top: 0; }
.msg div { flex: 1; min-width: 0; }
.msg b { display: flex; align-items: center; gap: 5px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg b .badge { font-style: normal; font-size: 9.5px; padding: 1px 6px; }
.msg small { display: block; font-size: 11px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.unread small { color: var(--foreground); font-weight: 600; }
.msg .school-logo.xs { width: 30px; height: 30px; font-size: 12px; }
.m-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.m-av.t { background: var(--secondary); color: var(--primary); }
.m-av.s { background: var(--muted); color: var(--primary); border-radius: 10px; }
.msg .time { font-size: 10.5px; color: var(--muted-foreground); flex: none; }
.msg .time .icon { color: var(--success); }
.msg.unread .time { color: var(--primary); font-weight: 700; }
.parent-home .app-nav { padding-top: 8px; }

/* hero: WhatsApp-style chat list */
.kids { display: flex; gap: 6px; padding: 10px 12px 4px; background: #fff; }
.kid { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 99px; border: 1.5px solid var(--border); background: #fff; }
[dir="rtl"] .kid { padding: 5px 5px 5px 10px; }
.kid.on { border-color: var(--community); background: color-mix(in srgb, var(--community) 10%, #fff); }
.kid-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--signature); color: var(--primary); }
.kid-av.alt { background: var(--secondary); }
.kid b { display: block; font-size: 12px; line-height: 1.2; }
.kid small { display: block; font-size: 10px; color: var(--muted-foreground); line-height: 1.2; }
.filters { display: flex; gap: 6px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--border); }
.filters span { font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 99px; background: var(--muted); color: var(--muted-foreground); }
.filters .on { background: var(--primary); color: #fff; }
.next-ev { display: flex; align-items: center; gap: 7px; margin: 8px 10px 0; padding: 7px 10px; border-radius: 10px; background: var(--signature-soft); color: var(--primary); font-size: 11.5px; font-weight: 600; }
.wa-list { flex: 1; overflow: hidden; background: #fff; margin-top: 8px; }
.wa { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.wa + .wa::before { content: ""; position: absolute; top: 0; inset-inline-start: 62px; inset-inline-end: 12px; border-top: 1px solid var(--border); }

.wa-mid { flex: 1; min-width: 0; padding-top: 2px; }


.wa-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.wa-av.sch { background: var(--community); color: #fff; border-radius: 12px 12px 50% 50%; }
.wa-av.grp { background: var(--secondary); color: var(--primary); }
.wa-av.grp2 { background: #e3f1ea; color: var(--success); }
.wa-av.per { background: var(--signature); color: var(--primary); }
.wa-av.cnc { background: var(--signature-soft); color: var(--primary); }
.wa-av.svc { background: var(--muted); color: var(--primary); }
.wa-mid b { display: flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-mid b .badge { font-style: normal; font-size: 9.5px; padding: 1px 6px; flex: none; }
.wa-mid small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted-foreground); line-height: 1.4; white-space: nowrap; overflow: hidden; }
.wa-mid small span { overflow: hidden; text-overflow: ellipsis; }
.wa-mid .tick2 { color: #1F6FD1; flex: none; }
.wa-mid .ok { color: var(--success); flex: none; }
.wa-end { display: grid; justify-items: end; gap: 4px; align-self: stretch; align-content: center; }
.wa-end .t { font-size: 10.5px; color: var(--muted-foreground); white-space: nowrap; }
.wa-end .t.u { color: var(--success); font-weight: 700; }
.wa-end .n { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--success); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

/* hero: prominent school identity */
.parent-home .school-banner { padding: 14px 16px 18px; gap: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--community) 88%, #fff) 0%, var(--community) 70%); }
.parent-home .school-banner::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -60px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid #ffffff1f; pointer-events: none; }
.crest { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 18px; background: #fff; box-shadow: 0 6px 16px -6px #0006; }
.parent-home .sb-text b { font-size: 18px; line-height: 1.25; }
.sb-sub { display: block; font-size: 11.5px; color: #ffffffd9; margin: 2px 0 6px; }
.wa-av.sch { background: #fff; border: 1.5px solid var(--border); border-radius: 50%; }

.wa-av.sch .crest { width: 100%; height: 100%; border-radius: 50%; background: none; box-shadow: none; }

.sb-student { display: flex !important; align-items: center; gap: 5px; font-size: 12.5px !important; color: #fff !important; }
.sb-student b { font-size: 13px !important; font-weight: 700; display: inline !important; }
.sb-student .icon { width: 15px; height: 15px; opacity: .9; }

.sb-student, .sb-student b, .sb-student span { white-space: nowrap; }
.parent-home .sb-text { min-width: 0; flex: 1; }

.parent-home .wa-list { margin-top: 0; padding-top: 4px; }

.ph-search { display: flex; align-items: center; gap: 10px; margin: 10px 12px 2px; padding: 9px 14px; border-radius: 99px; background: var(--muted); color: var(--muted-foreground); font-size: 12.5px; }
.ph-search .icon { flex: none; }

.ph-search-row { display: flex; align-items: center; gap: 8px; margin: 10px 12px 2px; }
.ph-search-row .ph-search { flex: 1; margin: 0; }
.ph-new { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 4px 10px -4px #26216e99; }
.ph-new .icon { stroke-width: 2.25; }

.hero-sub { margin: 18px 0 0; font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: #fff; max-width: 34ch; line-height: 1.5; }

.hero .lead { margin-top: 14px; }
.hero .lead-2 { font-size: clamp(16px, 1.4vw, 18px); color: #c9c6ee; }
.hero .kicker[data-i18n="hero.kicker"] { font-size: 15px; }
.hero-sub { max-width: 30ch; }

.hero-sub { max-width: 40ch; text-wrap: balance; }

.steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .steps { grid-template-columns: 1fr; } }

/* scattered → connected: 12 channels */
.scatter-stage { aspect-ratio: 1 / 1.05; }
.scatter-core { width: 28%; }
.shard { font-size: clamp(11px, 2.15cqw, 14px); padding: 0.55em 0.85em; gap: 0.5em; border-radius: 12px; }
.shard .icon { width: 1.25em; height: 1.25em; }
.scatter-stage.is-connected .shard { scale: 1; }
@container (max-width: 470px) {
  .scatter-stage { aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 20px; align-content: center; justify-content: center; }
  .shard, .scatter-stage.is-connected .shard { position: static; translate: none; transform: none; }
  .scatter-core { display: none; }
}
.scatter-stage { aspect-ratio: 1 / 1.08; }
.shard { font-size: clamp(12px, 2.9cqw, 15px); padding: 0.6em 0.9em; }
.scatter-stage.is-connected .shard { background: #fff; }
.scatter-core { width: 24%; }
.scatter-core span { font-size: clamp(13px, 2.6cqw, 17px); }

.scatter-core { width: 22%; }
.scatter-core span { font-size: clamp(11px, 2.1cqw, 14px); }

/* hero brand lockup — two brand colours (white + Apricot Glow on Midnight Indigo) */
.hero-brand { position: relative; display: inline-block; margin: 0 0 30px; }
.hero-brand::before { content: ""; position: absolute; inset-inline-start: -18px; top: 50%; width: 120px; height: 120px; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle, #ffb27a40 0%, transparent 65%); pointer-events: none; }
[dir="rtl"] .hero-brand::before { inset-inline-start: auto; inset-inline-end: -18px; }
.hero-logo { position: relative; display: block; height: clamp(52px, 6.2vw, 80px); width: auto; filter: drop-shadow(0 10px 28px #ffb27a33); animation: logo-in 900ms var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* hero: tighter vertical rhythm so content sits higher */
.hero { padding-block: 104px 64px; }
.hero-brand { margin-bottom: 18px; }
.hero-logo { height: clamp(46px, 5vw, 64px); }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; }
:lang(ar) .hero h1 { line-height: 1.3; }
.hero-sub { margin-top: 14px; }
.hero .lead { margin-top: 10px; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; }
.hero .lead-2 { margin-top: 8px; font-size: clamp(15px, 1.25vw, 17px); }
.hero-ctas { margin-top: 24px; }
.app-visual { min-height: 600px; }

:lang(en) .hero h1 { max-width: 16ch; }

.final-card h2 { max-width: 22ch; line-height: 1.3; }
.final-card h2 .hl { color: var(--signature); }

/* larger brand ring behind the hero phone */
.app-visual .orbit { width: min(900px, 165%); max-width: none; }
.app-visual .orbit .ring-path { stroke: #ffffff38; }
@media (max-width: 900px) { .app-visual .orbit { width: min(620px, 135%); } }

/* hero phone 23% smaller */
.hero-phone { zoom: 0.77; }

/* official mark proportions: softer fill for the thick ring */
.app-visual .orbit .ring-path { stroke: #ffffff2b; }

/* ---------- problem visual: tangled channels around school · teacher · parent · student (light) */
.scatter-stage.tangle { display: block; padding: 0; aspect-ratio: 1 / 1.06; border: 1px solid var(--border); background: radial-gradient(55% 42% at 50% 50%, #ffe6d3b3, transparent 72%), radial-gradient(80% 70% at 50% 50%, #e8e5fb, #fbfaff 75%); box-shadow: var(--shadow-card); }
.scatter-stage.tangle::before { background-image: radial-gradient(#26216e1a 1.2px, transparent 1.2px); opacity: 1; }
.tg-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tg-line { fill: none; stroke: #26216e33; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; animation: tg-flow 2.4s linear infinite; animation-delay: calc(var(--d) * -1); }
.tg-line.hot { stroke: #f28c4ccc; stroke-width: 1.6; }
@keyframes tg-flow { to { stroke-dashoffset: -22; } }
.tg-chip { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r); display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 0.8em; border-radius: 999px; background: #fff; color: var(--primary); border: 1px solid #26216e14; font-size: clamp(10px, 2.15cqw, 13.5px); font-weight: 700; white-space: nowrap; box-shadow: 0 10px 22px -12px #26216e66; animation: tg-float 5s ease-in-out infinite; animation-delay: calc(var(--f) * -1); }
.tg-chip .icon { width: 1.3em; height: 1.3em; color: #6c62e8; flex: none; }
.tg-dot { position: absolute; top: -0.2em; inset-inline-end: -0.1em; width: 0.75em; height: 0.75em; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #fff; }
@keyframes tg-float { 50% { transform: translateY(-5px); } }
.tg-who { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; justify-items: center; gap: 0.45em; z-index: 1; font-size: clamp(11px, 2.4cqw, 15px); }
.tg-av { position: relative; width: 12cqw; height: 12cqw; min-width: 44px; min-height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: 0 0 0 0.55em #26216e12, 0 0 0 1.15em #26216e08, 0 14px 26px -12px #26216e80; animation: tg-pulse 2.8s ease-out infinite; }
.tg-school .tg-av { background: var(--signature); }
.tg-student .tg-av { background: var(--primary); color: #fff; }
.tg-av .icon { width: 46%; height: 46%; }
.tg-av b { position: absolute; top: -0.15em; inset-inline-end: -0.35em; min-width: 1.75em; height: 1.75em; padding: 0 0.4em; border-radius: 999px; display: grid; place-items: center; background: #e5484d; color: #fff; font-size: 0.78em; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.tg-name { color: var(--primary); font-weight: 800; font-size: 1.05em; padding: 0.22em 0.8em; border-radius: 999px; background: #ffffffd9; border: 1px solid #26216e14; }
@keyframes tg-pulse { 0%, 100% { box-shadow: 0 0 0 0.55em #26216e12, 0 0 0 1.15em #26216e08, 0 14px 26px -12px #26216e80; } 50% { box-shadow: 0 0 0 0.75em #26216e0e, 0 0 0 1.5em #26216e05, 0 14px 26px -12px #26216e80; } }
@media (prefers-reduced-motion: reduce) { .tg-line, .tg-chip, .tg-av { animation: none; } }
@media (max-width: 520px) {
  .scatter-stage.tangle { aspect-ratio: 1 / 1.2; }
  .tg-chip { font-size: 2.5cqw; }
}

#scatter-title { font-size: clamp(26px, 3.3vw, 38px); max-width: 24ch; }

.hero .lead-2 strong { color: #fff; font-weight: 700; }

/* ---------- pillars: dark panel — student · teacher · school above six pillar cards */
.pv { --g: 14px; --av: clamp(64px, 7.5vw, 96px); position: relative; isolation: isolate; max-width: 1200px; margin: 8px auto 0; padding: clamp(28px, 4.5vw, 56px) clamp(18px, 3.5vw, 44px); border-radius: 36px; color: #fff; overflow: hidden; background: linear-gradient(160deg, #332c8f 0%, var(--primary) 48%, #1a1840 100%); box-shadow: 0 40px 80px -40px #1a1840cc; }
.pv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 38% at 50% 0%, #ffb27a40, transparent 70%), radial-gradient(30% 40% at 100% 100%, #7a6ff033, transparent 70%); }
.pv::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#ffffff17 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.pv-trio { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; }
.pv-rail { position: absolute; top: calc(var(--av) / 2); left: 16.66%; right: 16.66%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, #ffb27a00, #ffb27a99 20%, #ffffff66 50%, #ffb27a99 80%, #ffb27a00); }
.pv-rail i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--signature); box-shadow: 0 0 0 5px #ffb27a33, 0 0 16px #ffb27a; animation: pv-run 4s ease-in-out infinite; }
.pv-rail i + i { animation-delay: -2s; }
@keyframes pv-run { 0%, 100% { left: 0; } 50% { left: 100%; } }
.pv-who { position: relative; display: grid; justify-items: center; gap: 12px; }
.pv-av { width: var(--av); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: 0 0 0 10px #ffffff14, 0 0 0 20px #ffffff08, 0 20px 40px -16px #000c; animation: pv-halo 3.2s ease-in-out infinite; }
.pv-av .icon { width: 44%; height: 44%; }
.t-student .pv-av { background: var(--signature); }
.t-school .pv-av { background: #e8e5fb; animation-delay: -1.6s; }
.t-teacher .pv-av { animation-delay: -0.8s; }
@keyframes pv-halo { 50% { box-shadow: 0 0 0 14px #ffffff0f, 0 0 0 28px #ffffff05, 0 20px 40px -16px #000c; } }
.pv-who b { font-size: clamp(16px, 1.7vw, 20px); font-weight: 800; }
.pv-stem { position: relative; height: 64px; margin-top: 10px; }
.pv-stem::before { content: ""; position: absolute; left: 50%; top: 0; height: 32px; border-left: 2px dashed #ffffff40; }
.pv-stem::after { content: ""; position: absolute; top: 32px; left: calc((100% - 5 * var(--g)) / 12); right: calc((100% - 5 * var(--g)) / 12); border-top: 2px dashed #ffffff40; }
.pv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--g); }
.pv-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 16px 18px; border-radius: 22px; background: #ffffff0d; border: 1px solid #ffffff1f; backdrop-filter: blur(6px); color: #fff; text-decoration: none; transition: transform var(--dur), background-color var(--dur), border-color var(--dur), box-shadow var(--dur); }
.pv-card::before { content: ""; position: absolute; left: 50%; top: -33px; height: 32px; border-left: 2px dashed #ffffff40; }
.pv-card::after { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--primary); border: 2px solid #ffffff66; }
.pv-card:hover, .pv-card:focus-visible { transform: translateY(-6px); background: #ffffff17; border-color: #ffb27a99; box-shadow: 0 24px 40px -24px #000; }
.pv-num { position: absolute; top: 12px; inset-inline-end: 14px; font-size: 34px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px #ffffff40; }
.pv-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #ffffff14; color: var(--signature); }
.pv-card b { font-size: 17px; font-weight: 800; }
.pv-card p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.6; color: #ffffffb3; }
.pv-go { margin-top: 4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ffffff33; color: #fff; transition: background-color var(--dur), color var(--dur); }
.pv-card:hover .pv-go { background: var(--signature); color: var(--primary); border-color: var(--signature); }
.pv-card.is-core { background: var(--signature); border-color: var(--signature); color: var(--primary); box-shadow: 0 0 0 6px #ffb27a2e, 0 26px 50px -24px #ffb27a99; }
.pv-card.is-core::after { background: var(--signature); border-color: #fff; }
.pv-card.is-core p { color: #26216ecc; }
.pv-card.is-core .pv-num { -webkit-text-stroke-color: #26216e59; }
.pv-card.is-core .pv-ic { background: var(--primary); color: #fff; }
.pv-card.is-core .pv-go { border-color: #26216e40; color: var(--primary); }
.pv-card.is-core:hover .pv-go { background: var(--primary); color: #fff; }
@media (prefers-reduced-motion: reduce) { .pv-rail i, .pv-av { animation: none; } .pv-rail i { left: 50%; } .pv-rail i + i { display: none; } }
@media (max-width: 1080px) {
  .pv-grid { grid-template-columns: repeat(3, 1fr); }
  .pv-stem { height: 40px; } .pv-stem::after, .pv-card::before, .pv-card::after { display: none; } .pv-stem::before { height: 40px; }
}
@media (max-width: 560px) {
  .pv { --av: 60px; border-radius: 28px; }
  .pv-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pv-card { padding: 16px 12px 14px; }
  .pv-num { font-size: 26px; }
  .pv-av { box-shadow: 0 0 0 7px #ffffff14, 0 14px 30px -14px #000c; }
}

/* pillars: no excess white space */
.section.pillars { padding-block: clamp(28px, 3.5vw, 44px) clamp(40px, 5vw, 64px); }
.pillars .section-head { margin-bottom: 16px; }
.pillars .pv { margin-top: 0; }

/* pillars: no apricot on student / core card */
.t-student .pv-av { background: #fff; }
.pv-card.is-core { background: #fff; border-color: #fff; color: var(--primary); box-shadow: 0 0 0 6px #ffffff1f, 0 26px 50px -24px #000c; }
.pv-card.is-core::after { background: #fff; border-color: var(--primary); }
.pv-card.is-core p { color: #26216ecc; }
.pv-card.is-core .pv-num { -webkit-text-stroke-color: #26216e40; }
.pv-card.is-core .pv-ic { background: var(--primary); color: #fff; }
.pv-card.is-core:hover { border-color: #fff; }
