/* ─── Tokens — match the Flutter app's brass / gunmetal palette ──────── */
:root {
  --bg: #0a0b0d;
  --surface: #14171a;
  --surface-2: #1c2024;
  --line: #2a2f35;
  --text: #e8e6e1;
  --text-dim: #8a8780;
  --text-faint: #555851;
  --brass: #c9a84c;
  --brass-bright: #d8b86a;
  --brass-dim: #95792f;
  --error: #d96450;
  --success: #6fb56a;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
  --max: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-bright); text-decoration: none; }
a:hover { color: var(--brass); text-decoration: underline; }

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

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  color: var(--brass);
  font-size: 22px;
  line-height: 1;
}
.logo-text { letter-spacing: 0.5px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.nav-cta { color: var(--text); }
.site-nav a.nav-cta.primary {
  background: var(--brass);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav a.nav-cta.primary:hover {
  background: var(--brass-bright);
  text-decoration: none;
}
.site-nav a.nav-cta.nav-link {
  background: transparent;
  color: var(--text-dim);
  padding: 8px 10px;
  border: none;
}
.site-nav a.nav-cta.nav-link:hover { color: var(--text); }

/* Group children of the auth-state pills so they sit on one line */
.auth-state {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.auth-state[hidden] { display: none; }

/* Identity pill: signed-in user's email, non-interactive */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 12px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-pill::before {
  content: "●";
  color: var(--brass);
  font-size: 8px;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 28px 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.10), transparent 70%),
    var(--bg);
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.hero-meta {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: inherit;
}
.btn.primary {
  background: var(--brass);
  color: var(--bg);
}
.btn.primary:hover {
  background: var(--brass-bright);
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
  text-decoration: none;
}
.btn.social {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
  margin-top: 8px;
}
.btn.social:hover { border-color: var(--brass-dim); }
.btn.full { width: 100%; }

/* ─── Sections ───────────────────────────────────────────────────────── */
.section {
  padding: 80px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 auto 48px;
  max-width: 600px;
}

/* ─── Features grid ──────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature-icon {
  font-size: 28px;
  color: var(--brass);
  margin-bottom: 16px;
  line-height: 1;
}
.feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--text);
}
.feature p {
  color: var(--text-dim);
  margin: 0;
  font-size: 15px;
}

/* ─── Pricing ────────────────────────────────────────────────────────── */
.pricing { padding-bottom: 100px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--brass);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.06), var(--surface));
}
.plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--brass);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan h3 {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--text);
}
.plan-price {
  margin: 0 0 24px;
  color: var(--text);
}
.plan-price strong {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-price span {
  color: var(--text-dim);
  font-size: 14px;
  margin-left: 4px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.plan-features li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 700;
}

/* ─── Modal ──────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.modal-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 24px;
}
.modal-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-panel input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
}
.modal-panel input:focus {
  outline: none;
  border-color: var(--brass);
}
.auth-error {
  color: var(--error);
  font-size: 13px;
  margin: 8px 0 0;
  text-align: center;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.auth-divider span { padding: 0 12px; }
.auth-toggle {
  text-align: center;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ─── Teams setup modal ─────────────────────────────────────────────── */
.teams-panel { max-width: 480px; }
.field-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
}
.field-label .muted { color: var(--text-faint); font-weight: 400; }
.field-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}
.modal-panel textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}
.modal-panel textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.seats-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.seats-row input[type="range"] {
  flex: 1;
  accent-color: var(--brass);
}
.seats-badge {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}
.price-summary {
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid var(--brass-dim);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0 16px;
}
.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  color: var(--text);
}
.price-summary-row strong {
  color: var(--brass-bright);
  font-size: 18px;
  font-weight: 700;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0;
  width: 100%;
  text-align: center;
}

/* ─── Page hero (for non-home pages) ─────────────────────────────────── */
.page-hero {
  padding: 80px 28px 48px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 168, 76, 0.08), transparent 70%),
    var(--bg);
  text-align: center;
}
.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.page-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 16px;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.page-hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Two-column row (text + supporting visual / list) ───────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 64px 0;
}
.split.reverse > :first-child { order: 2; }
.split h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.split p { color: var(--text-dim); margin: 0 0 14px; font-size: 16px; }
.split ul { padding-left: 0; list-style: none; margin: 16px 0 0; }
.split ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}
.split ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--brass);
  font-weight: 700;
}
.split-visual {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 32px 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(201, 168, 76, 0.14), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}

/* Window chrome bar with three brass traffic-light dots */
.split-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle 4px at 20px 19px, var(--brass) 60%, transparent 64%),
    radial-gradient(circle 4px at 38px 19px, var(--brass-dim) 60%, transparent 64%),
    radial-gradient(circle 4px at 56px 19px, var(--line) 60%, transparent 64%),
    linear-gradient(var(--surface-2), rgba(20, 23, 26, 0.6));
}

/* Skeleton content lines below the caption to imply a real screen */
.split-visual::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 30px;
  height: 28px;
  border-radius: 4px;
  opacity: 0.7;
  background:
    linear-gradient(var(--line), var(--line)) left 0 / 70% 8px no-repeat,
    linear-gradient(var(--line), var(--line)) left 14px / 95% 8px no-repeat,
    linear-gradient(var(--line), var(--line)) left 28px / 45% 8px no-repeat;
}

.split-visual .mock-glyph {
  font-size: 44px;
  line-height: 1;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 25%, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.06));
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.split-visual .mock-label {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  max-width: 80%;
}

/* ─── Inline "PRO" tag for gated features ────────────────────────────── */
.pro-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.4;
  color: var(--bg);
  background: var(--brass);
  border-radius: 999px;
  text-transform: uppercase;
}

/* ─── App store badges ───────────────────────────────────────────────── */
.app-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.app-badges.left { justify-content: flex-start; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 180px;
  transition: border-color 0.18s, transform 0.18s;
}
.app-badge:hover {
  border-color: var(--brass);
  text-decoration: none;
  transform: translateY(-1px);
}
.app-badge.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.app-badge .badge-icon {
  font-size: 28px;
  color: var(--brass);
  line-height: 1;
}
.app-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.app-badge .badge-eyebrow {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.app-badge .badge-store {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}
.faq-item p {
  color: var(--text-dim);
  margin: 0;
  font-size: 15px;
}

/* ─── Persona / use-case stat cards ──────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
}
.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--brass-bright);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat span {
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Founder / team cards ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.team-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.team-photo {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
}
.team-card h3 {
  font-size: 17px;
  margin: 0 0 2px;
  color: var(--text);
}
.team-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.team-card p {
  color: var(--text-dim);
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}
.team-card p:last-child { margin-bottom: 0; }

/* ─── Cross-link cards (used at bottom of inner pages) ───────────────── */
.cta-band {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 28px;
  text-align: center;
  margin-top: 80px;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
}
.cta-band p {
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .hero-cta { justify-content: center; }

/* ─── Footer column layout for company site ──────────────────────────── */
.footer-columns {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--text); }
.footer-blurb {
  color: var(--text-faint);
  font-size: 13px;
  margin: 12px 0 0;
  max-width: 280px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--text-faint);
  font-size: 13px;
}

/* ─── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .site-header { padding: 14px 18px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta):not(.primary) { display: none; }
  .user-pill { display: none; } /* keep header tidy on phones */
  .auth-state { gap: 8px; }
  .hero { padding: 64px 20px 56px; }
  .page-hero { padding: 56px 20px 32px; }
  .section { padding: 56px 20px; }
  .split { grid-template-columns: 1fr; gap: 32px; margin: 40px 0; }
  .split.reverse > :first-child { order: 0; }
  .modal-panel { padding: 24px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .cta-band { padding: 48px 20px; margin-top: 56px; }
}
