/* OttO marketing site — light-first, brighter composition.
   All colors via var(--otto-*) tokens copied verbatim from otto-brand/tokens.css.
   The reserved AI tokens (--otto-ai-*) are NOT used anywhere on this page. */

:root {
  /* Light is the default here — a brighter composition. */
  --otto-bg: #FAF8FF;
  --otto-surface: #FFFFFF;
  --otto-surface-raised: #F1EDFC;
  --otto-border: rgba(30, 26, 46, 0.10);
  --otto-border-strong: rgba(30, 26, 46, 0.18);

  --otto-text: #241E3B;
  --otto-text-dim: #6E6790;

  --otto-primary: #7C68E8;          /* lavender darkened for contrast on white */
  --otto-primary-pressed: #6853D6;
  --otto-on-primary: #FFFFFF;

  --otto-warn: #E8532F;
  --otto-success: #0FA878;

  /* type */
  --otto-font-display: 'Space Grotesk', sans-serif;
  --otto-font-body: 'Space Grotesk', sans-serif;
  --otto-font-mono: 'IBM Plex Mono', monospace;

  /* shape */
  --otto-radius-sm: 8px;
  --otto-radius-md: 10px;
  --otto-radius-lg: 16px;
  --otto-radius-pill: 999px;

  /* accent wash — built from the plum/lavender primary, restrained */
  --otto-accent-wash: radial-gradient(
      120% 90% at 85% -10%,
      rgba(124, 104, 232, 0.14),
      rgba(124, 104, 232, 0) 60%);
  --otto-primary-soft: rgba(124, 104, 232, 0.10);
  --otto-focus-ring: rgba(124, 104, 232, 0.35);
  --otto-shadow-card: 0 1px 2px rgba(30, 26, 46, 0.04);
  --otto-shadow-panel: 0 8px 32px rgba(30, 26, 46, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --otto-bg: #1E1A2E;
    --otto-surface: #292340;
    --otto-surface-raised: #332C4E;
    --otto-border: rgba(255, 255, 255, 0.08);
    --otto-border-strong: rgba(255, 255, 255, 0.14);

    --otto-text: #F5F2FC;
    --otto-text-dim: #ABA3C9;

    --otto-primary: #C7B9FF;        /* pale lavender */
    --otto-primary-pressed: #B5A3FF;
    --otto-on-primary: #1E1A2E;

    --otto-warn: #FF8A6B;
    --otto-success: #4DE8B4;

    --otto-accent-wash: radial-gradient(
        120% 90% at 85% -10%,
        rgba(199, 185, 255, 0.12),
        rgba(199, 185, 255, 0) 60%);
    --otto-primary-soft: rgba(199, 185, 255, 0.12);
    --otto-focus-ring: rgba(199, 185, 255, 0.45);
    --otto-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.20);
    --otto-shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.28);
  }
}

/* Logo blink (idle). Copied from tokens.css. */
@keyframes otto-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%           { transform: scaleY(0.07); }
  96%           { transform: scaleY(1); }
}
.otto-lens {
  transform-box: fill-box;
  transform-origin: center;
  animation: otto-blink 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .otto-lens { animation: none; }
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--otto-bg);
  background-image: var(--otto-accent-wash);
  background-repeat: no-repeat;
  color: var(--otto-text);
  font-family: var(--otto-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--otto-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-family: var(--otto-font-display); font-weight: 600; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--otto-surface-raised);
  color: var(--otto-text);
  border-radius: var(--otto-radius-md);
  z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--otto-primary);
  outline-offset: 2px;
  border-radius: var(--otto-radius-sm);
}

/* ---------- layout wrappers ---------- */

.site-header,
.hero,
.value,
.request-inner,
.site-footer {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--otto-primary);
}
.brand:hover { text-decoration: none; }

.brand-mark { display: inline-flex; color: var(--otto-primary); }
.brand-mark svg { width: 42px; height: auto; display: block; }

.brand-word {
  font-family: var(--otto-font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--otto-text);
}

/* "Studio" sits with "OttO" as one lockup: lighter weight, accent color. */
.brand-suffix {
  font-weight: 500;
  color: var(--otto-primary);
  margin-left: 0.28em;
}

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--otto-font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--otto-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease, box-shadow 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--otto-primary);
  color: var(--otto-on-primary);
}
.btn-primary:hover { background: var(--otto-primary-pressed); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--otto-text);
  border-color: var(--otto-border-strong);
}
.btn-ghost:hover { background: var(--otto-surface); }

.btn-lg {
  font-size: 16px;
  padding: 16px 28px;
}

.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ---------- hero ---------- */

.hero {
  padding-top: 64px;
  padding-bottom: 72px;
}

.eyebrow {
  font-family: var(--otto-font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--otto-primary);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 22px;
}

.lede {
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.55;
  color: var(--otto-text-dim);
  max-width: 44ch;
  margin: 0 0 32px;
}

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

/* ---------- value ---------- */

.value {
  padding-top: 32px;
  padding-bottom: 48px;
}

.section-title {
  font-size: clamp(24px, 4vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.value-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--otto-surface);
  border: 1px solid var(--otto-border);
  border-radius: var(--otto-radius-lg);
  padding: 24px;
  box-shadow: var(--otto-shadow-card);
}

.card-label {
  font-family: var(--otto-font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--otto-primary);
  margin: 0 0 12px;
}

.card-title {
  font-size: 20px;
  margin: 0 0 10px;
}

.card-body {
  color: var(--otto-text-dim);
  margin: 0;
}

/* ---------- request access ---------- */

.request {
  padding-block: 48px 80px;
  padding-inline: 24px;
}

.request-inner {
  background: var(--otto-surface);
  border: 1px solid var(--otto-border);
  border-radius: var(--otto-radius-lg);
  padding: 44px 32px;
  max-width: 560px;
  box-shadow: var(--otto-shadow-panel);
}
.request-inner .eyebrow { margin-bottom: 12px; }

.request-inner h2 {
  font-size: clamp(24px, 4.5vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.request-body {
  color: var(--otto-text-dim);
  margin: 0 0 28px;
}

/* ---------- form ---------- */

.access-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-family: var(--otto-font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--otto-text-dim);
}

.field input,
.field select {
  width: 100%;
  font-family: var(--otto-font-body);
  font-size: 15px;
  color: var(--otto-text);
  background: var(--otto-bg);
  border: 1px solid var(--otto-border-strong);
  border-radius: var(--otto-radius-md);
  padding: 12px 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field select { appearance: none; cursor: pointer; }

.field input::placeholder { color: var(--otto-text-dim); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--otto-primary);
  box-shadow: 0 0 0 3px var(--otto-focus-ring);
}

.access-form .btn-lg {
  width: 100%;
  margin-top: 4px;
}

/* honeypot — visually hidden but present in the DOM for bots */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-error {
  color: var(--otto-warn);
  font-size: 14px;
  margin: 0;
}

/* ---------- success ---------- */

.form-success {
  background: var(--otto-primary-soft);
  border: 1px solid var(--otto-border-strong);
  border-radius: var(--otto-radius-lg);
  padding: 24px;
}

.form-success-title {
  font-family: var(--otto-font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--otto-text);
}

.form-success-body {
  color: var(--otto-text-dim);
  margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 28px 40px;
  border-top: 1px solid var(--otto-border);
}

.footer-brand {
  font-family: var(--otto-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--otto-text);
}

.footer-meta {
  font-family: var(--otto-font-mono);
  font-size: 12.5px;
  color: var(--otto-text-dim);
}
