@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree.woff2") format("woff2");
  font-weight: 400 750;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--brand-font);
  color: var(--brand-ink);
  background:
    radial-gradient(640px 440px at 14% 8%, var(--brand-glow), transparent 70%),
    radial-gradient(560px 420px at 86% 24%, var(--brand-glow-2), transparent 70%),
    radial-gradient(640px 480px at 50% 90%, var(--brand-glow-3), transparent 72%),
    linear-gradient(180deg, var(--brand-ground-top) 0%, var(--brand-paper) 55%, var(--brand-ground-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font-family: inherit;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--brand-button-radius);
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 780px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--brand-chip);
  background: var(--brand-glass-bar);
  backdrop-filter: blur(var(--brand-glass-blur));
  -webkit-backdrop-filter: blur(var(--brand-glass-blur));
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .card,
  .pill-btn--glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--brand-surface);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark {
  height: 26px;
  width: auto;
}

.wordmark--dark {
  display: none;
}

[data-theme="dark"] .wordmark--light {
  display: none;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-ink);
}

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

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--brand-button-radius);
  border: var(--brand-outline-width) solid var(--brand-line);
  background: var(--brand-glass-button);
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-btn:focus-visible,
.btn:focus-visible,
.chip-btn:focus-visible,
.tab-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--brand-focus);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--brand-button-radius);
  border: var(--brand-outline-width) solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background-color 0.15s ease;
}

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

.btn--sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.875rem;
}

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

.btn--secondary {
  background: var(--brand-glass-button);
  color: var(--brand-ink);
  border-color: var(--brand-line);
}

.btn--accent {
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  border-color: var(--brand-line);
}

/* Hero */
.hero {
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  border: 1.5px solid var(--brand-line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.125rem, 4.4vw, 3.375rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
}

.hero-lead {
  margin: 0 0 12px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--brand-ink);
  font-weight: 500;
  max-width: 560px;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--brand-muted);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-glass);
  border: 1.5px solid var(--brand-line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-ink);
}

/* Phone preview */
.preview-card {
  background: var(--brand-glass);
  border: var(--brand-outline-width) solid var(--brand-line);
  border-radius: var(--brand-radius);
  padding: 20px;
  box-shadow: 0 18px 40px var(--brand-shadow);
  backdrop-filter: blur(var(--brand-glass-blur));
  -webkit-backdrop-filter: blur(var(--brand-glass-blur));
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--brand-button-radius);
  border: 1.5px solid var(--brand-line);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  border-width: 2px;
}

.phone-frame {
  max-width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background: var(--brand-dark-surface);
  border: 2px solid var(--brand-line);
  box-shadow: 0 14px 32px var(--brand-shadow);
}

.phone-frame img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
}

.preview-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--brand-muted);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-head {
  margin-bottom: 24px;
  max-width: 680px;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent-text);
}

.section-desc {
  margin: 0;
  color: var(--brand-muted);
  font-size: 1rem;
}

.card {
  background: var(--brand-glass);
  border: var(--brand-outline-width) solid var(--brand-line);
  border-radius: var(--brand-radius);
  padding: 24px;
  backdrop-filter: blur(var(--brand-glass-blur));
  -webkit-backdrop-filter: blur(var(--brand-glass-blur));
}

.card--accent {
  background: var(--brand-glass-accent);
}

.card--solid {
  background: var(--brand-surface);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  border: 1.5px solid var(--brand-line);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.card p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.9375rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.shot-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--brand-glass);
  border: var(--brand-outline-width) solid var(--brand-line);
  border-radius: var(--brand-radius);
}

.shot-card img {
  border-radius: 14px;
  border: 1px solid var(--brand-chip);
}

.shot-title {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--brand-ink);
}

.shot-note {
  font-size: 0.8125rem;
  color: var(--brand-muted);
  line-height: 1.4;
}

/* Forms */
.forms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 24px;
  align-items: start;
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--brand-line);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-btn[aria-pressed="true"] {
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  border-width: 2px;
}

.text-input,
.text-area {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: var(--brand-outline-width) solid var(--brand-line);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: 1rem;
  line-height: 1.45;
}

.text-area {
  min-height: 124px;
  resize: vertical;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--brand-muted);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-error);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.form-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--brand-button-radius);
  border: 1.5px solid var(--brand-line);
  background: var(--brand-accent-soft);
  color: var(--brand-ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status--error {
  background: var(--brand-surface);
  border-color: var(--brand-error);
  color: var(--brand-error);
}

/* FAQ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

/* Legal / Support prose pages */
.prose-wrap {
  padding: 40px 0 56px;
}

.prose-card h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
}

.prose-card h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.prose-card p,
.prose-card li {
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

.prose-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.meta-line {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-accent-text) !important;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--brand-chip);
  padding: 32px 0 44px;
  color: var(--brand-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.footer-legal {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--brand-muted);
}

/* Mobile responsiveness */
.hero-grid > *,
.pillars-grid > *,
.forms-grid > *,
.faq-list > *,
.gallery-grid > * {
  min-width: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .pillars-grid,
  .forms-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .card,
  .preview-card {
    padding: 18px;
  }
  .field-row-2 {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .header-inner {
    min-height: 64px;
  }
  .wordmark {
    height: 22px;
  }
  .btn--header-cta {
    display: none;
  }
  .hero {
    padding: 28px 0 32px;
  }
  .prose-wrap {
    padding: 24px 0 40px;
  }
}
