/* ============================================================
   TUNZA HOMEBUYERS — SELLER PORTAL
   styles.css
   
   Architecture:
   1. CSS Variables (design tokens)
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Header
   6. Stage Progress Rail (signature element)
   7. Hero / Welcome
   8. Offer Card (curiosity + revealed states)
   9. Timeline Section
   10. FAQ Section
   11. Contact Section
   12. Footer
   13. Animations
   14. Responsive (mobile-first breakpoints)
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES — DESIGN TOKENS
   All colors, spacing, and type scale live here.
   Change one value, update the whole portal.
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary:        #4338CA;
  --color-primary-hover:  #3730A3;
  --color-primary-light:  #EEF2FF;
  --color-accent:         #6366F1;
  --color-accent-glow:    rgba(99, 102, 241, 0.25);

  /* Surface Colors */
  --color-bg:             #F8FAFC;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F1F5F9;
  --color-border:         #E2E8F0;
  --color-border-strong:  #CBD5E1;

  /* Text Colors */
  --color-text:           #1F2937;
  --color-text-secondary: #6B7280;
  --color-text-muted:     #9CA3AF;
  --color-text-inverse:   #FFFFFF;

  /* Status Colors */
  --color-success:        #059669;
  --color-success-light:  #ECFDF5;
  --color-warning:        #D97706;
  --color-warning-light:  #FFFBEB;
  --color-danger:         #DC2626;

  /* Spacing Scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Typography Scale */
  --font-family:      'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs:     11px;
  --font-size-sm:     13px;
  --font-size-base:   15px;
  --font-size-md:     17px;
  --font-size-lg:     20px;
  --font-size-xl:     24px;
  --font-size-2xl:    30px;
  --font-size-3xl:    38px;
  --font-size-4xl:    48px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 48px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 0 3px var(--color-accent-glow);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:  720px;
  --container-wide: 960px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.internal-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.55rem 1rem;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

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

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
.text-xs       { font-size: var(--font-size-xs); }
.text-sm       { font-size: var(--font-size-sm); }
.text-base     { font-size: var(--font-size-base); }
.text-md       { font-size: var(--font-size-md); }
.text-lg       { font-size: var(--font-size-lg); }
.text-xl       { font-size: var(--font-size-xl); }
.text-2xl      { font-size: var(--font-size-2xl); }
.text-3xl      { font-size: var(--font-size-3xl); }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-primary   { color: var(--color-primary); }
.text-success   { color: var(--color-success); }

.label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--wide {
  max-width: var(--container-wide);
}

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

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge--success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge--warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge--primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Dot indicator on badges */
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}


/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 8px 0;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-logo {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-mark {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Security trust badge in header */
.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.trust-badge svg {
  width: 12px;
  height: 12px;
  color: var(--color-success);
}


/* ============================================================
   6. STAGE PROGRESS RAIL — SIGNATURE ELEMENT
   
   This is the visual centerpiece of the portal.
   A horizontal track with nodes representing each stage.
   The active node glows. Completed nodes show a check.
   This tells the seller exactly where they are without words.
   ============================================================ */
.stage-rail {
  padding: var(--space-8) 0 var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.stage-rail__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

/* The connecting line between nodes */
.stage-rail__track {
  position: absolute;
  top: 16px; /* center of the node circle */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.stage-rail__track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%; /* controlled by JS based on active stage */
  transition: width var(--transition-slow);
}

.stage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  position: relative;
  z-index: 1;
}

.stage-node__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
}

.stage-node__circle svg {
  width: 14px;
  height: 14px;
}

/* Upcoming / inactive state */
.stage-node.is-upcoming .stage-node__circle {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.stage-node.is-upcoming .stage-node__circle svg {
  color: var(--color-text-muted);
}

/* Completed state */
.stage-node.is-complete .stage-node__circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.stage-node.is-complete .stage-node__circle svg {
  color: white;
}

/* Active / current state — the glow effect */
.stage-node.is-active .stage-node__circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-accent-glow), var(--shadow-md);
  animation: node-pulse 2.5s ease-in-out infinite;
}

.stage-node.is-active .stage-node__circle svg {
  color: white;
}

.stage-node__label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.stage-node.is-active .stage-node__label {
  color: var(--color-primary);
  font-weight: 700;
}

.stage-node.is-complete .stage-node__label {
  color: var(--color-text-secondary);
}


/* ============================================================
   7. HERO / WELCOME SECTION
   ============================================================ */
.hero {
  padding: var(--space-10) 0 var(--space-8);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero__address {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__address svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.hero__title .highlight {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

/* Seller name personalization */
.hero__greeting {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}


/* ============================================================
   8. OFFER CARD — CURIOSITY + REVEALED STATES
   
   Two modes:
   - Curiosity: blurred offer, teaser messaging, single CTA
   - Revealed: full offer details with action buttons
   ============================================================ */

/* ---- Offer Card Wrapper ---- */
.offer-card {
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent strip at top of card */
.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.offer-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.offer-card__title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.offer-card__property {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* ---- Offer Amount Block ---- */
.offer-amount-block {
  margin-bottom: var(--space-6);
}

.offer-amount-block__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.offer-amount-block__value {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: all var(--transition-slow);
}

/* CURIOSITY STATE: blurred/redacted offer amount */
.offer-amount-block__value.is-blurred {
  filter: blur(10px);
  user-select: none;
  color: var(--color-text-muted);
}

/* Curiosity teaser — the "• • • •" placeholder */
.offer-amount-block__teaser {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.offer-amount-block__teaser .currency {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.offer-amount-block__teaser .dots {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 4px;
  filter: blur(8px);
  user-select: none;
}

/* ---- Offer Meta Grid (closing date, expiry, etc.) ---- */
.offer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.offer-meta__item {
  padding: var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.offer-meta__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.offer-meta__value {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
}

.offer-meta__value.is-blurred {
  filter: blur(8px);
  user-select: none;
}

/* ---- Curiosity CTA Block ---- */
.curiosity-block {
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
}

.curiosity-block__message {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.curiosity-block__message strong {
  color: var(--color-text);
}

/* ---- Offer Action Buttons ---- */
.offer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}

.btn--secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--ghost {
  color: var(--color-text-secondary);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
}

.btn--ghost:hover {
  color: var(--color-primary);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 16px var(--space-8);
  font-size: var(--font-size-md);
}

/* Accept offer — distinct success treatment */
.btn--accept {
  background: var(--color-success);
  color: white;
}

.btn--accept:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
  color: white;
}

/* Curiosity CTA — the primary unlock button */
.btn--unlock {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  box-shadow: 0 4px 20px rgba(67, 56, 202, 0.35);
  position: relative;
  overflow: hidden;
}

.btn--unlock::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: btn-shimmer 2.5s ease-in-out infinite;
}

.btn--unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(67, 56, 202, 0.45);
  color: white;
}

/* ---- Offer disclaimer ---- */
.offer-disclaimer {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}


/* ============================================================
   9. TIMELINE SECTION — "WHAT HAPPENS NEXT?"
   ============================================================ */
.timeline {
  padding: var(--space-12) 0;
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-header__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-header__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.section-header__body {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: flex;
  gap: var(--space-5);
  position: relative;
}

/* The vertical connector line between steps */
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px; /* center of the node */
  top: 48px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--color-border);
}

.timeline-step__node {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-3);
  position: relative;
  z-index: 1;
}

.timeline-step__node svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.timeline-step__content {
  flex: 1;
  padding: var(--space-4) 0 var(--space-8);
}

.timeline-step__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline-step__body {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.timeline-step__duration {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

/* SPR-013: each roadmap step is a native disclosure. Collapsed, it shows the
   icon, heading and timing label; the description appears when opened. */
.timeline-step__summary {
  display: block;
  position: relative;
  min-height: 44px;
  padding-right: var(--space-8);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}

.timeline-step__summary::-webkit-details-marker {
  display: none;
}

.timeline-step__summary .timeline-step__title {
  display: block;
}

.timeline-step__summary::after {
  content: '';
  position: absolute;
  top: 6px;
  right: var(--space-2);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.timeline-step__details[open] > .timeline-step__summary::after {
  top: 10px;
  transform: rotate(-135deg);
}

.timeline-step__summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.timeline-step__details > .timeline-step__body {
  margin-top: var(--space-2);
}

/* SPR-013: the review step's "You're here now" badge shows only when portal
   state establishes it as current; otherwise it would mislabel the seller's step. */
.timeline-step[data-roadmap-step="review"]:not(.timeline-step--current) .timeline-step__duration {
  display: none;
}

/* SPR-013: the seller's current step gets a slow, gentle glow on its timing label
   in the badge's own indigo (--color-primary #4338CA = rgb 67 56 202). The text
   colour never changes; no flashing or scaling. */
.timeline-step--current .timeline-step__duration {
  box-shadow: 0 0 0 2px rgba(67, 56, 202, 0.25);
  animation: roadmap-current-glow 2.8s ease-in-out infinite;
}

@keyframes roadmap-current-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(67, 56, 202, 0.25); }
  50%      { box-shadow: 0 0 0 5px rgba(67, 56, 202, 0.25), 0 0 14px 2px rgba(67, 56, 202, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-step--current .timeline-step__duration {
    animation: none; /* the static 2px ring remains as emphasis */
  }
}


/* ============================================================
   10. FAQ SECTION
   ============================================================ */
.faq {
  padding: var(--space-12) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.is-open {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  cursor: pointer;
  gap: var(--space-4);
  transition: background var(--transition-fast);
}

.faq-item__trigger:hover {
  background: var(--color-bg);
}

.faq-item.is-open .faq-item__trigger {
  background: var(--color-primary-light);
}

.faq-item__question {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  line-height: 1.4;
}

.faq-item.is-open .faq-item__question {
  color: var(--color-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), background var(--transition-fast);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-primary);
}

.faq-item__icon svg {
  width: 12px;
  height: 12px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.faq-item.is-open .faq-item__icon svg {
  color: white;
}

.faq-item__answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  background: var(--color-surface);
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

.faq-item__answer p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ============================================================
   11. CONTACT SECTION
   ============================================================ */
.contact {
  padding: var(--space-12) 0;
}

.contact-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: white;
}

.agent-info__name {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.agent-info__title {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.contact-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: inherit;
}

.contact-option__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option__icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.contact-option__text {
  flex: 1;
}

.contact-option__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-option__value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.contact-option:hover .contact-option__value {
  color: var(--color-primary);
}


/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.site-footer__links {
  display: flex;
  gap: var(--space-5);
}

.site-footer__links a {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-primary);
}

.site-footer__legal {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 480px;
}

/* Secure seal row */
.site-footer__seals {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
}

.seal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.seal svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}


/* ============================================================
   13. MODAL — Question / Request Call
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition-base);
  position: relative;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: var(--color-border);
}

.modal__close svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-secondary);
}

.modal__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.modal__body {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 11px var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Confirmation / success state inside modal */
.modal-success {
  text-align: center;
  padding: var(--space-6) 0;
}

.modal-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.modal-success__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-success);
}

.modal-success__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.modal-success__body {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 300;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   14. ANIMATIONS
   ============================================================ */

/* Active node pulse ring */
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--color-accent-glow), var(--shadow-md); }
  50%       { box-shadow: 0 0 0 8px var(--color-accent-glow), var(--shadow-md); }
}

/* Shimmer sweep across CTA button */
@keyframes btn-shimmer {
  0%   { left: -100%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}

/* Fade + slide up for page sections */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.5s ease both;
}

.animate-fade-up--delay-1 { animation-delay: 0.1s; }
.animate-fade-up--delay-2 { animation-delay: 0.2s; }
.animate-fade-up--delay-3 { animation-delay: 0.3s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   15. RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================================ */

/* Small screens (≥ 480px) */
@media (min-width: 480px) {
  .offer-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .offer-actions .btn {
    flex: 1;
    min-width: 140px;
  }
}

/* SPR-013: proposal actions keep their full labels readable at every width.
   Scoped to .offer-actions; global .btn styles are unchanged. */
.offer-actions .btn {
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  min-width: 0;
}

@media (min-width: 480px) {
  .offer-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  }

  /* The primary action gets its own full-width row. */
  .offer-actions .btn--accept {
    grid-column: 1 / -1;
  }
}

/* Medium screens (≥ 640px) */
@media (min-width: 640px) {
  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .section-header__title {
    font-size: var(--font-size-2xl);
  }

  .stage-node__label {
    font-size: var(--font-size-sm);
  }

  .contact-card {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .contact-card__header {
    flex: 0 0 100%;
  }

  .contact-options {
    flex: 1;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
  }

  .site-footer__legal {
    max-width: 300px;
  }
}

/* Large screens (≥ 768px) */
@media (min-width: 768px) {
  .offer-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .offer-amount-block__value {
    font-size: var(--font-size-4xl);
  }

  .contact-options {
    display: grid;
    /* SPR-013: use two columns only when each can hold the email on one line;
       otherwise stack. overflow-wrap remains the fallback for very long emails. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  }
}

/* ==================================================
   Identity Component v2
================================================== */

.hero {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 2rem;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .25rem;
    color: #4338CA;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-top: .25rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #EEF2FF;
    color: #4338CA;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
}

.hero-content {
    margin-bottom: 2rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12rem;
    font-size: .75rem;
    color: #6B7280;
    margin-bottom: .5rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: .75rem;
}

.property-address {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    color: #4B5563;
    font-size: 1rem;
}

.hero-footer {
    border-top: 1px solid #E5E7EB;
    padding-top: 1.25rem;
}

.label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: .3rem;
}

.last-updated strong {
    color: #111827;
}

/* ============================================================
   SPRINT 2.5.1
   STAGE 2 LOCKED OFFER + ACTIVE STATUS PULSE
   ============================================================ */

.offer-status-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: visible;
}

.offer-status-pulse__dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--color-success);
  border-radius: 50%;
}

.offer-status-pulse__dot::before,
.offer-status-pulse__dot::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 100%;
  content: "";
  background: var(--color-success);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  animation: offerStatusPulse 2s ease-out infinite;
}

.offer-status-pulse__dot::after {
  animation-delay: 1s;
}

@keyframes offerStatusPulse {
  0% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
  }

  75%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

.offer-amount-block--locked {
  position: relative;
}

.offer-locked-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 92px;
}

.offer-amount-block__value--blurred {
  display: inline-block;
  filter: blur(12px);
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.offer-lock-icon {
  display: flex;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid rgba(79, 70, 229, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(79, 70, 229, 0.04),
    0 10px 30px rgba(31, 41, 55, 0.08);
}

.offer-lock-icon svg {
  width: 28px;
  height: 28px;
}

.offer-lock-message {
  margin-top: 8px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

#btn-accept-offer:disabled {
  cursor: not-allowed;
  filter: grayscale(0.15);
  opacity: 0.55;
}

@media (max-width: 640px) {
  .offer-locked-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .offer-lock-icon {
    width: 54px;
    height: 54px;
  }

  .offer-lock-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-status-pulse__dot::before,
  .offer-status-pulse__dot::after {
    animation: none;
  }
}


/* ============================================================
   TUNZA-SPRINT-002 — LOCAL-ONLY DEVELOPER PREVIEW
   Rendered only when the code flag and loopback hostname agree.
   ============================================================ */
body.is-developer-preview {
  padding-top: 42px;
  padding-bottom: min(390px, 55vh);
}

.developer-preview-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  color: #ffffff;
  background: #7c2d12;
  border-bottom: 3px solid #fdba74;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-align: center;
}

.developer-toolbar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: 16px;
  color: #fff7ed;
  background: #431407;
  border: 2px solid #fb923c;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(67, 20, 7, 0.34);
}

.developer-toolbar__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.developer-toolbar__header strong {
  font-size: 15px;
  color: #ffffff;
}

.developer-toolbar__header span,
.developer-toolbar__notice {
  font-size: 11px;
  color: #fed7aa;
}

.developer-toolbar__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.developer-toolbar__step,
.developer-toolbar__reset {
  min-height: 42px;
  padding: 8px 10px;
  color: #fff7ed;
  background: #7c2d12;
  border: 1px solid #fdba74;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.developer-toolbar__step:hover,
.developer-toolbar__step:focus-visible,
.developer-toolbar__reset:hover,
.developer-toolbar__reset:focus-visible {
  color: #431407;
  background: #ffedd5;
  outline: 3px solid #fdba74;
  outline-offset: 2px;
}

.developer-toolbar__step[aria-pressed="true"] {
  color: #431407;
  background: #fdba74;
  border-color: #ffffff;
}

.developer-toolbar__reset {
  width: 100%;
  margin-top: 10px;
  background: transparent;
}

.developer-toolbar__notice {
  margin: 10px 0 0;
  line-height: 1.45;
}

@media (max-width: 640px) {
  body.is-developer-preview {
    padding-top: 58px;
    padding-bottom: 286px;
  }

  .developer-preview-banner {
    min-height: 58px;
    font-size: 10px;
  }

  .developer-toolbar {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 278px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
  }

  .developer-toolbar__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .developer-toolbar *,
  .developer-preview-banner {
    scroll-behavior: auto;
    transition: none;
  }
}

/* ============================================================
   TUNZA-SPRINT-005 — MOBILE OPTIMIZATION
   Narrow-screen layout, touch targets, safe wrapping, and
   mobile keyboard/orientation resilience.
   ============================================================ */

.btn,
.faq-item__trigger,
.contact-option,
.site-footer__links a {
  min-height: 44px;
}

.modal__close {
  width: 44px;
  height: 44px;
}

.form-input,
.form-textarea {
  font-size: 16px;
}

.contact-option__text,
.agent-info,
.offer-card__header > *,
.offer-meta__item,
.timeline-step__content {
  min-width: 0;
}

.contact-option__value,
.agent-info__name,
.offer-card__property,
.offer-meta__value,
.hero__address span,
.site-footer__legal {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toast {
  width: max-content;
  max-width: calc(100vw - 32px);
  white-space: normal;
  text-align: center;
}

.modal {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .container {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .section,
  .section--lg,
  .timeline,
  .faq,
  .contact {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .site-header__inner {
    min-height: 64px;
  }

  .site-header__logo {
    min-width: 0;
    gap: var(--space-3);
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .logo-text {
    min-width: 0;
    font-size: var(--font-size-sm);
  }

  .logo-text span {
    font-size: 10px;
  }

  .trust-badge {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: var(--space-2);
  }

  .trust-badge span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .trust-badge svg {
    width: 16px;
    height: 16px;
  }

  .stage-rail {
    padding: var(--space-5) 0 var(--space-4);
  }

  .stage-rail__track {
    width: calc(100% - 56px);
  }

  .stage-node {
    min-width: 0;
    gap: 6px;
  }

  .stage-node__label {
    max-width: 72px;
    padding: 0 2px;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero {
    margin-bottom: var(--space-5);
    padding: var(--space-8) 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .hero__greeting {
    font-size: var(--font-size-md);
  }

  .hero__title,
  .hero-content h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .offer-card,
  .contact-card,
  .modal {
    padding: var(--space-5);
  }

  .offer-card__header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .offer-amount-block__value,
  .offer-amount-block__teaser .dots {
    font-size: clamp(2rem, 12vw, var(--font-size-4xl));
  }

  .offer-meta {
    grid-template-columns: 1fr;
  }

  .offer-actions {
    width: 100%;
  }

  .offer-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .faq-item__trigger {
    padding: var(--space-4);
  }

  .faq-item__answer {
    padding: 0 var(--space-4) var(--space-4);
  }

  .contact-card__header {
    align-items: flex-start;
  }

  .contact-option {
    padding: var(--space-3);
  }

  .site-footer__links {
    width: 100%;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .site-footer__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-3);
  }

  .modal-overlay {
    align-items: flex-end;
    padding: var(--space-3);
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding-top: var(--space-8);
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 359px) {
  .container {
    padding-right: var(--space-3);
    padding-left: var(--space-3);
  }

  .logo-text {
    font-size: 12px;
  }

  .stage-node__circle {
    width: 28px;
    height: 28px;
  }

  .stage-rail__track {
    top: 14px;
    width: calc(100% - 48px);
  }

  .stage-node__label {
    max-width: 62px;
    font-size: 9px;
  }

  .offer-card,
  .contact-card,
  .modal {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal {
    max-height: none;
    margin: var(--space-3) auto;
  }
}
