:root {
  --primary: #004ac6;
  --primary-container: #2563eb;
  --background: #ffffff;
  --surface-alt: #f5f5f7;
  --on-surface: #1d1d1f;
  --on-surface-variant: #6e6e73;
  --outline: #86868b;
  --outline-variant: #d2d2d7;
  --error: #ba1a1a;
  --dark-bg: #000000;
  --accent-amber: #ffb86b;
  --accent-green: #5fd0a0;
  --accent-pink: #ff8fa3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--on-surface);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================================ */
/* NAV — thin, translucent, Apple-style */
/* ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; color: var(--on-surface);
  letter-spacing: -0.2px;
}
.nav-logo-img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--on-surface);
  opacity: 0.8; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* ============================================================ */
/* BUTTONS — pill-shaped */
/* ============================================================ */
.btn {
  display: inline-block; padding: 13px 28px;
  border-radius: 980px;
  font-weight: 500; font-size: 16px;
  transition: all 0.25s ease;
  letter-spacing: -0.1px;
}
.btn-small { padding: 7px 16px; font-size: 13px; }
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover {
  background: var(--primary-container);
  transform: scale(1.03);
}
.btn-secondary {
  background: rgba(0,74,198,0.08); color: var(--primary);
}
.btn-secondary:hover { background: rgba(0,74,198,0.14); transform: scale(1.03); }
.btn-light { background: #fff; color: var(--on-surface); }
.btn-light:hover { transform: scale(1.03); }
.btn-link {
  background: none; color: var(--primary);
  padding: 13px 8px; font-weight: 400;
}
.btn-link:hover { text-decoration: underline; }
.btn-link-light {
  background: none; color: #fff; padding: 13px 8px; font-weight: 400;
}
.btn-link-light:hover { text-decoration: underline; }

/* ============================================================ */
/* HERO — centered, huge type */
/* ============================================================ */
.hero {
  max-width: 980px; margin: 0 auto;
  text-align: center;
  padding: 110px 22px 40px;
}
.hero-eyebrow {
  font-size: 19px; font-weight: 600; color: var(--on-surface-variant);
  margin-bottom: 10px; letter-spacing: -0.2px;
}
.hero h1 {
  font-size: 76px; font-weight: 700; line-height: 1.05;
  letter-spacing: -2.2px;
  color: var(--on-surface);
  margin-bottom: 24px;
}
.text-gradient {
  background: linear-gradient(95deg, var(--primary) 10%, var(--primary-container) 55%, #34c759 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 23px; font-weight: 400; line-height: 1.4;
  color: var(--on-surface-variant);
  letter-spacing: -0.3px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.hero-visual { margin-top: 56px; }
.hero-video {
  width: 100%; max-width: 880px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 28px; overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
}
.hero-video iframe {
  width: 100%; height: 100%; border: none; display: block;
}
.hero-video-note {
  margin-top: 16px; font-size: 13.5px;
  color: var(--on-surface-variant);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================ */
/* SECTIONS */
/* ============================================================ */
.section { padding: 120px 22px; }
.section-inner { max-width: 1024px; margin: 0 auto; }
.section-inner.centered { text-align: center; }
.section-alt { background: var(--surface-alt); }
.section-dark {
  background: var(--dark-bg); color: #f5f5f7;
  position: relative; overflow: hidden;
}
.section-dark .section-inner { position: relative; z-index: 1; }
.dark-skyline {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 150px;
  pointer-events: none;
}

.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--primary); margin-bottom: 14px;
  letter-spacing: -0.1px;
}
.section-dark .eyebrow { color: #7aa6ff; }

.section h2 {
  font-size: 52px; font-weight: 700; line-height: 1.08;
  letter-spacing: -1.6px;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 20px; color: var(--on-surface-variant);
  letter-spacing: -0.2px;
  max-width: 620px; margin: 0 auto 8px;
}
.section-dark .section-lead { color: rgba(245,245,247,0.7); }

.section-transition {
  margin-top: 56px; font-size: 19px;
  color: rgba(245,245,247,0.8);
}
.section-transition a { color: #7aa6ff; }
.section-transition a:hover { text-decoration: underline; }

/* ============================================================ */
/* BIG STATEMENT — Apple-style giant paragraph */
/* ============================================================ */
.statement-section { padding: 140px 22px; }
.statement {
  max-width: 880px; margin: 0 auto; text-align: center;
}
.statement p {
  font-size: 38px; font-weight: 600; line-height: 1.25;
  letter-spacing: -1.1px;
  color: var(--on-surface-variant);
}
.statement-strong { color: var(--on-surface); }

/* ============================================================ */
/* PROBLEM GRID — dark section */
/* ============================================================ */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 56px; text-align: left;
}
.problem-card {
  background: #161617;
  border-radius: 24px; padding: 32px 28px;
  transition: transform 0.3s ease;
}
.problem-card:hover { transform: translateY(-4px); }
.problem-icon-svg { width: 52px; height: 52px; margin-bottom: 18px; }
.problem-card h3 {
  font-size: 19px; font-weight: 600; margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.problem-card p { font-size: 14.5px; color: rgba(245,245,247,0.65); line-height: 1.5; }

/* before → after transformation strip */
.transform-strip {
  display: flex; align-items: stretch; justify-content: center;
  gap: 24px; margin-top: 64px; flex-wrap: wrap;
}
.transform-panel {
  flex: 1; min-width: 280px; max-width: 420px;
  border-radius: 28px; padding: 32px 28px 28px;
  text-align: center;
}
.transform-panel svg { width: 100%; max-width: 300px; margin: 0 auto 18px; display: block; }
.transform-panel h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.3px; }
.transform-panel p { font-size: 14px; color: rgba(245,245,247,0.65); }
.transform-panel.before {
  background: #101114;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.transform-panel.before h3 { color: rgba(245,245,247,0.6); }
.transform-panel.after {
  background: linear-gradient(170deg, #0e1f42, #0b1730);
  box-shadow: inset 0 0 0 1.5px rgba(122,166,255,0.45), 0 24px 64px rgba(0,74,198,0.25);
}
.transform-panel.after h3 { color: #fff; }
.transform-panel.after p { color: rgba(245,245,247,0.8); }
.transform-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-width: 90px;
}
.transform-arrow svg { width: 80px; }
.transform-arrow span {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: #7aa6ff;
}

@media (max-width: 860px) {
  .transform-arrow { transform: rotate(90deg); min-width: 0; padding: 4px 0; }
  .transform-arrow span { transform: rotate(-90deg); }
}

/* ============================================================ */
/* HOW IT WORKS — split layout: info-graphic + vertical steps */
/* ============================================================ */
.how-split {
  display: flex; align-items: center; gap: 64px;
  margin-top: 64px; text-align: left;
  flex-wrap: wrap;
}
.how-split.reverse { flex-direction: row-reverse; }

.how-graphic {
  flex: 1; min-width: 300px;
  display: flex; justify-content: center;
}
.how-graphic svg {
  width: 100%; max-width: 440px;
  animation: float 7s ease-in-out infinite;
}

.steps-vertical {
  flex: 1; min-width: 300px;
  display: flex; flex-direction: column;
}
.step-row {
  display: flex; gap: 24px;
}
.step-marker {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.step-dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,74,198,0.28);
}
.step-line {
  flex: 1; width: 2px; min-height: 32px; margin: 8px 0;
  background-image: linear-gradient(to bottom, var(--outline-variant) 55%, transparent 45%);
  background-size: 2px 10px;
}
.step-body { padding-bottom: 40px; }
.step-row:last-child .step-body { padding-bottom: 0; }
.step-body h3 {
  font-size: 22px; font-weight: 600; margin-bottom: 8px;
  letter-spacing: -0.4px; padding-top: 8px;
}
.step-body p {
  font-size: 16px; color: var(--on-surface-variant); line-height: 1.55;
  max-width: 400px;
}

/* ============================================================ */
/* PERSONA SECTIONS — steps + carousel as one connected story */
/* ============================================================ */
.persona-connector {
  display: flex; justify-content: center;
  margin-top: 56px;
}
.connector-line {
  width: 2px; height: 80px;
  background-image: linear-gradient(to bottom, var(--outline-variant) 55%, transparent 45%);
  background-size: 2px 10px;
}
.connector-pill {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--primary); background: rgba(0,74,198,0.08);
  padding: 7px 16px; border-radius: 980px;
  margin-bottom: 16px;
}
.carousel-title {
  font-size: 38px; font-weight: 700; line-height: 1.1;
  letter-spacing: -1.1px;
}

/* inside a white persona section, white cards get a soft edge so they still pop */
.persona-section:not(.section-alt) .carousel-card {
  background: #fff;
  border: 1px solid var(--outline-variant);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.persona-section:not(.section-alt) .carousel-card:hover {
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
}

/* ============================================================ */
/* PHONE FRAME / SCREENSHOT PLACEHOLDER */
/* ============================================================ */
.phone-frame {
  position: relative;
  width: 280px; aspect-ratio: 9 / 19.5;
  border-radius: 36px; overflow: hidden;
  background: #fff;
  border: 7px solid #1d1d1f;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.phone-frame.small {
  width: 160px; aspect-ratio: 9 / 16; border-radius: 18px; border-width: 4px;
}
.phone-frame .screenshot {
  width: 100%; height: 100%; object-fit: cover;
}
.phone-frame.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(
    45deg, #f5f5f7, #f5f5f7 10px, #ebebef 10px, #ebebef 20px
  );
  border-style: dashed;
  border-color: var(--outline-variant);
}
.phone-frame.placeholder .screenshot { display: none; }
.phone-frame .placeholder-label {
  display: none;
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--on-surface-variant); padding: 16px;
  font-family: "SF Mono", Menlo, monospace;
}
.phone-frame.placeholder .placeholder-label { display: block; }
.phone-frame.placeholder .placeholder-label small {
  display: block; font-weight: 400; font-size: 11px; margin-top: 6px;
  color: var(--outline);
}

/* placeholder frames with an injected mock info-graphic render as a clean phone */
.phone-frame.placeholder.has-mock {
  background: #fff;
  border-style: solid;
  border-color: #1d1d1f;
  display: block;
}
.phone-frame.placeholder.has-mock .placeholder-label { display: none; }
.phone-frame .mock-ui { width: 100%; height: 100%; display: block; }

/* ============================================================ */
/* FEATURE CAROUSEL (Apple-style horizontal cards) */
/* ============================================================ */
.carousel-section { padding-bottom: 80px; }

.carousel-wrap { max-width: 1200px; margin: 48px auto 0; }

.carousel {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 22px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

/* the whole card: icon + text on top, phone anchored to the bottom */
.carousel-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  text-align: left;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
}

.card-caption {
  order: -1; /* text block sits above the phone */
  margin: 0; padding: 28px 26px 22px;
  font-size: 14px; line-height: 1.5;
  color: var(--on-surface-variant);
  letter-spacing: -0.1px;
  min-height: 168px;
}
.card-caption strong {
  display: block;
  color: var(--on-surface); font-weight: 700;
  font-size: 17px; letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.caption-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  margin-bottom: 14px;
}
.caption-icon svg { width: 22px; height: 22px; }

.card-media {
  height: 320px;
  display: flex; justify-content: center;
  overflow: hidden;
  margin-top: auto;
}

/* phone peeks out of the bottom of the card, Apple-style */
.card-media .phone-frame {
  width: 210px;
  border-bottom: none;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.carousel-nav {
  display: flex; justify-content: flex-end; gap: 12px;
  max-width: 1200px; margin: 12px auto 0; padding: 0 22px;
}
.carousel-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06); color: var(--on-surface);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-family: inherit;
  padding-bottom: 3px;
}
.carousel-btn:hover { background: rgba(0,0,0,0.12); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn:disabled:hover { background: rgba(0,0,0,0.06); }

/* ============================================================ */
/* DESIGN SYSTEM */
/* ============================================================ */
.design-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px; text-align: left;
}
.design-card {
  background: #fff; border-radius: 28px; padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.design-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}
.design-card h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.design-card p { font-size: 14px; color: var(--on-surface-variant); margin-bottom: 18px; }

.swatches { display: flex; flex-direction: column; gap: 8px; }
.swatch {
  border-radius: 14px; padding: 14px 16px; color: #fff;
  font-size: 12px; font-weight: 600;
  font-family: "SF Mono", Menlo, monospace;
}

.logo-grid { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================ */
/* PEOPLE'S VOICE — TESTIMONIALS */
/* ============================================================ */
.voices-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px; text-align: left;
}
.voice-card {
  position: relative;
  background: var(--surface-alt);
  border-radius: 28px; padding: 40px 32px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}
.voice-quote {
  font-size: 56px; font-weight: 700; line-height: 0.6;
  color: var(--primary); opacity: 0.35;
  margin-bottom: 18px; font-family: Georgia, serif;
}
.voice-card p {
  font-size: 16px; line-height: 1.55; color: var(--on-surface);
  letter-spacing: -0.2px; flex: 1; margin-bottom: 24px;
}
.voice-person { display: flex; align-items: center; gap: 12px; }
.voice-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.voice-meta {
  display: flex; flex-direction: column;
  font-size: 13px; color: var(--on-surface-variant);
}
.voice-meta strong { font-size: 14px; color: var(--on-surface); }

/* ============================================================ */
/* PRICING */
/* ============================================================ */
.pricing-section { background: var(--surface-alt); }
.pricing-section h2 { max-width: 720px; margin-left: auto; margin-right: auto; }

.trial-banner {
  display: inline-flex; align-items: center; gap: 18px;
  background: linear-gradient(100deg, var(--primary), var(--primary-container));
  color: #fff; border-radius: 24px; padding: 24px 32px;
  margin: 44px auto 36px; max-width: 640px;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0,74,198,0.22);
}
.trial-icon { width: 40px; height: 40px; flex-shrink: 0; }
.trial-banner div { display: flex; flex-direction: column; gap: 4px; }
.trial-banner strong { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.trial-banner span { font-size: 14px; color: rgba(255,255,255,0.85); }

.calc-card {
  max-width: 760px; margin: 0 auto; text-align: left;
  background: #fff; border-radius: 28px; padding: 44px 40px;
  box-shadow: 0 0 0 2px var(--primary), 0 28px 64px rgba(0,74,198,0.14);
}
.calc-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.5px; }

.calc-label {
  display: block; font-size: 15px; font-weight: 600;
  margin-bottom: 12px; cursor: pointer;
}
.calc-label output { color: var(--primary); }

.calc-plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin: 28px 0 20px;
}
.calc-plan {
  position: relative;
  background: var(--surface-alt); border-radius: 18px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.calc-plan.featured {
  background: rgba(0,74,198,0.06);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.plan-badge {
  position: absolute; top: -11px; right: 14px;
  background: var(--accent-green); color: #1d1d1f;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 980px;
}
.plan-name { font-size: 15px; font-weight: 700; }
.plan-rate { font-size: 13px; color: var(--on-surface-variant); margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-strike {
  font-size: 14px; font-weight: 600; color: var(--outline);
  text-decoration-thickness: 1.5px;
}
.plan-total { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--primary); }
.plan-per { font-size: 12.5px; color: var(--on-surface-variant); }
.plan-save { font-size: 12.5px; font-weight: 600; color: #1c7a52; margin-top: 6px; }

.calc-cta {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.calc-trial { font-size: 14.5px; color: var(--on-surface-variant); }
.calc-trial strong { color: var(--on-surface); }
.calc-flats { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
#flatsRange {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 6px; border-radius: 3px; background: var(--surface-alt);
  outline: none; margin-bottom: 28px; cursor: pointer;
}
#flatsRange::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,74,198,0.35);
  transition: transform 0.15s ease;
}
#flatsRange::-webkit-slider-thumb:hover { transform: scale(1.15); }
#flatsRange::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--primary); cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,74,198,0.35);
}
.calc-note { font-size: 14px; color: var(--on-surface-variant); line-height: 1.5; }
.price-features li {
  font-size: 15px; color: var(--on-surface); padding-left: 28px; position: relative;
  letter-spacing: -0.1px;
}
.price-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 700;
}
.price-cta { text-align: center; }

.pricing-footnote {
  text-align: center; margin-top: 48px; font-size: 14px;
  color: var(--on-surface-variant);
}

/* ============================================================ */
/* REACH OUT — contact form */
/* ============================================================ */
.reach-form { max-width: 640px; margin: 0 auto; }
.reach-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-bottom: 28px; text-align: left;
}
.reach-field { display: flex; flex-direction: column; gap: 8px; }
.reach-field span {
  font-size: 13px; font-weight: 600; color: var(--on-surface);
  letter-spacing: -0.1px;
}
.reach-field input {
  font-family: inherit; font-size: 16px; color: var(--on-surface);
  background: #fff; border: 1.5px solid var(--outline-variant);
  border-radius: 14px; padding: 14px 16px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.reach-field input::placeholder { color: var(--outline); }
.reach-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,74,198,0.12);
}
.reach-field input.invalid { border-color: var(--error); }
.reach-submit { width: 100%; max-width: 320px; border: none; cursor: pointer; font-family: inherit; }
.reach-note { margin-top: 18px; font-size: 13.5px; color: var(--on-surface-variant); }
.reach-error { margin-top: 14px; font-size: 14px; color: var(--error); font-weight: 500; }

.reach-success { max-width: 520px; margin: 0 auto; padding: 8px 0; }
.reach-success-icon { width: 72px; height: 72px; margin: 0 auto 20px; }
.reach-success h3 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.reach-success p { font-size: 15.5px; color: var(--on-surface-variant); line-height: 1.55; }
.reach-success a { color: var(--primary); }
.reach-success a:hover { text-decoration: underline; }

/* ============================================================ */
/* TECH STACK */
/* ============================================================ */
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 56px; text-align: left;
}
.tech-card {
  background: #161617;
  border-radius: 24px; padding: 30px 26px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.3s ease;
}
.tech-card:hover { transform: translateY(-4px); }
.tech-name { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; }
.tech-desc { font-size: 13px; color: rgba(245,245,247,0.6); }

/* ============================================================ */
/* FOOTER */
/* ============================================================ */
.footer {
  background: linear-gradient(160deg, var(--primary), var(--primary-container));
  color: #fff;
  padding: 130px 22px; text-align: center;
}
.footer-inner { max-width: 760px; margin: 0 auto; }
.footer h2 {
  font-size: 48px; font-weight: 700; line-height: 1.1;
  letter-spacing: -1.4px; margin-bottom: 18px;
}
.footer-inner > p { font-size: 19px; color: rgba(255,255,255,0.85); margin-bottom: 40px; letter-spacing: -0.2px; }
.footer-inner > p strong { color: #fff; }
.footer-copy { margin-top: 56px; font-size: 13px; color: rgba(255,255,255,0.55); }

.reach-card {
  background: #fff; color: var(--on-surface);
  border-radius: 28px; padding: 40px 36px;
  max-width: 680px; margin: 0 auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

/* ============================================================ */
/* ACCESSIBILITY */
/* ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
#flatsRange:focus-visible { outline-offset: 6px; }

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

/* ============================================================ */
/* SCROLL REVEAL */
/* ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ============================================================ */
/* RESPONSIVE */
/* ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 70px; }
  .hero h1 { font-size: 42px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 18px; }
  .section { padding: 80px 22px; }
  .section h2 { font-size: 32px; letter-spacing: -0.9px; }
  .statement p { font-size: 24px; letter-spacing: -0.6px; }
  .statement-section { padding: 90px 22px; }
  .footer h2 { font-size: 32px; }
  .carousel-card { flex: 0 0 280px; }
  .calc-card { padding: 32px 24px; }
  .calc-cta { flex-direction: column; align-items: flex-start; }
  .trial-banner { flex-direction: column; text-align: center; }
  .billing-toggle { display: inline-flex; flex-wrap: wrap; justify-content: center; }
}
