/* Roundhouse — Coming Soon design foundation */

:root {
  color-scheme: light;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --sunken: #F5F5F4;
  --line: #E7E5E4;
  --line-strong: #D6D3D1;
  --text: #1C1917;
  --text-2: #44403C;
  --text-3: #57534E;
  --text-4: #716A65;
  --accent: #A435CE;
  --accent-text: #7902AA;
  --accent-soft: rgba(164, 53, 206, 0.08);
  --on-accent: #FFFFFF;
  --ring: #A435CE;
  --ok: #15803D;
  --crit: #B91C1C;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111114;
  --surface: #16161A;
  --sunken: #0D0D0F;
  --line: #2A2A2F;
  --line-strong: #3A3A40;
  --text: #F4F4F5;
  --text-2: #E4E4E7;
  --text-3: #A1A1AA;
  --text-4: #8E8E96;
  --accent: #C06AE6;
  --accent-text: #D596EF;
  --accent-soft: rgba(192, 106, 230, 0.12);
  --on-accent: #0D0D0F;
  --ring: #C06AE6;
  --ok: #4ADE80;
  --crit: #F87171;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

input::placeholder {
  color: var(--text-4);
}

/* Page shell */
.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-2);
  transition: background-color 120ms linear, color 120ms linear;
}

/* Header */
.site-header {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font: 600 17px/1 var(--mono);
  letter-spacing: -0.03em;
  color: var(--text);
}

.wordmark-dot {
  color: var(--accent);
}

.status-line {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-4);
  text-transform: uppercase;
}

/* Main */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 32px);
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(48px, 7vw, 96px);
  align-items: end;
}

/* Left column */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-title {
  margin: 0;
  max-width: 13ch;
  font: 600 clamp(42px, 6.4vw, 80px)/1.02 var(--sans);
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

.hero-lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-3);
  text-wrap: pretty;
}

/* Signup form */
.signup-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin-top: 8px;
}

.signup-label {
  font: 500 13px var(--sans);
  color: var(--text-3);
}

.signup-group {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
}

.signup-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 15px var(--sans);
  outline-offset: -2px;
}

.signup-input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

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

.signup-button {
  flex: none;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 0 1px 1px 0;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: opacity 120ms linear;
}

.signup-button:hover:not(:disabled) {
  opacity: 0.88;
}

.signup-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.signup-error {
  margin: 0;
  font-size: 13px;
  color: var(--crit);
}

.signup-helper {
  font-size: 13px;
  color: var(--text-4);
}

/* Success state */
.signup-success {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 460px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.signup-success-title {
  font: 500 15px var(--sans);
  color: var(--text);
}

.signup-success-body {
  font-size: 14px;
  color: var(--text-3);
}

.signup-success-email {
  font-family: var(--mono);
  color: var(--text);
}

/* Right column: terminal preview */
.terminal-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  min-width: 0;
}

.terminal-tablist {
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  gap: 20px;
  font: 12px var(--mono);
  color: var(--text-4);
}

.terminal-tab {
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: 500 12px var(--mono);
  color: var(--text-4);
}

.terminal-tab[aria-selected="true"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.terminal-meta {
  margin-left: auto;
  align-self: center;
  display: flex;
  gap: 6px;
}

.terminal-body {
  padding: 20px 16px;
  min-height: calc(9 * 1.8em + 40px);
  overflow-x: auto;
  font: 400 clamp(12px, 1.1vw, 14px)/1.8 var(--mono);
  color: var(--text-3);
}

.term-line {
  white-space: pre;
}

.term-blank {
  height: 1.8em;
}

.term-prompt {
  color: var(--text-4);
  user-select: none;
}

.term-strong {
  color: var(--text);
}

.term-ok {
  color: var(--ok);
}

.term-muted {
  color: var(--text-4);
}

/* Footer */
.site-footer {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px) 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-4);
}

.footer-copy {
  font-family: var(--mono);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-shell,
  .signup-button {
    transition: none;
  }
}
