/* TrialTimer site. No frameworks, no web fonts, no scripts: the page makes no third-party requests. */

:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eeede8;
  --ink: #12161c;
  --ink-2: #4a5360;
  --line: #dddbd3;
  --brand: #0f7a41;          /* text-safe green on light backgrounds */
  --brand-fill: #1a9e57;     /* fills and large shapes */
  --brand-tint: #e3f2e9;
  --on-brand: #ffffff;
  --red: #b3261e;
  --red-tint: #fbe6e5;
  --amber: #8f4b00;
  --amber-tint: #fdefd9;
  --stage: #10151c;
  --radius: 20px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b23;
    --surface-2: #1d232d;
    --ink: #f1f3f5;
    --ink-2: #a3acb9;
    --line: #2a313c;
    --brand: #4fd08a;
    --brand-fill: #1f9d5a;
    --brand-tint: #14301f;
    --red: #ff8a84;
    --red-tint: #3a1c1b;
    --amber: #f2b25c;
    --amber-tint: #38280f;
    --stage: #070a0e;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 10px 14px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 550; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 720px) { .nav-links li.optional { display: none; } .nav-links { gap: 16px; } }
@media (max-width: 380px) { .nav-links { gap: 12px; } .nav-links a { font-size: 0.88rem; } .brand { font-size: 1rem; } }

/* ---------- Buttons and pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 0.86rem; font-weight: 650; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 34em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; color: var(--ink-2); font-size: 0.95rem; }
.facts li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 7px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-phone { order: 2; } }

/* ---------- Phone frame ---------- */
.phone { width: min(100%, 320px); margin-inline: auto; padding: 10px; border-radius: 52px; background: #0b0d10; box-shadow: 0 0 0 1px #2b3038, 0 40px 80px -30px rgb(0 0 0 / 0.45); }
.phone img { border-radius: 42px; width: 100%; }
.phone.small { width: min(100%, 270px); border-radius: 46px; padding: 9px; }
.phone.small img { border-radius: 37px; }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 7vw, 96px) 0; }
section[id] { scroll-margin-top: 64px; }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Video ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--stage); box-shadow: 0 30px 70px -40px rgb(0 0 0 / 0.6); }
.video-frame[data-aspect="portrait"] { aspect-ratio: 9 / 16; max-width: 380px; margin-inline: auto; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; color: #e8ecf1;
  background: radial-gradient(60% 80% at 50% 40%, #1c2a23 0%, transparent 70%), repeating-linear-gradient(135deg, rgb(255 255 255 / 0.025) 0 14px, transparent 14px 28px); }
.play { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.28); }
.play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #ffffff; }
.video-placeholder strong { font-size: 1.25rem; font-family: var(--font-display); }
.video-placeholder span { color: #a9b3bf; font-size: 0.98rem; max-width: 30em; }
@media (max-width: 600px) {
  .video-placeholder { gap: 10px; padding: 14px; }
  .play { width: 54px; height: 54px; }
  .play::before { margin-left: 4px; border-width: 10px 0 10px 16px; }
  .video-placeholder strong { font-size: 1.02rem; }
  .video-placeholder span:not(.play) { display: none; }
}

/* ---------- Steps ---------- */
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.step + .step { margin-top: clamp(48px, 7vw, 96px); }
.step:nth-child(even) .step-media { order: -1; }
.step-copy { display: grid; gap: 16px; justify-items: start; }
.step-copy p { color: var(--ink-2); font-size: 1.08rem; }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 750; }
.checks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; } .step:nth-child(even) .step-media { order: 0; } }

/* ---------- Reminder timeline ---------- */
.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.band .timeline { background: var(--bg); }
.tl-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: start; }
.tl-when { font-weight: 750; font-size: 0.95rem; padding: 6px 0; border-radius: 999px; text-align: center; }
.tl-when.green { background: var(--brand-tint); color: var(--brand); }
.tl-when.amber { background: var(--amber-tint); color: var(--amber); }
.tl-when.red { background: var(--red-tint); color: var(--red); }
.tl-when.end { background: var(--surface-2); color: var(--ink-2); }
.tl-note { background: var(--surface-2); border-radius: 14px; padding: 12px 16px; }
.tl-note b { display: block; font-size: 0.98rem; }
.tl-note span { color: var(--ink-2); font-size: 0.94rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.band .card { background: var(--bg); }
.card p { color: var(--ink-2); font-size: 1rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 820px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; align-content: start; }
.plan.featured { border-color: var(--brand-fill); box-shadow: 0 0 0 1px var(--brand-fill); }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.fine { color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ink-2); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; }

/* ---------- Closing call to action ---------- */
.closing { text-align: center; }
.closing .box { background: var(--stage); color: #f1f3f5; border-radius: 28px; padding: clamp(36px, 6vw, 72px) 24px; display: grid; gap: 18px; justify-items: center; }
.closing p { color: #a9b3bf; max-width: 34em; }
.closing .pill { background: rgb(255 255 255 / 0.1); color: #7fe0a8; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-2); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--ink-2); }
.disclaimer { margin-top: 18px; max-width: 60em; }

/* ---------- Text pages (privacy, terms, support) ---------- */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 10px; }
.doc .updated { color: var(--ink-2); margin-bottom: 34px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc .callout { background: var(--brand-tint); color: var(--ink); border-radius: 16px; padding: 18px 22px; margin: 0 0 8px; }
.doc .callout p { color: inherit; }
