/* Slypway pre-launch site - shared styles.
   Tokens and layout follow the design handoff
   (design_handoff_slypway_prelaunch) README exactly. */

@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Archivo:wght@600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root,
html[data-theme="dark"] {
  --sw-bg: #1d2933;
  --sw-fg: #f5f4ee;
  --sw-muted: rgba(245, 244, 238, 0.7);
  --sw-faint: #9aa3ab;
  --sw-border: rgba(245, 244, 238, 0.2);
  --sw-field: #26333d;
  --sw-card: #26333d;
  --sw-link: #a7c1d1;
  --sw-accent-text: #b2e41b;
  --sw-veil: rgba(29, 41, 51, 0.72);
  --sw-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  --sw-bubble: #1d2933;
  --sw-d-bg: #f5f4ee;
  --sw-d-fg: #1d2933;
  --sw-l-bg: transparent;
  --sw-l-fg: rgba(245, 244, 238, 0.7);
  color-scheme: dark;
}

html[data-theme="light"] {
  --sw-bg: #ffffff;
  --sw-fg: #1d2933;
  --sw-muted: #4b5761;
  --sw-faint: #5c6771;
  --sw-border: #c3c8c2;
  --sw-field: #faf9f5;
  --sw-card: #f5f4ee;
  --sw-link: #4d7288;
  --sw-accent-text: #5c7a0a;
  --sw-veil: rgba(255, 255, 255, 0.82);
  --sw-shadow: 0 12px 32px rgba(29, 41, 51, 0.12);
  --sw-bubble: #ffffff;
  --sw-d-bg: transparent;
  --sw-d-fg: #4b5761;
  --sw-l-bg: #1d2933;
  --sw-l-fg: #f5f4ee;
  color-scheme: light;
}

/* Brand palette, fixed across both modes. */
:root {
  --sw-ink: #1d2933;
  --sw-lime: #b2e41b;
  --sw-dusty-blue: #6b94af;
  --sw-paper: #f5f4ee;
  --sw-divider: #d6dcd8;
  --sw-alert: #ef476f;

  --font-brand: 'Lobster', cursive;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sw-bg);
  color: var(--sw-fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  color: var(--sw-link);
  text-decoration: none;
}

a:hover {
  color: var(--sw-fg);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--sw-lime);
  color: var(--sw-ink);
}

:focus-visible {
  outline: 2px solid var(--sw-dusty-blue);
  outline-offset: 2px;
}

@keyframes sw-rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sw-blink {
  50% {
    opacity: 0;
  }
}

.sw-rise {
  animation: sw-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {

  .sw-rise,
  .sw-bubble-rise {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Header */
.sw-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
}

.sw-wordmark {
  font-family: var(--font-brand);
  font-size: 55px;
  line-height: 1;
  color: var(--sw-fg);
}

.sw-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sw-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-faint);
}

.sw-back:hover {
  color: var(--sw-fg);
}

/* Mode toggle */
.sw-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--sw-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sw-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  background: transparent;
  color: var(--sw-muted);
  transition: background 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] .sw-toggle button[data-mode="dark"],
html[data-theme="light"] .sw-toggle button[data-mode="light"] {
  background: var(--sw-fg);
  color: var(--sw-bg);
}

/* Footer */
.sw-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--sw-border);
}

.sw-footer-inner {
  display: flex;
  justify-content: flex-end;
  padding: 16px clamp(20px, 4vw, 48px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-faint);
}

/* Buttons */
.sw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--sw-lime);
  color: var(--sw-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.sw-button:hover {
  opacity: 0.92;
}

.sw-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.sw-button.sw-button-full {
  width: 100%;
}

.sw-text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--sw-link);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* Labels */
.sw-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-muted);
}

.sw-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-muted);
}

.sw-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sw-lime);
}

.sw-eyebrow.sw-eyebrow-accent {
  color: var(--sw-accent-text);
}

.sw-eyebrow.sw-eyebrow-accent::before {
  display: none;
}

/* Card */
.sw-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--sw-card);
  border: 1px solid var(--sw-border);
  border-radius: 18px;
  box-shadow: var(--sw-shadow);
  padding: 32px;
  transition: background 0.4s ease;
}

.sw-card h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--sw-fg);
}

.sw-card .sw-sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sw-muted);
}

.sw-card-centered {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 96px;
}

/* Form fields */
.sw-field-box {
  height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  background: var(--sw-field);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--sw-fg);
  outline: none;
  width: 100%;
}

.sw-field-box:focus {
  border-color: var(--sw-dusty-blue);
  box-shadow: 0 0 0 3px rgba(107, 148, 175, 0.3);
}

textarea.sw-field-box {
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.sw-field-underline {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sw-border);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--sw-fg);
  outline: none;
}

.sw-field-underline:focus {
  border-bottom-color: var(--sw-dusty-blue);
}

.sw-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sw-error {
  margin: 0;
  font-size: 12.5px;
  color: var(--sw-alert);
}

/* OTP boxes */
.sw-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.sw-otp {
  width: 100%;
  min-width: 0;
  height: 52px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  background: var(--sw-field);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--sw-fg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sw-otp:focus {
  border-color: var(--sw-dusty-blue);
  box-shadow: 0 0 0 3px rgba(107, 148, 175, 0.3);
}

/* Confirm thread */
.sw-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sw-border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sw-thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.sw-bubble {
  margin: 0;
  max-width: 88%;
  padding: 10px 14px;
  background: var(--sw-bubble);
  border: 1px solid var(--sw-border);
  border-radius: 16px 16px 16px 4px;
  color: var(--sw-fg);
  animation: sw-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sw-bubble a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Home page video hero */
.sw-hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.sw-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--sw-veil);
  pointer-events: none;
}

.sw-home-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 48px clamp(20px, 4vw, 48px) 64px;
}

.sw-h1 {
  margin: 18px 0 0;
  max-width: 100%;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1rem, 5.3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--sw-fg);
}

.sw-lead {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sw-muted);
}

.sw-idea-step {
  margin-top: 40px;
  max-width: 640px;
}

.sw-idea-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sw-idea-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 12px;
}

.sw-idea-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sw-border);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--sw-fg);
  outline: none;
}

.sw-idea-input:focus {
  border-bottom-color: var(--sw-dusty-blue);
}

.sw-home-footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* Contact form grid */
.sw-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px 28px;
  margin-top: 32px;
}

.sw-contact-grid .sw-form-full {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .sw-card {
    padding: 24px;
  }

  .sw-wordmark {
    font-size: clamp(32px, 11vw, 55px);
  }
}
