/* Values copied from src/styles/tokens.css. Do not add colors. */

:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --sunken: #EEF2F6;
  --border: #D9DFE7;
  --text-primary: #102A43;
  --text-secondary: #4A5868;
  --text-muted: #5B6878;
  --text-on-brand: #FFFFFF;
  --text-on-accent: #0B1622;
  --brand: #00355F;
  --brand-subtle: #E6EEF5;
  --accent: #F47820;
  --accent-hover: #E36A14;
  --focus-ring: #1D6FD8;
  --link: #0B5CAD;
  --shadow-raised: 0 1px 2px rgba(16, 42, 67, 0.08), 0 4px 12px rgba(16, 42, 67, 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1622;
    --surface: #13233A;
    --sunken: #0F1C2D;
    --border: #2A3F5C;
    --text-primary: #E8EDF3;
    --text-secondary: #9AA8B8;
    --text-muted: #8D9BAD;
    --text-on-brand: #0B1622;
    --text-on-accent: #0B1622;
    --brand: #4D8FD6;
    --brand-subtle: #17304D;
    --accent: #F68A3C;
    --accent-hover: #F89D5C;
    --focus-ring: #7FB2EA;
    --link: #7FB2EA;
    --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.40), 0 6px 16px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: 400 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }

a { color: var(--link); }

h1, h2, h3 { line-height: 1.2; }

h1 { font-size: clamp(1.8rem, 4vw + 1rem, 3rem); margin: 0 0 12px; }

h2 { font-size: 1.6rem; margin: 0 0 12px; }

p { margin: 0 0 12px; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-150%);
  background: var(--surface);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
}

.skip:focus { transform: none; }

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 0;
}

.brand, .signin, nav a, .button, button, main a, footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand { gap: 10px; color: var(--text-primary); text-decoration: none; font-weight: 700; }

.mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--text-on-brand);
  border-radius: 12px;
  font-weight: 800;
}

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  right: 7px;
  bottom: 7px;
  border-radius: 50%;
  background: var(--accent);
}

nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.sep { color: var(--text-muted); min-height: 44px; display: inline-flex; align-items: center; }

.signin { margin-left: auto; font-weight: 700; }

.hero { display: grid; gap: 24px; padding: 12px 0 32px; }

.eyebrow, .speaker, .soon, .price { color: var(--text-secondary); font-weight: 700; }

.lead { font-size: 1.15rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button, button.button {
  background: var(--accent);
  color: var(--text-on-accent);
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover, button.button:hover { background: var(--accent-hover); }

.button.secondary { background: var(--brand); color: var(--text-on-brand); }

section { padding: 28px 0; }

.grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.grid.three { list-style: decimal inside; }

.card, form, .band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-raised);
  padding: 16px;
}

.band { background: var(--brand-subtle); }

form { display: grid; gap: 8px; }

input[type="email"] {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--text-primary);
}

.check { display: flex; gap: 12px; align-items: center; min-height: 44px; }

.check input { width: 44px; height: 44px; flex: none; }

#email-hint { color: var(--text-muted); }

details { border-top: 1px solid var(--border); padding: 8px 0; }

summary { min-height: 44px; cursor: pointer; font-weight: 700; display: flex; align-items: center; }

footer { padding-bottom: 40px; color: var(--text-secondary); }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hint {
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--brand-subtle);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
}

.hint:not([hidden]) { display: flex; }

.hint[hidden] { display: none; }

.hint button {
  min-height: 44px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}

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

@media (min-width: 800px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .grid.three, .grid.cards { grid-template-columns: repeat(3, 1fr); }
  .grid.three { list-style: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
