/* Lightweight public shell: coming-soon + topbar + login/waitlist forms only.
   Full workspace and live landing pages load styles.css dynamically. */
:root {
  color-scheme: light;
  --ss-navy: #0b2c56;
  --ss-ocean: #1e6fd6;
  --ss-ocean-dark: #1658ad;
  --ss-border: #c5d4e8;
  --ss-text-secondary: #5b6b82;
  --ink: var(--ss-navy);
  --muted: var(--ss-text-secondary);
  --line: var(--ss-border);
  --paper: #ffffff;
  --panel: #ffffff;
  --teal-soft: #eaf9f8;
  --teal: #58c7c2;
  --coral: #ff8a8a;
  --shadow-hover: 0 18px 42px rgba(20, 33, 61, 0.14);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

h2, p { margin: 0; }

button, input, textarea { font: inherit; }

button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ss-ocean);
  color: #ffffff;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

input, textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcff;
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.muted { color: var(--muted); }

.app-shell { min-height: 100vh; max-width: 100%; overflow-x: clip; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  display: block;
  width: min(280px, 58vw);
  height: 96px;
  object-fit: contain;
  object-position: left center;
}

/* Compact chrome once workspace boots (before deferred features.css). */
body.internal-dashboard .topbar {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
}

body.internal-dashboard .site-logo {
  width: auto;
  max-width: 220px;
  height: 56px;
  max-height: 56px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-button { display: none; }

.logout-button,
.workspace-search { display: none; }

.main-panel { min-width: 0; max-width: 100%; }

.public-mode {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 45%, #f4f8fb 100%);
  color: #0b2c56;
}

.public-mode .topbar {
  height: 76px;
  border-bottom: 1px solid rgba(11, 44, 86, 0.08);
  box-shadow: 0 10px 30px rgba(11, 44, 86, 0.05);
  background: rgba(255, 255, 255, 0.94);
}

body.public-mode.coming-soon-mode .topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid rgba(11, 44, 86, 0.08);
  box-shadow: 0 10px 30px rgba(11, 44, 86, 0.05);
  z-index: 20;
}

body.public-mode.coming-soon-mode .site-logo {
  width: min(280px, 58vw);
  height: 96px;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

body.public-mode.coming-soon-mode .login-button {
  background: #0b2c56;
  border: 1px solid #0b2c56;
  color: #ffffff;
}

body.public-mode.coming-soon-mode .app-shell {
  position: relative;
  background: #071726;
}

body.public-mode.coming-soon-mode .workspace,
body.public-mode.coming-soon-mode .main-panel {
  margin: 0;
  padding: 0;
  min-height: calc(100svh - 104px);
}

body.public-mode.coming-soon-mode .coming-soon-cinema-media {
  background-color: #0b2c56;
  background-image: url("/assets/coming-soon-hero-park-wide.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

@media (max-width: 720px) {
  body.public-mode.coming-soon-mode .topbar {
    height: 84px;
    min-height: 84px;
    max-height: 84px;
  }

  body.public-mode.coming-soon-mode .site-logo {
    width: min(200px, 52vw);
    height: 64px;
    max-height: 64px;
  }

  body.public-mode.coming-soon-mode .workspace,
  body.public-mode.coming-soon-mode .main-panel {
    min-height: calc(100svh - 84px);
  }

  body.public-mode.coming-soon-mode .coming-soon-cinema-media {
    background-image: url("/assets/coming-soon-hero-park-mobile.jpg");
    background-position: center top;
    background-size: cover;
  }
}

.public-mode .login-button {
  display: inline-flex;
  align-items: center;
  background: #0b2c56;
  border-color: #0b2c56;
  border-radius: 999px;
  color: #ffffff;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
}

.public-mode .workspace { display: block; min-height: auto; }
.public-mode .sidebar { display: none; }
.public-mode .main-panel { padding: 0; }

.coming-soon-hero {
  align-items: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(211, 179, 109, 0.24), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(11, 53, 91, 0.18), transparent 30%),
    linear-gradient(135deg, #fffaf0, #f8fbff);
  display: grid;
  min-height: calc(100vh - 104px);
  padding: 48px 22px;
}

.coming-soon-hero.ss-m-hero--overlay {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  min-height: min(92vh, 920px);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 48px);
  background: #dfe7ef;
  overflow: hidden;
}

.coming-soon-hero.ss-m-hero--overlay .ss-m-hero-media--full {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.coming-soon-hero.ss-m-hero--overlay .ss-m-hero-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 38%;
}

.coming-soon-hero.ss-m-hero--overlay .coming-soon-hero-shade,
.coming-soon-hero.ss-m-hero--overlay .ss-m-hero-shade {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.58) 45%, rgba(255, 255, 255, 0.72) 100%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
}

.coming-soon-hero.ss-m-hero--overlay .coming-soon-card {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(11, 44, 86, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.coming-soon-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(11, 44, 86, 0.12);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 5vw, 56px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Keep dialog chrome out of the page flow until opened (full styles may load later). */
.modal.hidden {
  display: none !important;
}

.modal:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 24, 44, 0.5);
}

.modal:not(.hidden) .modal-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 68px rgba(11, 44, 86, 0.22);
}

.modal:not(.hidden) .modal-header,
.modal:not(.hidden) .modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.modal:not(.hidden) .modal-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(11, 44, 86, 0.1);
}

.modal:not(.hidden) .modal-body {
  padding: 16px 20px;
}

.coming-soon-card h2 {
  color: #0b355b;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.coming-soon-card p {
  color: #49647f;
  font-size: 1.14rem;
  line-height: 1.62;
  margin-top: 18px;
  max-width: 720px;
}

.eyebrow {
  color: #8a6321;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.waitlist-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.65fr) minmax(220px, 1fr) auto;
  margin-top: 28px;
}

.waitlist-form button { border-radius: 999px; min-height: 44px; }

.public-order-paused {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(211, 179, 109, 0.26);
  border-radius: 24px;
  color: #2d4f6d;
  display: grid;
  font-size: 1rem;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
}

.public-order-paused p {
  color: #60708b;
  line-height: 1.5;
  margin: 0;
}

.toast {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(720px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--teal-soft);
  border: 1px solid rgba(13, 127, 120, 0.24);
  color: var(--teal);
}

.toast.error, .error {
  background: #fde7e3;
  border-color: rgba(187, 75, 59, 0.35);
  color: var(--coral);
}

@media (max-width: 760px) {
  .waitlist-form { grid-template-columns: 1fr; }
}
