/* TriMed Quick Demo — shared styles
   Palette sampled from brand mark:
   purple #4A1178 (primary) · deep #37095E · green #52AF26 (accent) · green-dark #3F8C1D */

:root {
  --purple: #4A1178;
  --purple-deep: #37095E;
  --purple-soft: #6A2CA0;
  --green: #52AF26;
  --green-dark: #3F8C1D;
  --ink: #1c1626;
  --muted: #5c5566;
  --line: #e7e2ee;
  --bg: #ffffff;
  --bg-tint: #faf8fd;
  --danger: #c0261f;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(55, 9, 94, 0.10);
  --shadow-sm: 0 2px 10px rgba(55, 9, 94, 0.06);
  --gradient: linear-gradient(135deg, #4A1178 0%, #6A2CA0 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

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

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

.container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header .logo {
  height: 44px;
  width: auto;
  display: block;
}

/* thin brand accent bar under header */
.brand-bar {
  height: 4px;
  background: var(--gradient);
  position: relative;
}
.brand-bar::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 34%;
  background: var(--green);
}

/* ---------- Main / cards ---------- */
main { padding: 40px 0 56px; }

.hero { text-align: center; margin-bottom: 28px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 46ch;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

/* ---------- Form ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .opt {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #a89fb4; }
.field input:hover { border-color: #d3cae1; }
.field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(74, 17, 120, 0.14);
}
.field input.invalid {
  border-color: var(--danger);
}
.field input.invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 38, 31, 0.14);
}
.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 6px;
}
.field-error.show { display: block; }

/* honeypot — off-screen, never shown to humans */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border: none;
  border-radius: 11px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(55,9,94,.22); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid rgba(82, 175, 38, 0.55);
  outline-offset: 2px;
}
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}
.btn .spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; transform: none; }
  .btn .spinner { animation-duration: 1.6s; }
}

/* ---------- Form-level alert ---------- */
.form-alert {
  display: none;
  background: #fdecec;
  border: 1px solid #f3c7c5;
  color: var(--danger);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-alert.show { display: block; }

/* ---------- Trust / footer ---------- */
.trust {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 18px;
}
.trust .lock { color: var(--green-dark); font-weight: 700; }

.site-footer {
  text-align: center;
  color: #9990a5;
  font-size: 0.78rem;
  padding: 24px 16px 40px;
}

/* ---------- Video page ---------- */
.video-wrap { margin: 22px 0 8px; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #120a1e;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #120a1e;
}
/* fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .video-frame { height: 0; padding-bottom: 56.25%; }
}

.expired {
  text-align: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
}
.expired .icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: block;
  opacity: 0.9;
}
.expired h1 { font-size: 1.5rem; margin-bottom: 10px; }
.expired p { color: var(--muted); margin: 0 auto 22px; max-width: 40ch; }

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: auto;
  padding: 13px 26px;
}

.cta-line {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.cta-line a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(82,175,38,0.5);
  padding-bottom: 1px;
}
.cta-line a:hover { border-bottom-color: var(--green); }

/* wider container on video page for a roomier player */
.container--wide { max-width: 780px; }

@media (min-width: 560px) {
  .card { padding: 34px 32px; }
  main { padding: 52px 0 64px; }
}
