/* Damn Parking — Tesla-inspired product marketing + living portal */

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

:root {
  --black: #000000;
  --ink: #171a20;
  --panel: #f4f4f4;
  --white: #ffffff;
  --muted: #5c5e62;
  --muted-2: #8e8e8e;
  --line: rgba(0, 0, 0, 0.08);
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --accent: #cc0000;
  --open: #12a15c;
  --occ: #c62828;
  --glass: rgba(255, 255, 255, 0.08);
  --font: 'Outfit', system-ui, sans-serif;
  --nav-h: 3.5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 72rem;
  --doc-max: 42rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: 0.45rem; }

/* —— Nav (Tesla-like transparent over hero) —— */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled,
body:not(.page-home) .site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.page-home .site-nav:not(.is-scrolled) .brand,
.page-home .site-nav:not(.is-scrolled) .nav-links a,
.page-home .site-nav:not(.is-scrolled) .nav-toggle {
  color: var(--white) !important;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Kill global li + li { margin-top } so horizontal rows stay level */
.nav-links li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.85;
  transition: opacity 0.2s, border-color 0.2s;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: #0a0b0d;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#parking-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 32%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 40rem);
  padding-bottom: 1.5rem;
  animation: fade-up 1s var(--ease) both;
}

.hero-brand {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  line-height: 1.45;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.25;
  border-radius: 0.25rem;
  /* Shared border box so primary/ghost/outline rows stay level */
  border: 1px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, transform 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-dark:hover { background: #000; color: var(--white); border-color: #000; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-width: 3px;
  border-color: var(--ink);
  padding: calc(0.7rem - 2px) calc(1.5rem - 2px);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Minimal live status under CTAs */
.live-hud {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1.75rem 2.5rem;
  flex-wrap: wrap;
  padding: 0 1.5rem 2.75rem;
  animation: fade-up 1s 0.15s var(--ease) both;
}

.hud-cell { text-align: center; min-width: 4.5rem; }
.hud-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.2rem;
}
.hud-value {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.hud-value.open { color: #3dd68c; }
.hud-value.occ { color: #ff8a80; }
.hud-value.live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}
.live-dot {
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: #3dd68c;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Full-bleed marketing bands —— */
.story {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}

.story-inner { width: min(100%, 40rem); }

.story h2 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.story p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.story-dark {
  background: var(--ink);
  color: var(--white);
}
.story-dark p { color: rgba(255, 255, 255, 0.65); }

.story-light { background: var(--white); color: var(--ink); }

.story-panel { background: var(--panel); }

.story-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* —— Portal strip —— */
.portal-strip {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.portal-strip .intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.portal-strip .intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}
.portal-strip .intro p { color: var(--muted); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.75rem 1.5rem;
  background: var(--panel);
  border-radius: 0.75rem;
  min-height: 11rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  color: var(--ink);
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  color: var(--ink);
}
.tile-num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tile h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.tile p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}
.tile-arrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* —— Inner pages —— */
.page-main {
  padding-top: calc(var(--nav-h) + 0.5rem);
  padding-bottom: 4rem;
  background: var(--white);
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero .eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.85rem;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 auto;
}

.page-hero .lede {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.section:last-child { border-bottom: none; }

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.section h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.75rem 0 0.55rem;
  color: var(--ink);
}

.section p { color: var(--ink); }
.section p + p { margin-top: 0.85rem; }
.section .muted,
.muted { color: var(--muted); }

.doc-body { max-width: var(--doc-max); margin-inline: auto; }
.page-main .container > .section .doc-body,
.page-main .container.doc-body { margin-inline: auto; }

.page-main .container:has(.team-grid),
.page-main .container:has(.tile-grid) {
  max-width: var(--max);
}

/* Doc/body links; nav & CTAs set their own colors */
a:not(.btn):not(.tile):not(.brand):not(.pdf-link) {
  color: var(--accent);
}
a:not(.btn):not(.tile):not(.brand):not(.pdf-link):hover {
  text-decoration: underline;
}
.nav-links a,
.site-nav .nav-links a {
  color: var(--ink) !important;
  text-decoration: none !important;
}
.page-home .site-nav:not(.is-scrolled) .nav-links a {
  color: var(--white) !important;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.subnav li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--muted) !important;
  text-decoration: none !important;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}
.subnav a:hover,
.subnav a[aria-current="page"] {
  color: var(--ink) !important;
  border-bottom-color: var(--accent);
}

.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.doc-toolbar .pdf-link,
.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0.25rem;
  box-sizing: border-box;
  text-decoration: none;
}
.doc-toolbar .pdf-link:hover,
.pdf-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* Inline PDF viewers — readable scroll on-page */
.pdf-panel {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pdf-panel:first-of-type {
  margin-top: 1.5rem;
}
.pdf-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}
.pdf-panel-header h2,
.pdf-panel-header h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pdf-panel-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
  max-width: 42rem;
  line-height: 1.45;
}
.doc-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-label span {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: var(--panel);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.pdf-viewer {
  width: 100%;
  height: min(80vh, 56rem);
  min-height: 30rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  overflow: hidden;
}
.pdf-viewer iframe,
.pdf-viewer object,
.pdf-viewer embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}
.doc-body.with-pdfs {
  max-width: min(100%, 56rem);
}
.page-main .container:has(.pdf-panel) {
  max-width: min(100% - 3rem, 56rem);
}

/* Coming soon tiles / soft links */
.tile.tile-soon,
.tile-soon {
  cursor: default;
  opacity: 0.78;
  background: #f7f7f7;
}
a.tile.tile-soon {
  cursor: pointer;
  pointer-events: auto;
}
.tile.tile-soon:hover {
  transform: none;
  box-shadow: none;
}
div.tile.tile-soon {
  pointer-events: none;
}
.tile-soon .tile-arrow {
  color: var(--muted);
}
.status-pill.soon {
  background: var(--panel);
  color: var(--muted);
}
.nav-links a[aria-disabled="true"],
.nav-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.coming-soon-block {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}
.coming-soon-block h2 {
  margin-bottom: 0.75rem;
}
.coming-soon-block p {
  color: var(--muted);
  max-width: 32rem;
  margin-inline: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: stretch;
}
@media (min-width: 40rem) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  padding: 1.5rem 1.35rem 1.65rem;
  background: var(--panel);
  border-radius: 0.75rem;
  border-top: none;
  height: 100%;
}
.member-photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  background: var(--line);
}
.member-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}
.member-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  max-width: 16rem;
}
.member h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.member-copy > p:not(.member-role) {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: pretty;
}
@media (min-width: 48rem) {
  .member {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .member-photo {
    width: 7.25rem;
    height: 7.25rem;
  }
  .member-copy {
    align-items: flex-start;
  }
  .member-role {
    max-width: none;
  }
}

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
}
tr:hover td { background: rgba(0, 0, 0, 0.02); }

.callout {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--ink);
  background: var(--panel);
  border-radius: 0 0.5rem 0.5rem 0;
}
.callout strong { color: var(--ink); }
.pivot { border-left-color: var(--accent); }

.lot-strip { display: none; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  background: var(--white);
}
.footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.footer-meta {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 28rem;
}
.footer-meta a { color: var(--ink); text-decoration: underline; }

.disclosure {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--panel);
}
.disclosure h3 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.status-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  background: #e8f5e9;
  color: var(--open);
}
.status-pill.draft {
  background: var(--panel);
  color: var(--muted);
}

@media (max-width: 900px) {
  .tile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  .page-home .site-nav:not(.is-scrolled) .nav-links {
    background: rgba(0, 0, 0, 0.92);
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    margin: 0;
    width: 100%;
  }
  .nav-links a {
    display: flex;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink) !important;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    border-bottom-color: var(--line);
  }
  .page-home .site-nav:not(.is-scrolled) .nav-links a {
    color: var(--white) !important;
    border-bottom-color: var(--line-on-dark);
  }
  .page-home .site-nav:not(.is-scrolled) .nav-links a:hover,
  .page-home .site-nav:not(.is-scrolled) .nav-links a[aria-current="page"] {
    border-bottom-color: var(--line-on-dark);
  }
  .live-hud { gap: 1.25rem; }
  .hud-cell:last-child { flex-basis: 100%; }
}

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