/* PTCE Prep — dark theme.
   One accent. Never red. Slate carries every neutral and negative state. */

:root {
  /* brand tokens */
  --violet:      #5B5BD6;
  --violet-lift: #7C6BF0;
  --cream:       #FAF9F5;
  --navy:        #0A1028;
  --green:       #10B981;
  --slate:       #64748B;

  /* dark-theme surfaces, all derived from the navy ground */
  --bg:          #0A1028;
  --bg-lift:     #0E1533;
  --surface:     rgba(255,255,255,.035);
  --surface-2:   rgba(255,255,255,.06);
  --border:      rgba(255,255,255,.09);
  --border-lift: rgba(255,255,255,.16);

  --text:        #EDEEF6;
  --text-soft:   rgba(237,238,246,.66);
  --text-faint:  rgba(237,238,246,.42);

  --measure: 36rem;
  --page:    75rem;
  --radius:  1.5rem;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* One ambient violet glow sitting behind the whole page. Cheap, and it stops
   a flat dark background from reading as a black rectangle. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70rem 45rem at 78% -8%,  rgba(124,107,240,.18), transparent 60%),
    radial-gradient(55rem 40rem at 8% 42%,   rgba(91,91,214,.10),  transparent 62%);
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.018em; }
p  { margin: 0; }

a { color: var(--violet-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9C8FF5; }

::selection { background: rgba(124,107,240,.32); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto;
        padding-inline: clamp(1.125rem, 4vw, 1.75rem); }
.measure { max-width: var(--measure); }

/* long words (URLs, "auto-renewal") must never push a phone into sideways scroll */
h1, h2, h3, p, li, span { overflow-wrap: break-word; }

/* ---------- nav ---------- */

.nav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.375rem;
}
/* ---------- sticky section nav (appears once the hero is passed) ---------- */

.sitenav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,16,40,.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-101%); opacity: 0; visibility: hidden;
  transition: transform .32s cubic-bezier(.2,.7,.3,1), opacity .32s ease, visibility .32s;
}
.sitenav.is-visible { transform: none; opacity: 1; visibility: visible; }
.sitenav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-block: .6875rem;
}
.sitenav__links { display: flex; align-items: center; gap: 1.75rem; }
.sitenav__links a {
  color: var(--text-soft); text-decoration: none; font-size: .9375rem;
  transition: color .18s ease; white-space: nowrap;
}
.sitenav__links a:hover { color: var(--text); }
.sitenav__links a.is-active { color: var(--text); }
.sitenav .btn { padding: .625rem 1.125rem; font-size: .9375rem; }

/* anchor targets clear the fixed bar instead of hiding behind it */
[id] { scroll-margin-top: 5.5rem; }

@media (max-width: 60rem) { .sitenav__links { display: none; } }
.brand {
  display: flex; align-items: center; gap: .6875rem; font-weight: 650;
  letter-spacing: -0.02em; font-size: 1.0625rem; text-decoration: none; color: var(--text);
}
.brand:hover { color: var(--text); }
.brand svg { display: block; border-radius: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--violet-lift), var(--violet));
  color: #fff; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 8px 28px -10px rgba(91,91,214,.9);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, filter .18s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06);
             box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 34px -10px rgba(91,91,214,1); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-lift);
                    color: var(--text); filter: none; }

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

.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  /* Full viewport, always. svh is the small-viewport unit: on mobile it uses
     the height with browser chrome showing, so the hero never jumps or crops
     when the URL bar hides on scroll. vh is the fallback. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Keeps the headline legible whatever the footage does. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(10,16,40,.95) 0%, rgba(10,16,40,.74) 44%, rgba(10,16,40,.34) 100%),
    linear-gradient(to top, rgba(10,16,40,.92) 0%, rgba(10,16,40,0) 48%);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column;
               flex: 1; width: 100%; }
.hero__body { flex: 1; display: flex; align-items: center; padding-block: clamp(3rem,8vw,6rem); }
.hero h1 { max-width: 17ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #fff 18%, #B9AEFB 62%, var(--violet-lift) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { margin-top: 1.5rem; color: rgba(255,255,255,.76); font-size: clamp(1.0625rem,1.5vw,1.25rem); max-width: 44ch; }
.hero .cta-row { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; }
.hero .cta-note { color: rgba(255,255,255,.55); font-size: .9375rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 6.5rem; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 2.5rem; overflow: hidden;
  background: rgba(255,255,255,.14);
}
.scroll-cue::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.85);
  animation: cue 2.6s cubic-bezier(.6,0,.3,1) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ---------- trust strip ---------- */

.trust { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.trust div {
  padding: 1.25rem 1.75rem; font-size: .875rem; letter-spacing: .02em;
  color: rgba(255,255,255,.72);
}
.trust div + div { border-left: 1px solid rgba(255,255,255,.12); }
@media (max-width: 46rem) {
  .trust { grid-template-columns: 1fr; }
  .trust div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .scroll-cue { display: none; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet-lift); margin-bottom: 1.125rem;
}
.section h2 + p { margin-top: 1.25rem; color: var(--text-soft); font-size: 1.125rem; }

.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

/* ---------- feature cards ---------- */

.grid3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); margin-top: 3.75rem; }
@media (max-width: 68rem) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .grid3 { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.75rem;
  transition: border-color .22s ease, transform .22s cubic-bezier(.2,.7,.3,1), background .22s ease;
}
.feature:hover { border-color: var(--border-lift); background: var(--surface-2); transform: translateY(-3px); }
/* No fixed height — the three shots are pre-cropped to one shared aspect
   ratio, so the cards line up while every screen stays fully visible. */
.feature figure {
  margin: 0 0 1.5rem; border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-lift);
}
.feature figure img { width: 100%; height: auto; display: block; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--text-soft); font-size: .9375rem; }

/* ---------- full-bleed photographic band ---------- */

.band {
  position: relative; isolation: isolate;
  height: clamp(20rem, 42vw, 34rem);
  background-color: var(--navy);
  background-image: url("assets/pharmacy/dispensary-wide.jpg");
  background-size: cover; background-position: center;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("assets/overlay/light-shafts.jpg");
  background-size: cover; background-position: center;
  mix-blend-mode: screen; opacity: .3;
}
/* feathered top and bottom so the band melts into the page rather than sitting in a box */
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
}

/* ---------- the fact ---------- */

.fact {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(2.25rem, 5vw, 4rem);
  background-color: var(--bg-lift);
}
.fact::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .38;
  background-image: url("assets/pharmacy/counter-overhead.jpg");
  background-size: cover; background-position: center;
}
.fact::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,16,40,.94), rgba(10,16,40,.55));
}
.fact > * { position: relative; z-index: 2; }
.fact__figure {
  font-size: clamp(3.25rem, 9vw, 6rem); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1;
  background: linear-gradient(180deg, #fff, #A99DF6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact p { color: rgba(255,255,255,.78); margin-top: 1.25rem; max-width: 48ch; font-size: 1.0625rem; }
.fact cite { display: block; margin-top: 1.75rem; font-style: normal; font-size: .875rem; color: var(--text-faint); }
.fact cite a { color: rgba(255,255,255,.7); }

/* ---------- pricing ---------- */

/* Violet, not green. Verify Green is reserved for things that are actually
   correct or confirmed — using it here would make it decorative. */
.trial {
  margin-top: 2.5rem; display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: 1.125rem;
  background: rgba(91,91,214,.10); border: 1px solid rgba(124,107,240,.32);
}
.trial svg { flex: none; margin-top: .2rem; }
.trial p { color: var(--text-soft); font-size: .9375rem; }
.trial strong { color: var(--text); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 56rem) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem 1.625rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .22s ease, background .22s ease, transform .22s cubic-bezier(.2,.7,.3,1);
}
.plan:hover { border-color: var(--border-lift); background: var(--surface-2); transform: translateY(-3px); }
.plan--featured {
  background: rgba(91,91,214,.14); border-color: rgba(124,107,240,.55);
  box-shadow: 0 20px 50px -30px rgba(91,91,214,.9);
}
.plan--featured:hover { background: rgba(91,91,214,.18); border-color: rgba(124,107,240,.75); }
.plan__tag {
  position: absolute; top: -.6875rem; left: 1.5rem;
  font-size: .6875rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .625rem; border-radius: 999px;
  background: var(--violet); color: #fff; border: 1px solid rgba(255,255,255,.2);
}
.plan__name { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.plan__price {
  margin-top: .75rem; font-size: clamp(2.25rem, 4vw, 2.75rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
}
.plan__unit { font-size: .9375rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.plan__meta { margin-top: .5rem; color: var(--text-soft); font-size: .9375rem; }
.plan__ratio {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: .875rem; color: var(--text-faint);
}
.plan__ratio b { color: var(--text-soft); font-weight: 600; }

.plans__note { margin-top: 1.5rem; color: var(--text-faint); font-size: .875rem; max-width: 60ch; }

/* ---------- split ---------- */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }
.split__media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background-color: var(--bg-lift); background-size: cover; background-position: center;
  border: 1px solid var(--border);
}

/* ---------- promises ---------- */

.promises { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.promises li { display: flex; gap: 1rem; align-items: flex-start; }
.promises svg { flex: none; margin-top: .3rem; }
.promises strong { display: block; margin-bottom: .125rem; }
.promises span { color: var(--text-soft); }

/* ---------- macro strip ---------- */

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 46rem) { .strip { grid-template-columns: 1fr; } }
.strip div {
  aspect-ratio: 3 / 2; border-radius: 1.125rem; border: 1px solid var(--border);
  background-color: var(--bg-lift); background-size: cover; background-position: center;
  filter: saturate(.92);
}

/* ---------- closing CTA ---------- */

.cta-panel {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, rgba(91,91,214,.9), rgba(91,91,214,.96)),
    url("assets/texture/violet-wash.jpg") center/cover;
  color: #fff;
}
.cta-panel h2 { max-width: 16ch; }
.cta-panel p { margin-top: 1.125rem; color: rgba(255,255,255,.84); max-width: 44ch; }
.cta-panel .btn {
  margin-top: 2.25rem; background: #fff; color: var(--violet);
  border-color: transparent; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
.cta-panel .btn:hover { background: #fff; color: var(--violet); filter: brightness(1); }

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

.footer { border-top: 1px solid var(--border); padding-block: 3.5rem 4.5rem; font-size: .9375rem; }
.footer__top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer nav a { color: var(--text-soft); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.disclaimer {
  margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: .875rem; max-width: 64ch;
}

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

.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .measure { max-width: 42rem; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal .effective { margin-top: .875rem; color: var(--text-faint); }
.legal h2 { font-size: 1.3125rem; margin-top: 3.25rem; }
.legal h2 + p { margin-top: .875rem; }
.legal p { margin-top: 1rem; color: var(--text-soft); }
.legal ul { margin: 1rem 0 0; padding-left: 1.25rem; color: var(--text-soft); }
.legal li { margin-top: .5rem; }
.legal .callout {
  margin-top: 2rem; padding: 1.75rem 2rem; border-radius: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
}
.legal .callout p { color: var(--text); margin-top: .875rem; }
.legal .callout p:first-child { margin-top: 0; }
.legal strong { color: var(--text); }

/* ---------- scroll reveal ---------- */

[data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal] { transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- phones ---------- */

@media (max-width: 46rem) {
  body { font-size: 1rem; }
  .hero__body { padding-block: 2.5rem 1.5rem; }
  .hero h1 { max-width: 14ch; }
  .hero .cta-row { margin-top: 1.75rem; gap: .75rem; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
  .hero .cta-note { font-size: .875rem; }
  .nav { padding-block: 1rem; }
  .brand span { font-size: 1rem; }
  .section { padding-block: 3.5rem; }
  .grid3 { margin-top: 2.5rem; }
  .feature { padding: 1.125rem 1.125rem 1.375rem; }
  /* On a phone the shot is shown at its natural height but constrained in width,
     so the whole screen — tab bar included — still reads without a giant card. */
  .feature figure { display: flex; justify-content: center; }
  .feature figure img { max-width: 17rem; width: 100%; }
  .strip div { aspect-ratio: 16 / 9; }
  .split { gap: 2rem; }
  .split__media { aspect-ratio: 3 / 2; }
  .promises { gap: 1.25rem; }
  .fact { padding: 1.75rem 1.5rem; }
  .cta-panel { padding: 2rem 1.5rem; }
  .cta-panel .btn { width: 100%; justify-content: center; }
  .footer__top { gap: 1.25rem; }
  .footer nav { gap: 1.25rem; }
  .legal h2 { margin-top: 2.5rem; }
  .legal .callout { padding: 1.25rem 1.25rem; }
}

/* very small phones */
@media (max-width: 24rem) {
  .brand span { display: none; }
  .trust div { padding: 1rem 1.125rem; }
}

.skip { position: absolute; left: -9999px; background: var(--bg-lift); color: var(--text);
        padding: .75rem 1rem; border-radius: .5rem; border: 1px solid var(--border); }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
