:root {
  --teal: #f1f0ec;
  --teal-hover: #ffffff;
  --black: #0d0d0d;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #242424;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.3);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.44);
  --light-surface: #e7e7e5;
  --light-surface-strong: #f1f0ec;
  --light-ink: #171717;
  --light-muted: rgba(23, 23, 23, 0.68);
  --danger: #d7a39a;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-editorial: "Iowan Old Style", Baskerville, Georgia, serif;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 13, 13, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand .brand-wordmark {
  width: 142px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.static-nav {
  position: static;
  display: flex;
  background: transparent;
  border: 0;
  padding: 0;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
}

.cta-outline,
.cta-primary,
.cta-secondary,
.plan-button,
.submit-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cta-outline {
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 0 24px;
}

.cta-outline:hover,
.cta-secondary:hover,
.plan-button:not(.featured):hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.cta-primary,
.submit-button,
.plan-button.featured {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #0d0d0d;
  padding: 0 30px;
}

.cta-primary:hover,
.submit-button:hover,
.plan-button.featured:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
}

.cta-secondary,
.plan-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0 30px;
}

.hero,
.section,
.legal-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 20px;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero .eyebrow {
  font-family: var(--font-editorial);
}

.hero h1,
.section-title,
.final-cta h2,
.legal-page h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  max-width: 900px;
}

.accent {
  color: var(--teal);
}

.hero-muted-steps {
  color: #aaa9a6;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--font-editorial);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--teal);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-stage,
.phone-stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-stage {
  width: min(100%, 390px);
  min-height: 0;
  aspect-ratio: 972 / 1619;
  overflow: hidden;
  isolation: isolate;
}

.product-stage::before {
  content: none;
}

.product-stage::after {
  content: none;
}

.hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-photo.is-active {
  z-index: 1;
  opacity: 1;
}

.phone-glow {
  position: absolute;
  width: 280px;
  height: 440px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(70px);
}

.phone {
  position: relative;
  width: 286px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 42px;
  padding: 16px;
  background: linear-gradient(145deg, #202020, #0d0d0d);
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 84px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
  height: 100%;
  border-radius: 30px;
  padding: 42px 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #1b1b1b, #101010);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.screen-topline,
.mini-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-score {
  margin-top: 22px;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.screen-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

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

.screen-bars {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.screen-bars div {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.screen-bars div::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--teal);
}

.divider {
  border-top: 1px solid var(--border);
}

.section-light {
  position: relative;
  z-index: 0;
  background: var(--light-surface);
  color: var(--light-ink);
  border-top-color: rgba(23, 23, 23, 0.12);
  box-shadow: 0 0 0 100vmax var(--light-surface);
  clip-path: inset(0 -100vmax);
}

.section-light .eyebrow {
  color: rgba(23, 23, 23, 0.72);
}

.section-light .section-lead,
.section-light .feature p {
  color: var(--light-muted);
}

.section-light .section-title,
.final-cta h2 {
  font-family: var(--font-editorial);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section.center {
  text-align: center;
}

.section-title {
  font-size: clamp(34px, 4.2vw, 52px);
}

.section-lead {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.data-section {
  padding-bottom: 116px;
}

.data-showcase {
  margin-top: 58px;
  padding: 24px 24px 54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  background: #0d0d0d;
  text-align: left;
}

.data-showcase-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d0d;
  box-shadow: none;
}

.data-showcase-card:nth-child(even) {
  transform: translateY(30px);
}

.data-showcase-card img {
  display: block;
  width: 100%;
  height: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 70px;
  margin-top: 48px;
}

.card,
.feature,
.price-card,
.auth-card,
.status-card {
  background: rgba(24, 24, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card {
  padding: 30px;
}

.icon-box {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--teal);
  border-radius: 8px;
}

.card h3,
.feature h3,
.price-card h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.card p,
.feature p,
.price-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.feature {
  border: 0;
  background: transparent;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 58px;
  text-align: center;
}

.step-number {
  display: block;
  color: rgba(255, 255, 255, 0.28);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.07em;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}

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

.pricing-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px;
  background: linear-gradient(180deg, rgba(29, 29, 29, 0.94), rgba(15, 15, 15, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.price-card {
  position: relative;
  padding: 30px;
}

.price-card.highlight {
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-10px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--teal);
  color: #0d0d0d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.price span {
  color: var(--faint);
  font-size: 14px;
  letter-spacing: 0;
}

.credits {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 2px 0 26px;
}

.price-card ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.price-card li::before {
  content: "+";
  color: var(--teal);
  margin-right: 8px;
}

.pricing-note,
.checkout-message {
  max-width: 780px;
  margin: 34px auto 0;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.checkout-message {
  min-height: 20px;
  color: var(--danger);
}

.final-cta {
  text-align: center;
  padding: 100px 20px 120px;
  background: var(--light-surface-strong);
  color: var(--light-ink);
}

.final-cta .cta-primary {
  border-color: var(--light-ink);
  background: var(--light-ink);
  color: var(--light-surface-strong);
}

.final-cta .cta-primary:hover {
  border-color: #303030;
  background: #303030;
}

.final-cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 30px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 58px;
}

.footer-grid h3 {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 16px;
  text-transform: uppercase;
}

.footer-wordmark {
  width: 132px;
  height: auto;
  display: block;
  margin: -4px 0 16px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--teal);
}

.auth-bar {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.auth-bar.active {
  display: flex;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal.active {
  display: flex;
}

.auth-card {
  width: min(100%, 430px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0 0 6px;
  text-transform: uppercase;
}

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

.close-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-message {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  margin: 12px 0 0;
}

.auth-message[data-type="success"],
.checkout-message[data-type="success"] {
  color: var(--teal);
}

.contact-form {
  max-width: 740px;
  margin: 46px auto 0;
}

.account-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 20px 110px;
}

.account-hero {
  max-width: 760px;
}

.account-hero h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.98;
  font-size: clamp(42px, 7vw, 74px);
}

.account-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 22px 0 0;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-top: 44px;
}

.account-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(24, 24, 24, 0.9);
  padding: 30px;
}

.account-panel[hidden] {
  display: none;
}

.account-panel h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.panel-copy,
.account-help p,
.account-help li,
.subscription-summary p {
  color: var(--muted);
}

.account-help ul {
  margin: 18px 0;
  padding-left: 18px;
}

.account-panel-header,
.credit-row,
.account-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-panel-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.account-panel-header h2 {
  margin: 4px 0 0;
  word-break: break-word;
}

.compact-button {
  min-height: 40px;
  padding-inline: 18px;
  white-space: nowrap;
}

.subscription-summary {
  padding: 24px 0;
}

.subscription-summary h3 {
  margin: 4px 0 8px;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.account-loading {
  color: var(--muted);
  padding: 14px 0;
}

.credit-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.credit-row strong {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.credit-total {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.credit-meter {
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.credit-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.2s ease;
}

.account-actions-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

.status-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
}

.status-card {
  width: min(100%, 640px);
  padding: 40px;
  text-align: center;
}

.status-card h1 {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.status-card p {
  color: var(--muted);
}

.legal-page {
  max-width: 900px;
}

.legal-page h1 {
  font-size: clamp(42px, 7vw, 72px);
  margin-bottom: 12px;
}

.legal-page h2 {
  margin: 42px 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 22px;
}

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

@media (max-width: 820px) {
  .nav {
    padding: 14px 16px;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .nav-links.active {
    display: flex;
  }

  .static-nav,
  .static-nav.active {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .nav-links .cta-outline {
    width: 100%;
  }

  .static-nav .cta-outline {
    width: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 34px;
  }

  .phone-stage {
    min-height: 420px;
  }

  .product-stage {
    width: min(100%, 320px);
    min-height: 0;
    margin-inline: auto;
  }

  .product-stage::before {
    content: none;
  }

  .product-stage::after {
    content: none;
  }

  .phone {
    width: 224px;
    height: 438px;
  }

  .screen-score {
    font-size: 46px;
  }

  .card-grid,
  .feature-grid,
  .steps,
  .pricing-grid,
  .footer-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .price-card.highlight {
    transform: none;
  }

  .section,
  .legal-page,
  .account-page {
    padding: 62px 16px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-panel {
    padding: 22px;
  }

  .account-panel-header,
  .credit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .credit-total {
    text-align: left;
  }

  .account-actions-row .cta-primary,
  .account-actions-row .cta-secondary,
  .compact-button {
    width: 100%;
  }

  .pricing-band {
    padding: 58px 16px;
  }

  .hero-actions .cta-primary,
  .hero-actions .cta-secondary {
    width: 100%;
  }

  .data-section {
    padding-bottom: 68px;
  }

  .data-showcase {
    width: auto;
    margin: 42px -16px 0;
    padding: 22px 16px 24px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .data-showcase::-webkit-scrollbar {
    display: none;
  }

  .data-showcase-card,
  .data-showcase-card:nth-child(even) {
    flex: 0 0 min(78vw, 300px);
    transform: none;
    scroll-snap-align: start;
  }
}

@media (min-width: 821px) and (max-width: 980px) {
  .data-showcase {
    max-width: 720px;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .data-showcase-card:nth-child(even) {
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo {
    transition: none;
  }
}
