/* =========================================================
   مدرستي — نظام تصميم الموقع
   حبر داكن · ورق هادئ · لمسة زمردية · خطوط شعرية
   ========================================================= */

:root {
  --ink: #0b3a58;
  --ink-2: #0f4a6e;
  --paper: #f5f9fc;
  --surface: #ffffff;
  --surface-2: #f7fbfe;
  --line: #dfe9f2;
  --line-strong: #c6d7e5;
  --text: #0e2a3d;
  --muted: #556d82;
  --mint: #0f86c4;
  --mint-2: #0a6ea6;
  --mint-soft: #e6f2fa;
  --green: #6ba82b;
  --green-soft: #eef7e4;
  --orange: #f39a21;
  --gold: #b5720f;
  --danger: #b4423a;
  --btn: #0b3a58;
  --btn-text: #ffffff;
  --btn-hover: #0e4a6f;
  --shadow-sm: 0 1px 2px rgba(11, 58, 88, 0.06);
  --shadow-md: 0 1px 2px rgba(11, 58, 88, 0.05), 0 18px 40px -28px rgba(11, 58, 88, 0.5);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --max: 1160px;
}

[data-theme="dark"] {
  --paper: #071722;
  --surface: #0c2130;
  --surface-2: #102a3c;
  --line: #1a3546;
  --line-strong: #2a4a60;
  --text: #eaf3fa;
  --muted: #9ab0c2;
  --mint: #4fb6e8;
  --mint-2: #8fd4f5;
  --mint-soft: #0d2d40;
  --green: #8fc95a;
  --green-soft: #163222;
  --orange: #f6ab45;
  --gold: #f0b968;
  --btn: #eef7fd;
  --btn-text: #0b3a58;
  --btn-hover: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -28px #000;
}

/* ===== Reset ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--mint); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.bar {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 16px -8px rgba(11, 58, 88, 0.5);
}
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-t strong { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; }
.brand-t small { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.4px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.nav a { position: relative; padding-block: 6px; transition: color 0.18s ease; }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.bar-actions { display: flex; align-items: center; gap: 8px; }
.nav + .bar-actions { margin-inline-start: 0; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--btn); color: var(--btn-text); box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--btn-hover); }
.btn-line { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-mint { background: #0a6ea6; color: #fff; }
.btn-mint:hover { background: #085a88; }
[data-theme="dark"] .btn-mint { background: #4fb6e8; color: #071722; }
[data-theme="dark"] .btn-mint:hover { background: #6cc6f0; }
.btn-sm { padding: 10px 16px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ===== Shared bits ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 18%, transparent);
}

.section { padding: 68px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 620px; margin-bottom: 34px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 {
  margin-top: 10px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ===== Hero ===== */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -120px;
  height: 420px;
  background: radial-gradient(60% 60% at 70% 0%, color-mix(in srgb, var(--mint) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(31px, 4.6vw, 52px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.hero h1 em { font-style: normal; color: var(--mint-2); }
.hero .lead {
  margin-top: 18px;
  max-width: 500px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { padding-inline: 14px; border-inline-start: 1px solid var(--line); }
.hero-stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero-stats dt { color: var(--muted); font-size: 11px; font-weight: 600; }
.hero-stats dd {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}

/* ===== Hero visual ===== */
.hero-visual { position: relative; }
.panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(70% 80% at 20% 10%, #12689b 0%, transparent 60%),
    linear-gradient(150deg, #0f5580 0%, var(--ink) 55%, #061c2b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -50px rgba(4, 20, 32, 0.9);
  padding: 34px 24px 40px;
  min-height: 500px;
  display: grid;
  place-items: center;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  inset-inline-start: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(15, 134, 196, 0.42), transparent 65%);
  pointer-events: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(292px, 100%);
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(160deg, #2a6b93, #0a2a40);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  transform: translateY(6px);
}
.phone-screen {
  border-radius: 27px;
  overflow: hidden;
  background: #f6fafd;
  color: #0e2a3d;
  display: flex;
  flex-direction: column;
  height: 430px;
  font-size: 11px;
  line-height: 1.5;
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px 4px;
  font-size: 9px;
  font-weight: 700;
  background: #0b3a58;
  color: #cfdbea;
}
.status .sigs { letter-spacing: 2px; font-size: 8px; }
.app-bar {
  background: #0b3a58;
  color: #fff;
  padding: 8px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-bar small { display: block; font-size: 8.5px; color: #9db6c8; font-weight: 600; }
.app-bar strong { font-size: 13px; font-weight: 800; letter-spacing: 0.1px; }
.app-bar .avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 11px;
}
.app-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-stats > div {
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 11px;
  padding: 8px 10px;
}
.mini-stats span { display: block; font-size: 8.5px; color: #5b6b82; font-weight: 600; }
.mini-stats b { font-size: 16px; font-weight: 800; letter-spacing: -0.4px; }
.mini-stats b.mint { color: #0a6ea6; }
.mini-label { font-size: 8.5px; font-weight: 700; color: #5b6b82; letter-spacing: 0.4px; }
.class-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 11px;
  padding: 8px 10px;
}
.class-dot { width: 6px; height: 6px; border-radius: 2px; background: #0f86c4; flex: none; }
.class-dot.gold { background: #ef9a2b; }
.class-row b { display: block; font-size: 10.5px; font-weight: 700; }
.class-row small { display: block; font-size: 8.5px; color: #7b8aa0; }
.class-row .chip {
  margin-inline-start: auto;
  font-size: 8px;
  font-weight: 700;
  color: #5b6b82;
  background: #eef4f9;
  border-radius: 20px;
  padding: 2px 7px;
}
.attendance { background: #fff; border: 1px solid #e2eaf2; border-radius: 12px; padding: 9px 10px; }
.att-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.att-head b { font-size: 10px; font-weight: 800; }
.att-head span { font-size: 8px; color: #7b8aa0; }
.stu { display: flex; align-items: center; gap: 7px; padding-block: 4px; }
.stu + .stu { border-top: 1px solid #eef3f8; }
.stu .ava {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: #eef4f9;
  color: #40536d;
  font-size: 8.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.stu div { font-size: 9.5px; font-weight: 600; }
.pill {
  margin-inline-start: auto;
  font-size: 7.5px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1.5px 6px;
}
.pill.ok { color: #0a6ea6; background: #e3f1fa; }
.pill.late { color: #9a5c07; background: #fdf1dd; }
.tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 10px 10px;
  border-top: 1px solid #e6eef5;
  background: #fff;
  color: #9aa7b8;
}
.tabbar svg { width: 16px; height: 16px; }
.tabbar .on { color: #0b3a58; }

.toast {
  position: absolute;
  z-index: 2;
  inset-inline-end: 14px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px 12px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.toast-ic {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--mint-2);
  display: grid;
  place-items: center;
}
.toast-ic svg { width: 15px; height: 15px; }
.toast b { display: block; font-size: 10.5px; font-weight: 800; line-height: 1.4; }
.toast small { display: block; font-size: 9px; color: var(--muted); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ===== Trust strip ===== */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 34px;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 14px; height: 14px; color: var(--mint); }

/* ===== Roles ===== */
.role-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 22px;
}
.role-tabs button {
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.role-tabs button:hover { color: var(--text); }
.role-tabs button[aria-selected="true"] { background: var(--btn); color: var(--btn-text); }

.role-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.role-copy h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.role-copy .quote { margin-top: 6px; color: var(--mint-2); font-size: 13px; font-weight: 700; }
.role-copy ul { margin-top: 18px; display: grid; gap: 10px; }
.role-copy li { display: flex; gap: 9px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.role-copy li svg { width: 16px; height: 16px; flex: none; color: var(--mint); margin-top: 3px; }
.role-aside {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.role-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-stat + .role-stat { border-top: 1px solid var(--line); padding-top: 8px; }
.role-stat span { font-size: 11px; color: var(--muted); font-weight: 600; }
.role-stat b { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature {
  padding-block: 26px;
  padding-inline: 0 24px;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(3n + 2) { padding-inline: 24px; border-inline: 1px solid var(--line); }
.feature:nth-child(3n) { padding-inline: 24px 0; }
.feature .num {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.feature .fic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--mint-2);
  margin: 12px 0 12px;
  border: 1px solid color-mix(in srgb, var(--mint) 20%, transparent);
}
.feature .fic svg { width: 19px; height: 19px; }
.feature h3 { font-size: 14.5px; font-weight: 800; }
.feature p { margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 42px;
  height: 2px;
  background: var(--mint);
}
.step .step-n {
  font-size: 11px;
  font-weight: 800;
  color: var(--mint-2);
  letter-spacing: 1px;
}
.step h3 { margin-top: 6px; font-size: 15.5px; font-weight: 800; }
.step p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* ===== Trial ===== */
.trial {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 70% at 12% 0%, rgba(15, 134, 196, 0.26), transparent 60%),
    linear-gradient(145deg, #0f5580 0%, var(--ink) 55%, #061c2b 100%);
  color: #fff;
  padding: 64px 0;
}
.trial::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 100%);
  mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 100%);
  pointer-events: none;
}
.trial-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.trial .eyebrow { color: rgba(255, 255, 255, 0.62); }
.trial .eyebrow .dot { background: #4fb6e8; box-shadow: 0 0 0 3px rgba(79, 182, 232, 0.2); }
.trial h2 { margin-top: 12px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; line-height: 1.4; letter-spacing: -0.3px; }
.trial .trial-lead { margin-top: 12px; color: rgba(255, 255, 255, 0.66); font-size: 14px; line-height: 1.95; max-width: 440px; }
.trial-list { margin-top: 22px; display: grid; gap: 10px; }
.trial-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(255, 255, 255, 0.82); }
.trial-list svg { width: 15px; height: 15px; color: #7fcdf2; flex: none; }

.form-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.form-card h3 { font-size: 16px; font-weight: 800; }
.form-card .form-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.field { margin-top: 14px; display: grid; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 11px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus {
  outline: none;
  border-color: var(--mint);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 16%, transparent);
}
.form-card .hint { margin-top: 10px; font-size: 10.5px; color: var(--muted); line-height: 1.7; text-align: center; }
.form-card .hint a { color: var(--mint-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--mint-2);
  font-size: 10.5px;
  font-weight: 700;
  display: none;
}
.form-note.show { display: block; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq details[open] summary .plus { transform: rotate(45deg); color: var(--mint-2); border-color: var(--mint); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.95; max-width: 760px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #c6d2e0; padding: 44px 0 26px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; max-width: 360px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 12px; }
.footer-brand strong { display: block; color: #fff; font-size: 16px; font-weight: 800; }
.footer-brand p { margin-top: 4px; font-size: 11.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.5); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; font-weight: 600; align-content: start; }
.footer-links a { color: rgba(255, 255, 255, 0.66); transition: color 0.18s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.66);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: #fff; }

/* ===== Legal page ===== */
.legal-hero { padding: 48px 0 30px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-top: 12px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.5px; }
.legal-hero .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 11.5px; }
.legal-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-hero .meta svg { width: 13px; height: 13px; }
.legal { padding: 38px 0 64px; }
.legal-article {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px clamp(18px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
}
.legal-article section + section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-article h2 { font-size: 15.5px; font-weight: 800; color: var(--mint-2); }
.legal-article p { margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.95; }
.legal-article ul { margin-top: 8px; display: grid; gap: 7px; }
.legal-article li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.legal-article li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}
.legal-article strong { color: var(--text); font-weight: 700; }
.legal-article a { color: var(--mint-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

/* ===== 404 ===== */
.center-page { min-height: 62vh; display: grid; place-items: center; padding: 60px 0; text-align: center; }
.center-page .code { font-size: 64px; font-weight: 800; letter-spacing: -2px; color: var(--mint-2); line-height: 1; }
.center-page h1 { margin-top: 10px; font-size: 24px; font-weight: 800; }
.center-page p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.center-page .btn { margin-top: 22px; }

/* ===== Reveal ===== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 620px; }
  .panel { min-height: auto; padding: 26px 20px 34px; }
  .toast { inset-inline-end: 10px; bottom: 16px; }
  .role-panel { grid-template-columns: 1fr; gap: 20px; }
  .trial-grid { grid-template-columns: 1fr; gap: 30px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature,
  .feature:nth-child(3n),
  .feature:nth-child(3n + 2) { padding-inline: 0; border-inline: 0; }
  .feature:nth-child(2n + 1) { padding-inline: 0 24px; }
  .feature:nth-child(2n) { padding-inline: 24px 0; border-inline-start: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 780px) {
  .nav {
    position: absolute;
    top: 70px;
    inset-inline: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    display: none;
    margin: 0;
  }
  .nav a { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
  .nav a:hover { background: var(--surface-2); }
  .nav a::after { display: none; }
  .site-header[data-open="true"] .nav { display: flex; }
  .menu-btn { display: inline-grid; }
  .bar { gap: 10px; }
  .bar-actions .btn { display: none; }
  .hero { padding-top: 36px; }
  .section { padding: 52px 0; }
  .role-panel { padding: 22px; }
  .role-tabs { display: flex; width: 100%; }
  .role-tabs button { flex: 1; padding: 8px 6px; font-size: 11.5px; }
  .footer-top { flex-direction: column; gap: 22px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .hero h1 { font-size: clamp(29px, 9vw, 38px); letter-spacing: -0.5px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats > div { padding-inline: 10px; }
  .hero-stats dd { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .feature,
  .feature:nth-child(2n),
  .feature:nth-child(2n + 1),
  .feature:nth-child(3n),
  .feature:nth-child(3n + 2) { padding: 22px 0; border-inline: 0; }
  .phone-screen { height: 400px; }
  .brand-t small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-visual, .trial, .faq, .skip { display: none !important; }
  body { background: #fff; }
}
