/* Marketing pages — separate from React app bundle */
:root {
  --bg: #0a0000;
  --bg-elevated: #120404;
  --bg-card: #1a0808;
  --text: #f0e8e8;
  --muted: #b0a0a0;
  --accent: #ff2222;
  --accent-dim: #cc3333;
  --border: rgba(255, 80, 80, 0.15);
  --border-strong: rgba(255, 80, 80, 0.28);
  --max: 1040px;
  --hero-max: min(1280px, 92vw);
  --header-max: min(1200px, 94vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #ff9999;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #ffbbbb;
}

/* ——— Layout shells ——— */
.landing-wrap {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 1.75rem);
  padding-right: clamp(1rem, 4vw, 1.75rem);
}

.landing-wrap--header {
  max-width: var(--header-max);
}

.landing-wrap--wide {
  max-width: var(--hero-max);
}

.landing-wrap--hero {
  text-align: center;
  max-width: 42rem;
}

.landing-band {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.landing-band--hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(80, 0, 0, 0.35), transparent 70%);
}

.landing-band--workspace {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.landing-band--alt {
  background: var(--bg-elevated);
}

.section-rule {
  height: 1px;
  max-width: min(720px, 88vw);
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong) 20%,
    var(--border-strong) 80%,
    transparent
  );
  opacity: 0.9;
}

/* ——— Header ——— */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}

.header-cta {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 0.35rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 1.75rem) 1rem;
    background: rgba(10, 0, 0, 0.97);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-links a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

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

  .site-header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .header-cta {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }

  .nav-links--open + .header-cta {
    margin-top: 0;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #990000);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 34, 34, 0.35);
}

.btn-primary:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 34, 34, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--accent-dim);
  background: rgba(255, 255, 255, 0.07);
}

/* ——— Hero ——— */
.hero-brand-logo {
  width: min(280px, 64vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.hero-micro {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.tagline {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Section typography ——— */
.section-head {
  margin-bottom: 1.75rem;
}

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

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ——— Workspace hero frame ——— */
.hero-frame {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hero-app-link {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-decoration: none;
  vertical-align: middle;
}

.hero-app-link:hover {
  text-decoration: none;
}

.landing-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.landing-shot--hero {
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.hero-app-link:hover .landing-shot--hero {
  border-color: rgba(255, 60, 60, 0.5);
  box-shadow: 0 20px 56px rgba(255, 34, 34, 0.2);
  transform: translateY(-2px);
}

.hero-app-hint {
  margin: 1rem auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ——— Features & showcase ——— */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffdddd;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.feature-clarity {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent-dim);
  background: rgba(255, 34, 34, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.showcase {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0;
}

.showcase figure {
  margin: 0;
  text-align: center;
}

.showcase figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.showcase-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .showcase-pair {
    grid-template-columns: 1fr;
  }
}

/* ——— Tiers & pricing ——— */
.tier-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

table.tiers {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.tiers th,
table.tiers td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

table.tiers tr:last-child td,
table.tiers tr:last-child th {
  border-bottom: none;
}

table.tiers th {
  background: var(--bg-card);
  color: #ffcccc;
  font-weight: 600;
}

table.tiers td {
  color: var(--muted);
}

table.tiers td:first-child {
  color: var(--text);
  font-weight: 500;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.price-card.featured {
  border-color: rgba(255, 34, 34, 0.55);
  box-shadow: 0 0 32px rgba(255, 26, 26, 0.15);
  position: relative;
}

.price-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.price-card .period {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.price-card .badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.notice {
  background: rgba(255, 136, 0, 0.1);
  border: 1px solid rgba(255, 136, 0, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #e8dcc8;
  margin: 0 0 1.5rem;
  text-align: center;
}

.pricing-support {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

.launch-list {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  text-align: center;
}

.launch-list-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.launch-list-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.launch-list-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

.launch-list-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.launch-list-input:focus {
  outline: 2px solid rgba(255, 34, 34, 0.45);
  outline-offset: 1px;
}

.launch-list-submit {
  flex-shrink: 0;
}

.launch-list-fine {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.launch-list-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.launch-list-status--success {
  color: #a8e6a8;
}

.launch-list-status--error {
  color: #ffaaaa;
}

.launch-list-status--fallback {
  color: var(--muted);
}

.google-signin-copy {
  max-width: 40rem;
  margin: 0 auto;
}

.google-signin-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.google-signin-copy code {
  font-size: 0.82rem;
  word-break: break-all;
}

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

/* ——— FAQ ——— */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #eee;
}

.faq p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ——— Legal pages (privacy / terms) ——— */
.legal-page h1 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: #ffcccc;
}

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

.screenshot-placeholder {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--bg-card);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ——— Customize showcase carousel ——— */
.landing-band--customize-carousel {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.customize-carousel-wrap {
  max-width: var(--hero-max);
  margin: 0 auto;
}

.customize-carousel {
  position: relative;
  margin-top: 1.25rem;
}

.customize-carousel__viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.customize-carousel__track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

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

.customize-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  min-width: 0;
}

.customize-carousel__frame {
  aspect-ratio: 1280 / 720;
  width: 100%;
  background: #0d0000;
  line-height: 0;
}

.customize-carousel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.customize-carousel__caption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  border-top: 1px solid var(--border);
}

.customize-carousel__caption strong {
  color: #ffcccc;
  font-weight: 600;
}

.customize-carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.25rem));
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 0, 0, 0.82);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.customize-carousel__control:hover {
  background: rgba(40, 0, 0, 0.95);
  border-color: var(--accent);
}

.customize-carousel__control:focus-visible {
  outline: 2px solid rgba(255, 34, 34, 0.55);
  outline-offset: 2px;
}

.customize-carousel__control--prev {
  left: clamp(0.35rem, 2vw, 0.75rem);
}

.customize-carousel__control--next {
  right: clamp(0.35rem, 2vw, 0.75rem);
}

.customize-carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.customize-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 120, 120, 0.25);
  transition: transform 0.15s, background 0.15s;
}

.customize-carousel__dot--active {
  background: var(--accent);
  transform: scale(1.15);
}

.customize-carousel__dot:focus-visible {
  outline: 2px solid rgba(255, 34, 34, 0.55);
  outline-offset: 2px;
}

.customize-carousel__cta {
  text-align: center;
  margin: 1.35rem 0 0;
}

.customize-carousel__cta .btn {
  margin-top: 0.35rem;
}

.customize-carousel__live {
  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: 640px) {
  .customize-carousel__control {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.15rem;
    transform: translateY(calc(-50% - 1rem));
  }

  .customize-carousel__caption {
    font-size: 0.88rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 2rem 0 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-elevated);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
