/* 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: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe 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;
}

.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:
    radial-gradient(circle at 10% -4%, rgba(255, 213, 126, 0.24), transparent 30%),
    radial-gradient(circle at 92% 3%, rgba(9, 67, 106, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #fffdf8 38%, #f8fbff 100%);
  color: #102844;
}

.public-mode .topbar {
  height: 104px;
  border-bottom: 1px solid rgba(211, 179, 109, 0.26);
  box-shadow: 0 18px 44px rgba(16, 40, 68, 0.08);
}

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

.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-card {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(211, 179, 109, 0.28);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(16, 40, 68, 0.14);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 5vw, 56px);
}

.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; }
}
