/* ==========================================================================
   Drama Live — marketing site
   Palette drawn from the app itself:
   midnight indigo header, lavender-grey surfaces, violet labels,
   W/D/L pill colors for the live signals.
   ========================================================================== */

:root {
  --midnight: #201a4b;
  --midnight-2: #2a2160;
  --midnight-3: #171240;
  --violet: #6c55e0;
  --violet-soft: #a99df0;
  --paper: #efeef7;
  --paper-2: #e4e2f2;
  --card: #ffffff;
  --ink: #221c52;
  --muted: #5b5680;
  --on-dark: #f2f1fa;
  --on-dark-muted: #b7b2d8;
  --live: #e8434f;
  --win: #2fa85c;
  --draw: #f0972e;

  --font-display: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap {
  width: min(1160px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 1.1rem;
}

.on-dark .eyebrow { color: var(--violet-soft); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(32, 26, 75, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  padding: 0.35rem 0;
}

.site-nav a:hover { color: var(--on-dark); }

.nav-cta {
  background: var(--on-dark);
  color: var(--midnight) !important;
  font-weight: 600;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
}

.nav-cta:hover { background: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: var(--on-dark);
  padding: 0.5rem 0.7rem;
  font: inherit;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--midnight-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem var(--pad) 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .site-nav .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: none;
  }
  /* legal pages: nav holds only the store CTA, keep it inline */
  .site-nav.solo {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: auto;
  }
  .site-nav.solo a { border-bottom: none; }
  .site-nav.solo .nav-cta { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(108, 85, 224, 0.35), transparent 60%),
    var(--midnight);
  color: var(--on-dark);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: var(--section) 0;
}

.hero h1 { color: #fff; max-width: 12em; }

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--on-dark-muted);
  max-width: 46ch;
}

.hero-copy { padding-bottom: var(--section); }

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2rem;
}

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

/* Google's official badge PNG ships with built-in clear space; oversize +
   negative margin makes it optically match the 54px App Store badge */
.badge-play { display: inline-block; }
.badge-play img { height: 82px; width: auto; margin: -14px -12px; }

.hero-meta {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  letter-spacing: 0.02em;
  margin-top: 0.9rem;
}

/* phones */

.hero-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  min-height: clamp(340px, 42vw, 560px);
}

.phone {
  border: 9px solid #120e33;
  border-radius: clamp(30px, 4vw, 46px);
  overflow: hidden;
  background: #120e33;
  box-shadow: 0 40px 80px -30px rgba(10, 6, 40, 0.8);
  width: clamp(200px, 24vw, 290px);
  flex: none;
}

.hero-visual .phone-front {
  position: relative;
  z-index: 2;
  transform: translateY(12%);
}

.hero-visual .phone-back {
  position: absolute;
  z-index: 1;
  right: clamp(-30px, -2vw, -10px);
  top: 14%;
  transform: rotate(8deg) scale(0.82);
  opacity: 0.85;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { min-height: 0; margin-top: 0.5rem; }
  .hero-visual .phone-back { display: none; }
  .hero-visual .phone-front { transform: translateY(14%); }
}

/* --------------------------------------------------------------------------
   Scoreboard ticker — matches lifted from the actual screenshots
   -------------------------------------------------------------------------- */

.ticker {
  background: var(--midnight-3);
  color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 55s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}

.ticker ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0.8rem 0;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 0.88rem;
  white-space: nowrap;
}

.ticker .tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark-muted);
}

.ticker .tag.live { background: var(--live); color: #fff; }
.ticker .tag.goal { background: var(--win); color: #fff; }
.ticker .score { font-weight: 700; color: #fff; }
.ticker .league { color: var(--on-dark-muted); font-family: var(--font-body); }

/* --------------------------------------------------------------------------
   Feature rows
   -------------------------------------------------------------------------- */

.features { padding-block: var(--section); }

.features > .wrap > .eyebrow + h2 { max-width: 18em; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.feature-row:nth-of-type(even) .feature-media { order: -1; }

.feature-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.feature-copy p { color: var(--muted); }

.feature-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  display: block;
  margin-bottom: 0.8rem;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-points li {
  padding-left: 1.4rem;
  position: relative;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px;
  background: var(--violet);
}

.feature-media {
  display: flex;
  justify-content: center;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0;
  overflow: hidden;
}

.feature-media .phone {
  width: clamp(190px, 22vw, 250px);
  border-bottom: none;
  border-radius: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 40px) 0 0;
  box-shadow: 0 30px 60px -25px rgba(34, 28, 82, 0.45);
}

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature-row:nth-of-type(even) .feature-media { order: 0; }
}

/* --------------------------------------------------------------------------
   Screens gallery
   -------------------------------------------------------------------------- */

.screens {
  background: var(--card);
  padding-block: var(--section);
  border-top: 1px solid var(--paper-2);
  border-bottom: 1px solid var(--paper-2);
}

.screens-rail {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  overflow-x: auto;
  padding: 1.5rem var(--pad) 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.screens-rail figure {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.screens-rail .phone { width: clamp(210px, 24vw, 260px); }

.screens-rail figcaption {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.9rem;
}

/* --------------------------------------------------------------------------
   Coverage
   -------------------------------------------------------------------------- */

.coverage {
  background: var(--midnight);
  color: var(--on-dark);
  padding-block: var(--section);
}

.coverage h2 { color: #fff; max-width: 16em; }
.coverage .lede { color: var(--on-dark-muted); }

.league-grid {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.league-grid li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  background: var(--midnight-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.league-grid .country {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  white-space: nowrap;
}

.coverage-note {
  margin-top: 1.75rem;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { padding-block: var(--section); }

.faq-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 1.1rem 1.4rem;
  min-height: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--violet);
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details > div {
  padding: 0 1.4rem 1.25rem;
  color: var(--muted);
}

.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Bottom CTA + footer
   -------------------------------------------------------------------------- */

.cta {
  background: var(--card);
  border-top: 1px solid var(--paper-2);
  padding-block: var(--section);
}

.cta .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.cta .app-icon {
  width: clamp(84px, 10vw, 128px);
  border-radius: 24%;
  box-shadow: 0 20px 45px -18px rgba(34, 28, 82, 0.5);
}

.cta h2 { max-width: 14em; }
.cta p { color: var(--muted); }

.cta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

@media (max-width: 640px) {
  .cta .wrap { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Registered trademark band
   -------------------------------------------------------------------------- */

.tm-band {
  background: var(--paper);
  border-top: 1px solid var(--paper-2);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.tm-card {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.tm-mark {
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--violet);
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.tm-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 0.5em;
}

.tm-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.9em;
}

.tm-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--violet);
  text-decoration: none;
}

.tm-link:hover { text-decoration: underline; }

.tm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

@media (max-width: 520px) {
  .tm-card { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Trademark page — registration record card
   -------------------------------------------------------------------------- */

.record-card {
  background: var(--card);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin: 1.75rem 0 2.5rem;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 2rem;
  margin: 0;
}

.record-grid > div {
  border-bottom: 1px solid var(--paper-2);
  padding-bottom: 0.9rem;
}

.record-grid dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.25rem;
}

.record-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.record-status {
  display: inline-block;
  background: var(--win);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.4rem;
}

.record-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--violet);
  text-decoration: none;
}

.record-links a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .record-grid { grid-template-columns: 1fr; }
}

.site-foot {
  background: var(--midnight-3);
  color: var(--on-dark-muted);
  padding-block: 3rem 2.5rem;
  font-size: 0.9rem;
}

.site-foot .wrap {
  display: grid;
  gap: 1.75rem;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.foot-links a { color: var(--on-dark-muted); text-decoration: none; padding-block: 0.5rem; }
.foot-links a:hover { color: var(--on-dark); }

.site-foot .brand { color: var(--on-dark); }

.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1.5rem;
  max-width: none;
}

.foot-legal p { max-width: 90ch; font-size: 0.82rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Legal / inner pages
   -------------------------------------------------------------------------- */

.page-main { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }

.page-main .wrap { max-width: 820px; }

.page-main h1 { font-size: clamp(2rem, 5vw, 3rem); }

.page-main h2 { font-size: 1.4rem; margin-top: 2.2em; }

.page-main p, .page-main li { color: var(--muted); }

.page-main .updated {
  font-size: 0.9rem;
  color: var(--violet);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

