/* DoseTrack venture identity — brand-blue gradient, rounded/heavy type, playful-not-clinical. */

:root {
  --dt-blue-1: #6C97F5;
  --dt-blue-2: #3B5FCC;
  --dt-ink: #182247;
  --dt-ink-soft: #4C577E;
  --dt-paper: #F5F7FE;
  --dt-card: #FFFFFF;
  --dt-green: #34C759;
  --dt-line: #DEE5FA;
  --dt-shadow: 0 20px 40px -20px rgba(59, 95, 204, 0.35);
  --dt-warn-bg: #FDF1DD;
  --dt-warn-border: #F1D6A6;
  --dt-warn-text: #B5762A;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dt-ink: #EEF1FC;
    --dt-ink-soft: #ABB4D6;
    --dt-paper: #0E1330;
    --dt-card: #171D42;
    --dt-line: #2A3266;
    --dt-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
    --dt-warn-bg: #3A2E10;
    --dt-warn-border: #5C4A1C;
    --dt-warn-text: #F5C878;
  }
}
:root[data-theme="dark"] {
  --dt-ink: #EEF1FC;
  --dt-ink-soft: #ABB4D6;
  --dt-paper: #0E1330;
  --dt-card: #171D42;
  --dt-line: #2A3266;
  --dt-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
  --dt-warn-bg: #3A2E10;
  --dt-warn-border: #5C4A1C;
  --dt-warn-text: #F5C878;
}

.dt {
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Rounded", system-ui, sans-serif;
  background: var(--dt-paper);
  color: var(--dt-ink);
}

.dt-page {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 64px;
}

/* Hero */
.dt-hero {
  position: relative;
  padding: 48px 24px 84px;
  background: radial-gradient(120% 90% at 50% -10%, var(--dt-blue-1), var(--dt-blue-2) 65%);
  color: white;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}
.dt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.dt-confetti { position: absolute; inset: 0; pointer-events: none; }
.dt-confetti span {
  position: absolute;
  display: block;
  border-radius: 40%;
  opacity: 0;
  animation: dt-burst 1.9s cubic-bezier(.2, .8, .25, 1) forwards;
  animation-delay: .35s;
}
@keyframes dt-burst {
  0%   { transform: translate(0, 0) rotate(0deg) scale(.4); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: var(--end) rotate(var(--spin)) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-confetti span, .dt-mascot-wrap, .dt-store-badge, .dt-shop-btn { animation: none !important; transition: none !important; }
}

.dt-mascot-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  animation: dt-pop .7s cubic-bezier(.3, 1.4, .4, 1) both;
}
@keyframes dt-pop {
  0%   { transform: scale(.4) rotate(-8deg); opacity: 0; }
  60%  { transform: scale(1.08) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
.dt-mascot-wrap img { width: 100%; height: 100%; object-fit: contain; }

.dt-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 8px;
}
.dt-hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.dt-hook {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  max-width: 32ch;
  margin: 0 auto;
  font-weight: 500;
}

/* CTA card */
.dt-cta { margin-top: -52px; padding: 0 24px; position: relative; z-index: 2; }
.dt-badge-card {
  background: var(--dt-card);
  border: 1px solid var(--dt-line);
  border-radius: 24px;
  padding: 22px 20px 26px;
  box-shadow: var(--dt-shadow);
  text-align: center;
}
.dt-badge-card p { font-size: 14px; font-weight: 700; color: var(--dt-ink-soft); margin-bottom: 16px; }
.dt-store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dt-store-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--dt-ink);
  color: var(--dt-paper);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  min-width: 150px;
  transition: transform .15s ease;
}
/* In dark mode the badge card itself is already dark navy, so a near-black badge on top of
   it has almost no contrast and reads as blank. Use a light badge with dark text instead —
   the inverse of the light-mode treatment — so the badge stays visibly distinct from the card. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dt-store-badge { background: #EEF1FC; color: #182247; }
}
:root[data-theme="dark"] .dt-store-badge { background: #EEF1FC; color: #182247; }
.dt-store-badge:hover { transform: translateY(-2px); }
.dt-store-badge--disabled { opacity: .45; cursor: default; pointer-events: none; }
.dt-store-badge--disabled:hover { transform: none; }
.dt-store-badge svg { width: 22px; height: 22px; flex: none; }
.dt-store-badge .dt-txt { text-align: left; line-height: 1.15; }
.dt-store-badge .dt-small { font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; display: block; }
.dt-store-badge .dt-big { font-size: 15px; font-weight: 800; display: block; }

.dt-placeholder-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dt-warn-text);
  background: var(--dt-warn-bg);
  border: 1px solid var(--dt-warn-border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Trust row */
.dt-trust {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 30px 24px 0;
  padding: 16px 6px;
  border-top: 1px solid var(--dt-line);
  border-bottom: 1px solid var(--dt-line);
  flex-wrap: wrap;
}
.dt-trust-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--dt-ink-soft); }
.dt-trust-item svg { width: 15px; height: 15px; color: var(--dt-green); flex: none; }

/* Features */
.dt-features { padding: 32px 24px 0; display: grid; gap: 14px; }
.dt-feature { display: flex; align-items: flex-start; gap: 14px; background: var(--dt-card); border: 1px solid var(--dt-line); border-radius: 18px; padding: 16px 18px; }
.dt-feature .dt-dot {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dt-blue-1), var(--dt-blue-2));
  color: white; flex: none; font-size: 18px;
}
.dt-feature h3 { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.dt-feature p { font-size: 13.5px; color: var(--dt-ink-soft); line-height: 1.45; }

/* Social */
.dt-social { text-align: center; padding: 40px 24px 0; }
.dt-social p { font-size: 13px; font-weight: 700; color: var(--dt-ink-soft); margin-bottom: 14px; }
.dt-social-row { display: flex; justify-content: center; gap: 12px; }
.dt-social-row a {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dt-card); border: 1px solid var(--dt-line); color: var(--dt-ink);
  transition: transform .15s ease, background .15s ease;
}
.dt-social-row a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--dt-blue-1), var(--dt-blue-2));
  color: white;
  border-color: transparent;
}
.dt-social-row svg { width: 19px; height: 19px; }
.dt-social-note { margin-top: 12px !important; font-size: 11px !important; font-weight: 600 !important; color: var(--dt-warn-text) !important; }

.dt-footer { text-align: center; margin-top: 40px; font-size: 12px; color: var(--dt-ink-soft); opacity: .8; }

/* Cross-page subnav — subtle, shared across all DoseTrack pages */
.dt-subnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 10px;
  font-size: 12px;
}
.dt-subnav a {
  color: var(--dt-ink-soft);
  text-decoration: none;
  padding: 2px 4px;
}
.dt-subnav a:hover { color: var(--dt-blue-2); text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dt-subnav a:hover { color: var(--dt-blue-1); }
}
:root[data-theme="dark"] .dt-subnav a:hover { color: var(--dt-blue-1); }
.dt-subnav .dt-sep { color: var(--dt-line); }

/* Policies pages (shared, simpler layout) */
.dt-doc { max-width: 640px; margin: 0 auto; padding: 48px 24px 80px; }
.dt-doc-header { margin-bottom: 32px; }
@media (max-width: 480px) {
  .dt-doc { padding: 32px 20px 64px; }
  .dt-doc-header { margin-bottom: 28px; }
  .dt-doc-header h1 { font-size: 26px; }
}
.dt-doc-header a.dt-back { font-size: 13px; font-weight: 700; color: var(--dt-blue-2); text-decoration: none; }
:root[data-theme="dark"] .dt-doc-header a.dt-back,
@media (prefers-color-scheme: dark) { .dt-doc-header a.dt-back { color: var(--dt-blue-1); } }
.dt-doc-header h1 { font-size: 30px; font-weight: 900; margin: 14px 0 6px; letter-spacing: -0.01em; }
.dt-doc-updated { font-size: 13px; color: var(--dt-ink-soft); }
.dt-draft-banner {
  background: var(--dt-warn-bg);
  border: 1px solid var(--dt-warn-border);
  color: var(--dt-warn-text);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 28px;
}
.dt-moved-banner {
  background: color-mix(in srgb, var(--dt-blue-1) 12%, var(--dt-card));
  border: 1px solid var(--dt-line);
  color: var(--dt-ink);
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 28px;
}
.dt-moved-banner a { color: var(--dt-blue-2); font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dt-moved-banner a { color: var(--dt-blue-1); } }
:root[data-theme="dark"] .dt-moved-banner a { color: var(--dt-blue-1); }
.dt-doc-body { font-size: 15.5px; line-height: 1.7; }
.dt-doc-body h2 { font-size: 19px; font-weight: 800; margin: 32px 0 10px; }
.dt-doc-body p, .dt-doc-body ul { margin: 0 0 14px; color: var(--dt-ink); }
.dt-doc-body ul { padding-left: 22px; }
.dt-doc-body li { margin-bottom: 6px; }
.dt-doc-body strong { font-weight: 800; }
.dt-doc-body a { color: var(--dt-blue-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dt-doc-body a { color: var(--dt-blue-1); } }
:root[data-theme="dark"] .dt-doc-body a { color: var(--dt-blue-1); }
.dt-doc-footer-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dt-line); font-size: 13px; color: var(--dt-ink-soft); }

.dt-policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dt-policy-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border: 1px solid var(--dt-line); border-radius: 14px;
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--dt-ink);
  background: var(--dt-card);
  transition: border-color .15s ease, transform .15s ease;
}
.dt-policy-list a:hover { border-color: var(--dt-blue-2); transform: translateY(-1px); }
.dt-policy-list .dt-arrow { color: var(--dt-blue-2); }

/* Contact form */
.dt-form { display: grid; gap: 24px; margin-top: 16px; }
.dt-field { display: grid; gap: 9px; }
.dt-field label { font-size: 13.5px; font-weight: 700; color: var(--dt-ink-soft); }
.dt-field input,
.dt-field select,
.dt-field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--dt-ink);
  background: var(--dt-card);
  border: 1px solid var(--dt-line);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
}
.dt-field textarea { resize: vertical; min-height: 140px; }
.dt-field input:focus,
.dt-field select:focus,
.dt-field textarea:focus {
  outline: none;
  border-color: var(--dt-blue-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-blue-2) 20%, transparent);
}
.dt-submit {
  justify-self: start;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--dt-blue-1), var(--dt-blue-2));
  color: white;
  font-weight: 800;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  padding: 15px 28px;
  transition: transform .15s ease;
}
.dt-submit:hover { transform: translateY(-1px); }

@media (max-width: 480px) {
  .dt-form { gap: 22px; margin-top: 20px; }
  .dt-submit { justify-self: stretch; padding: 16px 28px; }
}

.dt-confirm {
  text-align: center;
  padding: 64px 24px;
}
.dt-confirm .dt-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dt-green);
  color: white;
}
.dt-confirm h1 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.dt-confirm p { color: var(--dt-ink-soft); max-width: 34ch; margin: 0 auto; line-height: 1.5; }

/* Merch placeholder */
.dt-coming-soon {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.dt-coming-soon h1 { font-size: 30px; font-weight: 900; margin: 20px 0 10px; }
.dt-coming-soon p { color: var(--dt-ink-soft); max-width: 34ch; line-height: 1.5; }

/* Organiser CTA — the physical half of the product.
   Mirrors .dt-badge-card rather than reusing it: .dt-badge-card p is styled as a
   label (700/14px/ink-soft), which would leak into the body copy here. */
.dt-shop { padding: 0 24px; margin-top: 28px; }
.dt-shop-card {
  background: var(--dt-card);
  border: 1px solid var(--dt-line);
  border-radius: 24px;
  padding: 22px 20px 26px;
  box-shadow: var(--dt-shadow);
  text-align: center;
}
.dt-shop-label { font-size: 14px; font-weight: 700; color: var(--dt-ink-soft); margin-bottom: 14px; }
.dt-shop-img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 18px;
  border: 1px solid var(--dt-line);
}
.dt-shop-title { font-size: 21px; font-weight: 900; color: var(--dt-ink); margin-bottom: 7px; }
.dt-shop-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--dt-ink-soft);
  line-height: 1.5;
  max-width: 32ch;
  margin: 0 auto 18px;
}
.dt-shop-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: linear-gradient(135deg, var(--dt-blue-1), var(--dt-blue-2));
  color: white;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 12px;
  padding: 15px 28px;
  transition: transform .15s ease;
}
.dt-shop-btn:hover { transform: translateY(-1px); }
.dt-shop-price { font-size: 13px; font-weight: 700; opacity: .82; }
.dt-shop-ship {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dt-ink-soft);
}
