/* royasakht.ir landing page. Static, no JavaScript; the app lives on app.royasakht.ir.
   The hero's age switcher is radio inputs + :has(); without :has the first studio stays shown. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Lalezar (OFL, see /fonts/Lalezar-OFL.txt): display face of the two younger studios only. */
@font-face {
  font-family: "Lalezar";
  src: url("/fonts/Lalezar-arabic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Lalezar";
  src: url("/fonts/Lalezar-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand (the portal theme in packages/ui-themes/tokens.css) */
  --bg: #fbf8ff;
  --surface: #ffffff;
  --surface-2: #f3effc;
  --ink: #1f2333;
  --muted: #5f6475;
  --line: #e6e1f5;
  --line-strong: #cfc8ea;
  --violet: #6c5ce7;
  --violet-deep: #5546d6;
  --plum: #a86bbd;
  --rose: #d2749a;
  --coral: #ff7a59;
  --coral-hover: #ff8f73;
  --sun: #ffd23f;
  --sky: #3fb6e8;
  --lilac: #b79cff;
  --mint: #2ee6a6;
  --green: #12a46a;
  --night: #1c1f36;
  --night-text: #d9d4f2;
  --night-muted: #b9b3d6;

  /* Tier 1 · Dreamer */
  --t1-bg: #fff5d6;
  --t1-ink: #2b2340;
  --t1-muted: #625776;
  --t1-pink: #fff0f3;

  /* Tier 2 · Explorer */
  --t2-bg: #eaf1ff;
  --t2-ink: #0d1530;
  --t2-muted: #4a5577;
  --t2-blue: #1f6bff;
  --t2-orange: #ff8a00;
  --t2-mint: #2ee6a6;
  --t2-mint-soft: #e6fff6;

  /* Tier 3 · Maker */
  --t3-bg: #0f1117;
  --t3-text: #e6edf3;
  --t3-muted: #8b949e;
  --t3-cyan: #22d3ee;
  --t3-green: #34d399;
  --t3-violet: #a78bfa;
  --t3-amber: #fbbf24;

  /* Ports (tier 2 and 3) */
  --port-blue: #2f80ed;
  --port-orange: #ff8a00;
  --port-motor: #8e44ad;

  --font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-kids: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --radius: 22px;
  --radius-lg: 28px;
  --shadow-soft: 0 8px 24px rgba(60, 40, 120, 0.06);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--violet);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

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

.wrap-narrow {
  --wrap: 900px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.dot-mint {
  background: var(--mint);
}

.dot-green {
  background: var(--t3-green);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.btn-lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 17px;
}

.btn-coral {
  background: var(--coral);
  color: var(--ink);
}

.btn-coral:hover {
  background: var(--coral-hover);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #343a55;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-dark:hover {
  border-color: #fff;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.wordmark {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.3px;
  line-height: 1;
}

.wm-dream {
  color: var(--violet);
}

.wm-make {
  color: var(--ink);
}

.brand-light .wm-dream {
  color: var(--lilac);
}

.brand-light .wm-make {
  color: #fff;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 16px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--violet);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  gap: 10px;
  margin-inline-start: auto;
}

/* ---------- hero ---------- */
.hero {
  background-color: var(--night);
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: #fff;
  padding-block: 56px 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  max-width: 100%;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9e4ff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero-lead {
  max-width: 560px;
  color: var(--night-text);
  font-size: 19px;
  line-height: 1.9;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Age switcher */
.age-switch {
  margin: 10px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.age-switch legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  color: var(--night-muted);
  font-size: 14px;
  font-weight: 600;
}

.age-options {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.age-option {
  position: relative;
  cursor: pointer;
}

.age-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.age-option span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.age-option:hover span {
  border-color: #fff;
}

.age-option input:checked + span {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.age-option input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--sun);
}

/* Preview card */
.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.demo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.demo {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  min-width: 0;
}

.demo-1 {
  display: flex;
}

.demo-caption {
  display: none;
  padding-inline: 6px;
  color: var(--night-muted);
  font-size: 14px;
  line-height: 1.8;
}

.demo-caption-1 {
  display: block;
}

.demo-caption strong {
  display: inline;
  margin-inline-end: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.hero:has(#age-2:checked) .demo-1,
.hero:has(#age-3:checked) .demo-1,
.hero:has(#age-2:checked) .demo-caption-1,
.hero:has(#age-3:checked) .demo-caption-1 {
  display: none;
}

.hero:has(#age-2:checked) .demo-2,
.hero:has(#age-3:checked) .demo-3 {
  display: flex;
}

.hero:has(#age-2:checked) .demo-caption-2,
.hero:has(#age-3:checked) .demo-caption-3 {
  display: block;
}

/* Demo · tier 1 */
.demo-1 {
  background: var(--t1-bg);
  color: var(--t1-ink);
}

.t1-talk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.t1-talk svg {
  flex: none;
}

.t1-bubble {
  padding: 12px 16px;
  border-radius: 22px 6px 22px 22px;
  background: #fff;
  box-shadow: 0 6px 0 rgba(160, 60, 40, 0.12);
  font-family: var(--font-kids);
  font-size: 22px;
  line-height: 1.5;
}

.t1-board {
  display: flex;
  gap: 12px;
  flex: 1;
  min-height: 200px;
}

.t1-canvas {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 4px var(--t1-pink);
}

.t1-paints {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.paint {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.paint-coral {
  background: var(--coral);
  box-shadow: 0 5px 0 rgba(160, 60, 40, 0.25);
}

.paint-sky {
  background: var(--sky);
  box-shadow: 0 5px 0 rgba(20, 90, 130, 0.25);
}

.paint-sun {
  background: var(--sun);
  box-shadow: 0 5px 0 rgba(140, 100, 0, 0.25);
}

.paint-lilac {
  background: var(--lilac);
  box-shadow: 0 5px 0 rgba(80, 50, 160, 0.25);
}

.t1-mic {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 26px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--t1-ink);
  font-family: var(--font-kids);
  font-size: 21px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 7px 0 rgba(160, 60, 40, 0.25), 0 0 0 10px rgba(255, 122, 89, 0.18);
}

.t1-mic svg {
  flex: none;
}

/* Demo · tier 2 */
.demo-2 {
  gap: 14px;
  background: var(--t2-bg);
  color: var(--t2-ink);
}

.t2-level {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 3px solid var(--t2-ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--t2-ink);
}

.t2-level-name {
  font-family: var(--font-kids);
  font-size: 20px;
  line-height: 1.4;
}

.t2-xp {
  flex: 1;
  min-width: 110px;
  height: 14px;
  border: 3px solid var(--t2-ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.t2-xp span {
  display: block;
  height: 100%;
  background: var(--t2-mint);
}

.t2-xp-num {
  font-weight: 800;
  font-size: 14px;
}

.t2-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.t2-msg-me {
  justify-content: flex-end;
}

.t2-bot,
.t2-me {
  flex: none;
  width: 40px;
  height: 40px;
  border: 3px solid var(--t2-ink);
}

.t2-bot {
  border-radius: 10px;
  background: var(--t2-blue);
}

.t2-me {
  border-radius: 50%;
  background: var(--t2-mint);
}

.t2-bubble {
  max-width: 380px;
  padding: 10px 14px;
  border: 3px solid var(--t2-ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--t2-ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
}

.t2-bubble-me {
  background: var(--t2-mint-soft);
  box-shadow: -4px 4px 0 var(--t2-ink);
}

.t2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-inline-start: 50px;
}

.t2-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 3px solid var(--t2-ink);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--t2-ink);
}

.t2-chip-on {
  background: var(--t2-orange);
}

.t2-parts {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.t2-parts-label {
  color: var(--t2-muted);
}

.t2-part {
  padding: 4px 10px;
  border: 2px solid var(--t2-ink);
  border-radius: 8px;
  background: #fff;
}

.t2-part-blue {
  border-color: var(--port-blue);
  color: #1f4fb0;
}

.t2-part-orange {
  border-color: var(--port-orange);
  color: #8a4600;
}

.t2-part-purple {
  border-color: var(--port-motor);
  color: #6a2f84;
}

/* Demo · tier 3 */
.demo-3 {
  gap: 14px;
  background-color: var(--t3-bg);
  background-image: linear-gradient(rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--t3-text);
}

.t3-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--t3-muted);
}

.t3-title {
  color: var(--t3-text);
  font-weight: 700;
}

.t3-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.t3-msg {
  max-width: 92%;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.8;
}

.t3-msg-me {
  align-self: flex-start;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px 14px 14px 4px;
  background: rgba(34, 211, 238, 0.1);
}

.t3-msg-ai {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 4px 14px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
}

.t3-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.t3-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 8px;
}

.t3-cyan {
  color: var(--t3-cyan);
  border-color: rgba(34, 211, 238, 0.5);
}

.t3-amber {
  color: var(--t3-amber);
  border-color: rgba(251, 191, 36, 0.5);
}

.t3-green {
  color: var(--t3-green);
  border-color: rgba(52, 211, 153, 0.5);
}

.t3-parts {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--t3-violet);
  font-family: var(--font-mono);
  font-size: 12px;
}

.t3-parts span {
  padding: 3px 8px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 6px;
}

/* ---------- sections ---------- */
.section {
  padding-block: 88px;
}

.section-flush-top {
  padding-top: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--violet);
  font-weight: 700;
  font-size: 15px;
}

.eyebrow-light {
  color: var(--lilac);
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
}

.sub {
  color: var(--muted);
  font-size: 17px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.step-1 .step-top {
  color: var(--violet);
}

.step-2 .step-top {
  color: #9255ab;
}

.step-3 .step-top {
  color: #b9507e;
}

.step-4 .step-top {
  color: #d9542f;
}

.step h3 {
  font-size: 20px;
  font-weight: 800;
}

.step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Studios */
.studios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.studio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  min-width: 0;
}

.studio-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.studio-age {
  padding: 4px 14px;
  font-weight: 800;
  font-size: 14px;
}

.studio-tier {
  font-size: 13px;
  font-weight: 700;
}

.studio ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.8;
}

.swatches {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sw {
  width: 54px;
  height: 54px;
}

.studio-1 {
  background: var(--t1-bg);
  color: var(--t1-ink);
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(255, 122, 89, 0.18);
}

.studio-1 .studio-age {
  border-radius: 999px;
  background: #fff;
}

.studio-1 .studio-tier {
  color: var(--t1-muted);
}

.studio-1 h3,
.studio-2 h3 {
  font-family: var(--font-kids);
  font-size: 36px;
  font-weight: 400;
}

.studio-1 .sw {
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--sh);
}

.studio-1 .sw-round {
  border-radius: 50%;
}

.studio-2 {
  background: var(--t2-bg);
  color: var(--t2-ink);
  border: 3px solid var(--t2-ink);
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--t2-ink);
}

.studio-2 .studio-age {
  border: 3px solid var(--t2-ink);
  border-radius: 8px;
  background: var(--sun);
}

.studio-2 .studio-tier {
  color: var(--t2-muted);
}

.studio-2 .sw {
  border: 3px solid var(--t2-ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--t2-ink);
}

.studio-3 {
  background-color: var(--t3-bg);
  background-image: linear-gradient(rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--t3-text);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.studio-3 .studio-age {
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--t3-cyan);
}

.studio-3 .studio-tier {
  color: var(--t3-muted);
}

.studio-3 h3 {
  font-size: 32px;
  font-weight: 900;
}

.studio-3 ul {
  color: #c9d1d9;
}

.studio-3 strong {
  color: var(--t3-text);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.tech-chips span {
  padding: 6px 10px;
  border: 1px solid;
  border-radius: 6px;
}

.tc-cyan {
  color: var(--t3-cyan);
  border-color: rgba(34, 211, 238, 0.5);
}

.tc-green {
  color: var(--t3-green);
  border-color: rgba(52, 211, 153, 0.5);
}

.tc-violet {
  color: var(--t3-violet);
  border-color: rgba(167, 139, 250, 0.5);
}

.tc-amber {
  color: var(--t3-amber);
  border-color: rgba(251, 191, 36, 0.5);
}

/* Peace of mind */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 36px;
  align-items: start;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.trust-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.75;
}

.trust-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

/* Schools */
.section-dark {
  background-color: var(--night);
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: #fff;
}

.schools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}

.schools-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.schools-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.school-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.school-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--night-text);
  font-size: 16px;
  line-height: 1.8;
}

.school-steps strong {
  color: #fff;
}

.ss-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
}

.ss-1 {
  background: var(--violet);
}

.ss-2 {
  background: #9255ab;
}

.ss-3 {
  background: #b9507e;
}

.ss-4 {
  background: var(--coral);
  color: var(--ink);
}

.school-offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.offer-label {
  color: var(--night-muted);
  font-size: 14px;
  font-weight: 700;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offer h3 {
  font-size: 18px;
  font-weight: 800;
}

.offer-price {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
}

.offer-price span {
  color: var(--night-muted);
  font-size: 15px;
  font-weight: 600;
}

.offer p:not(.offer-price) {
  color: var(--night-text);
  font-size: 15px;
  line-height: 1.8;
}

.offer strong {
  color: #fff;
}

.offer-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--night-text);
  font-size: 14px;
}

.offer-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* Pricing */
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 8px;
}

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.price-kind {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-avg {
  margin-bottom: -10px;
  color: var(--muted);
  font-size: 13px;
}

.price-num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.4;
}

.price-num span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.price ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.price li {
  display: flex;
  gap: 10px;
}

.price li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--violet);
}

.price-note {
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.price-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  margin-top: 20px;
}

.price-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--surface-2);
}

.price-facts strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price-facts span {
  font-size: 18px;
  font-weight: 900;
}

/* FAQ */
.faq-title {
  margin-bottom: 28px;
}

.section .faq-title {
  font-size: clamp(26px, 3vw, 34px);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--violet);
  border-bottom: 2.5px solid var(--violet);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq details p {
  padding: 0 22px 18px;
  color: var(--muted);
  line-height: 1.85;
}

/* Final CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 56px 44px;
  border-radius: 32px;
  background: var(--violet-deep);
  color: #fff;
}

.cta-band h2 {
  position: relative;
  max-width: 640px;
  font-size: clamp(26px, 3.4vw, 40px);
}

.cta-band p {
  position: relative;
  max-width: 560px;
  font-size: 17px;
}

.cta-band .btn {
  position: relative;
}

.cta-mark {
  position: absolute;
  inset-inline-end: -40px;
  bottom: -70px;
  fill: #fff;
  opacity: 0.16;
  pointer-events: none;
}

/* ---------- footer ---------- */
.site-footer {
  padding-block: 48px 32px;
  background: var(--night);
  color: var(--line-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .wordmark {
  font-size: 22px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 14px;
}

.footer-head {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 700;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--line-strong);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-mail {
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--night-muted);
  font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  html {
    scroll-padding-top: 132px;
  }

  .header-row {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-inline-start: -12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(var(--wrap), 100% - 32px);
  }

  .header-row {
    min-height: 64px;
  }

  .wordmark {
    font-size: 21px;
  }

  .header-actions .btn-ink {
    display: none;
  }

  .hero {
    padding-block: 36px 48px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .demo {
    padding: 16px;
  }

  .demo-frame {
    min-height: 0;
  }

  .t1-bubble {
    font-size: 19px;
  }

  .t1-canvas svg {
    width: 100%;
    height: auto;
  }

  .t1-mic {
    font-size: 18px;
    padding: 8px 18px;
  }

  .t2-chips {
    padding-inline-start: 0;
  }

  .t3-msg {
    max-width: 100%;
  }

  .section {
    padding-block: 64px;
  }

  .section-flush-top {
    padding-top: 0;
  }

  .studio,
  .step,
  .price {
    padding: 22px;
  }

  .trust,
  .school-offer {
    padding: 24px;
  }

  .cta-band {
    padding: 40px 24px;
  }

  .cta-band .btn {
    width: 100%;
  }

  .cta-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
