/* RentRelay Landing Page Styles
 * Light theme adapted from umbral.ink dark theme
 */

/* --- Base --- */

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

:root {
  --bg: transparent;
  --bg-pane: transparent;
  --bg-elevated: rgba(255, 255, 255, 0.08);
  --fg: #E8EAED;
  --fg-dim: #C8CDD2;
  --fg-heading: #FFFFFF;
  --accent: #798F78;
  --accent-hover: #8FA58E;
  --border: rgba(255, 255, 255, 0.15);
  --success: #798F78;
  --error: #D4858A;
  --warning: #D4B870;

  /* Background system — light adjustments */
  --bg-overlay-opacity: 0.03;
  --bg-vignette-intensity: 0;
  --bg-glow-opacity: 0;
  --bg-section-divider-color: rgba(5, 150, 105, 0.1);

  /* Spacing (8-point grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography */
  --font-heading: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: #1D3856;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--accent-hover);
}

/* --- Typography --- */

.display {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg-heading);
  letter-spacing: -0.02em;
}

.heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg-heading);
}

.subheading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-heading);
}

.body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.body-lg {
  font-size: 20px;
  line-height: 1.7;
}

.label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.text-secondary {
  color: var(--fg);
}

/* --- Layout --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Layered Background System --- */

.bg-system {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-base {
  position: fixed;
  inset: 0;
  background: url('rentrelay-bg.webp') center center / cover no-repeat;
  will-change: auto;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.bg-vignette {
  display: none;
}

.bg-accent-glow {
  display: none;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(5, 150, 105, 0.02) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, var(--bg-overlay-opacity)) 0%, rgba(0, 0, 0, calc(var(--bg-overlay-opacity) + 0.01)) 100%);
  will-change: background-position;
  animation: bg-gradient-shift var(--bg-parallax-duration) ease-in-out infinite alternate;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, var(--bg-vignette-intensity)) 100%);
}

.bg-accent-glow {
  position: absolute;
  inset: 0;
  opacity: var(--bg-glow-opacity);
  background: radial-gradient(circle 600px at 30% 70%, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
  animation: bg-glow-drift 35s ease-in-out infinite alternate;
}

@keyframes bg-parallax {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(var(--bg-parallax-amplitude) * -0.5), calc(var(--bg-parallax-amplitude) * -1), 0); }
}

@keyframes bg-gradient-shift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 15px; }
}

@keyframes bg-glow-drift {
  0%   { transform: translate3d(0, 0, 0); opacity: var(--bg-glow-opacity); }
  50%  { opacity: calc(var(--bg-glow-opacity) * 1.5); }
  100% { transform: translate3d(30px, -20px, 0); opacity: var(--bg-glow-opacity); }
}

@keyframes bg-breathe {
  0%, 100% { filter: brightness(1) contrast(1); }
  50%      { filter: brightness(1.01) contrast(1.005); }
}

.bg-system {
  animation: bg-breathe var(--bg-breathe-duration) ease-in-out infinite;
}

/* --- Sections --- */

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-alt {
  position: relative;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

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

/* --- Components --- */

/* Navigation */
.nav {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  background: rgba(29, 56, 86, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg-heading);
}

.nav-link-cta {
  color: var(--accent);
  font-weight: 600;
}

.nav-link-cta:hover {
  color: var(--accent-hover);
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.logo-text {
  font-weight: 700;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--fg-heading);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

.btn-lg {
  padding: var(--space-sm) var(--space-lg);
  font-size: 18px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--accent-hover);
}

.btn-link:disabled {
  color: var(--fg-dim);
  cursor: not-allowed;
  text-decoration: none;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: none;
}

.card .subheading {
  text-wrap: balance;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(29, 56, 86, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: var(--space-xl) var(--space-lg);
}

.hero .display {
  margin-bottom: var(--space-md);
}

.hero .body-lg {
  margin-bottom: var(--space-xl);
  color: var(--fg-dim);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--fg);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label .optional {
  text-transform: none;
  font-weight: 400;
  color: var(--fg-dim);
  font-size: 12px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px var(--space-sm);
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-heading);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(121, 143, 120, 0.25);
}

.form-input::placeholder {
  color: var(--fg-dim);
}

.form-error {
  color: var(--error);
  font-size: 14px;
  margin-top: var(--space-xs);
}

/* Alerts */
.alert {
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.alert-success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-warning {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid var(--warning);
  color: var(--warning);
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-link {
  color: var(--fg-dim);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--fg);
}

/* --- Utilities --- */

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }

/* --- Status Summary Preview --- */

.status-preview {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--border);
}

.status-property {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-heading);
}

.status-rent-badge {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-body {
  padding: var(--space-sm) var(--space-md);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  opacity: 0.8;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.step-card .subheading {
  font-size: 18px;
}

.step-card .body {
  font-size: 14px;
  line-height: 1.4;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

/* --- Before / After --- */

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.ba-column {
  padding: var(--space-lg);
  border-radius: 12px;
}

.ba-before {
  border-left: 3px solid rgba(212, 133, 138, 0.5);
  padding-left: var(--space-lg);
}

.ba-after {
  border-left: 3px solid rgba(121, 143, 120, 0.5);
  padding-left: var(--space-lg);
}

.ba-list {
  list-style: none;
  padding: 0;
}

.ba-list li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}

.ba-x {
  color: var(--error);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
}

.ba-check {
  color: var(--success);
  font-weight: bold;
  font-size: 16px;
  line-height: 1.3;
  flex-shrink: 0;
}

/* --- Emergency Comparison --- */

.comparison-grid {
  max-width: 800px;
  margin: 0 auto;
}

.comparison-card {
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-lg);
  padding-top: 0;
}

.comparison-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid;
}

.comparison-label-urgent {
  color: var(--error);
  border-color: var(--error);
}

.comparison-label-nonurgent {
  color: var(--accent);
  border-color: var(--accent);
}

.comparison-examples {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.comparison-examples li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--fg);
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.comparison-examples li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--fg-dim);
}

.comparison-behavior {
  font-size: 14px;
  color: var(--fg-dim);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

/* --- Delegation Section --- */

.delegation-grid {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

.delegation-card {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background: none;
  border: none;
}

.delegation-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  font-weight: bold;
}

/* --- Key Outcomes --- */

.outcomes-grid {
  max-width: 800px;
  margin: 0 auto;
}

.outcome-card {
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-md) 0;
}

.outcome-card:last-child {
  border-bottom: none;
}

.outcome-icon {
  font-size: 28px;
  margin-bottom: var(--space-xs);
}

/* --- Pricing Cards --- */

.pricing-grid {
  max-width: 960px;
  margin: 0 auto;
}

.grid-3 > .card {
  display: flex;
  flex-direction: column;
}

.price-block {
  min-height: 80px;
  margin-bottom: var(--space-sm);
}

.card-featured {
  border: 2px solid var(--accent);
  position: relative;
  background: rgba(121, 143, 120, 0.08);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--fg-heading);
  margin: var(--space-sm) 0;
}

.price .label {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-dim);
}

.pricing-card .feature-list {
  flex: 1;
}

.pricing-card .btn {
  margin-top: auto;
}

.feature-list {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
}

.feature-list li {
  padding: var(--space-xs) 0;
  color: var(--fg-dim);
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.feature-list-inline {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

/* --- Trust Strip --- */

.trust-strip {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.trust-strip-items {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-strip-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
}

.footer-bottom {
  padding-top: 0;
}

/* --- Multi-Pane Layout (Inbox Mockup) --- */

.pane-layout {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  min-height: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-pane);
}

.pane:last-child {
  border-right: none;
}

.pane-main {
  flex: 2;
}

.pane-header {
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pane-body {
  padding: 16px;
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

/* Properties pane */
.property-item {
  padding: 8px 12px;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: default;
}

.property-item:hover {
  background: var(--bg-elevated);
}

.property-item.active {
  background: var(--bg-elevated);
  font-weight: 600;
}

.property-name {
  font-size: 13px;
}

.property-badge {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Messages pane */
.message-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  position: relative;
}

.message-row:last-child {
  border-bottom: none;
}

.message-row.unread {
  background: rgba(5, 150, 105, 0.04);
  padding: 10px 8px;
  border-radius: 6px;
  border-bottom: none;
  margin-bottom: 4px;
}

.message-sender {
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-heading);
}

.message-preview {
  font-size: 12px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-time {
  font-size: 11px;
  color: var(--fg-dim);
  text-align: right;
}

/* Conversation pane */
.conversation-header {
  font-weight: 700;
  font-size: 14px;
  color: var(--fg-heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.conversation-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg-bubble {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 90%;
}

.msg-inbound {
  background: var(--bg-elevated);
  color: var(--fg);
  align-self: flex-start;
}

.msg-outbound {
  background: var(--accent);
  color: #FFFFFF;
  align-self: flex-end;
}

.msg-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 2px;
}

.msg-inbound .msg-type {
  color: var(--fg-dim);
}

.msg-status {
  color: var(--success);
  margin-left: 4px;
  font-weight: 600;
}

.msg-timestamp {
  font-size: 11px;
  color: var(--fg-dim);
  text-align: center;
  padding: 4px 0;
}

/* Draft cursor (reused from umbral) */
.draft-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* --- Testimonials --- */

.testimonial {
  text-align: left;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  font-style: normal;
}

/* --- Pricing Cards --- */

.pricing-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

/* --- FAQ --- */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--fg-dim);
  flex-shrink: 0;
  margin-left: var(--space-sm);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 var(--space-md) 0;
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* --- Waitlist Form --- */

.waitlist-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.waitlist-form {
  text-align: left;
}

/* --- Modal --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 8px;
  padding: var(--space-lg);
  max-width: 500px;
  width: 90%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* --- Hamburger menu (mobile) --- */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 56, 86, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  padding: var(--space-md);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 32px;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
  line-height: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav-links a {
  display: flex;
  padding: var(--space-md);
  color: var(--fg);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
  min-height: 44px;
  align-items: center;
}

.mobile-nav-links a:hover {
  background: var(--bg-elevated);
  color: var(--fg-heading);
}

.mobile-nav.active {
  display: block;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .display {
    font-size: 36px;
  }

  .heading {
    font-size: 28px;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .grid-3 > .card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

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

  .trust-strip-items {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

@media (max-width: 640px) {
  .pane-layout {
    flex-direction: column;
  }

  .pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pane:last-child {
    border-bottom: none;
  }

  .pane-main {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .display {
    font-size: 28px;
  }

  .btn-lg {
    width: 100%;
  }

  .nav {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .pane-layout {
    min-height: auto;
  }
}
