/* RateOwl validation landing — shared design tokens + form + footer
   (per-variant layouts override hero structure inline in each HTML file)
*/

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --surface-3: #ece9e3;
  --border: #e3ddd2;
  --border-strong: #cdc5b4;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-subtle: #8a847e;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-tint: #fcf2dc;

  --green: #d8efe1;
  --green-text: #166534;
  --yellow: #fcf2dc;
  --yellow-text: #854d0e;
  --red: #fcdfdf;
  --red-text: #991b1b;
  --red-border: #f3a4a4;

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --r-sm: 8px;
  --r-md: 10px;
  --r-card: 14px;

  --shadow-rest: 0 2px 6px rgba(28, 25, 23, 0.06), 0 0 0 1px rgba(28, 25, 23, 0.04);
  --shadow-img: 0 12px 32px rgba(28, 25, 23, 0.10), 0 0 0 1px rgba(28, 25, 23, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv11';
}

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.layout-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 18px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.layout-banner strong { color: var(--text); font-weight: 600; }
.layout-banner a { font-weight: 600; }

/* Wordmark — RateOwl V1 brand */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}
.wordmark-mark-img {
  width: 28px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.wordmark-tagline {
  margin: 4px 0 0 38px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

/* Hero shared text */
.b-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
.b-headline {
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.b-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 12px;
}
.b-sub strong { color: var(--text); font-weight: 600; }
.b-signoff {
  margin: 0;
  font-size: 14px;
  color: var(--text-subtle);
}
.b-signoff strong { color: var(--text); font-weight: 600; }

/* Calendar preview image */
.b-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-img);
  background: var(--surface);
}
.b-preview-caption {
  margin: 14px 4px 0;
  font-size: 12.5px;
  color: var(--text-subtle);
  line-height: 1.55;
  max-width: 78ch;
}
.b-preview-caption strong { color: var(--text-muted); font-weight: 600; }

/* Page shell */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page--narrow { max-width: 720px; }

@media (max-width: 640px) {
  .page { padding: 32px 18px 56px; }
}

/* Form */
.divider {
  height: 1px;
  background: var(--border);
  margin: 56px 0 40px;
  border: 0;
}

.b-form-section { margin-top: 16px; }
.b-form-heading {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.b-form-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.field-label .req { color: var(--accent); margin-left: 2px; }
.field-label .opt {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}
.field-helper {
  font-size: 12px;
  color: var(--text-subtle);
  line-height: 1.4;
}

.input,
.textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.10s ease, box-shadow 0.10s ease;
}
.input:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}
.textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.10s ease, background 0.10s ease;
}
.radio-pill:hover { border-color: var(--border-strong); }
.radio-pill input { margin: 0; accent-color: var(--accent); }
.radio-pill input:checked ~ span { color: var(--accent); font-weight: 600; }
.radio-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.10s ease, border-color 0.10s ease;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--block { width: 100%; }

.footer {
  margin-top: 56px;
  font-size: 12px;
  color: var(--text-subtle);
  text-align: 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;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
