/* ════════════════════════════════════════════════════════════
   ImmoMVP — Apple-Dark Reinterpretation
   Semantic dark (base #000, elevated grays float above),
   systemBlue as the single tint, frosted glass only in the nav layer,
   spring-motion, continuous corners, 8pt grid, SF (→ Inter) type scale.
   ════════════════════════════════════════════════════════════ */
:root {
  /* ── Backgrounds: base (recedes) → elevated (comes forward) ── */
  --bg-base:        #000000;
  --bg-elevated-1:  #0A0A0C;   /* sections that lift a hair off pure black   */
  --surface-1:      #1C1C1E;   /* secondarySystemBackground — card           */
  --surface-2:      #2C2C2E;   /* tertiarySystemBackground — nested / popover */
  --surface-hair:   rgba(255,255,255,.08);
  --surface-hair-2: rgba(255,255,255,.12);

  /* ── The one tint ── systemBlue (dark) ── */
  --blue:        #0A84FF;
  --blue-press:  #0972de;
  --blue-tint:   rgba(10,132,255,.14);
  --blue-tint-2: rgba(10,132,255,.22);

  /* ── Semantic (used only when tied to status, never decoration) ── */
  --green:  #30D158;
  --red:    #FF453A;
  --orange: #FF9F0A;
  --teal:   #40CBE0;

  /* ── Labels: Apple alpha composites over dark ── */
  --label:   #FFFFFF;
  --label-2: rgba(235,235,245,.60);
  --label-3: rgba(235,235,245,.30);
  --label-4: rgba(235,235,245,.18);

  /* ── Type ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;

  /* ── Radii (continuous-corner intent; CSS rounds — see README note) ── */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 980px;

  /* ── Motion: spring presets ported from the audit ──
     smooth  = critically damped settle
     snappy  = small overshoot
     out     = apple.com signature deceleration */
  --spring-smooth: cubic-bezier(0.32, 0.72, 0, 1);
  --spring-snappy: cubic-bezier(0.34, 1.32, 0.46, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Adaptive shadow (stronger near text / floating elements) ── */
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 28px rgba(0,0,0,.5);
  --shadow-float: 0 24px 70px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--bg-base);
  color: var(--label);
  font-family: var(--font);
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-tint-2); }

/* ── Type scale (SF / Inter) ──────────────────────────────── */
.t-largetitle { font: 700 clamp(40px,6vw,68px)/1.05 var(--font); letter-spacing: -.025em; }
.t-title1     { font: 600 clamp(30px,3.6vw,44px)/1.08 var(--font); letter-spacing: -.022em; }
.t-title2     { font: 600 28px/1.18 var(--font); letter-spacing: -.018em; }
.t-title3     { font: 600 22px/1.25 var(--font); letter-spacing: -.012em; }
.t-headline   { font: 600 17px/1.3 var(--font); letter-spacing: -.01em; }
.t-body       { font: 400 17px/1.5 var(--font); letter-spacing: -.005em; }
.t-callout    { font: 400 16px/1.4 var(--font); letter-spacing: 0; }
.t-sub        { font: 400 15px/1.45 var(--font); }
.t-footnote   { font: 400 13px/1.4 var(--font); }
.t-caption    { font: 400 12px/1.35 var(--font); }
.eyebrow {
  font: 600 13px/1 var(--font); letter-spacing: .02em;
  color: var(--blue); text-transform: none;
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION — the single glass layer in the whole page
   ════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  isolation: isolate;
  transition: height .4s var(--spring-smooth);
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(20,20,22,.6);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  opacity: 0;
  transition: opacity .4s var(--spring-smooth);
}
.nav.scrolled::before { opacity: 1; }
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--surface-hair);
  opacity: 0; transition: opacity .4s var(--spring-smooth);
}
.nav.scrolled::after { opacity: 1; }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 56px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-logo span { font: 600 18px var(--font); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { font: 400 14px var(--font); letter-spacing: -.005em; color: var(--label-2); transition: color .2s var(--ease-out); }
.nav-links a:hover { color: var(--label); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-signin { font: 400 14px var(--font); color: var(--label-2); padding: 8px 12px; transition: color .2s; }
.nav-signin:hover { color: var(--label); }

/* ── Buttons ── flat systemBlue fill (Apple capsule); tint discipline ── */
.btn-blue {
  appearance: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--blue); color: #fff;
  font: 600 15px var(--font); letter-spacing: -.01em;
  transition: transform .4s var(--spring-snappy), background .25s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-blue:hover { transform: scale(1.035); background: #2a93ff; box-shadow: 0 6px 22px rgba(10,132,255,.4); }
.btn-blue:active { transform: scale(.97); background: var(--blue-press); }
.btn-blue.sm { padding: 8px 16px; font-size: 14px; }
.btn-blue.lg { padding: 15px 30px; font-size: 17px; }

/* Secondary — quiet, neutral, no tint fill (keeps the blue singular) */
.btn-quiet {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--label);
  border: 1px solid var(--surface-hair);
  font: 600 15px var(--font); letter-spacing: -.01em;
  transition: transform .4s var(--spring-snappy), background .25s var(--ease-out);
}
.btn-quiet:hover { transform: scale(1.035); background: #3a3a3c; }
.btn-quiet:active { transform: scale(.97); }
.btn-quiet.lg { padding: 15px 28px; font-size: 17px; }

/* Text link with chevron (Apple "Learn more ›") */
.link-blue { color: var(--blue); font: 400 16px var(--font); display: inline-flex; align-items: center; gap: 3px; transition: opacity .2s; }
.link-blue:hover { opacity: .8; }
.link-blue svg { transition: transform .3s var(--ease-out); }
.link-blue:hover svg { transform: translateX(2px); }

/* ════════════════════════════════════════════════════════════
   CARDS — solid elevated surfaces (never glass-on-glass)
   ════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface-1);
  border: 1px solid var(--surface-hair);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* ── Scroll reveal: spring rise ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--spring-smooth); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ════════════════════════════════════════════════════════════
   SCROLL FEATURE SHOWCASE  (calmer, Apple-conformant)
   ════════════════════════════════════════════════════════════ */
.sf-section { height: 720vh; position: relative; }
.sf-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 0 24px;
}
.sf-grid {
  max-width: 1040px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.sf-text-col { position: relative; min-height: 420px; }
.sf-text-panel { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; padding-right: 16px; }
.sf-phone-col { display: flex; justify-content: center; align-items: center; }
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Progress dots (Apple page-control) — indicator glides with scroll */
.sf-dots { position: relative; display: flex; gap: 7px; margin-top: 28px; width: 77px; height: 7px; }
.sf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--label-4); }
.sf-dot-indicator {
  position: absolute; top: 0; left: 0; width: 22px; height: 7px;
  border-radius: 980px; background: var(--blue);
  transform: translateX(calc(var(--sf-idx, 0) * 14px - 7.5px));
  transition: transform .12s linear; will-change: transform;
}
.sf-dots-mobile { display: none; }   /* only shown in the mobile showcase layout */

/* ── Pricing ── */
.price-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--surface-hair);
}
.price-opt {
  appearance: none; border: none; cursor: pointer;
  padding: 9px 18px; border-radius: var(--r-pill);
  font: 600 14px var(--font); letter-spacing: -.01em; color: var(--label-2);
  background: transparent; transition: color .25s, background .35s var(--spring-smooth);
  display: inline-flex; align-items: center; gap: 8px;
}
.price-opt[data-on="true"] { color: #fff; background: var(--blue); }
.price-save { font: 600 11px var(--font); padding: 2px 7px; border-radius: var(--r-pill); background: var(--green); color: #00210d; }
.price-opt[data-on="true"] .price-save { background: rgba(255,255,255,.22); color: #fff; }

.price-card { position: relative; background: var(--surface-1); border: 1px solid var(--surface-hair); border-radius: var(--r-xl); padding: 28px 26px; transition: transform .4s var(--spring-smooth); }
.price-card.featured { background: var(--surface-2); border-color: rgba(10,132,255,.5); box-shadow: 0 0 0 1px rgba(10,132,255,.25), var(--shadow-float); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--surface-hair); margin-top: 40px; }
.footer-grid {
  max-width: 1120px; margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px;
}
.footer-grid a { font: 400 14px var(--font); color: var(--label-2); transition: color .2s; }
.footer-grid a:hover { color: var(--label); }
.footer-col-title { font: 600 12px var(--font); color: var(--label-3); margin-bottom: 14px; }
.footer-bottom {
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--surface-hair);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .sf-grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 18px; }
}

/* ── Mobile showcase: iPhone is the hero — only a wechselnder kicker above,
      page-dots below. Panels are OVERLAID (not stacked) so the column keeps a
      fixed tiny height and the device stays centred in the sticky viewport. ── */
@media (max-width: 860px) {
  .sf-section { height: 560vh; }
  .sf-sticky { justify-content: center; padding: 16px; }

  /* text column collapses to a single-line kicker (Nummer · Eyebrow) */
  .sf-text-col { position: relative; min-height: 28px; width: 100%; }
  .sf-text-panel { position: absolute; top: 0; left: 0; right: 0; text-align: center; padding-right: 0; }
  .sf-kicker { justify-content: center; margin-bottom: 0 !important; }
  .sf-text-panel .t-title1,
  .sf-panel-body,
  .sf-panel-bullets,
  .sf-text-panel .sf-dots { display: none !important; }   /* !important beats the inline display:flex on the bullets */

  /* device: large & centred, scales down gracefully on narrow phones */
  .sf-phone-col { width: 100%; }
  .sf-iphone-wrap { width: min(290px, 70vw) !important; }

  /* page-control dots beneath the device */
  .sf-dots-mobile { display: flex; justify-content: center; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════
   MANIFESTO
   ════════════════════════════════════════════════════════════ */
.manifesto { max-width: 1120px; margin: 0 auto; padding: 48px 24px; }
.manifesto-card {
  position: relative; overflow: hidden;
  background: var(--surface-1); border: 1px solid var(--surface-hair);
  border-radius: var(--r-xl); padding: 56px 48px;
}
.manifesto-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,132,255,.7) 50%, transparent);
}
.manifesto-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.mani-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.mani-badge {
  background: var(--surface-2); border: 1px solid var(--surface-hair);
  border-radius: var(--r-md); padding: 16px;
  transition: transform .4s var(--spring-smooth), background .25s var(--ease-out);
}
.mani-badge:hover { transform: translateY(-2px); background: #3a3a3c; }
.mani-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
@media (max-width: 760px) {
  .manifesto-card { padding: 36px 24px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 28px; }
  .mani-badges { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════
   BENTO
   ════════════════════════════════════════════════════════════ */
.bento-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.bento-card {
  position: relative; overflow: hidden;
  background: var(--surface-1); border: 1px solid var(--surface-hair);
  border-radius: var(--r-lg); padding: 24px;
  transition: transform .4s var(--spring-smooth), border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.bento-card:hover { transform: translateY(-3px); border-color: rgba(10,132,255,.4); background: var(--surface-2); }
.bento-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bento-pill { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--blue-tint); border: 1px solid rgba(10,132,255,.4); color: var(--blue); font: 600 11px var(--font); }
@media (max-width: 760px) {
  .bento-grid { grid-template-columns: repeat(2,1fr); }
  .bento-card[data-span="2"] { grid-column: span 1 !important; }
  .bento-card[data-span="3"] { grid-column: span 2 !important; }
}
@media (max-width: 460px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card[data-span="3"] { grid-column: span 1 !important; }
}

/* ════════════════════════════════════════════════════════════
   PRICING TABLE
   ════════════════════════════════════════════════════════════ */
.pt { background: var(--surface-1); border: 1px solid var(--surface-hair); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.pt-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.pt-head { border-bottom: 1px solid var(--surface-hair); }
.pt-headcol { padding: 24px 22px; border-left: 1px solid var(--surface-hair); position: relative; }
.pt-headcol.feat { background: var(--blue-tint); }
.pt-name { font: 600 17px var(--font); letter-spacing: -.01em; }
.pt-price { font: 700 30px var(--font); letter-spacing: -.03em; margin-top: 6px; }
.pt-sub { font: 400 12px var(--font); color: var(--label-3); margin-top: 2px; }
.pt-badge { position: absolute; top: 0; left: 22px; background: var(--blue); color: #fff; font: 600 10px var(--font); letter-spacing: .04em; padding: 4px 10px; border-radius: 0 0 8px 8px; }
.pt-fcell { padding: 14px 22px; font: 400 14px var(--font); color: var(--label-2); }
.pt-cell { padding: 14px 22px; border-left: 1px solid var(--surface-hair); display: flex; align-items: center; }
.pt-cell.feat { background: rgba(10,132,255,.06); }
.pt-rowline { border-bottom: 1px solid var(--surface-hair); }
.pt-mobile { display: none; flex-direction: column; gap: 16px; }
@media (max-width: 820px) {
  .pt-desktop { display: none; }
  .pt-mobile { display: flex; max-width: 420px; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════
   REVIEWS
   ════════════════════════════════════════════════════════════ */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.review-card {
  background: var(--surface-1); border: 1px solid var(--surface-hair);
  border-radius: var(--r-lg); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .4s var(--spring-smooth), border-color .3s var(--ease-out);
}
.review-card:hover { transform: translateY(-3px); border-color: var(--surface-hair-2); }
.review-stars { display: flex; gap: 3px; color: var(--blue); }
.review-quote { font: 400 17px/1.5 var(--font); letter-spacing: -.01em; color: var(--label); }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--surface-hair); display: flex; align-items: center; justify-content: center; font: 600 14px var(--font); color: var(--label-2); flex-shrink: 0; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
