/* RML Digital LLC — site styles. Plain CSS, no build step. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color tokens */
  --navy: #0a1a33;
  --navy-2: #13284c;
  --navy-line: #24395f;
  --canvas: #f6f7f4;
  --surface: #eaeee8;
  --ink: #0a1a33;
  --muted: #45526a;
  --line: #d3d9d0;
  --turf: #0b7a3b;
  --turf-deep: #075c2c;
  --turf-bright: #43d685;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c4d8;

  /* Type scale: three body steps (display + wordmark exempt) */
  --text-heading: clamp(2rem, 4.2vw, 3.25rem);
  --text-body: 1.125rem;
  --text-sm: 0.9375rem;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--turf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--turf-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--turf-bright); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: var(--text-heading); font-stretch: 85%; }
h3 { font-size: var(--text-body); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--turf-bright); color: var(--navy); padding: 0.5rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

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

.site-header { background: var(--navy); color: var(--on-navy); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--on-navy); text-decoration: none;
  font-size: 1.375rem; font-weight: 800; font-stretch: 90%; letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--on-navy); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font-weight: inherit; }
.brand span { color: var(--turf-bright); font-weight: 500; }

.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a {
  white-space: nowrap;
  color: var(--on-navy-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 600;
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-navy); border-bottom-color: var(--turf-bright); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--turf-bright); color: var(--navy);
  font-weight: 700; font-size: var(--text-body); text-decoration: none;
  padding: 0.9rem 1.5rem; border-radius: 999px;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.button:hover { color: var(--navy); background: #6ee6a2; transform: translateY(-2px); text-decoration: none; }
.button svg { width: 18px; height: 18px; }
.button--dark { background: var(--navy); color: var(--on-navy); }
.button--dark:hover { background: var(--navy-2); color: var(--on-navy); }

/* ---------- Home: hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--on-navy);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero-field {
  position: absolute; inset: auto 50% -38% auto; transform: translateX(50%);
  width: min(1500px, 180vw); color: var(--navy-line); pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 {
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  font-stretch: 72%; font-weight: 850; line-height: 0.9; letter-spacing: -0.035em;
  max-width: 13ch; margin-inline: auto;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--turf-bright); }
.hero-copy {
  margin: 1.75rem auto 0; max-width: 46ch;
  color: var(--on-navy-muted); font-size: var(--text-body);
}
.hero-copy strong { color: var(--on-navy); font-weight: 700; }
.hero-actions { margin-top: 2rem; display: flex; justify-content: center; }

.hero-stage {
  position: relative; margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex; justify-content: center;
  height: clamp(360px, 46vw, 470px);
}

/* Phone mockup (illustrative, HTML/CSS only) */
.phone {
  width: 330px; height: 640px; flex: none;
  background: #050d1c; border-radius: 52px; padding: 12px;
  box-shadow: 0 0 0 2px #2b3d61, 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.screen {
  height: 100%; border-radius: 41px; overflow: hidden;
  background: #ffffff; color: var(--navy); text-align: left;
  font-size: var(--text-sm); line-height: 1.35;
}
.screen-top { background: var(--navy); color: #fff; padding: 46px 20px 16px; }
.screen-top strong { display: block; font-size: 1.5rem; font-stretch: 80%; letter-spacing: -0.02em; }
.screen-top span { color: var(--on-navy-muted); }
.screen-tabs { display: flex; border-bottom: 2px solid var(--navy); }
.screen-tabs span { flex: 1; text-align: center; padding: 10px 0; font-weight: 700; color: #4b5870; }
.screen-tabs span:first-child { background: var(--navy); color: #fff; }
.screen-day { padding: 14px 20px 6px; font-weight: 800; color: var(--turf); }
.game { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 20px; border-top: 1px solid #dfe3ea; }
.game b { font-weight: 700; }
.game time { grid-row: span 2; align-self: center; font-weight: 800; color: var(--navy); }
.game small { font-size: inherit; color: #4b5870; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tight-top { padding-top: clamp(3rem, 6vw, 5rem); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.split-head { position: sticky; top: 2rem; }
.split-head p { margin-top: 1.25rem; color: var(--muted); max-width: 40ch; }

.features { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.features li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 1.25rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.features svg { width: 32px; height: 32px; color: var(--turf); margin-top: 2px; }
.features p { color: var(--muted); margin-top: 0.35rem; max-width: 52ch; }

/* Daylight band */
.daylight { background: var(--turf); color: #fff; }
.daylight .split-head p { color: #dff5e7; }
.daylight h2 { color: #fff; }

.glare-demo { display: grid; gap: 1.25rem; }

.segmented {
  display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start;
  background: var(--turf-deep); border-radius: 999px; padding: 4px; margin: 0; border: 0;
}
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: 0.6rem 1.2rem; border-radius: 999px; cursor: pointer;
  font-size: var(--text-sm); font-weight: 700; color: #dff5e7; text-align: center;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.segmented input:checked + label { background: #fff; color: var(--turf-deep); }
.segmented input:focus-visible + label { outline: 3px solid #fff; outline-offset: 2px; }

.glare-card {
  position: relative; overflow: hidden; border-radius: 20px;
  background: #ffffff; color: var(--navy);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}
.glare-card::after {
  /* simulated sun glare */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255, 252, 235, 0.75), rgba(255, 252, 235, 0.25) 55%, transparent 80%);
}
.glare-rows { list-style: none; margin: 0; padding: 0.5rem 0; }
.glare-rows li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid #dfe3ea;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.glare-rows li:last-child { border-bottom: 0; }
.glare-rows b { font-weight: 800; transition: font-weight 220ms var(--ease); }
.glare-rows span { color: var(--muted); display: block; font-size: var(--text-sm); transition: color 220ms var(--ease); }
.glare-rows time { font-weight: 800; color: var(--turf); transition: color 220ms var(--ease); }

/* "washed out" comparison mode */
.glare-demo:has(#mode-typical:checked) .glare-card { background: #f4f6f8; }
.glare-demo:has(#mode-typical:checked) .glare-rows li { color: #a9b3c2; border-color: #eef0f3; }
.glare-demo:has(#mode-typical:checked) .glare-rows b { font-weight: 400; }
.glare-demo:has(#mode-typical:checked) .glare-rows span,
.glare-demo:has(#mode-typical:checked) .glare-rows time { color: #b8c0cc; font-weight: 400; }

.glare-note { color: #dff5e7; font-size: var(--text-sm); }

/* Coverage */
.coverage { text-align: center; }
.coverage h2 { max-width: 18ch; margin-inline: auto; text-wrap: balance; }
.coverage > .wrap > p { margin: 1.25rem auto 0; color: var(--muted); max-width: 56ch; }
.states {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.states div { padding: 2rem 1rem; }
.states div + div { border-left: 1px solid var(--line); }
.states strong {
  display: block; font-size: var(--text-heading); font-weight: 850; font-stretch: 72%;
  letter-spacing: -0.03em; line-height: 1;
}
.states span { display: block; margin-top: 0.5rem; color: var(--muted); }

/* Studio */
.studio { background: var(--navy); color: var(--on-navy); }
.studio .split-head p { color: var(--on-navy-muted); }
.studio-body { display: grid; gap: 1.5rem; max-width: 58ch; }
.studio-body p { color: var(--on-navy-muted); }
.studio-body p strong { color: var(--on-navy); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.contact-line a:not(.button) { color: var(--on-navy); font-weight: 700; }
.contact-line a:not(.button):hover { color: var(--turf-bright); }

/* ---------- Document pages (privacy, support) ---------- */

.doc-page { --text-heading: clamp(1.5rem, 2.6vw, 2rem); }

.masthead { background: var(--navy); color: var(--on-navy); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.masthead h1 { font-size: clamp(3rem, 8vw, 6.5rem); font-stretch: 72%; font-weight: 850; line-height: 0.92; letter-spacing: -0.035em; }
.masthead p { margin-top: 1.25rem; color: var(--on-navy-muted); max-width: 60ch; }
.masthead p strong { color: var(--on-navy); }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 5.5rem); }
.doc-aside { position: sticky; top: 2rem; align-self: start; font-size: var(--text-sm); color: var(--muted); display: grid; gap: 1rem; }
.doc-aside strong { color: var(--ink); display: block; }
.doc-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.doc-aside a { color: var(--muted); text-decoration: none; }
.doc-aside a:hover { color: var(--turf); text-decoration: underline; }

.prose { max-width: 65ch; }
.prose section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { margin-bottom: 1rem; }
.prose h3 { margin: 1.5rem 0 0.4rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; margin: 0; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--turf); }

.summary-list { list-style: none; padding: 0 !important; border-top: 2px solid var(--ink); }
.summary-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.summary-list svg { width: 22px; height: 22px; color: var(--turf); margin-top: 3px; }

.support-contact {
  background: var(--surface); border-left: 4px solid var(--turf);
  padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; justify-items: start;
}
.support-contact p { color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 2.5px solid var(--turf); border-bottom: 2.5px solid var(--turf);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details > div { padding-bottom: 1.5rem; color: var(--muted); }
.faq details > div p + p, .faq details > div p + ul { margin-top: 0.75rem; }
.faq details > div ul { margin-top: 0.75rem; }

/* ---------- Footer ---------- */

.site-footer { background: #06111f; color: var(--on-navy-muted); font-size: var(--text-sm); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem; padding-block: 2.5rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--turf-bright); text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split, .doc { grid-template-columns: minmax(0, 1fr); }
  .split-head, .doc-aside { position: static; }
  .doc-aside { display: none; }
}

@media (max-width: 640px) {
  :root { --text-body: 1.0625rem; }
  .site-header .wrap { min-height: 64px; }
  .brand { font-size: 1.2rem; }
  .brand svg { width: 24px; height: 24px; }
  .nav { gap: 1.1rem; }
  .hero-stage { height: 380px; }
  .phone { width: 300px; height: 600px; border-radius: 46px; }
  .screen { border-radius: 36px; }
  .states { grid-template-columns: minmax(0, 1fr); }
  .states div + div { border-left: 0; border-top: 1px solid var(--line); }
  .segmented { justify-self: stretch; }
  .glare-rows li { padding: 0.9rem 1.1rem; }
}

@media (max-width: 520px) {
  .nav a[data-optional] { display: none; }
}

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