/*
 * Atlemio marketing site.
 * DECISION(2026-10): colors, radii and type mirror mobile/src/theme/{colors,tokens}.ts
 * so the site reads as the same clubhouse as the app. Keep them in sync by hand;
 * the site is static and has no build step to import the app's tokens.
 */
:root {
  --background: #f7f8f2;
  --background-top: #eef7e8;
  --surface: #ffffff;
  --surface-light: #f2f5ee;
  --surface-muted: #eaf0e5;
  --spotlight: #183c32;
  --spotlight-text: #f7fceb;
  --spotlight-muted: #c2d7c9;
  --spotlight-line: #456b5b;
  --border: #ccd6c7;
  --border-subtle: #e0e7da;
  --text: #192c24;
  --text-secondary: #46584d;
  --text-muted: #627064;
  --primary: #213d31;
  --text-on-primary: #ffffff;
  --accent: #10b981;
  --accent-dark: #047857;
  --accent-light: #ddf8ec;
  --text-on-accent: #0a140e;
  --volt: #a3e635;
  --volt-bright: #bef264;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #92400e;
  --info: #3b82f6;
  --indigo: #6366f1;
  --indigo-light: #ede7ff;
  --orange: #f97316;
  --orange-light: #ffe9d6;
  --live: #ff3b30;
  --live-light: #fff1f0;
  --role-guardian: #8b5cf6;
  --role-manager: #ec4899;
  --role-admin: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --pill: 9999px;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --page: min(1160px, 100% - 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101b17;
    --background-top: #16291f;
    --surface: #1b2b23;
    --surface-light: #253a2f;
    --surface-muted: #2b4034;
    --spotlight: #234a39;
    --spotlight-muted: #d1e2d2;
    --spotlight-line: #547860;
    --border: #365040;
    --border-subtle: #2b4034;
    --text: #f1f6ea;
    --text-secondary: #bfcebe;
    --text-muted: #a4b5a5;
    --primary: #e5efdc;
    --text-on-primary: #0a0a0f;
    --accent: #34d399;
    --accent-dark: #10b981;
    --accent-light: rgba(16, 185, 129, 0.14);
    --text-on-accent: #08120c;
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.12);
    --warning-dark: #fcd34d;
    --indigo: #818cf8;
    --indigo-light: rgba(129, 140, 248, 0.14);
    --orange: #fb923c;
    --orange-light: rgba(251, 146, 60, 0.12);
    --live: #ff453a;
    --live-light: rgba(255, 69, 58, 0.16);
    --role-guardian: #a78bfa;
    --role-manager: #f472b6;
    --role-admin: #60a5fa;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(var(--background-top), var(--background) 640px);
  background-color: var(--background);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 48px;
}

/* ---- Buttons (full pills, as in ui/Button) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--pill);
  border: 0;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

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

.btn:focus-visible,
.chip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* One CTA per view: volt → emerald gradient with dark text. */
.btn-cta {
  background: linear-gradient(135deg, var(--volt), var(--accent));
  color: var(--text-on-accent);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border);
}

.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  font: 600 12px/1.3 var(--font-body);
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  border-bottom: 1px solid var(--border-subtle);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.wordmark {
  /* BrandMasthead: headingLg (Archivo 800, 28px), -1.2 tracking, accentDark dot. */
  font: 800 28px/34px var(--font-display);
  letter-spacing: -1.2px;
  color: var(--text);
  text-decoration: none;
}

.wordmark span {
  color: var(--accent-dark);
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* ---- Hero ---- */
.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 24px;
}

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---- Phone frames around real app screenshots ---- */
.phone {
  width: min(320px, 100%);
  border-radius: 46px;
  padding: 10px;
  background: #0f1714;
  box-shadow: 0 40px 80px -30px rgba(16, 40, 30, 0.55);
}

.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--background);
  aspect-ratio: 390 / 717;
}

.phone-screen img {
  width: 100%;
  height: auto;
}

.screen-padded {
  display: grid;
  align-content: start;
  padding-top: 28px;
}

.phone-front {
  position: relative;
  z-index: 1;
  transform: translateX(-22%) rotate(-3deg);
}

.phone-back {
  position: absolute;
  top: 64px;
  right: 0;
  width: min(290px, 80%);
  transform: rotate(4deg);
  opacity: 0.96;
}

@media (max-width: 600px) {
  .phone-front {
    transform: none;
  }
  .phone-back {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
