/* Word Pause website: one shared stylesheet, no frameworks. */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #06141e;
  --deep: #0b2533;
  --teal: #123b4e;
  --gold: #ffc83d;
  --gold-soft: rgba(255, 200, 61, 0.35);
  --gold-faint: rgba(255, 200, 61, 0.12);
  --text: #ffffff;
  --muted: #b8cbd5;
  --card: rgba(18, 59, 78, 0.55);
  --card-solid: #0f3142;
  --radius: 20px;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(255, 200, 61, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(18, 59, 78, 0.9), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--deep) 45%, var(--teal) 100%);
  overflow-x: hidden;
}

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

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08f; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--night);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(6, 20, 30, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-faint);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { color: var(--text); }
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold); background: var(--gold-faint); }

main { flex: 1; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-logo { width: min(300px, 70%); margin: 0 0 8px -8px; filter: drop-shadow(0 12px 30px rgba(255, 200, 61, 0.25)); }
.tagline {
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  margin-bottom: 16px;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.phone {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(255, 200, 61, 0.06);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: var(--gold-faint);
  color: var(--text);
  font-weight: 700;
}
.soon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 200, 61, 0.2);
  flex: none;
}

/* Sections */
.section { padding: 48px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 28px; }
.section-head p { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}
.stat span { color: var(--muted); font-weight: 600; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-faint);
  border: 1px solid var(--gold-soft);
  margin-bottom: 14px;
}
.feature .icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; }

/* Gallery: scrolls inside itself, never the page */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-color: var(--gold-soft) transparent;
}
.gallery figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(240px, 70vw);
  scroll-snap-align: center;
}
.gallery img {
  border-radius: 18px;
  border: 1px solid var(--gold-soft);
  aspect-ratio: 9 / 16;
  width: 100%;
  object-fit: cover;
  background: var(--card-solid);
}
.gallery figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
  font-weight: 800;
  margin-bottom: 12px;
}
.step p { color: var(--muted); margin: 0; }

.cta { text-align: center; }
.cta .card { padding: 36px 24px; }
.cta p { color: var(--muted); }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: #ffd666; color: var(--night); }

/* Legal and text pages */
.page { padding: 40px 0 56px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose .card { padding: clamp(20px, 4vw, 40px); }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; color: var(--gold); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #dbe7ed; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }
.meta { color: var(--muted); font-size: 0.95rem; }
.note {
  border-left: 4px solid var(--gold);
  background: var(--gold-faint);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 1.4em;
}
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--gold-faint); }
th { color: var(--gold); font-weight: 700; }
td { color: #dbe7ed; }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 0 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 8px; }

/* 404 */
.notfound { text-align: center; padding: 72px 0; }
.notfound img { width: 180px; margin: 0 auto 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--gold-faint);
  background: rgba(6, 20, 30, 0.6);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { margin: 0 auto 8px; }
  .lead { margin-left: auto; margin-right: auto; }
  .phone { width: min(260px, 80%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav a { padding: 8px 10px; font-size: 0.9rem; }
  .card { padding: 20px; }
  .site-footer .wrap { flex-direction: column; }
}

@media (max-width: 340px) {
  .brand span { display: none; }
}

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

/* Provider table stacks on phones */
@media (max-width: 640px) {
  .table-wrap thead { position: absolute; left: -9999px; }
  .table-wrap tr { display: block; border: 1px solid var(--gold-faint); border-radius: 14px; padding: 6px 4px; margin-bottom: 12px; }
  .table-wrap td { display: block; border: 0; padding: 6px 12px; }
  .table-wrap td::before { content: attr(data-label); display: block; color: var(--gold); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
}
