/* ---------- Auth pages ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(1200px 500px at 100% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--bg);
}

.auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth__logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.auth__logo img { display: block; width: 100%; height: 100%; }

.auth__brand-name { font-size: var(--text-subtitle); font-weight: 800; }

.auth__title {
  margin: 0 0 .25rem;
  font-size: var(--text-title);
  font-weight: 800;
  text-align: center;
}

.auth__subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  text-align: center;
  font-size: var(--text-body);
}

.auth__footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: var(--text-body);
  color: var(--muted);
}

.auth__separator {
  margin-inline: .5rem;
  color: var(--border);
}

/* ---------- Public landing page ---------- */
.landing {
  --landing-teal: var(--brand);
  --landing-mint: var(--brand-light);
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

.landing a:hover { text-decoration: none; }

.landing-flash {
  width: min(1120px, calc(100% - 3rem));
  margin: 1rem auto 0;
  padding: .75rem 1rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: var(--brand-light);
  font-size: var(--text-body);
  font-weight: 650;
}

.landing-flash--alert {
  border-color: var(--danger-border);
  color: var(--danger);
  background: var(--danger-bg);
}

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trial-banner > span:first-child { min-width: 0; }
.trial-banner .button_to { flex: 0 0 auto; }

.landing--motion-ready .landing-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity calc(var(--duration) * 4) var(--ease), transform calc(var(--duration) * 4) var(--ease);
}

.landing--motion-ready .landing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing--motion-ready .feature-grid .landing-reveal:nth-child(2),
.landing--motion-ready .role-grid .landing-reveal:nth-child(2) { transition-delay: .08s; }
.landing--motion-ready .feature-grid .landing-reveal:nth-child(3),
.landing--motion-ready .role-grid .landing-reveal:nth-child(3) { transition-delay: .16s; }
.landing--motion-ready .feature-grid .landing-reveal:nth-child(4) { transition-delay: .08s; }
.landing--motion-ready .feature-grid .landing-reveal:nth-child(5) { transition-delay: .16s; }
.landing--motion-ready .feature-grid .landing-reveal:nth-child(6) { transition-delay: .24s; }

.landing-nav {
  width: min(1280px, calc(100% - 3rem));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(.75rem, 1.1vw, 1.1rem);
  position: relative;
  z-index: 10;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  color: var(--ink);
  font-size: var(--text-subtitle);
  font-weight: 800;
  letter-spacing: -.02em;
}

.landing-brand__logo {
  display: block;
  width: 48px;
  height: 48px;
}

.landing-brand__logo img { display: block; width: 100%; height: 100%; }
.landing-nav > .landing-brand { min-width: 44px; min-height: 44px; }

.landing-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: clamp(.65rem, 1vw, 1.1rem);
}

.landing-nav__links a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: .25rem;
  color: var(--muted);
  font-size: var(--text-body);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.landing-nav__links a:hover { color: var(--brand); }

.landing-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: max-content;
  gap: .5rem;
}

.landing-nav__actions .landing-btn { white-space: nowrap; }
.landing-nav__actions .landing-btn--small { min-height: 44px; padding-inline: .75rem; }
.landing-nav__actions .lang-switch__link {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
}

.landing-btn {
  min-height: 49px;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-weight: 750;
  font-size: var(--text-body);
  border: 1px solid transparent;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}

.landing-btn:hover { transform: translateY(-2px); }
.landing-btn--small { min-height: 40px; padding: .5rem 1rem; border-radius: var(--radius); font-size: var(--text-body); }
.landing-btn--outline { color: var(--brand-dark); border-color: var(--brand-border); background: var(--surface); }
.landing-btn--outline:hover { border-color: var(--brand); background: var(--surface); }
.landing-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.landing-btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow); }
.landing-btn--ghost { color: var(--ink); background: var(--surface); border-color: var(--border); }
.landing-btn--ghost:hover { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }

.landing-hero {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  min-height: 650px;
  padding: 5rem 0 7rem;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: 4rem;
  position: relative;
}

.landing-hero::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  inset-block-start: -210px;
  inset-inline-start: -390px;
  border: 1px solid color-mix(in srgb, var(--brand) 8%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 90px color-mix(in srgb, var(--brand) 2.5%, transparent), 0 0 0 180px color-mix(in srgb, var(--brand) 1.8%, transparent);
  pointer-events: none;
}

.landing-hero__copy { position: relative; z-index: 2; }

/* Single-column hero for content pages (e.g. About) that have no product preview. */
.landing-hero--about { grid-template-columns: 1fr; min-height: auto; padding-bottom: 3rem; text-align: center; }
.landing-hero--about .landing-hero__copy { max-width: 760px; margin: 0 auto; }
.landing-hero--about .landing-eyebrow { justify-content: center; }

.landing-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  color: var(--brand);
  font-size: var(--text-label);
  line-height: 1.3;
  font-weight: 800;
}

.landing-eyebrow > span { width: 24px; height: 2px; background: var(--accent); border-radius: var(--radius-pill); }

.landing-hero h1 {
  max-width: 670px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.1rem, 5.2vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.058em;
  font-weight: 820;
}

.landing-hero h1 em { color: var(--brand); font-style: normal; }
.landing-hero__lead { max-width: 610px; margin: 1.5rem 0 0; color: var(--muted); font-size: var(--text-heading); line-height: 1.75; }
.landing-hero__actions { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; }

.landing-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 1.75rem; color: var(--muted); font-size: var(--text-label); font-weight: 650; }
.landing-trust span { display: inline-flex; align-items: center; gap: .375rem; }
.landing-trust .app-icon { color: var(--brand); width: .95rem; height: .95rem; }

.product-preview { position: relative; min-height: 470px; direction: ltr; }
.product-preview__glow { position: absolute; inset: 5% -12% -8% 0; background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--brand) 27%, transparent), color-mix(in srgb, var(--brand) 8%, transparent) 43%, transparent 70%); filter: blur(8px); }

.product-window {
  --preview-default-rotate-y: -3deg;
  position: absolute;
  inset: 2rem -2.6rem 1rem 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow: clip;
  border: 1px solid color-mix(in srgb, var(--brand-dark) 14%, transparent);
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: 0 35px 70px color-mix(in srgb, var(--brand-dark) 20%, transparent), 0 8px 24px color-mix(in srgb, var(--brand-dark) 12%, transparent);
  transform: perspective(1200px)
    rotateY(var(--preview-rotate-y, var(--preview-default-rotate-y)))
    rotateX(var(--preview-rotate-x, 1deg));
  transform-origin: center left;
  transition: transform var(--duration) var(--ease);
}

[dir="rtl"] .product-window { --preview-default-rotate-y: 3deg; transform-origin: center right; }

.product-window__rail { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: .75rem .5rem; background: linear-gradient(180deg, var(--sidebar-raised), var(--sidebar-bg)); }
.product-window__mini-logo { width: 37px; height: 37px; overflow: clip; border-radius: 9px; margin-bottom: .75rem; }
.product-window__mini-logo img { display: block; width: 100%; height: 100%; }
.product-window__rail-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: var(--sidebar-muted); }
.product-window__rail-icon.is-active { color: var(--sidebar-ink); background: var(--sidebar-raised); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent); }
.product-window__rail-icon .app-icon { width: 15px; height: 15px; }

.product-window__body { min-width: 0; padding: 1rem; }
.product-window__topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; }
.product-window__topbar > div { display: flex; flex-direction: column; }
.product-window__topbar strong { font-size: .86rem; line-height: 1.35; }
.product-window__topbar span { color: var(--muted); font-size: .56rem; }
.product-window__avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--on-brand) !important; background: var(--brand); font-size: .7rem !important; font-weight: 800; }

.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.preview-stats > div { min-height: 74px; padding: .75rem .75rem; display: grid; grid-template-columns: 1fr auto; align-items: end; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: 0 4px 12px color-mix(in srgb, var(--shadow-color) 3.5%, transparent); }
.preview-stats span { grid-column: 1/-1; color: var(--muted); font-size: .53rem; }
.preview-stats strong { font-size: 1.2rem; line-height: 1; }
.preview-stats small { color: var(--brand); font-size: .5rem; font-weight: 700; }

.preview-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: .75rem; margin-top: .75rem; }
.preview-card { min-width: 0; min-height: 205px; padding: .75rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.preview-card__heading { min-height: 30px; display: flex; justify-content: space-between; align-items: flex-start; }
.preview-card__heading strong { font-size: .66rem; }
.preview-card__heading > span { color: var(--muted); font-size: .49rem; }
.preview-card--chart svg { width: 100%; height: 135px; overflow: visible; }
.preview-chart__grid { stroke: var(--surface-soft); stroke-width: 1; }
.preview-chart__area { fill: url(#landing-chart-fill); }
.preview-chart__line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.preview-count { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; color: var(--warning) !important; background: var(--warning-bg); font-weight: 800; }
.preview-student { display: grid; grid-template-columns: 25px 1fr 6px; gap: .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--surface-soft); }
.preview-student:last-child { border-bottom: 0; }
.preview-student__avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--brand-dark); background: var(--brand-light); font-size: .57rem; font-weight: 800; }
.preview-student > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.preview-student strong { overflow: hidden; font-size: .51rem; white-space: nowrap; text-overflow: ellipsis; }
.preview-student small { overflow: hidden; color: var(--muted); font-size: .42rem; white-space: nowrap; text-overflow: ellipsis; }
.preview-student i { width: 5px; height: 5px; border-radius: 50%; background: var(--warning); }

.preview-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: .5rem; min-width: 160px; padding: .75rem .75rem; border: 1px solid color-mix(in srgb, var(--brand) 13%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 16px 34px color-mix(in srgb, var(--brand-dark) 15%, transparent); }
.preview-float > .app-icon { width: 26px; height: 26px; padding: 5px; border-radius: 7px; color: var(--brand); background: var(--brand-light); }
.preview-float > span { display: flex; flex-direction: column; font-size: .59rem; font-weight: 800; }
.preview-float small { color: var(--muted); font-size: .47rem; font-weight: 500; }
.preview-float--top { inset-block-start: 0; inset-inline-end: -1.5rem; }
.preview-float--bottom { inset-block-end: -.3rem; inset-inline-start: -1.8rem; }
.preview-float--bottom > .app-icon { color: var(--accent-ink); background: var(--warning-bg); }

.landing-proof { padding: 2.5rem 1.5rem; border-top: 1px solid var(--surface-soft); border-bottom: 1px solid var(--surface-soft); background: var(--surface); text-align: center; }
.landing-proof p { margin: 0 0 1rem; color: var(--muted); font-size: var(--text-micro); font-weight: 750; }
.landing-proof > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem 4rem; }
.landing-proof span { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: var(--text-body); font-weight: 750; }
.landing-proof .app-icon { color: var(--muted); width: 1.15rem; height: 1.15rem; }

.landing-section { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: 8rem 0; }
.landing-section__intro { max-width: 670px; margin: 0 auto 3rem; text-align: center; }
.landing-section__intro .landing-eyebrow { justify-content: center; }
.landing-section__intro h2, .landing-workflow h2, .landing-cta h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.12; letter-spacing: -.045em; }
.landing-section__intro > p { max-width: 620px; margin: 1rem auto 0; color: var(--muted); font-size: var(--text-lead); line-height: 1.75; }

.landing-tour { padding-top: 6rem; }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tour-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.tour-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--brand); }
.tour-card__top > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--on-brand); background: var(--brand); font-size: var(--text-label); font-weight: 800; }
.tour-card__top .app-icon { width: 24px; height: 24px; }
.tour-card h3 { margin: 1.25rem 0 .5rem; font-size: var(--text-lead); }
.tour-card > p { min-height: 4.6rem; margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.7; }
.tour-card__screen { min-height: 120px; margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); }

.tour-card__screen--organize { display: flex; align-items: center; }
.mini-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, var(--brand-border), var(--brand-light)); border: 2px solid var(--surface-soft); box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 12%, transparent); margin-inline-start: -14px; }
.mini-avatar:first-child { margin-inline-start: 0; }
.mini-avatar--add { display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.1rem; }

.tour-card__screen--run { display: flex; flex-direction: column; justify-content: center; gap: .75rem; }
.mini-check { display: flex; align-items: center; gap: .5rem; }
.mini-check i { position: relative; flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--brand-border); background: var(--surface); }
.mini-check span { flex: 1; height: 8px; border-radius: 4px; background: var(--border); }
.mini-check--done i { background: var(--brand); border-color: var(--brand); }
.mini-check--done i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 5px; border-left: 2px solid var(--on-brand); border-bottom: 2px solid var(--on-brand); transform: rotate(-45deg) translate(1px, -1px); } /* physical-ok: tick drawn from rotated borders */
.mini-check--done span { background: var(--brand-border); }

.tour-card__screen--understand { display: flex; align-items: flex-end; gap: .5rem; height: 120px; }
.mini-bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-border), var(--brand-light)); }
.mini-bar:nth-child(1) { height: 28px; }
.mini-bar:nth-child(2) { height: 46px; }
.mini-bar:nth-child(3) { height: 36px; }
.mini-bar:nth-child(4) { height: 64px; }
.mini-bar:nth-child(5) { height: 52px; background: linear-gradient(180deg, var(--brand), var(--brand)); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { position: relative; min-height: 270px; padding: 1.75rem; overflow: clip; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.feature-card::after { content: ""; position: absolute; width: 130px; height: 130px; inset-block-start: -74px; inset-inline-end: -65px; border-radius: 50%; background: var(--card-soft); opacity: .72; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); color: var(--card-color); background: var(--card-soft); }
.feature-card__icon .app-icon { width: 21px; height: 21px; }
.feature-card h3 { margin: 1.25rem 0 .5rem; font-size: var(--text-lead); line-height: 1.35; }
.feature-card p { margin: 0; color: var(--muted); font-size: var(--text-body); line-height: 1.7; }
.feature-card__detail { position: absolute; inset-inline: 1.75rem; inset-block-end: 1.25rem; color: var(--card-color); font-size: var(--text-micro); font-weight: 750; }
.feature-card--teal { --card-color: var(--brand); --card-soft: var(--brand-light); }
.feature-card--blue { --card-color: var(--info); --card-soft: var(--info-bg); }
.feature-card--gold { --card-color: var(--accent-ink); --card-soft: var(--accent-light); }
.feature-card--green { --card-color: var(--brand-dark); --card-soft: var(--success-bg); }
.feature-card--purple { --card-color: var(--violet); --card-soft: var(--violet-bg); }
.feature-card--rose { --card-color: var(--danger); --card-soft: var(--danger-bg); }

.landing-workflow { min-height: 650px; padding: 6.5rem max(1.5rem, calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7rem; color: var(--ink); background: radial-gradient(circle at 78% 40%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 25%), linear-gradient(135deg, var(--surface), var(--brand-light)); }
.landing-workflow__copy > p { max-width: 560px; margin: 1rem 0 2rem; color: var(--muted); line-height: 1.8; }
.landing-eyebrow--light { color: var(--muted); }
.workflow-steps { display: grid; gap: 1.25rem; }
.workflow-step { display: grid; grid-template-columns: 37px 1fr; gap: .75rem; align-items: start; }
.workflow-step > span { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: var(--radius); color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: var(--text-small); font-weight: 800; }
.workflow-step strong { font-size: var(--text-body); }
.workflow-step p { margin: .125rem 0 0; color: var(--muted); font-size: var(--text-label); line-height: 1.55; }

.workflow-visual { position: relative; min-height: 410px; display: grid; place-items: center; }
.workflow-visual__ring { position: absolute; border: 1px solid color-mix(in srgb, var(--muted) 21%, transparent); border-radius: 50%; }
.workflow-visual__ring--one { width: 250px; height: 250px; }
.workflow-visual__ring--two { width: 385px; height: 385px; border-style: dashed; }
.workflow-visual__center { position: relative; z-index: 2; width: 125px; height: 125px; display: grid; place-content: center; justify-items: center; gap: .5rem; border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: 0 0 60px color-mix(in srgb, var(--brand) 15%, transparent); }
.workflow-visual__center img { width: 64px; height: 64px; border-radius: 17px; }
.workflow-visual__center strong { font-size: var(--text-label); }
.workflow-orbit { position: absolute; z-index: 3; width: 72px; height: 72px; display: grid; place-content: center; justify-items: center; gap: .25rem; border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); border-radius: 17px; background: var(--surface); box-shadow: 0 15px 30px color-mix(in srgb, var(--shadow-color) 20%, transparent); }
.workflow-orbit .app-icon { width: 21px; height: 21px; color: var(--brand); }
.workflow-orbit small { color: var(--ink); font-size: .58rem; font-weight: 700; }
.workflow-orbit--one { inset-block-start: 20px; inset-inline-start: 28%; }
.workflow-orbit--two { inset-block-end: 35px; inset-inline-start: 16%; }
.workflow-orbit--three { inset-block-start: 44%; inset-inline-end: 7%; }

.landing-roles { padding-bottom: 8rem; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.role-card { padding: 1.75rem; border-top: 3px solid var(--brand); border-radius: var(--radius-sm) var(--radius-sm) var(--radius-lg) var(--radius-lg); background: var(--surface-soft); transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.role-card > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: var(--radius); color: var(--brand); background: var(--surface); box-shadow: var(--shadow-sm); }
.role-card h3 { margin: 1.25rem 0 .5rem; font-size: var(--text-lead); }
.role-card p { margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.7; }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-item { padding: 1rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.faq-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; gap: 1rem; cursor: pointer; font-weight: 700; font-size: var(--text-lead); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: .5rem; height: .5rem; margin-inline: auto .25rem; color: var(--brand); border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-.125rem) rotate(45deg); transition: transform var(--duration) var(--ease); }
.faq-item[open] summary::after { transform: translateY(.125rem) rotate(225deg); }
.faq-item p { margin: .75rem 0 0; color: var(--muted); font-size: var(--text-body); line-height: 1.7; }

.landing-cta { margin: 0 1.5rem 1.5rem; padding: 6rem 1.5rem; position: relative; overflow: clip; border-radius: var(--radius-xl); color: var(--ink); background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 28%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 25%), var(--brand-light); text-align: center; }
.landing-cta::before, .landing-cta::after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 50%; }
.landing-cta::before { inset: -180px auto auto -90px; box-shadow: 0 0 0 60px color-mix(in srgb, var(--ink) 2.5%, transparent); }
.landing-cta::after { inset: auto -100px -200px auto; box-shadow: 0 0 0 60px color-mix(in srgb, var(--ink) 2.5%, transparent); }
.landing-cta > div { position: relative; z-index: 2; max-width: 760px; margin: auto; }
.landing-cta__mark { display: block; width: 68px; height: 68px; margin: 0 auto 1.5rem; }
.landing-cta__mark img { display: block; width: 100%; height: 100%; }
.landing-cta p { max-width: 630px; margin: 1rem auto 1.5rem; color: var(--muted); line-height: 1.75; }

.landing-start { padding-top: 6rem; padding-bottom: 5rem; }
.start-steps { max-width: 880px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.start-steps li { position: relative; padding: 0 1.25rem; text-align: center; }
.start-steps li:not(:last-child)::after { content: ""; position: absolute; inset-block-start: 21px; inset-inline-start: calc(50% + 30px); width: calc(100% - 60px); border-top: 1px dashed var(--brand-border); }
.start-steps li > span { position: relative; z-index: 1; width: 42px; height: 42px; margin: auto; display: grid; place-items: center; border: 1px solid var(--brand-border); border-radius: 50%; color: var(--brand); background: var(--surface); font-size: var(--text-small); font-weight: 800; }
.start-steps h3 { margin: 1rem 0 .375rem; font-size: var(--text-lead); }
.start-steps p { margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.65; }
.confidence-grid { margin-top: 3.5rem; padding: 1.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; border-radius: var(--radius-lg); background: var(--surface-soft); }
.confidence-grid > div { display: flex; align-items: flex-start; gap: .75rem; }
.confidence-grid .app-icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--brand); }
.confidence-grid span { display: grid; gap: .25rem; }
.confidence-grid strong { font-size: var(--text-label); }
.confidence-grid small { color: var(--muted); font-size: var(--text-micro); line-height: 1.45; }

.landing-contact {
  width: min(1120px, calc(100% - 3rem));
  margin: 7rem auto;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  gap: 5rem;
  align-items: start;
}

.landing-contact__copy { position: sticky; top: 2rem; }
.landing-contact h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.12; letter-spacing: -.045em; }
.landing-contact__copy > p { margin: 1rem 0 1.75rem; color: var(--muted); line-height: 1.75; }
.landing-contact__promise { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: var(--radius); color: var(--brand-dark); background: var(--brand-light); }
.landing-contact__promise .app-icon { flex: 0 0 auto; margin-top: .125rem; color: var(--brand); }
.landing-contact__promise span { display: grid; gap: .25rem; color: var(--muted); font-size: var(--text-small); line-height: 1.55; }
.landing-contact__promise strong { color: var(--brand-dark); font-size: var(--text-body); }

.landing-contact__form { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.landing-contact__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.landing-contact__form .field { display: grid; gap: .375rem; }
.landing-contact__form label { color: var(--muted); font-size: var(--text-small); font-weight: 700; }
.landing-contact__form .input { min-height: 48px; background: var(--surface-soft); }
.landing-contact__form textarea.input { min-height: 130px; resize: vertical; }
.landing-contact__message { grid-column: 1 / -1; }
.landing-contact__form .landing-btn { margin-top: 1.25rem; width: 100%; cursor: pointer; }
.landing-contact__privacy { margin: .75rem 0 0; color: var(--muted); font-size: var(--text-label); text-align: center; }

.landing-footer { min-height: 115px; width: min(1120px, calc(100% - 3rem)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.landing-footer .landing-brand { font-size: var(--text-lead); }
.landing-footer .landing-brand__logo { width: 40px; height: 40px; }
.landing-footer p { color: var(--muted); font-size: var(--text-label); }
.landing-footer__links { display: flex; gap: 1rem; font-size: var(--text-small); }
.landing-footer__links a { color: var(--muted); font-weight: 600; }
.landing-footer__links a:hover { color: var(--brand); }


@media (max-width: 1200px) {
  .landing-nav { grid-template-columns: auto 1fr; }
  .landing-nav__links { display: none; }
}

@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; }
  .landing-hero__copy { max-width: 730px; text-align: center; margin: auto; }
  .landing-hero .landing-eyebrow, .landing-hero__actions, .landing-trust { justify-content: center; }
  .product-preview { width: min(720px, 100%); margin: auto; }
  .product-window { inset-inline: 1.5rem; }
  .preview-float--top { inset-inline-end: 0; }
  .preview-float--bottom { inset-inline-start: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-workflow { grid-template-columns: 1fr; gap: 3rem; }
  .landing-workflow__copy { max-width: 700px; }
  .workflow-visual { width: min(520px, 100%); margin: auto; }
  .landing-contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .landing-contact__copy { position: static; max-width: 700px; }
  .confidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .landing-nav { width: min(100% - 1.5rem, 1180px); min-height: 70px; gap: .5rem; }
  .landing-brand { font-size: var(--text-lead); }
  .landing-nav > .landing-brand { gap: .5rem; font-size: var(--text-body); }
  .landing-brand__logo { width: 40px; height: 40px; }
  .landing-nav__actions .lang-switch { display: none; }
  .landing-nav__center-action { display: none; }
  .landing-nav__actions { gap: .25rem; }
  .landing-nav__actions .landing-btn--small {
    min-width: 44px;
    min-height: 44px;
    padding-inline: .5rem;
    font-size: var(--text-small);
  }
  .landing-hero { width: min(100% - 1.5rem, 1180px); padding: 3.5rem 0 4rem; }
  .landing-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .landing-hero__lead { font-size: var(--text-lead); }
  .landing-hero__actions { align-items: stretch; flex-direction: column; }
  .landing-hero__actions .landing-btn { width: 100%; }
  .landing-trust { gap: .75rem 1rem; }
  .product-preview { min-height: 360px; }
  .product-window { inset: 1.25rem 0 .5rem; grid-template-columns: 42px 1fr; transform: none; }
  [dir="rtl"] .product-window { transform: none; }
  .product-window__rail { gap: .75rem; padding-inline: .25rem; }
  .product-window__mini-logo { width: 31px; height: 31px; }
  .product-window__rail-icon { width: 25px; height: 25px; }
  .product-window__body { padding: .75rem; }
  .preview-stats > div { min-height: 62px; padding: .5rem; }
  .preview-stats strong { font-size: .95rem; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card--chart { min-height: 150px; }
  .preview-card--chart svg { height: 90px; }
  .preview-card--attention { display: none; }
  .preview-float { min-width: 140px; padding: .5rem .75rem; }
  .preview-float--top { inset-block-start: 0; }
  .preview-float--bottom { inset-block-end: -1rem; }
  .landing-proof > div { gap: 1rem 1.75rem; }
  .landing-proof span { font-size: var(--text-small); }
  .landing-section { width: min(100% - 1.5rem, 1120px); padding: 5rem 0; }
  .landing-section__intro { margin-bottom: 2rem; }
  .tour-grid, .start-steps, .confidence-grid { grid-template-columns: 1fr; }
  .tour-card > p { min-height: 0; }
  .start-steps { gap: 1.5rem; }
  .start-steps li:not(:last-child)::after { display: none; }
  .feature-grid, .role-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .landing-workflow { padding: 5rem 1.25rem; }
  .workflow-visual { min-height: 330px; transform: scale(.82); }
  .workflow-visual__ring--two { width: 360px; height: 360px; }
  .landing-cta { margin: 0 .75rem .75rem; padding: 4rem 1.25rem; border-radius: var(--radius-lg); }
  .landing-contact { width: min(100% - 1.5rem, 1120px); margin: 5rem auto; }
  .landing-contact__form { padding: 1.25rem; }
  .landing-contact__fields { grid-template-columns: 1fr; }
  .landing-contact__message { grid-column: auto; }
  .landing-footer { width: calc(100% - 2rem); padding: 1.5rem 0; flex-direction: column; text-align: center; }
  .trial-banner { align-items: stretch; flex-direction: column; }
  .trial-banner .btn { width: 100%; }
}

.landing-brand:lang(ar),
:is(.landing-hero h1, .landing-section__intro h2, .landing-workflow h2, .landing-cta h2, .landing-contact h2):lang(ar) {
  letter-spacing: 0;
}

@media (max-width: 380px) {
  .landing-brand__wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-btn, .feature-card, .product-window, .landing-reveal { transition: none; }
}

