/* ─────────────────────────────────────────────────────────────
   SMART LIVING MIAMI — Investment Platform
   Light · minimalist · modern. Hairline borders, generous air,
   one restrained Biscayne-teal accent. No cream, no serif clichés.
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  /* Ink & paper */
  --ink:        #0B0C0E;   /* near-black headings */
  --ink-2:      #34383D;   /* body strong */
  --body:       #5B6067;   /* body text */
  --muted:      #8A8F96;   /* captions */
  --faint:      #B4B8BD;   /* disabled / hints */

  --white:      #FFFFFF;
  --paper:      #FBFBFA;   /* app background (barely off-white, NOT cream) */
  --surface:    #FFFFFF;   /* cards */
  --surface-2:  #F5F6F5;   /* subtle fills */
  --line:       #E7E8E6;   /* hairline borders */
  --line-2:     #DBDCDA;   /* stronger hairline */

  /* Accent — Biscayne teal (used sparingly) */
  --accent:     #0E5F57;
  --accent-2:   #0A423D;   /* darker */
  --accent-lt:  #E6F1EF;   /* tint fill */
  --accent-ink: #0B3A35;

  /* States */
  --pos:        #1F8A5B;   /* available / funded / up */
  --pos-bg:     #E9F5EE;
  --warn:       #B8791B;   /* reserved / interested */
  --warn-bg:    #FBF1E1;
  --neg:        #B4433B;   /* sold / risk */
  --neg-bg:     #FbeceB;

  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11,12,14,0.04), 0 1px 3px rgba(11,12,14,0.06);
  --shadow:    0 4px 24px rgba(11,12,14,0.06), 0 1px 2px rgba(11,12,14,0.04);
  --shadow-lg: 0 24px 60px rgba(11,12,14,0.12);

  --maxw: 1240px;
}

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

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }

p { color: var(--body); }
a { color: inherit; }

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--muted { color: var(--muted); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.5; font-weight: 300; }

.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--fill { background: var(--surface-2); }
.divider { border: none; border-top: 1px solid var(--line); }
.rule { width: 40px; height: 2px; background: var(--accent); border: none; margin: 1.2rem 0; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.stack { display: flex; flex-direction: column; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,251,250,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem); height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.03em;
}
.brand__name {
  display: block;
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em; color: var(--ink); line-height: 1.05;
}
.brand__sub {
  display: block;
  font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav__links a {
  font-size: 0.83rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink-2); text-decoration: none; transition: color 0.18s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__user-name { font-size: 0.82rem; color: var(--muted); }
.nav__menu-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); width: 38px; height: 38px; cursor: pointer;
  color: var(--ink); font-size: 1.1rem;
}
.nav__drawer {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem clamp(1.25rem,4vw,3rem) 1.25rem;
  border-bottom: 1px solid var(--line); background: var(--white);
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a {
  padding: 0.7rem 0; font-size: 0.95rem; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--line);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.01em; text-decoration: none; border: 1px solid transparent;
  border-radius: 999px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: var(--white); }
.btn-ghost { background: transparent; color: var(--body); }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: var(--neg-bg); color: var(--neg); }
.btn-success { background: var(--pos-bg); color: var(--pos); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 0.92rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none;
}
.link-arrow span { transition: transform 0.2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }

/* ── Hero (full-bleed) ─────────────────────────────────────── */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg svg, .hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,12,14,0.15) 0%, rgba(11,12,14,0.05) 40%, rgba(11,12,14,0.78) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .kicker { color: rgba(255,255,255,0.85); }
.hero .lead { color: rgba(255,255,255,0.9); max-width: 46ch; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero--compact { min-height: min(60vh, 520px); }

/* ── Stat strip ────────────────────────────────────────────── */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.stat {
  padding: 1.6rem 1.5rem; border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__value { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; color: var(--ink); line-height: 1; }
.stat__value.is-accent { color: var(--accent); }
.stat__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* ── Project cards (portfolio) ─────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.project-card { display: flex; flex-direction: column; text-decoration: none; cursor: pointer; }
.project-card__visual { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--surface-2); }
.project-card__visual svg, .project-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.project-card:hover .project-card__visual svg, .project-card:hover .project-card__visual img { transform: scale(1.04); }
.project-card__tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.project-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.project-card__name { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.project-card__loc { font-size: 0.82rem; color: var(--muted); }
.project-card__desc { font-size: 0.9rem; color: var(--body); margin-top: 0.2rem; }
.project-card__foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.project-card__metric { font-family: var(--display); font-weight: 500; color: var(--ink); }
.project-card__metric small { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.project-card.is-soon { pointer-events: none; }
.project-card.is-soon .project-card__visual { filter: grayscale(1); opacity: 0.7; }

/* ── Badges / pills ────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink-2);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-raising { color: var(--accent); border-color: var(--accent-lt); background: var(--accent-lt); }
.pill-soon    { color: var(--muted); }
.pill-pos     { color: var(--pos);  background: var(--pos-bg);  border-color: transparent; }
.pill-warn    { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.pill-neg     { color: var(--neg);  background: var(--neg-bg);  border-color: transparent; }
.pill--plain::before { display: none; }

/* legacy badge aliases (admin reuse) */
.badge { display:inline-flex; align-items:center; padding:0.28rem 0.7rem; font-size:0.66rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; border-radius:999px; }
.badge-available,.badge-confirmed,.badge-funded { color: var(--pos); background: var(--pos-bg); }
.badge-reserved,.badge-pending,.badge-interested,.badge-committed { color: var(--warn); background: var(--warn-bg); }
.badge-sold,.badge-released { color: var(--neg); background: var(--neg-bg); }
.badge-hot { color: var(--neg); background: var(--neg-bg); }
.badge-warm { color: var(--warn); background: var(--warn-bg); }
.badge-cold { color: var(--muted); background: var(--surface-2); }

/* ── Fact grid (brochure specs) ────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fact { background: var(--surface); padding: 1.25rem 1.4rem; }
.fact__label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact__value { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--ink); margin-top: 0.35rem; line-height: 1.1; }
.fact__value small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* ── Amenities ─────────────────────────────────────────────── */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.amenity { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 0.9rem; color: var(--ink-2); transition: border-color 0.2s, background 0.2s; }
.amenity:hover { border-color: var(--accent-lt); background: var(--accent-lt); }
.amenity__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── Neighborhood narrative cards ──────────────────────────── */
.narr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.narr { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.narr__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-lt); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.narr__ic svg { width: 20px; height: 20px; }
.narr h4 { color: var(--ink); margin-bottom: 0.4rem; }
.narr p { font-size: 0.88rem; }
.narr__flag { font-size: 0.68rem; color: var(--warn); margin-top: 0.5rem; font-weight: 600; letter-spacing: 0.04em; }

/* ── Timeline (horizontal) ─────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.tl-step { position: relative; padding-top: 2.2rem; }
.tl-step::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.tl-step:first-child::before { left: 50%; }
.tl-step:last-child::before { right: 50%; }
.tl-step__dot { position: absolute; top: 0; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-2); }
.tl-step.is-done .tl-step__dot { background: var(--accent); border-color: var(--accent); }
.tl-step.is-done::before { background: var(--accent); }
.tl-step.is-active .tl-step__dot { background: var(--white); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-lt); }
.tl-step__phase { font-family: var(--display); font-size: 0.95rem; font-weight: 500; color: var(--ink); text-align: center; }
.tl-step__meta { font-size: 0.74rem; color: var(--muted); text-align: center; margin-top: 0.25rem; }

/* ── Map ───────────────────────────────────────────────────── */
.map-frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 360px; }

/* ── Financial KPI cards ───────────────────────────────────── */
.fin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.fin-kpi { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; background: var(--surface); position: relative; }
.fin-kpi__label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fin-kpi__value { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 500; color: var(--ink); line-height: 1; margin-top: 0.6rem; }
.fin-kpi__value.is-accent { color: var(--accent); }
.fin-kpi__sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th {
  background: var(--surface-2); color: var(--muted); font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.9rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap;
}
thead th.num, tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
tbody td { padding: 0.9rem 1.15rem; color: var(--ink-2); vertical-align: middle; }
tr.is-total td { font-weight: 700; color: var(--ink); background: var(--surface-2); border-top: 2px solid var(--line-2); }
tr.is-base { background: var(--accent-lt); }
tr.is-base td { color: var(--accent-ink); font-weight: 600; }
.td-name { font-weight: 600; color: var(--ink); }
.td-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Sensitivity: highlight base column via th/td classes added inline */
.col-base { background: var(--accent-lt); }

/* ── Locked / gated financials ─────────────────────────────── */
.locked {
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center; background: var(--surface-2);
}
.locked__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 1.2rem; color: var(--accent); }

/* ── Partners ──────────────────────────────────────────────── */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; }
.partner { padding: 1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.partner__name { font-family: var(--display); font-weight: 500; color: var(--ink); }
.partner__role { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

/* ── Forms ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0.8rem 1rem; color: var(--ink); font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.18s, box-shadow 0.18s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lt);
}
.field input::placeholder { color: var(--faint); }
.field textarea { resize: vertical; min-height: 90px; }
.form-error { font-size: 0.8rem; color: var(--neg); margin-top: 0.3rem; }

/* filters bar */
.filters { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters select, .filters input {
  background: var(--white); border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 0.55rem 0.9rem; border-radius: var(--r-sm); font-family: var(--sans); font-size: 0.85rem; cursor: pointer;
}
.filters select:focus, .filters input:focus { outline: none; border-color: var(--accent); }

/* ── Admin KPI + tabs ──────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.kpi-card__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kpi-card__value { font-family: var(--display); font-size: 2rem; font-weight: 500; color: var(--ink); line-height: 1; margin-top: 0.5rem; }
.kpi-card__value.is-accent { color: var(--accent); }
.kpi-card__sub { font-size: 0.76rem; color: var(--muted); margin-top: 0.4rem; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.tab {
  padding: 0.7rem 1.15rem; font-size: 0.85rem; font-weight: 500; color: var(--muted);
  cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s; font-family: var(--sans);
}
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab:hover:not(.is-active) { color: var(--ink-2); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn 0.28s ease both; }

.pipeline { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 1rem 0 0.5rem; }
.pipeline span { display: block; height: 100%; }
.pipeline .seg-pos { background: var(--pos); }
.pipeline .seg-warn { background: var(--warn); }
.pipeline .seg-neg { background: var(--neg); }

/* ── Login split ───────────────────────────────────────────── */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth__aside { position: relative; color: var(--white); overflow: hidden; display: flex; align-items: flex-end; padding: clamp(2rem,5vw,4rem); }
.auth__aside .hero__bg { position: absolute; inset: 0; }
.auth__aside::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,14,0.3), rgba(11,12,14,0.75)); }
.auth__aside-inner { position: relative; z-index: 2; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem,5vw,4rem); background: var(--paper); }
.auth__form { width: 100%; max-width: 380px; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,12,14,0.45); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 520px; width: 100%;
  transform: scale(0.96) translateY(12px); opacity: 0; transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-overlay.is-open .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.modal__close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.modal__close:hover { color: var(--ink); }

/* ── Toasts ────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; z-index: 9999; }
.toast {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.3rem;
  border-radius: var(--r); font-size: 0.86rem; background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-lg); max-width: 340px; opacity: 0; transform: translateX(20px);
  transition: opacity 0.28s, transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.toast--visible { opacity: 1; transform: translateX(0); }
.toast--exit { opacity: 0; transform: translateX(20px); }
.toast-success { background: #12352A; }
.toast-error { background: #3A1C1A; }
.toast__icon { opacity: 0.85; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: clamp(2.5rem,6vw,4rem) 0 2.5rem; background: var(--surface); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__brand-name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.footer__col h5 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.footer__col a { display: block; font-size: 0.88rem; color: var(--body); text-decoration: none; padding: 0.25rem 0; }
.footer__col a:hover { color: var(--accent); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* ── Loading / skeleton ────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; padding: 4rem; }
.spinner { width: 34px; height: 34px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #ECEDEB 50%, var(--surface-2) 75%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

/* ── Reveal on scroll ──────────────────────────────────────── */
html.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
html.reveal-on .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.reveal-on .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1); }
html.reveal-on .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* ── Utilities ─────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-5{margin-top:3rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.flex-between{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.flex-wrap{flex-wrap:wrap}.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.maxw-prose{max-width:60ch}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__user-name { display: none; }
  .nav__menu-toggle { display: grid; place-items: center; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-step { padding: 0.9rem 0 0.9rem 2rem; }
  .tl-step::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .tl-step:first-child::before { top: 50%; left: 7px; }
  .tl-step:last-child::before { bottom: 50%; }
  .tl-step__dot { top: calc(50% - 8px); left: 0; }
  .tl-step__phase, .tl-step__meta { text-align: left; }
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .brand__sub { display: none; }
  .brand__name { font-size: 0.8rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  /* stacked two-column brochure/about grids collapse */
  .section .container.grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 820px) {
  .container.grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html.reveal-on .reveal, html.reveal-on .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
