/* ==========================================================================
   TEAM FARIAS — Design System
   Paleta extraída do emblema: violeta profundo, lavanda e quase-preto arroxeado.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.de2f1fe81758.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-it-latin.c60fff53d942.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-latin.7660bd9909fb.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-950: #06010d;
  --ink-900: #0a0216;
  --ink-850: #0f0320;
  --ink-800: #140529;
  --ink-700: #1c0836;
  --plum-800: #2b0d4c;
  --plum-700: #3c1268;

  --violet-300: #dcc4ff;
  --violet-400: #bd93ff;
  --violet-500: #a45cff;
  --violet-600: #8b2fe0;
  --violet-700: #6f19be;
  --violet-800: #4d0e8a;

  --text: #f5efff;
  --text-soft: #d6c9ea;
  --muted: #a899c2;
  --faint: #7d6f96;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-3: rgba(255, 255, 255, 0.08);

  --green: #52e0a0;
  --green-soft: rgba(82, 224, 160, 0.12);
  --amber: #ffc45c;
  --amber-soft: rgba(255, 196, 92, 0.12);
  --red: #ff7a90;
  --red-soft: rgba(255, 122, 144, 0.12);
  --blue: #7db8ff;
  --blue-soft: rgba(125, 184, 255, 0.12);

  --grad-brand: linear-gradient(135deg, #b06bff 0%, #8b2fe0 48%, #5c14a8 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(176, 107, 255, 0.22), rgba(92, 20, 168, 0.08));
  --grad-text: linear-gradient(100deg, #ffffff 0%, #e6d4ff 38%, #b884ff 100%);
  --grad-panel: linear-gradient(160deg, rgba(36, 12, 62, 0.9) 0%, rgba(12, 3, 24, 0.92) 60%, rgba(8, 2, 17, 0.96) 100%);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 24px 60px -24px rgba(139, 47, 224, 0.55);

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1200px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(108, 26, 168, 0.32), transparent 62%),
    radial-gradient(900px 520px at -6% 22%, rgba(64, 12, 116, 0.26), transparent 65%),
    radial-gradient(720px 520px at 50% 110%, rgba(139, 47, 224, 0.14), transparent 70%);
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(164, 92, 255, 0.42); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--violet-600);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------- layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
  z-index: 1;
}

.site-main { position: relative; z-index: 1; }

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.section--about { border-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.section-head .btn { flex: none; }

.section-title {
  font-size: clamp(2.05rem, 3.9vw, 3.35rem);
  font-weight: 750;
  font-stretch: 104%;
  margin-top: 14px;
}
.section-lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.section-lead--right { max-width: 36ch; text-align: right; }
.section-head--center .section-lead { max-width: 58ch; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-400);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 0 4px rgba(189, 147, 255, 0.14);
}
.dot--live { background: var(--green); box-shadow: 0 0 0 4px rgba(82, 224, 160, 0.16); }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  --btn-border: transparent;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 28px 70px -22px rgba(164, 92, 255, 0.75); }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-border: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }

.btn--soft {
  --btn-bg: rgba(164, 92, 255, 0.14);
  --btn-fg: var(--violet-300);
  --btn-border: rgba(164, 92, 255, 0.28);
}
.btn--light { --btn-bg: #fff; --btn-fg: #170528; --btn-border: transparent; }
.btn--danger { --btn-bg: var(--red-soft); --btn-fg: var(--red); --btn-border: rgba(255, 122, 144, 0.3); }
.btn--success { --btn-bg: var(--green-soft); --btn-fg: var(--green); --btn-border: rgba(82, 224, 160, 0.28); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.84rem; gap: 8px; }
.btn--sm .icon { width: 15px; height: 15px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); color: #fff; border-color: var(--line-strong); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* --------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--violet { background: rgba(164, 92, 255, 0.16); color: var(--violet-300); border-color: rgba(164, 92, 255, 0.3); }
.badge--outline { border-color: var(--line-strong); color: var(--text-soft); }
.badge--green { background: var(--green-soft); color: var(--green); border-color: rgba(82, 224, 160, 0.26); }
.badge--amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 196, 92, 0.26); }
.badge--red { background: var(--red-soft); color: var(--red); border-color: rgba(255, 122, 144, 0.26); }
.badge--blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(125, 184, 255, 0.26); }
.badge--noticia { background: var(--blue-soft); color: var(--blue); }
.badge--aviso { background: var(--amber-soft); color: var(--amber); }
.badge--evento { background: var(--green-soft); color: var(--green); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, #a45cff, #4d0e8a);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex: none;
}
.avatar--sm { width: 34px; height: 34px; font-size: 0.68rem; }
.avatar--lg { width: 68px; height: 68px; font-size: 1.2rem; }

.avatar--green { background: linear-gradient(140deg, #4be0a4, #127a55); }
.avatar--amber { background: linear-gradient(140deg, #ffcf72, #a35c00); }
.avatar--blue { background: linear-gradient(140deg, #7db8ff, #1d4f9c); }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 1, 14, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: auto; filter: drop-shadow(0 6px 16px rgba(139, 47, 224, 0.45)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 850;
  font-stretch: 110%;
  letter-spacing: 0.02em;
}
.brand__text span { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__toggle { display: none; }

.mobile-nav {
  display: none;
  padding: 8px 28px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 2, 16, 0.98);
  backdrop-filter: blur(20px);
}
.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--text-soft);
}
.mobile-nav__actions { display: grid; gap: 10px; margin-top: 20px; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__orb--a {
  width: 560px; height: 560px;
  top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(150, 74, 255, 0.4), transparent 68%);
}
.hero__orb--b {
  width: 480px; height: 480px;
  bottom: -200px; left: -120px;
  background: radial-gradient(circle, rgba(84, 24, 150, 0.34), transparent 70%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  font-weight: 800;
  font-stretch: 98%;
  line-height: 0.96;
  letter-spacing: -0.038em;
}
.hero__title em {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero__lead {
  margin-top: 24px;
  max-width: 48ch;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--faint);
  font-size: 0.82rem;
}
.hero__tags li { display: inline-flex; align-items: center; gap: 7px; }
.hero__tags .icon { width: 15px; height: 15px; color: var(--violet-400); }

.hero__stats {
  display: flex;
  gap: clamp(20px, 4vw, 46px);
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero__stats dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hero__stats dd {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

/* A montagem flutua sobre o fundo da página, sem moldura ou card. */
.hero__visual { position: relative; min-width: 0; }
.hero__artwork {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  min-width: 176px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 4, 26, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}
.float-card__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 2px;
}
.float-card__label .icon { width: 13px; height: 13px; }
.float-card strong { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.float-card > span:last-child { font-size: 0.76rem; color: var(--muted); }
.float-card--next { top: 7%; left: -6%; animation: chip-float 7s ease-in-out infinite; }
.float-card--rank { bottom: 8%; right: -4%; animation: chip-float 8s ease-in-out 1s infinite; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------- marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.marquee__track .icon { width: 14px; height: 14px; color: var(--violet-600); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- about */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about__signature {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  gap: 20px;
  align-items: center;
}
.about__signature p { font-size: 0.95rem; line-height: 1.6; color: var(--text-soft); font-style: italic; }

.about__court {
  position: relative;
  flex: none;
  width: 128px;
  height: 108px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(164, 92, 255, 0.25);
  background:
    linear-gradient(160deg, rgba(139, 47, 224, 0.18), rgba(139, 47, 224, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px);
  overflow: hidden;
}
.court__net {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px 6px);
}
.court__line { position: absolute; border: 1px solid rgba(255, 255, 255, 0.22); }
.court__line--a { inset: 12px; border-radius: 3px; }
.court__line--b { inset: 30px 12px; border-block: 0; }
.court__ball {
  position: absolute;
  right: 20px; bottom: 18px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 6px 14px rgba(139, 47, 224, 0.6);
}

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 92, 255, 0.34);
  background: linear-gradient(165deg, rgba(164, 92, 255, 0.12), rgba(255, 255, 255, 0.015));
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(164, 92, 255, 0.28);
  background: rgba(164, 92, 255, 0.12);
  color: var(--violet-300);
  margin-bottom: 18px;
}
.pillar h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

/* --------------------------------------------------------------- system */
.system-grid { display: grid; gap: 20px; }

.student-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--grad-panel);
  overflow: hidden;
  position: relative;
}
.student-panel::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -120px; bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 224, 0.28), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.student-panel__copy h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin: 18px 0 10px;
}
.student-panel__copy > p { color: var(--muted); max-width: 42ch; }
.student-panel__copy .badge { background: rgba(164, 92, 255, 0.16); }

.feature-list { margin-top: 30px; display: grid; gap: 4px; }
.feature-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.feature-list li:first-child { border-top: 0; }
.feature-list li > span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet-500);
  padding-top: 3px;
}
.feature-list strong { display: block; font-size: 0.94rem; font-weight: 700; }
.feature-list p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; margin-top: 2px; }

.student-panel__device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.device-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 3, 20, 0.7);
  max-width: 280px;
}
.device-note .icon { color: var(--violet-400); }
.device-note p { font-size: 0.75rem; line-height: 1.45; color: var(--muted); }
.device-note strong { color: var(--text); }

/* phone mockup */
.phone { width: min(268px, 78vw); filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.6)); }
.phone__frame {
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2a1244, #0e0419 55%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.phone__screen {
  border-radius: 34px;
  background: radial-gradient(120% 70% at 50% 0%, #1c0836 0%, #080111 60%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 12px 8px;
  overflow: hidden;
  position: relative;
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-soft);
  padding: 2px 8px 8px;
}
.phone__dots { display: flex; gap: 3px; }
.phone__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-soft); opacity: 0.7; }

.mini-top { display: flex; align-items: center; gap: 9px; padding: 4px 2px 12px; }
.mini-top div { display: flex; flex-direction: column; line-height: 1.25; }
.mini-top small { font-size: 0.56rem; color: var(--faint); }
.mini-top strong { font-size: 0.76rem; }
.mini-bell { position: relative; margin-left: auto; color: var(--text-soft); }
.mini-bell .icon { width: 15px; height: 15px; }
.mini-bell i { position: absolute; top: 0; right: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-500); }

.mini-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(164, 92, 255, 0.95), rgba(111, 25, 190, 0.72));
  box-shadow: 0 14px 30px -14px rgba(139, 47, 224, 0.8);
  margin-bottom: 10px;
}
.mini-tag { font-size: 0.48rem; letter-spacing: 0.16em; font-weight: 800; opacity: 0.85; }
.mini-hero strong { font-family: var(--font-display); font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em; }
.mini-hero > span:not(.mini-tag) { font-size: 0.58rem; opacity: 0.88; }
.mini-avatars { display: flex; margin-top: 8px; }
.mini-avatars i {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #4d0e8a;
  font-style: normal;
  font-size: 0.44rem;
  font-weight: 800;
  border: 1.5px solid rgba(90, 20, 160, 0.8);
  margin-left: -5px;
}
.mini-avatars i:first-child { margin-left: 0; }
.mini-avatars i:last-child { background: rgba(0, 0, 0, 0.35); color: #fff; }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.mini-stats div {
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}
.mini-stats span { font-size: 0.52rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.mini-stats strong { font-family: var(--font-display); font-size: 0.98rem; font-weight: 750; }

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 7px;
}
.mini-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(164, 92, 255, 0.16); color: var(--violet-300); }
.mini-icon .icon { width: 12px; height: 12px; }
.mini-row div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mini-row strong { font-size: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row small { font-size: 0.52rem; color: var(--faint); }
.mini-badge { margin-left: auto; font-size: 0.42rem; font-weight: 800; letter-spacing: 0.06em; color: var(--amber); background: rgba(255, 196, 92, 0.14); padding: 3px 5px; border-radius: 5px; white-space: nowrap; }
.mini-dot-mini { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-400); }

.mini-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 10px 4px 4px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--faint);
}
.mini-tabbar .icon { width: 15px; height: 15px; }
.mini-tabbar .is-active { color: var(--violet-400); }

.team-panel {
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.team-panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.team-panel__head h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin-top: 14px; }
.team-panel__head > p { max-width: 36ch; font-size: 0.9rem; color: var(--muted); text-align: right; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.team-card {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 2, 17, 0.5);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.team-card:hover { border-color: rgba(164, 92, 255, 0.32); background: rgba(164, 92, 255, 0.07); transform: translateY(-3px); }
.team-card__num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet-500);
}
.team-card h4 { font-size: 0.98rem; margin: 10px 0 6px; }
.team-card p { font-size: 0.82rem; line-height: 1.55; color: var(--muted); }

/* --------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 34px 26px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step:last-child { border-right: 0; }
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--grad-brand);
  transition: width 0.5s var(--ease);
}
.step:hover::before { width: 100%; }
.step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  font-stretch: 105%;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(189, 147, 255, 0.55);
  letter-spacing: -0.03em;
}
.step__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step__body p { font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.step__icon {
  position: absolute;
  top: 30px; right: 24px;
  color: rgba(164, 92, 255, 0.35);
}
.step__icon .icon { width: 22px; height: 22px; }

/* --------------------------------------------------------------- groups */
.groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.group-card:hover {
  transform: translateY(-5px);
  border-color: rgba(164, 92, 255, 0.34);
  box-shadow: var(--shadow-md);
}
.group-card__head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.group-card h3 { font-size: 1.25rem; }
.group-card__desc { font-size: 0.87rem; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.group-card__meta { display: grid; gap: 9px; margin: 20px 0 22px; }
.group-card__meta li { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--text-soft); }
.group-card__meta .icon { width: 15px; height: 15px; color: var(--violet-500); }
.group-card__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spots { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spots > span:first-child { font-size: 0.76rem; color: var(--muted); }
.spots strong { color: var(--text); }
.meter { display: block; width: 96px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--grad-brand); border-radius: inherit; }

.plans { margin-top: clamp(48px, 6vw, 72px); }
.plans__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.plans__head h3 { font-size: 1.4rem; }
.plans__head p { font-size: 0.86rem; color: var(--muted); }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.plan-card--featured {
  border-color: rgba(164, 92, 255, 0.45);
  background: linear-gradient(170deg, rgba(164, 92, 255, 0.16), rgba(255, 255, 255, 0.015));
  box-shadow: 0 26px 60px -34px rgba(139, 47, 224, 0.8);
}
.plan-card__flag {
  position: absolute;
  top: -11px; left: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-card h4 { font-size: 1rem; color: var(--text-soft); }
.plan-card__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 4px;
}
.plan-card__price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-right: 2px; }
.plan-card__price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--faint); }
.plan-card__sessions { font-size: 0.78rem; color: var(--violet-300); font-weight: 600; }
.plan-card__desc { font-size: 0.82rem; line-height: 1.55; color: var(--muted); min-height: 2.6em; }
.plan-card .btn { margin-top: 14px; }

/* --------------------------------------------------------------- news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.028);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(164, 92, 255, 0.34); background: rgba(164, 92, 255, 0.06); }
.news-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card__top time { font-size: 0.74rem; color: var(--faint); }
.news-card h3 { font-size: 1.1rem; line-height: 1.25; }
.news-card p { font-size: 0.86rem; line-height: 1.6; color: var(--muted); }
.news-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--violet-300);
}
.news-card__more .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.news-card:hover .news-card__more .icon { transform: translate(2px, -2px); }

/* --------------------------------------------------------------- cta */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(164, 92, 255, 0.3);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(164, 92, 255, 0.3), transparent 55%),
    linear-gradient(130deg, #1d0733 0%, #0c0218 70%);
  overflow: hidden;
}
.cta-panel__glow {
  position: absolute;
  right: -80px; top: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 92, 255, 0.4), transparent 65%);
  filter: blur(40px);
}
.cta-panel h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 14px 0 16px; }
.cta-panel h2 em { font-style: italic; color: var(--violet-300); }
.cta-panel__copy > p { max-width: 44ch; color: var(--muted); font-size: 0.98rem; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-panel__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 32px;
}
.cta-panel__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}
.cta-panel__list li:last-child { border-bottom: 0; }
.cta-panel__list .icon { width: 16px; height: 16px; color: var(--violet-300); }

/* --------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 5, 34, 0.6), rgba(6, 1, 13, 1));
}
.footer__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(48px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}
.footer__cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-top: 12px; }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: clamp(40px, 5vw, 64px);
}
.footer__brand p { margin: 16px 0 20px; max-width: 34ch; font-size: 0.86rem; line-height: 1.6; color: var(--muted); }
.brand--footer .brand__logo { width: 118px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer__social a:hover { background: rgba(164, 92, 255, 0.16); border-color: rgba(164, 92, 255, 0.4); color: #fff; }
.footer__social .icon { width: 17px; height: 17px; }

.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 4px;
}
.footer__col a, .footer__muted { font-size: 0.86rem; color: var(--muted); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__muted { max-width: 24ch; line-height: 1.5; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--faint);
}

/* --------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.field .help { font-size: 0.76rem; color: var(--faint); }
.field .error { font-size: 0.78rem; color: var(--red); display: flex; gap: 6px; align-items: flex-start; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  background: rgba(164, 92, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(164, 92, 255, 0.18);
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a899c2' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select option { background: #140529; color: var(--text); }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-soft);
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--violet-600); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section { padding-top: 22px; margin-top: 6px; border-top: 1px solid var(--line); }
.form-section__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-400); font-weight: 700; margin-bottom: 16px;
}
.form-errors {
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 144, 0.32);
  background: var(--red-soft);
  border-radius: var(--radius-xs);
  color: #ffc3ce;
  font-size: 0.84rem;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------- utilities */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 0.9rem;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.hide-sm { display: initial; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- toasts */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--violet-500);
  border-radius: var(--radius-sm);
  background: rgba(16, 5, 30, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.35s var(--ease);
}
.toast__icon { color: var(--violet-400); margin-top: 1px; }
.toast p { font-size: 0.86rem; line-height: 1.45; color: var(--text-soft); flex: 1; }
.toast__close { color: var(--faint); padding: 2px; }
.toast__close:hover { color: #fff; }
.toast--success { border-left-color: var(--green); }
.toast--success .toast__icon { color: var(--green); }
.toast--error { border-left-color: var(--red); }
.toast--error .toast__icon { color: var(--red); }
.toast--warning { border-left-color: var(--amber); }
.toast--warning .toast__icon { color: var(--amber); }
.toast.is-hiding { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* --------------------------------------------------------------- reveal */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__toggle { display: inline-grid; }
  .mobile-nav.is-open { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
  .float-card--next { left: 3%; }
  .float-card--rank { right: 2%; }
  .about { grid-template-columns: 1fr; }
  .student-panel { grid-template-columns: 1fr; }
  .student-panel__device { order: -1; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .groups-grid, .news-grid, .plans__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel__list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}

@media (max-width: 720px) {
  .shell { padding-inline: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-lead--right { text-align: left; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: clamp(2.3rem, 9.5vw, 3rem); }
  .hero__stats { gap: 20px; }
  .hero__stats dt { font-size: 0.62rem; letter-spacing: 0.1em; }
  .brand__text { display: none; }
  .float-card { min-width: 150px; padding: 11px 13px; }
  .float-card strong { font-size: 0.8rem; }
  .float-card > span:last-child { font-size: 0.68rem; }
  .float-card--next { top: 4%; left: -2%; }
  .float-card--rank { bottom: 3%; right: -2%; }
  .team-panel__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .team-panel__head > p { text-align: left; }
  .team-grid { grid-template-columns: 1fr; }
  .groups-grid, .news-grid, .plans__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-right: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .step__icon { top: 24px; }
  .pillars { grid-template-columns: 1fr; }
  .about__signature { flex-direction: column; align-items: flex-start; }
  .footer__cta { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .hide-sm { display: none; }
  .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .about__court { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Páginas internas do site (matrícula, notícias, login, erros)
   ========================================================================== */

.page-head {
  position: relative;
  padding-block: clamp(48px, 6vw, 78px) clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(139, 47, 224, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(20, 5, 40, 0.5), transparent);
  overflow: hidden;
}
.page-head__title {
  margin-top: 16px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.03em;
  line-height: 1;
}
.page-head__lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: #fff; gap: 9px; }
.back-link .icon { width: 15px; height: 15px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------- matrícula */
.section--form { border-top: 0; padding-top: clamp(32px, 4vw, 48px); }
.enroll {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.form-panel { padding: clamp(24px, 3vw, 38px); }
.form-section { border: 0; padding: 0; margin: 0; }
.form-section + .form-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section--first { margin-top: 0; }
.form-section__title {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-300);
}
.form-section__title .icon { width: 16px; height: 16px; }
.form-section__hint { font-size: 0.83rem; color: var(--faint); margin: -8px 0 16px; max-width: 60ch; }
.req { color: var(--violet-400); margin-left: 3px; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: rgba(255, 122, 144, 0.6); }
.checkbox--terms {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  align-items: flex-start;
}
.checkbox--terms input { margin-top: 2px; }
.checkbox--terms span { font-size: 0.86rem; line-height: 1.5; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.form-actions__note { font-size: 0.78rem; color: var(--faint); max-width: 34ch; line-height: 1.5; }

.enroll-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.enroll-aside__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}
.enroll-aside__card h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-300);
  margin-bottom: 16px;
}
.enroll-aside__card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.enroll-aside__card--help { background: linear-gradient(165deg, rgba(164, 92, 255, 0.12), rgba(255, 255, 255, 0.02)); border-color: rgba(164, 92, 255, 0.24); }

.mini-steps { display: grid; gap: 4px; }
.mini-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-steps li:first-child { border-top: 0; padding-top: 0; }
.mini-steps li > span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--violet-500);
  padding-top: 2px;
}
.mini-steps strong { display: block; font-size: 0.86rem; }
.mini-steps p { font-size: 0.78rem; color: var(--faint); margin: 2px 0 0; line-height: 1.5; }

.aside-plans { display: grid; gap: 2px; }
.aside-plans li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.aside-plans li:first-child { border-top: 0; }
.aside-plans div { display: flex; flex-direction: column; }
.aside-plans strong { font-size: 0.85rem; }
.aside-plans span { font-size: 0.72rem; color: var(--faint); }
.aside-plans__price { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--violet-300); }

/* --------------------------------------------------------------- sucesso */
.section.success-page { border-top: 0; min-height: 60vh; display: grid; place-items: center; }
.success-page__inner { display: grid; place-items: center; }
.success-card {
  max-width: 660px;
  width: 100%;
  text-align: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(164, 92, 255, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(139, 47, 224, 0.24), transparent 70%),
    rgba(12, 3, 24, 0.75);
}
.success-card__icon {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, #52e0a0, #16805a);
  color: #04110b;
  box-shadow: 0 18px 40px -16px rgba(82, 224, 160, 0.7);
}
.success-card__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.success-card h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 10px; }
.success-card__lead { margin: 14px auto 0; max-width: 46ch; color: var(--muted); font-size: 0.98rem; }
.success-card__lead strong { color: var(--text); }
.success-card__steps {
  margin: 30px 0;
  display: grid;
  gap: 2px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.success-card__steps div { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.success-card__steps span { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--violet-400); padding-top: 3px; }
.success-card__steps p { font-size: 0.86rem; color: var(--muted); }
.success-card__steps strong { color: var(--text); }
.success-card__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- listas / chips */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.chip.is-active { background: var(--violet-600); border-color: transparent; color: #fff; }
.news-grid--wide { grid-template-columns: repeat(3, 1fr); }

/* --------------------------------------------------------------- artigo */
.article { padding-block: clamp(40px, 6vw, 72px) 0; }
.article__shell { max-width: 860px; }
.article__head { margin-top: 8px; }
.article__meta { display: flex; align-items: center; gap: 14px; }
.article__meta time { font-size: 0.8rem; color: var(--faint); }
.article__head h1 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.03;
}
.article__summary {
  margin-top: 20px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--violet-300);
}
.article__body { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.article__footer div { display: flex; flex-direction: column; }
.article__footer strong { font-size: 0.9rem; }
.article__footer span { font-size: 0.78rem; color: var(--faint); }

.prose { max-width: 72ch; color: var(--text-soft); font-size: 1rem; line-height: 1.78; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; color: var(--text); }
.prose h3 { font-size: 1.12rem; margin: 26px 0 10px; color: var(--text); }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--violet-500);
  transform: rotate(45deg);
}
.prose a { color: var(--violet-300); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose--narrow { max-width: 68ch; margin-inline: auto; }
.prose--narrow > h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------- auth */
.auth-body::before { background: radial-gradient(1000px 700px at 20% 20%, rgba(108, 26, 168, 0.34), transparent 60%); }
.auth-body .site-header, .auth-body .site-footer { display: none; }
.auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth__art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(139, 47, 224, 0.3), transparent 65%),
    linear-gradient(165deg, #150428, #06010d 80%);
  overflow: hidden;
}
.auth__art-glow {
  position: absolute;
  width: 560px; height: 560px;
  right: -220px; bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 92, 255, 0.34), transparent 65%);
  filter: blur(30px);
}
.auth__art-copy { position: relative; max-width: 30ch; }
.auth__art-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 800;
  font-stretch: 98%;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.auth__art-copy h1 em { font-style: italic; color: var(--violet-300); }
.auth__art-copy p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
.auth__art-list { position: relative; display: grid; gap: 12px; }
.auth__art-list li { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-soft); }
.auth__art-list .icon { width: 17px; height: 17px; color: var(--violet-400); }

.auth__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px 24px; }
.auth__card { width: 100%; max-width: 420px; }
.auth__card h2 { font-size: 1.85rem; margin: 10px 0 6px; }
.auth__hint { font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.auth__form { display: grid; gap: 16px; }
.auth__form .btn { margin-top: 6px; }
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--faint);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__help { margin-top: 22px; text-align: center; font-size: 0.78rem; color: var(--faint); }
.auth__help a { color: var(--violet-300); font-weight: 600; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--faint); }
.auth__back:hover { color: #fff; }

/* --------------------------------------------------------------- erros */
.error-page { min-height: 62vh; display: grid; place-items: center; border-top: 0; }
.error-page__inner { max-width: 620px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.error-page__logo { width: 168px; margin-bottom: 26px; opacity: 0.9; }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(189, 147, 255, 0.45);
  margin-bottom: 10px;
}
.error-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 10px; }
.error-page__lead { margin-top: 16px; max-width: 46ch; color: var(--muted); font-size: 0.98rem; }
.error-page__actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 1080px) {
  .enroll { grid-template-columns: 1fr; }
  .enroll-aside { position: static; grid-template-columns: 1fr 1fr; }
  .news-grid--wide { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; gap: 32px; }
  .auth__art-copy h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .auth__art-list { display: none; }
  .auth__panel { padding-block: 40px 56px; }
}
@media (max-width: 720px) {
  .news-grid--wide { grid-template-columns: 1fr; }
  .enroll-aside { grid-template-columns: 1fr; }
  .page-head__title br { display: none; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}

/* ==========================================================================
   Refinamentos após revisão visual
   ========================================================================== */

.kv { align-content: start; }
.grid-2, .grid-3 { align-items: start; }
.back-link { display: flex; width: max-content; }

.segmented button {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.segmented button:hover { color: #fff; }
.segmented button.is-active { background: var(--violet-600); color: #fff; }

.filter-bar .select { width: auto; min-width: 172px; }
.filter-bar .search-field { flex: 1 1 220px; }

.auth__art-copy { max-width: 26rem; }
.auth__art-copy h1 { font-size: clamp(2.2rem, 3.9vw, 3.35rem); }

.about .section-title { font-size: clamp(1.9rem, 3.1vw, 2.7rem); }

.bars { justify-content: space-between; }
.bar { max-width: 86px; }

@media (max-width: 720px) {
  .filter-bar .select { width: 100%; }
  .filter-bar .search-field { flex: 1 1 100%; }
}

/* ==========================================================================
   Ajustes mobile do site
   ========================================================================== */
[hidden] { display: none !important; }

@media (max-width: 720px) {
  .section { padding-block: clamp(52px, 12vw, 72px); }
  .hero__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .float-card {
    position: static;
    min-width: 0;
    padding: 11px 12px;
    animation: none;
  }
  .float-card--next { animation: none; }
  .float-card--rank { animation: none; }
  .pillar { padding: 22px 20px; }
  .group-card { padding: 22px 20px 18px; }
  .plan-card__price { white-space: nowrap; }
  .footer__cta-actions .btn { width: 100%; }
}

.footer__install {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.86rem;
  color: var(--violet-300);
  text-align: left;
  transition: color 0.2s;
}
.footer__install:hover { color: #fff; }
.footer__install .icon { width: 14px; height: 14px; }

/* Mobile: mensagem primeiro, montagem fotográfica em seguida */
@media (max-width: 1080px) {
  .hero__visual { order: 0; }
}
@media (max-width: 720px) {
  .hero__inner { gap: 28px; }
  .hero__artwork { width: calc(100% + 24px); max-width: none; margin-inline: -12px; }
  .hero__visual { gap: 10px; }
}

@media (max-width: 720px) {
  .hero__actions .btn { width: 100%; }
  .hero__actions { gap: 10px; }
}

/* ==========================================================================
   PWA / instalação — 2026
   ========================================================================== */
.install-banner {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(164, 92, 255, 0.3);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(164, 92, 255, 0.16), rgba(255, 255, 255, 0.02));
}
.install-banner__icon { border-radius: 12px; flex: none; }
.install-banner__copy { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.install-banner__copy strong { font-size: 0.86rem; }
.install-banner__copy span { font-size: 0.73rem; color: var(--muted); }
.install-banner .btn { margin-left: auto; flex: none; }

.install-dialog { width: min(440px, calc(100vw - 24px)); }
.install-dialog__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}
.install-dialog__brand img { border-radius: 12px; }
.install-dialog__brand div { display: flex; flex-direction: column; line-height: 1.3; }
.install-dialog__brand strong { font-size: 0.92rem; }
.install-dialog__brand span { font-size: 0.72rem; color: var(--faint); }
.install-dialog__lead { font-size: 0.86rem; color: var(--text-soft); line-height: 1.5; }
.install-steps { display: flex; flex-direction: column; }
.install-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.install-steps li:first-child { border-top: 0; }
.install-steps li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(164, 92, 255, 0.18);
  color: var(--violet-300);
  font-size: 0.7rem;
  font-weight: 800;
}
.install-steps p { font-size: 0.83rem; line-height: 1.5; color: var(--muted); }
.install-steps strong { color: #fff; }
.install-steps .icon { width: 13px; height: 13px; vertical-align: -2px; }
.install-dialog__hint {
  font-size: 0.74rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 196, 92, 0.08);
  border: 1px solid rgba(255, 196, 92, 0.22);
  color: var(--amber);
}
.install-dialog__copy { margin-top: 2px; }

/* Esconde os convites quando já está instalado / aberto como app */
@media (display-mode: standalone) {
  .install-cta { display: none !important; }
}
html.is-standalone .install-cta { display: none !important; }

/* Área segura do iPhone quando aberto pela tela inicial */
@media (display-mode: standalone) {
  .site-header__inner {
    height: calc(var(--header-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  .auth { padding-top: env(safe-area-inset-top); }
  .app-content { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Celular: nada de zoom automático do iOS nos campos */
@media (max-width: 720px) {
  input,
  select,
  textarea,
  .input,
  .select,
  .textarea,
  .input--sm,
  .select--sm { font-size: 16px !important; }
  .install-banner { display: flex; flex-wrap: wrap; }
  .install-banner .btn { width: 100%; margin-left: 0; }
  .btn--sm { padding: 10px 16px; }
  .icon-btn { width: 44px; height: 44px; }
  .seg span { padding: 9px 11px; }
  .pagination a, .pagination span { min-height: 40px; }
  .auth { min-height: 100dvh; }
  .app-shell { min-height: 100dvh; }
}

/* Diálogo de instalação: centralizado e com rolagem segura */
dialog {
  margin: auto;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
@media (max-width: 720px) {
  dialog { width: calc(100vw - 20px); }
  .install-dialog { border-radius: 20px; }
}

/* ==========================================================================
   Diálogos (compartilhado entre site e sistema)
   ========================================================================== */
dialog {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #10041f;
  color: var(--text);
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(4, 1, 10, 0.72); backdrop-filter: blur(6px); }
.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog__head h2 { font-size: 1rem; }
.dialog__body { padding: 18px; display: grid; gap: 14px; }
.dialog__foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.dialog__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}
.dialog__summary strong { font-family: var(--font-display); font-size: 1.1rem; }

@media (max-width: 720px) {
  .install-banner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 14px;
  }
  .install-banner__copy { grid-column: 2; }
  .install-banner .btn { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; }
}

/* Login no celular: marca compacta e formulário acima da dobra */
@media (max-width: 1080px) {
  .auth__art { padding: 20px 22px 24px; gap: 18px; }
  .auth__art-copy h1 { font-size: clamp(1.5rem, 5.4vw, 2rem); margin: 10px 0 0; }
  .auth__art-copy p { margin-top: 8px; font-size: 0.86rem; }
  .auth__panel { padding: 26px 20px 44px; }
}
@media (max-width: 720px) {
  .auth__art { padding: 16px 20px 20px; gap: 12px; }
  .auth__art-copy .eyebrow { font-size: 0.62rem; }
  .auth__art-copy h1 { font-size: 1.42rem; line-height: 1.12; letter-spacing: -0.03em; }
  .auth__art-copy h1 br { display: none; }
  .auth__art-copy p { display: none; }
  .auth__panel { padding: 22px 20px 40px; gap: 14px; }
  .auth__card h2 { font-size: 1.55rem; }
  .auth__hint { margin-bottom: 18px; }
  .auth__back { margin-top: 4px; }
}

@media (max-width: 1080px) {
  .auth__art { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .auth__art { justify-content: flex-start; gap: 10px; padding-bottom: 18px; }
  .auth__art-copy h1 { margin-top: 12px; }
}

.install-steps .icon { display: inline-block; vertical-align: -2px; }

.install-dialog__later {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s;
}
.install-dialog__later:hover { color: #fff; }

/* ==========================================================================
   HTMX: carregamento, transições e estados
   ========================================================================== */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.page-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #8b2fe0, #bd93ff, #8b2fe0);
  box-shadow: 0 0 18px rgba(189, 147, 255, 0.8);
}
html.is-loading .page-progress { opacity: 1; }
html.is-loading .page-progress span { animation: progress-run 1.4s var(--ease) infinite; }
@keyframes progress-run {
  0% { transform: scaleX(0); opacity: 1; }
  60% { transform: scaleX(0.72); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.2; }
}
html.is-loading { cursor: progress; }
html.is-loading .app-content,
html.is-loading .site-main { opacity: 0.72; transition: opacity 0.2s; }

/* Transições de página (View Transitions API) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tf-fade-out 0.18s var(--ease); }
::view-transition-new(root) { animation: tf-fade-in 0.26s var(--ease); }
@keyframes tf-fade-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes tf-fade-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.plan-single { max-width: 760px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); }
.plan-single .section-lead { margin-block: 18px; }
.plan-single .btn { white-space: normal; text-align: center; }

/* Identidade de quadra: ilustrações leves e transições, sem bloquear conteúdo. */
.beach-home { --sand: #e9c88e; overflow: clip; }
.beach-interlude { display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 32px; padding-block: 48px 12px; }
.beach-interlude .eyebrow { color: var(--sand); }
.beach-interlude__title { margin-top: 14px; font: 800 clamp(2.2rem, 4.6vw, 4rem)/.98 var(--font-display); letter-spacing: -.045em; }
.beach-interlude__title em { font-style: italic; color: var(--violet-300); }
.beach-interlude__flight { position: relative; display: grid; place-items: center; min-height: 240px; }
.beach-interlude__flight img { width: 174px; height: auto; transform: rotate(-21deg); filter: drop-shadow(0 20px 24px #0006); }
.ball-orbit { position: absolute; width: 300px; height: 100px; border: 1px dashed #e9c88e60; border-radius: 50%; transform: rotate(-30deg); }
.ball-orbit::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); top: 9px; left: 43px; box-shadow: 0 0 16px #e9c88e70; }
.beach-interlude__stamp { position: absolute; bottom: 0; font-size: .64rem; color: var(--sand); letter-spacing: .2em; text-transform: uppercase; }
.court-study { margin: 24px -16px 0; }
.court-study img { display: block; width: 100%; max-width: 470px; height: auto; }
.court-study figcaption { margin: 4px 16px 0; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.beach-home .section--steps { position: relative; isolation: isolate; overflow: clip; }
.beach-home .section--steps::before { content: ''; position: absolute; z-index: -1; top: 8%; right: -100px; width: 360px; height: 220px; transform: rotate(-14deg); background-image: linear-gradient(#bd93ff16 1px, transparent 1px), linear-gradient(90deg, #bd93ff16 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse, #000, transparent 70%); pointer-events: none; }
.rally-divider { position: relative; overflow: hidden; border-block: 1px solid #e9c88e16; background: linear-gradient(105deg, #e9c88e05, #a45cff0a, transparent); }
.rally-divider__inner { position: relative; height: 200px; }
.rally-divider__word { position: absolute; left: 18%; top: 14px; font: 900 clamp(6rem, 13vw, 12rem)/1 var(--font-display); font-style: italic; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px #dcc4ff1f; }
.rally-divider__path { position: absolute; inset: 22px 0; width: 100%; height: 150px; color: #e9c88e6b; }
.rally-divider__inner > img { position: absolute; width: 126px; height: auto; right: 13%; top: 45px; transform: rotate(22deg); filter: drop-shadow(0 16px 20px #0007); }
.rally-divider__label { position: absolute; font-size: .63rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.rally-divider__label--one { left: 5%; top: 44px; }
.rally-divider__label--two { left: 43%; bottom: 30px; }
.rally-divider__label--three { right: 2%; top: 29px; }
.beach-home #plano { position: relative; isolation: isolate; }
.beach-home #plano::before { content: ''; position: absolute; z-index: -1; inset: 30px 0; background-image: radial-gradient(circle, #e9c88e35 .8px, transparent 1px); background-size: 23px 19px; mask-image: radial-gradient(ellipse 62% 55% at 50% 50%, transparent 55%, #000 75%, transparent); pointer-events: none; }
.beach-home .section--cta { position: relative; }
.beach-home .section--cta::before { content: ''; position: absolute; top: -28px; left: -5%; width: 110%; height: 65px; border-top: 1px solid #e9c88e35; border-radius: 50%; transform: rotate(-2deg); pointer-events: none; }

/* Convite persistente e discreto, com estado real ou confirmação manual distinta. */
.install-status { display: flex; align-items: center; gap: 12px; width: min(calc(100% - 40px), 1144px); margin: 16px auto 0; padding: 12px 16px; border: 1px solid #bd93ff25; border-radius: 16px; background: #bd93ff08; }
.install-status__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: var(--violet-300); }
.install-status__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-status__copy strong { font-size: .8rem; line-height: 1.3; }
.install-status__copy > span { color: var(--muted); font-size: .72rem; }
.install-status > .btn { flex: none; }
.app-content > .install-status { width: 100%; margin: 0 0 24px; }
.install-status + .hero { padding-top: clamp(32px, 5vw, 64px); }
.install-dialog [data-install-remember] { margin-top: 12px; }
.install-dialog [data-install-reset] { display: block; margin: 8px auto; }
@media (max-width: 720px) {
  .beach-interlude { grid-template-columns: 1fr 110px; gap: 8px; padding-block: 32px 6px; }
  .beach-interlude__title { font-size: clamp(1.6rem, 6.2vw, 2.6rem); }
  .beach-interlude .eyebrow { font-size: .55rem; letter-spacing: .12em; }
  .beach-interlude__flight { min-height: 170px; }
  .beach-interlude__flight img { width: 100px; }
  .ball-orbit { width: 150px; height: 62px; }
  .beach-interlude__stamp { font-size: .48rem; letter-spacing: .12em; bottom: 7px; }
  .court-study { max-width: 430px; margin: 12px auto 0; }
  .court-study figcaption { font-size: .58rem; text-align: center; }
  .rally-divider__inner { height: 156px; }
  .rally-divider__word { left: 10%; top: 28px; font-size: 6.3rem; }
  .rally-divider__inner > img { width: 82px; right: 16%; top: 48px; }
  .rally-divider__label { font-size: .49rem; letter-spacing: .06em; }
  .rally-divider__label--one { top: 28px; }
  .rally-divider__label--two { bottom: 15px; left: 25%; }
  .rally-divider__label--three { top: 18px; }
  .rally-divider__path { top: 15px; height: 115px; }
}
@media (max-width: 480px) {
  .install-status { width: calc(100% - 24px); gap: 10px; padding: 10px 12px; border-radius: 12px; }
  .install-status__icon, .install-status__copy > span { display: none; }
  .install-status__copy strong { font-size: .7rem; }
  .install-status > .btn { padding: 9px 11px; font-size: .68rem; }
}
