/* =========================================================
   Komo — design system
   ========================================================= */

:root {
  /* Brand gradient */
  --g1: #7c3aed;
  --g2: #ec4899;
  --g3: #f59e0b;
  --brand-green: #8ee85f;
  --brand-green-2: #31c56f;
  --brand-green-3: #0f8f5a;
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --grad-soft: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.12),
    rgba(236, 72, 153, 0.12) 55%,
    rgba(245, 158, 11, 0.12)
  );

  /* Light theme */
  --bg: #fbf8f2;
  --bg-soft: #f4efe4;
  --surface: #ffffff;
  --surface-2: #fffdf8;
  --ink: #0f1020;
  --ink-2: #2a2a3a;
  --muted: #6b6b7c;
  --line: rgba(15, 16, 32, 0.08);
  --line-2: rgba(15, 16, 32, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 16, 32, 0.05),
    0 2px 6px rgba(15, 16, 32, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 16, 32, 0.06),
    0 2px 6px rgba(15, 16, 32, 0.04);
  --shadow-lg: 0 30px 80px -20px rgba(15, 16, 32, 0.22),
    0 10px 30px -10px rgba(124, 58, 237, 0.18);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type */
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  --container: 1180px;
  --container-narrow: 820px;
}

[data-theme="dark"] {
  --bg: #0b0b14;
  --bg-soft: #12121f;
  --surface: #15162a;
  --surface-2: #191a30;
  --ink: #f4f2ff;
  --ink-2: #dcd9ef;
  --muted: #9a97b5;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 10px 40px -10px rgba(124, 58, 237, 0.35);
  --grad-soft: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.22),
    rgba(236, 72, 153, 0.18) 55%,
    rgba(245, 158, 11, 0.16)
  );
}

/* =========================================================
   Base
   ========================================================= */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* =========================================================
   Ambient orbs background
   ========================================================= */

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

[data-theme="dark"] .orb {
  opacity: 0.45;
}

.orb-a {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #7c3aed, transparent 60%);
}

.orb-b {
  width: 460px;
  height: 460px;
  top: 180px;
  right: -140px;
  background: radial-gradient(circle, #ec4899, transparent 60%);
}

.orb-c {
  width: 420px;
  height: 420px;
  top: 620px;
  left: 40%;
  background: radial-gradient(circle, #f59e0b, transparent 60%);
  opacity: 0.35;
}

/* =========================================================
   Shared primitives
   ========================================================= */

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
}

.pill--ghost {
  background: var(--grad-soft);
  border-color: transparent;
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g2);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.18);
}

.pill--tiny {
  font-size: 11px;
  padding: 3px 9px;
}

.pill--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 20px -10px color-mix(in oklab, var(--g1) 70%, transparent),
    0 2px 0 rgba(255, 255, 255, 0.1) inset;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--g1) 76%, transparent);
}

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

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

.btn--sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn--lg {
  padding: 14px 22px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--line-2);
}

.icon-sun {
  display: none;
}

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

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

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.nav__links {
  display: flex;
  gap: 6px;
  margin-inline: auto;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__links a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: none;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  gap: 6px;
}

.nav__mobile a {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink-2);
}

.nav__mobile a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding-top: 72px;
  padding-bottom: 48px;
  position: relative;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 20px 0 22px;
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 32px;
}

.hero__cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__points {
  display: inline-flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 20px 0 56px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Channel chips */
.channels {
  margin-bottom: 52px;
  width: 100%;
}

.channels__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.channels__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

/* Hero mock */
.hero__mock {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1500px;
}

.mock {
  width: 100%;
  max-width: 1100px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateX(2deg);
  transition: transform 0.6s ease;
}

.mock:hover {
  transform: rotateX(0);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.mock__bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-2);
}

.mock__bar span:nth-child(1) {
  background: #ff5f57;
}
.mock__bar span:nth-child(2) {
  background: #febc2e;
}
.mock__bar span:nth-child(3) {
  background: #28c840;
}

.mock__url {
  margin-left: 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--muted);
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.mock__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}

.mock__side {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  background: var(--surface-2);
}

.mock__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  font-family: var(--font-display);
  font-size: 18px;
}

.mock__logo {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--grad);
  display: inline-block;
}

.mock__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock__nav span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: var(--ink-2);
}

.mock__nav span em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}

.mock__nav span.is-active {
  background: var(--grad-soft);
  color: var(--ink);
  font-weight: 600;
}

.mock__main {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.mock__row--stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__k {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.stat__v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat__trend {
  font-size: 11px;
  color: var(--muted);
}

.stat__trend.up {
  color: #16a34a;
}

.mock__row--split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.chart {
  width: 100%;
  height: 120px;
}

.inbox {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inbox li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
}

.inbox b {
  font-size: 13px;
}

.inbox p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-block;
  position: relative;
}

.av--ig {
  background: linear-gradient(135deg, #feda75, #fa7e1e 40%, #d62976 60%, #962fbf 80%, #4f5bd5);
}
.av--wa {
  background: #25d366;
}
.av--tt {
  background: #0f0f14;
}
.av--mia {
  background: linear-gradient(135deg, #f472b6, #fb923c);
}
.av--dan {
  background: linear-gradient(135deg, #60a5fa, #34d399);
}
.av--rae {
  background: linear-gradient(135deg, #a78bfa, #f59e0b);
}

.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.03em;
}

.tag--hot {
  background: rgba(236, 72, 153, 0.15);
  color: #be185d;
}
.tag--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}
.tag--new {
  background: rgba(124, 58, 237, 0.15);
  color: #6d28d9;
}

[data-theme="dark"] .tag--hot { color: #f9a8d4; }
[data-theme="dark"] .tag--ok { color: #86efac; }
[data-theme="dark"] .tag--new { color: #c4b5fd; }

/* Flow */
.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.flow__node {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.flow__node--trigger {
  background: var(--grad-soft);
  border-color: transparent;
  font-weight: 600;
}

.flow__node--win {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.flow__arrow {
  width: 24px;
  height: 2px;
  background: var(--line-2);
  position: relative;
}

.flow__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
}

/* =========================================================
   Social proof
   ========================================================= */

.proof {
  padding: 40px 0 20px;
  text-align: center;
}

.proof__label {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 600;
}

.proof__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-2);
  opacity: 0.7;
}

/* =========================================================
   Sections / shared
   ========================================================= */

.section {
  padding: 96px 0;
  position: relative;
}

.section--tint {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section__sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

/* =========================================================
   Features grid
   ========================================================= */

.grid--features {
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.feature__ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.ico--violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ico--pink   { background: linear-gradient(135deg, #f472b6, #db2777); }
.ico--amber  { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ico--blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.ico--green  { background: linear-gradient(135deg, #34d399, #059669); }
.ico--rose   { background: linear-gradient(135deg, #fb7185, #e11d48); }
.ico--indigo { background: linear-gradient(135deg, #818cf8, #4338ca); }
.ico--teal   { background: linear-gradient(135deg, #2dd4bf, #0f766e); }

/* =========================================================
   Replaces grid
   ========================================================= */

.grid--replaces {
  grid-template-columns: repeat(3, 1fr);
}

.replace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.replace:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.replace__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.replace__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow-sm);
}

.replace__head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.replace__head em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}

.replace ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.replace li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}

.replace li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--g1);
}

.replace__cta {
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.replace__cta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* =========================================================
   Workflow tabs
   ========================================================= */

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: fit-content;
  margin-bottom: 28px;
  overflow-x: auto;
  max-width: 100%;
}

.tab {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab.is-active {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.is-active) {
  color: var(--ink);
}

.tab-panels {
  position: relative;
}

.panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.panel.is-active {
  display: grid;
  animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel__copy h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.panel__copy p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15.5px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  font-size: 14.5px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.panel__visual {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

/* Calendar visual */
.cal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cal header strong {
  font-family: var(--font-display);
  font-size: 20px;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal__day {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
  padding: 4px 0;
}

.cal__cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
}

.cal__cell.is-highlight {
  background: var(--grad-soft);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--g1) inset;
}

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

.dot--ig { background: linear-gradient(135deg, #fa7e1e, #d62976); }
.dot--tt { background: #0f0f14; }
.dot--li { background: #0a66c2; }
.dot--yt { background: #ff0033; }
.dot--x  { background: #222; }

/* Publish visual */
.publish {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publish__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.chip--ig { color: #fff; background: linear-gradient(135deg, #fa7e1e, #d62976); border: 0; }
.chip--tt { color: #fff; background: #0f0f14; border: 0; }
.chip--li { color: #fff; background: #0a66c2; border: 0; }
.chip--x  { color: #fff; background: #222; border: 0; }
.chip--yt { color: #fff; background: #e11d2b; border: 0; }

.publish__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

/* Listen visual */
.listen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listen__bar {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.listen__bar > b {
  display: block;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--grad);
  font-weight: 400;
}

.listen__bar > em {
  font-style: normal;
  font-size: 12px;
  color: #16a34a;
  text-align: right;
}

.listen__bar:last-of-type > em {
  color: #ef4444;
}

.listen__sent {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

/* Measure visual */
.measure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.measure__kpi {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.measure__kpi span {
  font-size: 12px;
  color: var(--muted);
}

.measure__kpi b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.measure__kpi em {
  font-style: normal;
  font-size: 12px;
  color: #16a34a;
}

.flow--big .flow__node {
  font-size: 14px;
  padding: 10px 16px;
}

.flow--alt {
  margin-top: 10px;
}

/* =========================================================
   Metrics band
   ========================================================= */

.metrics {
  padding: 40px 0 80px;
}

.metrics__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.metrics__row > div {
  text-align: center;
  padding: 10px;
}

.metrics__row strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metrics__row span {
  font-size: 13px;
  opacity: 0.9;
}

/* =========================================================
   Testimonials
   ========================================================= */

.grid--quotes {
  grid-template-columns: repeat(3, 1fr);
}

.quote {
  margin: 0;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.quote figcaption b {
  display: block;
}

.quote figcaption em {
  font-style: normal;
  color: var(--muted);
  font-size: 12.5px;
}

/* =========================================================
   Pricing
   ========================================================= */

.billing {
  display: flex;
  margin: 0 auto 28px;
  padding: 5px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: fit-content;
}

.billing__opt {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.billing__opt span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--grad-soft);
  color: var(--g1);
  font-weight: 700;
}

.billing__opt.is-active {
  background: var(--grad);
  color: #fff;
}

.billing__opt.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.grid--pricing {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan--feature {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--g1),
    0 20px 60px -20px rgba(124, 58, 237, 0.45);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.plan h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.plan header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

.plan__amt {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan__per {
  font-size: 14px;
  color: var(--muted);
}

.plan__feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}

.plan__feats li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.plan__feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1.5px solid var(--g1);
}

.plan__feats li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 1.8px solid var(--g1);
  border-bottom: 1.8px solid var(--g1);
  transform: rotate(-45deg);
}

.pricing__note {
  margin: 28px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.pricing__note a {
  color: var(--g1);
  font-weight: 600;
}

/* =========================================================
   FAQ
   ========================================================= */

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

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq details[open] {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  padding-right: 30px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   Final CTA
   ========================================================= */

.cta {
  padding: 100px 0 140px;
}

.cta__inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--r-xl);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta__inner::before,
.cta__inner::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(40px);
}

.cta__inner::before {
  top: -100px;
  left: -100px;
}

.cta__inner::after {
  bottom: -140px;
  right: -100px;
}

.cta__title,
.cta__sub,
.cta__form,
.cta__fine {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.cta__title .grad-text {
  background: linear-gradient(135deg, #ffffff, #ffeeda);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__sub {
  opacity: 0.92;
  font-size: 17px;
  margin: 0 0 28px;
}

.cta__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
}

.cta__form input {
  flex: 1;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  outline: none;
}

.cta__form input::placeholder {
  color: var(--muted);
}

.cta__form .btn--primary {
  background: #0f1020;
  color: #fff;
  box-shadow: none;
}

.cta__form .btn--primary:hover {
  background: #0f1020;
  transform: translateY(-1px);
}

.cta__fine {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.8;
}

/* =========================================================
   Legal and support pages
   ========================================================= */

.page-hero {
  padding: 72px 0 40px;
}

.page-hero__inner {
  max-width: 820px;
}

.page-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 88px;
}

.legal-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-nav span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink-2);
  font-size: 14px;
}

.legal-nav a:hover {
  color: var(--ink);
}

.legal-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.legal-card p,
.legal-card li {
  color: var(--ink-2);
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal-card a {
  color: var(--g1);
  font-weight: 600;
}

[data-theme="dark"] .legal-card a {
  color: #c4b5fd;
}

.legal-note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 2.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand p {
  color: var(--muted);
  margin: 14px 0 18px;
  max-width: 28ch;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer__social a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer__cols h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}

.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.2s ease;
}

.footer__cols a:hover {
  color: var(--ink);
}

.footer__bottom {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer__bottom a:hover {
  color: var(--ink);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .grid--pricing  { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .grid--quotes   { grid-template-columns: 1fr; }
  .grid--replaces { grid-template-columns: repeat(2, 1fr); }
  .metrics__row   { grid-template-columns: repeat(2, 1fr); }
  .panel          { grid-template-columns: 1fr; padding: 26px; }
  .mock__grid     { grid-template-columns: 180px 1fr; }
  .mock__row--stats { grid-template-columns: 1fr 1fr; }
  .mock__row--split { grid-template-columns: 1fr; }
  .legal-layout    { grid-template-columns: 1fr; }
  .legal-nav       { position: static; }
  .footer__inner    { grid-template-columns: 1fr; }
  .footer__cols     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .hide-sm { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .grid--features { grid-template-columns: 1fr; }
  .grid--replaces { grid-template-columns: 1fr; }
  .metrics__row   { grid-template-columns: 1fr 1fr; padding: 20px; }
  .mock__grid     { grid-template-columns: 1fr; }
  .mock__side     { display: none; }
  .mock__row--stats { grid-template-columns: 1fr; }
  .hero__points   { gap: 12px; font-size: 13px; }
  .cta__inner     { padding: 48px 24px; }
  .cta__form      { flex-direction: column; background: transparent; padding: 0; }
  .cta__form input { background: rgba(255, 255, 255, 0.95); }
  .replace__cta   { flex-direction: column; align-items: flex-start; }
  .proof__row     { gap: 24px; font-size: 16px; }
  .page-hero      { padding-top: 48px; }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Auth pages (login / signup)
   ========================================================= */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth__panel {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(24px, 5vw, 64px) 40px;
  min-height: 100vh;
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 5vh, 56px);
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.auth__back:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.auth__body {
  width: 100%;
  max-width: 440px;
  margin: auto 0;
}

.auth__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.auth__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.auth__sub {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 30px;
}

.auth__sub a {
  color: var(--g1);
  font-weight: 600;
}

[data-theme="dark"] .auth__sub a { color: #c4b5fd; }

/* Providers */
.providers {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  width: 100%;
}

.provider:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.provider svg {
  width: 18px;
  height: 18px;
}

.provider--apple svg { color: var(--ink); }

/* Divider */
.auth__or {
  position: relative;
  text-align: center;
  margin: 6px 0 22px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth__or::before,
.auth__or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--line);
}

.auth__or::before { left: 0; }
.auth__or::after  { right: 0; }

/* Form */
.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field__label a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--g1);
}

[data-theme="dark"] .field__label a { color: #c4b5fd; }

.field__label a:hover { text-decoration: underline; }

.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  outline: none;
}

.input::placeholder { color: var(--muted); }

.input:hover { border-color: var(--ink-2); }

.input:focus {
  border-color: var(--g1);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.input:user-invalid,
.input[aria-invalid="true"] {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
}

/* Password field with toggle */
.field--pw {
  position: relative;
}

.field--pw .input {
  padding-right: 48px;
}

.pw-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.pw-toggle:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.pw-toggle .ico-hide { display: none; }
.pw-toggle.is-visible .ico-show { display: none; }
.pw-toggle.is-visible .ico-hide { display: block; }

/* Password strength */
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}

.strength span {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background 0.25s ease;
}

.strength[data-level="1"] span:nth-child(-n + 1) { background: #ef4444; }
.strength[data-level="2"] span:nth-child(-n + 2) { background: #f59e0b; }
.strength[data-level="3"] span:nth-child(-n + 3) { background: #3b82f6; }
.strength[data-level="4"] span { background: #16a34a; }

.strength__label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  min-height: 14px;
}

/* Checkbox */
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check__box::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  margin-bottom: 2px;
}

.check input:checked ~ .check__box {
  background: var(--grad);
  border-color: transparent;
}

.check input:checked ~ .check__box::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.check input:focus-visible ~ .check__box {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22);
}

.check a { color: var(--g1); font-weight: 600; }
[data-theme="dark"] .check a { color: #c4b5fd; }

.auth__submit { margin-top: 4px; }

/* Inline banner (errors / confirmations) */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  animation: bannerIn 0.25s ease both;
}

.banner[hidden] { display: none; }

.banner svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.banner--error {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.35);
  color: #9f1239;
}

.banner--success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.35);
  color: #166534;
}

.banner--info {
  background: var(--grad-soft);
  border-color: transparent;
  color: var(--ink);
}

[data-theme="dark"] .banner--error { color: #fecaca; }
[data-theme="dark"] .banner--success { color: #bbf7d0; }

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Button busy state */
.btn.is-busy {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth__foot {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth__foot a { color: var(--g1); font-weight: 600; }
[data-theme="dark"] .auth__foot a { color: #c4b5fd; }

.auth__legal {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth__legal a:hover { color: var(--ink); }

/* Right showcase panel */
.auth__showcase {
  position: relative;
  padding: 40px;
  border-radius: var(--r-xl);
  margin: 24px 24px 24px 0;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 48px);
  box-shadow: var(--shadow-lg);
}

.auth__showcase::before,
.auth__showcase::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(60px);
  pointer-events: none;
}

.auth__showcase::before { top: -120px; right: -120px; }
.auth__showcase::after  { bottom: -160px; left: -120px; }

.showcase__top,
.showcase__mid,
.showcase__bot {
  position: relative;
  z-index: 1;
}

.showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.showcase__badge b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.showcase__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
  max-width: 18ch;
}

.showcase__sub {
  font-size: 15.5px;
  opacity: 0.9;
  max-width: 40ch;
  margin: 0;
}

.showcase__card {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
  padding: 18px;
  backdrop-filter: blur(10px);
  display: grid;
  gap: 12px;
}

.showcase__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase__row .av {
  width: 34px;
  height: 34px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.showcase__row b { font-size: 14px; display: block; }
.showcase__row em {
  font-style: normal;
  font-size: 12.5px;
  opacity: 0.85;
}

.showcase__row .tag {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.showcase__quote {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 28ch;
}

.showcase__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase__who .av {
  width: 36px;
  height: 36px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.showcase__who b { display: block; font-size: 14px; }
.showcase__who em {
  font-style: normal;
  font-size: 12.5px;
  opacity: 0.85;
}

.showcase__logos {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 16px;
  opacity: 0.75;
  margin-top: 24px;
}

/* Auth responsive */
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__showcase { display: none; }
  .auth__panel { min-height: 100vh; }
}

@media (max-width: 480px) {
  .auth__panel { padding: 20px 20px 28px; }
  .auth__body { margin-top: 8px; }
}

