:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-solid: #ffffff;
  --ink: #17171c;
  --muted: #686671;
  --line: #e7e5eb;
  --line-strong: #d6d0df;
  --blue: #7136d9;
  --blue-deep: #5320a7;
  --soft-blue: #7a98f0;
  --cyan: #73d6ff;
  --violet: #8158ff;
  --magenta: #c477ff;
  --cream: #eeede3;
  --success: #0c9b73;
  --warning: #d77c00;
  --shadow: none;
  --shadow-soft: none;
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-xl: 64px;
  --blur: 26px;
  --max: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mx: 0;
  --my: 0;
  --pastel-blue: #def1ff;
  --pastel-mint: #ddf6e8;
  --pastel-lilac: #e7deff;
  --pastel-peach: #ffecd2;
  --pastel-rose: #ffe2e6;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d162b;
  --bg-elevated: #15213b;
  --bg-solid: #15213b;
  --ink: #f1f5ff;
  --muted: #b9c8e2;
  --line: #334361;
  --line-strong: #4d6287;
  --cream: #202336;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 18px 58px rgba(0, 0, 0, 0.28);
  --blue: #bea2ff;
  --blue-deep: #d1bdff;
  --pastel-blue: #142947;
  --pastel-mint: #17372e;
  --pastel-lilac: #2a2446;
  --pastel-peach: #443222;
  --pastel-rose: #422a35;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {margin:0;min-width:320px;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
svg { stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(36, 88, 246, .22); }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.site-header {position:sticky;top:0;z-index:1000;padding:0 20px;background:var(--bg-solid);border-bottom:1px solid var(--line);
}
.nav-shell {width:min(var(--max),100%);min-height:84px;margin:0 auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:12px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.03em; }
/* The brand mark is the real AIOS wordmark, so it carries the name itself and
   needs no adjacent text span. A white cut is swapped in on the dark theme
   because the blue letters would sit too dark on the dark nav panel. */
.brand-logo { width: auto; height: 26px; display: block; }
[data-theme="dark"] .brand-logo { content: url("logo-wordmark-dark.webp"); }
.brand span { font-size: 18px; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 2px; }
.desktop-nav a {
  position: relative;
  padding: 11px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  transition: color .25s ease, background .25s ease;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--ink); background: rgba(124,145,230,.1); }
.desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  bottom: 3px;
  left: 50%;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: none;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang-btn, .menu-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.36);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}
[data-theme="dark"] .icon-btn, [data-theme="dark"] .lang-btn, [data-theme="dark"] .menu-btn { background: rgba(255,255,255,.055); }
.icon-btn:hover, .lang-btn:hover, .menu-btn:hover { transform: translateY(-2px); background: rgba(122,152,240,.13); border-color: var(--line-strong); }
.icon-btn svg, .menu-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lang-btn { font-size: 12px; font-weight: 760; letter-spacing: .05em; }
.menu-btn { display: none; }
.btn {
  --btn-bg: var(--blue);
  --btn-fg: white;
  --btn-edge: #4e20a1;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 21px;
  border: 2px solid var(--btn-edge);
  border-radius: 18px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  box-shadow: 0 4px 0 var(--btn-edge);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}
.btn:hover { filter:brightness(1.07); }
.btn:active { transform:translateY(4px);box-shadow:0 0 0 var(--btn-edge); }
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.btn.secondary {
  --btn-bg: var(--bg-solid);
  --btn-fg: var(--ink);
  --btn-edge: var(--line-strong);
}
.btn.ghost { --btn-bg:var(--bg-solid);--btn-fg:var(--ink);--btn-edge:var(--line-strong); }
.btn.small { min-height: 44px; padding: 0 17px; }
.nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 640; letter-spacing: -.012em; text-decoration: none; white-space: nowrap; }
.nav-login:hover { background: rgba(110,125,189,.1); }
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: none;
  padding: 105px 20px 24px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  opacity: 0;
  pointer-events: none;
}
.mobile-panel.is-open { opacity: 1; pointer-events: auto; }
.mobile-panel nav { display: grid; gap: 10px; }
.mobile-panel a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-elevated);
  font-size: clamp(24px, 8vw, 42px);
  font-weight: 750;
  letter-spacing: -.045em;
}
main { position: relative; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section {position:relative;padding:80px 0; }
.section.compact {padding:48px 0; }
.section-dark {color:#f7f9ff;background:#101d43;
}
.section-dark .muted, .section-dark .section-copy, .section-dark p { color: rgba(236,239,255,.68); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .65; }
.section-heading { max-width: 770px; margin-bottom: 48px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title {margin:16px 0 20px;font-size:clamp(34px,4.2vw,60px);line-height:1.08;letter-spacing:-.045em;font-weight:710;
}
.section-copy { margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.58; letter-spacing: -.018em; }
.muted { color: var(--muted); }
.hero {padding:58px 0 0;background:var(--bg);
}
.hero-grid {display:block;grid-template-columns:1.05fr 1fr;align-items:center;gap:20px; }
.hero-kicker {display:inline-flex;align-items:center;gap:8px;padding:9px 14px;margin-bottom:22px;border:1px solid var(--line-strong);border-radius:999px;background:var(--bg-solid);color:var(--blue-deep);font-size:13px;font-weight:700;
}
[data-theme="dark"] .hero-kicker { background: rgba(255,255,255,.05); }
.hero h1 {max-width:1080px;margin:0 auto;font-size:clamp(48px,6.4vw,86px);line-height:1.05;letter-spacing:-.055em;font-weight:740;
}
.hero h1 .gradient-word {color:var(--ink);
}
.hero-lede { max-width: 780px; margin: 24px auto 0; color: var(--muted); font-size: 20px; line-height: 1.6; letter-spacing: -.026em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; justify-content: center; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; stroke: var(--success); fill: none; stroke-width: 2; }
.glass-panel {position:relative;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg-solid);overflow:hidden;
}
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card {min-height:380px;padding:30px;display:flex;flex-direction:column;
}
.role-card:hover {border-color:var(--blue); }
.role-card .role-icon {width:56px;height:56px;}
.role-card .role-icon svg {width:56px;height:56px;padding:10px;border-radius:18px;}
.role-card h3 { margin: 28px 0 12px; font-size: 28px; letter-spacing: -.04em; }
.role-card p { margin: 0; color: var(--muted); line-height: 1.58; }
.role-list { display: grid; gap: 10px; padding: 0; margin: 24px 0 28px; list-style: none; }
.role-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.role-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--soft-blue); box-shadow: none; }
.role-card .text-link { margin-top: auto; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 720; font-size: 14px; }
.text-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s ease; }
.text-link:hover svg { transform: translateX(4px); }
.feature-layout {display:grid;gap:24px; }
.feature-tabs {display:flex;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;justify-content: center;flex-wrap: wrap; }
.feature-tab {width:auto;min-height:48px;text-align:left;padding:12px 22px;border:1px solid var(--line);border-radius:999px;background:var(--bg-solid);cursor:pointer;
}
.feature-tab:hover { transform: translateX(5px); }
.feature-tab.is-active {background:var(--ink);border-color:var(--ink);color:var(--bg); }
.feature-tab strong { display: block; margin-bottom: 6px; font-size: 16px; letter-spacing: -.025em; margin: 0; }
.feature-tab span { color: var(--muted); font-size: 14px; line-height: 1.45; display: none; }
.shot-frame { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 26px; background: var(--bg-elevated); box-shadow: none; }
.shot-chrome { display: flex; align-items: center; gap: 12px; padding: 8px 6px 14px; }
.shot-dots { display: flex; gap: 7px; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff665f; }
.shot-dots i:nth-child(2) { background: #f6bf4f; }
.shot-dots i:nth-child(3) { background: #4bcf66; }
.shot-url { padding: 7px 16px; border-radius: 999px; background: rgba(110,125,189,.09); color: var(--muted); font-size: 12px; }
.shot-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-solid); }
.shot-frame figcaption { padding: 16px 6px 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hero-shot { padding: 12px; border-radius: 30px; box-shadow: none; }
.hero-stage {
  max-width: 1120px;
  margin: 32px auto 0; }
.hero-stage .shot-disclaimer { margin: 15px 2px 0; max-width: none; text-align: left; font-size: 12px; }
.role-shot { margin-bottom: 22px; }
.shot-disclaimer { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.feature-stage {display:grid;background:transparent;padding:0;border-radius:32px; }
.feature-stage > .shot-frame { grid-area: 1 / 1; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-item { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--pastel-lilac); box-shadow: none; }
.gallery-item img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.gallery-item figcaption, .gallery-mobile figcaption { display: grid; gap: 6px; padding: 20px 22px; }
.gallery-item figcaption strong, .gallery-mobile figcaption strong { font-size: 17px; letter-spacing: -.025em; }
.gallery-item figcaption span, .gallery-mobile figcaption span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.gallery-mobile { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: 28px; margin: 18px 0 0; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-elevated); box-shadow: none; }
.gallery-mobile img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 22px; }
.built-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.built-item { padding: 28px 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.04); }
.built-item h3 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.03em; color: #fff; }
.built-item p { margin: 0; color: rgba(236,239,255,.66); font-size: 14px; line-height: 1.55; }
.built-note { margin: 26px 0 0; max-width: 720px; color: rgba(236,239,255,.55); font-size: 13px; line-height: 1.6; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: rgba(255,255,255,.1); }
.metric { padding: 34px 28px; background: rgba(255,255,255,.035); }
.metric strong { display: block; color: #fff; font-size: clamp(38px, 5vw, 66px); letter-spacing: -.06em; }
.metric span { display: block; margin-top: 8px; color: rgba(236,239,255,.6); font-size: 13px; }
.security-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; align-items: stretch; }
.security-visual {padding:36px;background:var(--pastel-mint);border-radius:28px;}
.security-visual h3 {margin:12px 0;font-size:clamp(28px,3vw,40px);line-height:1.08;letter-spacing:-.04em;}
.access-intro {margin:0 0 26px;color:var(--muted);line-height:1.6;}
.access-roles {list-style:none;padding:0;margin:0;display:grid;gap:12px;}
.access-roles li {display:flex;align-items:center;gap:16px;padding:18px;background:var(--bg-solid);border-radius:18px;}
.access-roles .pictogram {width:46px;height:46px;flex-shrink:0;}
.access-roles strong {font-size:17px;}
.access-roles p {margin:5px 0 0;font-size:14px;line-height:1.5;color:var(--muted);}
.access-note {display:flex;align-items:center;gap:12px;margin:24px 0 0;font-size:14px;font-weight:650;line-height:1.5;}
.access-note .pictogram {width:34px;height:34px;border-radius:11px;flex-shrink:0;}
.security-list { display: grid; gap: 14px; }
.security-card { padding: 24px; }
.security-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.03em; }
.security-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.security-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; }
.security-card .top svg {width:40px;height:40px;flex-shrink:0;}
.pilot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: pilot; }
.pilot-step { position: relative; min-height: 250px; padding: 56px 24px 24px; counter-increment: pilot; }
/* The number uses ::after, not ::before: .pilot-step is also a .glass-panel,
   whose ::before draws the sheen. Sharing ::before made the counter inherit the
   sheen's position:absolute;inset:0 and pin itself, clipped, into the corner. */
.pilot-step::after { content: "0" counter(pilot); position: absolute; top: 24px; left: 24px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.pilot-step h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.03em; }
.pilot-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-elevated); overflow: hidden; }
.faq-question { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px; border: 0; background: transparent; text-align: left; cursor: pointer; font-weight: 720; }
.faq-question svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; transition: transform .3s var(--ease); }
.faq-item.is-open .faq-question svg { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.6; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.cta-shell {position:relative;min-height:380px;padding:44px;display:grid;grid-template-columns:.65fr 1fr;gap:44px;align-items:center;text-align:left;color:var(--ink);background:var(--pastel-peach);
}
.cta-content { position: relative; z-index: 2; max-width: 800px; }
.cta-content h2 {margin:0;font-size:clamp(38px,4.6vw,64px);line-height:1.06;letter-spacing:-.055em; }
.cta-content p {max-width:600px;margin:22px 0 30px;color:var(--muted);font-size:18px;line-height:1.55; }
.cta-content .btn.secondary {--btn-bg:var(--blue);--btn-fg:white;border-color:transparent; }
.page-hero {position:relative;padding:64px 0;background:var(--pastel-blue); }
.page-hero .container {display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center; }
.page-hero h1 {max-width:970px;margin:16px 0 22px;font-size:clamp(42px,5.2vw,76px);line-height:1.06;letter-spacing:-.06em; }
.page-hero p {max-width:730px;margin:0;color:var(--muted);font-size:clamp(17px,1.7vw,22px);line-height:1.6; }
.role-tabs-shell {display:grid;gap:28px; }
.role-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px; }
.role-tab { padding: 20px; border: 1px solid transparent; border-radius: 18px; background: transparent; text-align: left; cursor: pointer; }
.role-tab.is-active {border-color:var(--blue);background:var(--pastel-blue); }
.role-tab strong { display: block; font-size: 17px; }
.role-tab span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.role-panel { display: none; }
.role-panel.is-active { display: block; }
.role-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card { padding: 28px; }
.product-card.featured { grid-column: 1 / -1; }
.product-card h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.04em; }
.product-card p { color: var(--muted); line-height: 1.55; }
.architecture { padding: 30px; }
.arch-layer { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.arch-layer:last-child { border-bottom: 0; }
.arch-layer strong { color: var(--blue); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.arch-nodes { display: flex; flex-wrap: wrap; gap: 10px; }
.arch-node { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elevated); font-size: 13px; }
.status-metric { display: grid; gap: 12px; align-content: start; }
.status-metric strong { font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.status-tag { justify-self: start; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 660; letter-spacing: -.005em; }
/* These sit inside .section-dark, so the tags read light on dark. */
.status-tag.is-active { color: #6fe9bd; background: rgba(24,196,148,.16); }
.status-tag.is-roadmap { color: #dfe4f5; background: rgba(255,255,255,.13); }
.status-tag.is-partial { color: #ffcf85; background: rgba(255,183,58,.16); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); gap: 14px; }
.pricing-card { display: flex; flex-direction: column; gap: 13px; padding: 26px; }
.pricing-card h3 { margin: 0; font-size: 15px; font-weight: 640; color: var(--muted); letter-spacing: -.01em; }
.pricing-price { display: block; font-size: clamp(28px, 3vw, 39px); line-height: 1; letter-spacing: -.05em; }
.pricing-price small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.pricing-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pricing-card li { position: relative; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pricing-card li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .55; }
.pricing-note { max-width: 850px; margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { min-height: 300px; padding: 28px; }
.principle .number { display: block; margin-bottom: 80px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.principle h3 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.04em; }
.principle p { margin: 0; color: var(--muted); line-height: 1.55; }
.founder-card { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 520px; }
.founder-visual {position:relative;overflow:hidden;background:var(--pastel-blue); }
.founder-monogram {position:absolute;inset:0;display:grid;place-items:center;color:var(--blue);font-size:112px;font-weight:800;letter-spacing:-.08em; }
.founder-copy { padding: 56px; align-self: center; }
.founder-copy h2 { margin: 0; font-size: clamp(40px, 5vw, 70px); letter-spacing: -.06em; }
.founder-copy .title { margin-top: 12px; color: var(--blue); font-weight: 720; }
.founder-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
/* Sign-in portal — the same components as the rest of the site, so the step
   between the marketing pages and the application does not change skin. */
.portal-section { padding-top: calc(var(--nav-h) + 84px); }
.portal-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 40px; align-items: start; }
.portal-copy h1 { max-width: 15ch; margin: 16px 0 20px; font-size: clamp(44px, 5.6vw, 78px); line-height: .94; letter-spacing: -.062em; }
.portal-lede { max-width: 60ch; margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.portal-copy .hero-proof { margin-top: 26px; }
.portal-shot { margin-top: 34px; padding: 10px; }
.portal-card { position: sticky; top: calc(var(--nav-h) + 34px); padding: 34px; }
.portal-card h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.04em; }
.portal-card > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.portal-roles { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.portal-roles li { padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.portal-roles strong { display: block; margin-bottom: 3px; font-size: 15px; }
.portal-roles span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.portal-continue { width: 100%; }
.portal-note { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.demo-aside { position: sticky; top: 120px; padding: 32px; }
.demo-aside h2 { margin: 0 0 14px; font-size: 38px; letter-spacing: -.05em; }
.demo-aside p { color: var(--muted); line-height: 1.6; }
.demo-points { display: grid; gap: 14px; margin-top: 28px; }
.demo-point { display: flex; align-items: flex-start; gap: 12px; }
.demo-point svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.demo-point span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.demo-form { padding: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 720; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.42);
  color: var(--ink);
  padding: 0 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { background: rgba(255,255,255,.05); }
.field textarea { min-height: 130px; resize: vertical; padding-top: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(36,88,246,.6); box-shadow: 0 0 0 4px rgba(36,88,246,.1); background: var(--bg-elevated); }
.field .error { min-height: 16px; color: #d54848; font-size: 12px; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-success { display: none; min-height: 520px; place-items: center; text-align: center; }
.form-success.is-visible { display: grid; }
.form-success .success-icon { width: 80px; height: 80px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(12,155,115,.12); color: var(--success); }
.form-success svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.form-success h3 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.form-success p { max-width: 480px; color: var(--muted); line-height: 1.6; }
.site-footer {padding:38px 0 28px;border-top:1px solid var(--line);background:var(--bg-solid); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, .7fr); gap: 28px; padding: 36px 0 44px; }
.footer-brand p { max-width: 320px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-col h4 { margin: 0 0 15px; font-size: 13px; }
.footer-col a { display: block; margin: 10px 0; color: var(--muted); font-size: 13px; transition: color .2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-legal-note { max-width: 24ch; margin: 0; color: var(--soft); font-size: 13px; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.reveal {opacity:1;transform:none; }
.reveal.is-visible { opacity: 1; transform: none; }
.ambient { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .34; }
.ambient.a { width: 320px; height: 320px; background: var(--cyan); left: -140px; top: 10%; }
.ambient.b { width: 380px; height: 380px; background: var(--violet); right: -180px; bottom: 4%; }
.not-found {min-height:70vh;display:grid;place-items:center;text-align:center;padding:40px 20px; }
.not-found h1 { margin: 0; font-size: clamp(120px, 24vw, 300px); line-height: .78; letter-spacing: -.1em; color: var(--blue); }
.not-found h2 { margin: 30px 0 10px; font-size: 36px; letter-spacing: -.045em; }
.not-found p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.form-submit-error {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
}
.form-submit-error:empty {
  min-height: 0;
  margin: 0;
}
/* Aiko's public illustration system. The authenticated workspace is independent. */
.hero-copy { text-align: center; }
.hero-copy .hero-actions { justify-content: center; }
.hero-copy .gradient-word { text-decoration: underline; text-decoration-color: #b48cff; text-decoration-thickness: 5px; text-underline-offset: 8px; }
.hero .hero-kicker { border: 0; background: var(--pastel-lilac); }
.hero .hero-actions .btn { min-width: 210px; }
.hero .hero-proof { justify-content: center; }
.ambient { display: none; }
.feature-showcase { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 46px; padding: 48px; border-radius: 28px; background: var(--pastel-lilac); }
.tone-peach { background: var(--pastel-peach); }
.tone-mint { background: var(--pastel-mint); }
.tone-rose { background: var(--pastel-rose); }
.showcase-copy h3 { font-size: clamp(32px,3.6vw,52px); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 22px; font-weight: 720; color: var(--blue-deep); }
.tone-peach .showcase-copy h3 { color: #925010; }
.tone-mint .showcase-copy h3 { color: #146441; }
.tone-rose .showcase-copy h3 { color: #a12549; }
.showcase-copy p { font-size: 19px; color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.showcase-art { width: 160px; height: 160px; object-fit: contain; margin: 20px 0 0 auto; }
.feature-showcase .shot-frame { min-width: 0; }
.feature-showcase .shot-frame figcaption { font-size: 12px; }
.everyday-panel { position: relative; }
.panel-motif { position: absolute; width: 135px; height: 135px; object-fit: contain; bottom: 14px; right: 16px; pointer-events: none; }
.everyday-panel .text-link { max-width: calc(100% - 135px); }
[data-title-key="meta.title.product"] .page-hero { background: var(--pastel-lilac); }
[data-title-key="meta.title.security"] .page-hero { background: var(--pastel-mint); }
[data-title-key="meta.title.schools"] .page-hero { background: var(--pastel-peach); }
[data-title-key="meta.title.about"] .page-hero { background: var(--pastel-rose); }
[data-title-key="meta.title.demo"] .page-hero { background: var(--pastel-peach); }
[data-theme="dark"] .showcase-copy h3 { color: var(--ink); }
@media (max-width: 1000px) {
  .feature-showcase { gap: 28px; padding: 28px; }
  .showcase-copy p { font-size: 17px; }
}
@media (max-width: 700px) {
  .feature-showcase { grid-template-columns: 1fr; padding: 22px; gap: 28px; }
  .showcase-copy { display: grid; grid-template-columns: 1fr 94px; gap: 16px; align-items: center; }
  .showcase-copy h3, .showcase-copy p { grid-column: 1 / -1; margin: 0; }
  .showcase-copy h3 { font-size: 32px; }
  .showcase-art { width: 94px; height: 94px; margin: 0; }
  .showcase-copy .btn { padding: 12px 14px; }
  .companion-block { padding: 24px; }
  .panel-motif { width: 100px; height: 100px; }
  .everyday-panel .text-link { max-width: calc(100% - 95px); }
  .hero-copy .gradient-word { text-decoration-thickness: 3px; text-underline-offset: 5px; }
}
.feature-menu summary { display: flex; align-items: center; gap: 8px; list-style: none; min-height: 44px; padding: 11px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 620; cursor: pointer; }
.feature-menu summary::-webkit-details-marker { display: none; }
.feature-menu[open] summary { color: var(--blue); background: var(--pastel-blue); }
.mega-panel { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; padding: 32px max(32px,calc((100vw - var(--max))/2)); background: var(--bg-solid); border-bottom: 1px solid var(--line); }
.mega-panel h2 { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.desktop-nav .mega-panel a { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--ink); border-radius: 12px; padding: 8px; font-size: 16px; }
.mega-panel a > span:first-child { display:grid;place-items:center;width:40px;height:40px;flex-shrink:0; }
[hidden] { display: none !important; }
section[id], [role="tabpanel"], .role-tabs { scroll-margin-top: 110px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.btn { padding:12px 24px;min-height:52px;font-size:16px; }
[data-theme="dark"] .btn { --btn-bg: #7136d9; --btn-fg: #fff; }
[data-theme="dark"] .btn.secondary { --btn-bg: var(--bg-solid); --btn-fg: var(--ink); }
.hero-aiko { width: 100%; height: auto; border-radius: 0; max-height: 360px; object-fit: contain; }
.hero-stage { min-width: 0; max-width: 1120px; margin: 32px auto 0; }
.hero-lede { font-size: 20px; line-height: 1.6; max-width: 780px; margin: 24px auto 0; }
.hero-proof { gap: 10px 18px; font-size: 12px; line-height: 1.5; justify-content: center; }
.hero-proof > span::before { content: '✓'; color: var(--blue); font-weight: 800; }
.aiko-signature { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; color: var(--blue-deep); font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.aiko-signature > span:last-child { font-weight: 500; letter-spacing: .03em; }
.role-card:nth-child(2) { background: var(--pastel-lilac); }
.role-card:nth-child(3) { background: var(--pastel-peach); }
.role-card:first-child { background: var(--pastel-mint); }
.role-card { border-color: transparent; }
.role-card h3 { margin-top: 22px; }
.role-card .text-link, .everyday-panel .text-link { min-height: 44px; }
.feature-tab.is-active span { color: inherit; opacity: .85; }
.feature-tab:hover { transform: none; border-color: var(--blue); }
.feature-stage .shot-frame { width: 100%; max-width: none; margin: 0 auto; background: var(--bg-solid); }
.companion-block { display: grid; grid-template-columns: .65fr 1fr; gap: 38px; align-items: center; padding: 40px; border-radius: 28px; background: var(--pastel-mint); }
.aiko-art { width: 100%; height: auto; border-radius: 0; max-height: 350px; object-fit: contain; }
.companion-copy { padding-right: 30px; }
.everyday-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.everyday-panel { display: flex; flex-direction: column; padding: 32px; border-radius: 28px; background: var(--pastel-blue); }
.everyday-panel:nth-child(2) { background: var(--pastel-rose); }
.everyday-panel h2 { margin: 0 0 16px; font-size: clamp(26px,2.7vw,36px); letter-spacing: -.04em; line-height: 1.12; }
.everyday-panel p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.everyday-panel .shot-frame { margin-top: auto; }
.everyday-panel .text-link { margin-top: 18px; }
.gallery-item { background: var(--pastel-lilac); }
.gallery-item:nth-child(2) { background: var(--pastel-peach); }
.gallery-item:nth-child(3) { background: var(--pastel-mint); }
.gallery-item:nth-child(4) { background: var(--pastel-rose); }
.gallery-item figcaption { padding: 26px; }
.gallery-mobile { background: var(--pastel-lilac); }
.section-dark .eyebrow { color: #9fc3ff; }
.section-dark .built-item { border-color: #42506c; }
.section-dark .built-item p, .section-dark .built-note, .section-dark .section-copy { color: #c7d4ec; }
.page-aiko { width: 100%; height: auto; border-radius: 0; max-height: 320px; object-fit: contain; }
.page-hero-copy { min-width: 0; }
.cta-aiko { width: 100%; height: auto; border-radius: 0; max-height: 250px; object-fit: contain; }
.portal-section { padding-top: 60px; }
.portal-aiko { width: 150px; height: auto; border-radius: 0; margin-bottom: 24px; }
.portal-copy h1 { line-height: 1.05; }
.lost-aiko { width: 250px; height: auto; margin: 0 auto; border-radius: 0; }
.not-found h1 { font-size: 80px; margin: 14px 0; line-height: 1; }
.not-found h2 { font-size: 28px; }
.not-found p { max-width: 520px; color: var(--muted); line-height: 1.6; }
.footer-motto { color: var(--blue-deep); font-size: 24px; letter-spacing: -.04em; font-weight: 800; margin-bottom: 20px; }
.footer-col a { min-height: 44px; margin: 0; padding: 10px 0; line-height: 1.5; }
.footer-legal-note { color: var(--muted); }
.field input, .field select, .field textarea { background: var(--bg-solid); }
.field .error, .form-submit-error { color: #b42318; }
[data-theme="dark"] .field .error, [data-theme="dark"] .form-submit-error { color: #ffafa7; }
.pricing-card { background: var(--pastel-blue); }
.pricing-card:nth-child(3n+2) { background: var(--pastel-lilac); }
.pricing-card:nth-child(3n) { background: var(--pastel-mint); }
.pilot-step { min-height: 220px; }
.principle .number { margin-bottom: 40px; }
.mobile-panel { background: var(--bg-solid); overflow-y: auto; padding-bottom: max(24px,env(safe-area-inset-bottom)); }
.mobile-panel a { min-height: 44px; font-size: 24px; }
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .nav-shell { grid-template-columns: auto 1fr; min-height: 76px; }
  .nav-actions { justify-content: flex-end; }
  .menu-btn { display: inline-grid; }
  .mobile-panel { display: none; padding-top: 100px; }
  .mobile-panel.is-open { display: block; }
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; display: block; }
  .hero h1 { font-size: clamp(40px,8.8vw,68px); }
  .hero-lede { font-size: 17px; max-width: 680px; }
  .hero-kicker { font-size: 12px; }
  .hero-proof { display: grid; }
  .role-grid { gap: 12px; }
  .role-card { padding: 22px; }
  .role-card h3 { font-size: 25px; }
  .built-grid, .pilot-grid { grid-template-columns: repeat(2,1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .companion-block { gap: 30px; }
  .companion-copy { padding: 0; }
  .feature-tab { padding: 14px; }
  .feature-tab strong { font-size: 16px; }
  .feature-stage { padding: 0; }
  .footer-grid { grid-template-columns: repeat(4,1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 600px; }
  .portal-grid, .demo-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .portal-card, .demo-aside { position: static; padding: 24px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .site-header { padding: 0 16px; }
  .nav-shell { gap: 8px; min-height: 70px; }
  .brand-logo { height: 24px; }
  .nav-actions { gap: 5px; }
  .nav-actions > .btn, .nav-login { display: none; }
  .icon-btn, .lang-btn, .menu-btn { width: 44px; height: 44px; }
  .section { padding: 50px 0; }
  .section.compact { padding: 30px 0; }
  .section-heading { margin-bottom: 28px; }
  .section-title { font-size: 38px; }
  .companion-block { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 32px 0; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(40px,8.8vw,68px); letter-spacing: -.06em; }
  .hero-kicker { font-size: 11px; margin-bottom: 18px; padding: 9px 10px; }
  .hero-lede { margin-top: 20px; font-size: 17px; max-width: 680px; }
  .hero-actions { gap: 10px; justify-content: center; margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 150px; }
  .hero-proof { display: flex; justify-content: center; font-size: 11px; margin-top: 20px; }
  .hero-stage { max-width: 100%; margin: 0 auto; }
  .role-grid, .everyday-grid, .gallery-grid, .principles-grid, .portal-grid, .demo-grid, .founder-card { grid-template-columns: 1fr; }
  .role-card { min-height: auto; padding: 26px; }
  .role-list { margin: 20px 0; }
  .feature-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-tab strong { font-size: 15px; }
  .feature-tab span { display: none; }
  .feature-stage { padding: 0; border-radius: 22px; }
  .shot-frame { padding: 6px; border-radius: 16px; }
  .shot-frame img { border-radius: 10px; }
  .shot-frame figcaption { font-size: 13px; }
  .shot-url { font-size: 11px; }
  .everyday-panel { padding: 24px; }
  .companion-copy { text-align: center; }
  .built-grid, .pilot-grid { grid-template-columns: 1fr; }
  .pilot-step { min-height: auto; }
  .gallery-mobile { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .gallery-mobile img { max-width: 220px; margin: 0 auto; }
  .security-visual { padding:22px; }
  .access-roles li {padding:14px;gap:12px;}
  .page-hero { padding: 36px 0; }
  .page-hero .container { grid-template-columns: 1fr; gap: 28px; }
  .page-hero h1 { font-size: clamp(38px,10vw,60px); }
  .page-aiko { max-width: 380px; margin: 0 auto; }
  .role-tabs { padding: 6px; gap: 4px; }
  .role-tab { padding: 12px 6px; min-height: 48px; text-align: center; }
  .role-tab strong { font-size: 12px; }
  .role-tab span { display: none; }
  .role-panel-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: auto; }
  .architecture { padding: 20px; }
  .arch-layer { grid-template-columns: 1fr; gap: 12px; }
  .founder-visual { min-height: 250px; }
  .founder-copy { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .demo-form { padding: 22px; }
  .portal-section { padding-top: 36px; }
  .portal-copy h1 { font-size: 46px; }
  .portal-aiko { width: 160px; }
  .cta-shell { grid-template-columns: 1fr; padding: 26px; gap: 28px; text-align: center; }
  .cta-aiko { width: 260px; margin: 0 auto; }
  .cta-content h2 { font-size: 40px; }
  .cta-content p { font-size: 16px; }
  .cta-content .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .faq-question { min-height: 76px; padding: 14px 18px; }
}
@media (max-width: 360px) {
  .nav-actions { gap: 2px; }
  .brand-logo { height: 22px; }
  .hero-kicker { font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 34px; }
}
.pictogram{--icon-bg:#6155ff;width:100%;height:100%;padding:7px;border-radius:13px;background:var(--icon-bg);color:#fff;fill:none;stroke:none}
.icon-book{--icon-bg:#00a8ed}.icon-graduate{--icon-bg:#337aff}.icon-pencil,.icon-lesson{--icon-bg:#ff7500}.icon-calendar,.icon-sliders{--icon-bg:#6155ff}.icon-chart{--icon-bg:#ff354b}.icon-document{--icon-bg:#efad00}.icon-shield,.icon-school{--icon-bg:#00b995}.icon-grid{--icon-bg:#be35f4}.icon-users{--icon-bg:#00a8c6}

/* Artwork keeps its original pixels and accessible translated alternative. */
.aiko-motion { position:relative;display:block; }
.aiko-motion.panel-motif { position:absolute; }
.aiko-motion .aiko-original { display:block;width:100%;height:100%;object-fit:contain;opacity:0; }
.aiko-motion>svg { position:absolute;inset:0;width:100%;height:100%;overflow:visible; }
.aiko-greeting { display:block;width:100%;padding:0;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer;border-radius:24px; }
.aiko-greeting>span:last-child { display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:99px;background:var(--bg-solid);font-size:14px;font-weight:700; }
@media(prefers-reduced-motion:no-preference) {
  .pictogram { transition:transform .2s ease; }
  a:hover>.pictogram,button:hover>.pictogram { transform:rotate(-7deg) translateY(-2px); }
}
.menu-btn path { transform-origin:12px 12px;transition:transform .25s ease,opacity .2s; }
.menu-btn[aria-expanded="true"] path:nth-child(1) { transform:rotate(45deg) translateY(5px); }
.menu-btn[aria-expanded="true"] path:nth-child(2) { opacity:0; }
.menu-btn[aria-expanded="true"] path:nth-child(3) { transform:rotate(-45deg) translateY(-5px); }

/* Shared tactile controls: solid lower edge and a short downward press. */
:is(.icon-btn,.lang-btn,.menu-btn,.feature-tab,.role-tab,.nav-login,.feature-menu summary) {
  --control-edge:var(--line-strong);border:2px solid var(--control-edge);border-radius:16px;background:var(--bg-solid);box-shadow:0 3px 0 var(--control-edge);font-weight:780;transform:translateY(0);transition:transform .12s ease,box-shadow .12s ease,background .15s ease;
}
:is(.icon-btn,.lang-btn,.menu-btn,.feature-tab,.role-tab,.nav-login,.feature-menu summary):hover { background:var(--pastel-lilac);transform:translateY(0); }
:is(.icon-btn,.lang-btn,.menu-btn,.feature-tab,.role-tab,.nav-login,.feature-menu summary):active { transform:translateY(3px);box-shadow:0 0 0 var(--control-edge); }
:is(.feature-tab,.role-tab).is-active,.feature-menu[open] summary { --control-edge:var(--blue);background:var(--pastel-lilac);color:var(--blue-deep); }
.feature-tab strong { font-weight:800; }
.feature-tabs { gap:14px; }
.role-tabs { gap:10px; }
.faq-item { border:2px solid var(--line-strong);box-shadow:0 3px 0 var(--line-strong);border-radius:20px; }
.faq-question { font-weight:780; }
.faq-question:hover,.faq-item.is-open .faq-question { background:var(--pastel-lilac); }
.aiko-greeting>span:last-child { border:2px solid var(--line-strong);border-radius:16px;box-shadow:0 3px 0 var(--line-strong); }
.aiko-greeting:active>span:last-child { transform:translateY(3px);box-shadow:none; }
.btn:disabled { filter:grayscale(.5);opacity:.65;cursor:wait;transform:none;box-shadow:0 2px 0 var(--btn-edge); }

/* Illustrated discovery: one landscape and one six-cell atlas. */
.hero { padding:20px 0 0; }
.hero-world { position:relative;isolation:isolate;padding:48px 48px 38px;border-radius:32px;background:#fff5fa; }
.hero-world::before { content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:url('illustrations/hero-landscape.png') center bottom/cover no-repeat; }
.hero-world .hero-copy { text-align:center; }
.hero-world h1 { font-size:clamp(44px,6vw,80px); }
.hero-world .hero-lede { max-width:740px;font-size:19px; }
.hero-world .hero-actions { display:grid;grid-template-columns:minmax(0,1fr);max-width:450px;margin:26px auto 0; }
.hero-world .hero-actions .btn { min-width:0; }
.hero-world .hero-actions>.btn { min-height:56px;font-size:18px; }
.hero-role-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.hero-role-actions .btn { background:var(--bg-solid); }
.hero-world .hero-proof { margin-top:20px; }
.hero-world .hero-stage { width:min(460px,100%);margin:4px auto 0; }
.hero-world .hero-aiko { max-height:none; }
[data-theme="dark"] .hero-world { background:var(--bg-solid); }
[data-theme="dark"] .hero-world::before { opacity:.14; }
.discovery-deck { position:relative;z-index:1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;max-width:1320px;margin:-64px auto 0;padding:0 22px 68px; }
.discovery-card { --tilt:0deg;--drop:0px;position:relative;aspect-ratio:2/3;border:5px solid #fff;border-radius:28px;background:var(--caption);color:#fff;transform:translateY(var(--drop)) rotate(var(--tilt));box-shadow:0 8px 0 rgba(34,20,72,.07); }
.discovery-art { position:absolute;inset:0;border-radius:22px;background-image:url('illustrations/discovery-atlas.png');background-size:300% 200%;background-position:var(--tile); }
.discovery-label { position:absolute;inset:auto 0 0;padding:14px 12px 16px;border-radius:0 0 22px 22px;background:var(--caption); }
.discovery-label small { display:block;padding-right:20px;font-size:11px;line-height:1.4; }
.discovery-label strong { display:block;margin-top:3px;font-size:clamp(18px,2vw,27px);letter-spacing:-.045em;line-height:1.1; }
.discovery-label>span { position:absolute;right:10px;top:10px;font-size:17px; }
.discovery-learn { --tile:0% 0%;--caption:#5527b8;--tilt:-10deg;--drop:40px; }
.discovery-write { --tile:50% 0%;--caption:#874000;--tilt:-6deg;--drop:15px; }
.discovery-revise { --tile:100% 0%;--caption:#006e60;--tilt:-2deg; }
.discovery-plan { --tile:0% 100%;--caption:#1358b8;--tilt:2deg; }
.discovery-create { --tile:50% 100%;--caption:#a81763;--tilt:6deg;--drop:15px; }
.discovery-progress { --tile:100% 100%;--caption:#aa292b;--tilt:10deg;--drop:40px; }
.discovery-card:focus-visible { z-index:2;outline-color:var(--ink);outline-offset:6px; }
.discovery-links { display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:24px;margin:0 16px 12px; }
.discovery-links .text-link { min-height:44px;padding:8px 4px; }
@media(prefers-reduced-motion:no-preference) {
  .discovery-card { transition:transform .24s var(--ease); }
  .discovery-card:hover,.discovery-card:focus-visible { transform:translateY(calc(var(--drop) - 12px)) rotate(0deg);z-index:2; }
}
@media(max-width:1000px) {
  .hero-world { padding:38px 28px 38px; }
  .discovery-deck { grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:700px;padding:0 12px 24px;margin-top:-35px; }
  .discovery-card { --drop:0px;--tilt:0deg; }
  .discovery-label strong { font-size:27px; }
}
@media(max-width:700px) {
  .hero { padding-top:12px; }
  .hero-world { padding:28px 18px 30px;border-radius:24px; }
  .hero-world h1 { font-size:clamp(37px,9vw,58px); }
  .hero-world .hero-lede { font-size:16px;line-height:1.55; }
  .hero-role-actions { gap:8px; }
  .hero-role-actions .btn { padding:10px 12px;font-size:13px; }
  .hero-world .hero-proof { gap:6px 12px; }
  .hero-world .hero-stage { margin:16px auto 0;max-width:340px; }
  .discovery-deck { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:-28px;padding:0 4px 24px; }
  .discovery-card { border-width:4px;border-radius:24px; }
  .discovery-art { border-radius:20px; }
  .discovery-label { padding:10px;border-radius:0 0 19px 19px; }
  .discovery-label strong { font-size:23px; }
  .discovery-label small { font-size:10px;max-width:90%; }
  .discovery-links { gap:16px; }
}

/* Shared pictograms and readable privacy cards. */
.icon-folder{--icon-bg:#a641ed}.icon-erase{--icon-bg:#f04472}.icon-chat{--icon-bg:#cc29e7}.icon-quiz{--icon-bg:#00a8c6}
.product-card>.pictogram{width:48px;height:48px;margin-bottom:16px}
.privacy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.privacy-grid .role-card{min-height:260px}
.privacy-grid .role-card:nth-child(4){background:var(--pastel-blue)}
@media(max-width:700px){.privacy-grid{grid-template-columns:1fr}.privacy-grid .role-card{min-height:0}}
