/* Outcome Owl — static site
   Palette drawn from the app: midnight ink, lavender cards, brass owl-gold. */

:root {
  --ink: #14132a;
  --ink-raise: #1d1b38;
  --card: #3a3760;
  --card-hi: #454273;
  --line: #2e2b52;
  --brass: #d9b36b;
  --brass-hi: #edcf93;
  --cream: #f4efe3;
  --body-text: #d8d5e8;
  --mist: #a9a6cb;
  --ok: #43c97d;
  --no: #e5686d;
  --wait: #e8a33d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--body-text);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

a { color: var(--brass); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
}

.brand svg { display: block; }

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 120ms ease, background 120ms ease;
}
.head-cta:hover { border-color: var(--brass); background: var(--ink-raise); }

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 7vh, 88px) clamp(28px, 4vh, 48px);
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--cream);
}
h1 em {
  font-style: italic;
  color: var(--brass);
}

.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--mist);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brass);
  color: #14132a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 15px 26px;
  transition: background 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--brass-hi); transform: translateY(-1px); }
.btn svg { display: block; }

.store-link { display: inline-block; border-radius: 8px; }
.store-badge { height: 54px; width: auto; display: block; }

.hero-note {
  color: var(--mist);
  font-size: 0.9rem;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -8% -14%;
  background: radial-gradient(closest-side, rgba(217, 179, 107, 0.16), transparent 72%);
  z-index: 0;
}
.hero-media img { position: relative; z-index: 1; transform: rotate(2.5deg); }

.phone {
  width: min(320px, 76vw);
  height: auto;
  border-radius: 38px;
  border: 9px solid #0c0b1d;
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, 0.65);
  background: #0c0b1d;
}

/* ---------- prediction ticker (signature) ---------- */

.ticker {
  overflow: hidden;
  padding-block: 26px 10px;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: drift 52s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes drift {
  to { transform: translateX(-50%); }
}

.pcard {
  min-width: 285px;
  max-width: 285px;
  background: var(--card);
  border-radius: 16px;
  padding: 15px 17px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pcard-q {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--mist);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-ok   { color: var(--ok);   background: rgba(67, 201, 125, 0.13); }
.chip-no   { color: var(--no);   background: rgba(229, 104, 109, 0.13); }
.chip-wait { color: var(--wait); background: rgba(232, 163, 61, 0.13); }

/* ---------- features ---------- */

.features { padding-block: clamp(56px, 9vh, 110px) 20px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(38px, 6vh, 68px);
}

.feature-media { display: flex; justify-content: center; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.feature h2,
.cta h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.feature p {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--mist);
  font-size: 1.05rem;
}

/* ---------- cta band ---------- */

.cta {
  margin-block: clamp(48px, 8vh, 96px);
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 72px);
  text-align: center;
}

.cta p {
  margin: 18px auto 30px;
  max-width: 52ch;
  color: var(--mist);
}

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

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 34px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--mist);
}

.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-links a {
  color: var(--body-text);
  text-decoration: none;
}
.foot-links a:hover { color: var(--brass); }

/* ---------- legal pages ---------- */

.legal {
  max-width: 70ch;
  margin-inline: auto;
  padding-block: clamp(36px, 6vh, 72px) clamp(56px, 9vh, 110px);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--mist);
  font-size: 0.92rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cream);
  margin: 36px 0 12px;
}

.legal p { margin-bottom: 14px; }

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal li { margin-bottom: 8px; }

.legal strong { color: var(--cream); font-weight: 600; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-media { order: -1; }
  .hero-media img { transform: rotate(0deg); }
  .phone { width: min(250px, 62vw); }

  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature-media { order: -1; }
  .feature .phone { width: min(240px, 66vw); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .btn:hover { transform: none; }
}
