/* Tube Roadmap — draft official site. Professional, calm, adult. */
:root {
  --bg: #f3f0ea;
  --bg-elev: #fffcf7;
  --bg-tint: #e7efe9;
  --ink: #142033;
  --ink-soft: #3a4556;
  --muted: #5a6573;
  --line: #ddd6cb;
  --accent: #0f4f4c;
  --accent-hover: #0a3b39;
  --accent-soft: #dceae8;
  --accent-bright: #1a6b66;
  --warn-bg: #f6eee0;
  --warn-ink: #5a4320;
  --danger: #8b2e2e;
  --badge-bg: #0f4f4c;
  --badge-ink: #f4fffd;
  --shadow: 0 1px 2px rgba(20, 32, 51, 0.05), 0 8px 24px rgba(20, 32, 51, 0.06);
  --radius: 14px;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --max: 70rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 620; }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 240, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo img.tr-mark, .logo > img, .logo svg { width: 2rem; height: 2rem; }
.logo:hover { color: var(--ink); }
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  line-height: 1.15;
}
.logo-name { display: block; }
.logo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-weight: 450;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.hts-logo {
  display: block;
  object-fit: contain;
  border-radius: 5px;
  /* Official logo is colourful; slight desaturation so it sits calmly on this site */
  filter: saturate(0.7) contrast(1.05);
}
.hts-logo-sm { width: 26px; height: 26px; }
.hts-logo-lg { width: 40px; height: 40px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}
.footer-brand > span { display: block; }

@media (max-width: 840px) {
  /* Keep the header a single row on small screens; tagline remains in the footer */
  .logo-tag { display: none; }
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 560;
  font-size: 0.98rem;
  padding: 0.25rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 620;
  font-size: 0.98rem;
  line-height: 1.2;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-elev); color: var(--ink) !important; }
.btn-small { padding: 0.4rem 0.85rem; font-size: 0.92rem; }

/* Hero + typography */
.hero {
  padding: 3.4rem 0 2.6rem;
}
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -0.02em; }
h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.section { padding: 2.4rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}
h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); margin: 0 0 0.6rem; font-weight: 600; }
h3 { font-size: 1.22rem; margin: 0 0 0.45rem; font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 1.2rem; max-width: 40rem; }

/* Cards */
.grid-3, .grid-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent);
}
.entry-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent);
  background: linear-gradient(180deg, #f4faf8 0%, var(--bg-elev) 100%);
}
.entry-offer .price {
  font-size: 1.75rem;
  margin: 0.05rem 0 0.35rem;
}
.entry-offer ul { margin-bottom: 0.5rem; }
.entry-offer .meta { margin-bottom: 0.45rem; }
.entry-offer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 15.5rem;
  max-width: 20rem;
  padding-top: 1.85rem;
}
.pay-pending-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.45rem 0 0;
  max-width: 20rem;
}
.upsell { margin: 0.15rem 0 0; }
.price {
  font-family: var(--serif);
  font-size: 2.05rem;
  font-weight: 600;
  margin: 0.15rem 0 0.1rem;
  letter-spacing: -0.03em;
}
.price span { font-size: 1rem; color: var(--muted); font-family: var(--font); font-weight: 500; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.9rem; }
.card ul, .prose ul, .prose ol { margin: 0.3rem 0 1rem; padding-left: 1.15rem; }
.card li, .prose li { margin: 0.28rem 0; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.step-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Notices */
.notice, .empty-state, .disclaimer {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #eadcbd;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.empty-state {
  background: var(--bg-elev);
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  text-align: center;
  padding: 2.4rem 1.4rem;
}
.empty-state h2, .empty-state h3 { margin-bottom: 0.4rem; }
.disclaimer {
  background: var(--bg-tint);
  color: var(--ink-soft);
  border-color: #c9d8d3;
  margin: 0.5rem 0 0;
}

/* Badge */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem 0.2rem;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-verified svg { width: 0.85rem; height: 0.85rem; }

.review-preview {
  max-width: 36rem;
  text-align: left;
  margin: 1.2rem auto 0;
  opacity: 0.95;
}
.review-preview .who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}
.ph {
  display: inline-block;
  background: #ece7de;
  color: var(--muted);
  font-style: italic;
  padding: 0 0.25rem;
  border-radius: 4px;
}

/* Forms */
form, .form {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
}
label, .label {
  display: block;
  font-weight: 620;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.hint { display: block; font-weight: 450; color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="file"],
select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
textarea { min-height: 7rem; resize: vertical; }
.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 450;
  max-width: 40rem;
}
.checkbox input { margin-top: 0.3rem; flex: none; }
.form-status {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  max-width: 40rem;
}
.form-status.is-on { display: block; }
.form-status.is-error { background: #f8e8e8; color: var(--danger); }

/* Sample audit document */
.doc {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 1.2rem;
}
.doc h2 { margin-top: 1.8rem; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.8rem 0 1.2rem;
}
.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--bg-tint); font-weight: 650; }
.doc .vid-block {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

/* FAQ */
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.25rem 0;
}
.faq details p { margin: 0.5rem 0 0.4rem; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.legal-id { margin: 0 0 0.6rem; }
.tiny { font-size: 0.88rem; color: var(--muted); }

.cookie-note {
  background: var(--ink);
  color: #e8ecef;
  padding: 0.85rem 0;
  font-size: 0.92rem;
}
.cookie-note .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-note a { color: #c9e4e1; }
.cookie-note[hidden] { display: none; }

.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h1 { max-width: none; }
.draft-flag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #eadcbd;
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.page-hero { padding: 2.3rem 0 0.4rem; }
.page-hero h1 { max-width: 22ch; margin-bottom: 0.7rem; }

@media (max-width: 840px) {
  .grid-3, .grid-steps, .footer-grid { grid-template-columns: 1fr; }
  .entry-offer { grid-template-columns: 1fr; }
  .entry-offer-cta, .pay-pending-note { min-width: 0; max-width: none; padding-top: 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem 1.1rem;
    gap: 0.55rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { margin: 0.5rem 0 0; flex-wrap: wrap; }
  .hero { padding-top: 2rem; }
  .doc table { font-size: 0.85rem; }
}


/* QA polish: keep long words, tables and native controls inside the viewport */
html { overflow-x: clip; }
body, p, li, td, th, a, .lede, .prose, .doc, .notice, .disclaimer, .empty-state, .pay-pending-note, .upsell, .entry-offer, .offer-banner, .newsletter, .gift-legal {
  overflow-wrap: break-word;
}
input[type="text"], input[type="email"], input[type="url"], input[type="file"],
select, textarea { max-width: 100%; }
.doc { overflow-x: auto; }
.doc table { min-width: 32rem; }
.cookie-note p { margin: 0; flex: 1 1 16rem; min-width: 0; }
.cookie-note .wrap { flex-wrap: wrap; align-items: flex-start; }

@media (max-width: 1100px) and (min-width: 841px) {
  .site-nav { gap: 0.1rem 0.55rem; }
  .nav-cta { margin-left: 0.1rem; }
  .site-nav a { font-size: 0.88rem; }
}
@media (max-width: 1200px) and (min-width: 841px) {
  .site-nav { gap: 0.1rem 0.7rem; }
}

@media (max-width: 840px) {
  .cookie-note .wrap { flex-direction: column; align-items: stretch; }
  .cookie-note .btn { align-self: flex-start; }
  h1 { max-width: none; }
}


/* Offer banner (shown only in the configured date range, or with ?preview=bf) */
.offer-banner {
  background: var(--accent);
  color: #f4fffd;
  padding: 0.7rem 0 0.8rem;
}
.offer-banner-inner { display: grid; gap: 0.2rem; }
.offer-banner-lead {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.offer-banner-lead strong { color: #fff; }
.offer-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.offer-banner .tiny,
.offer-banner-how { color: #d7eeea; margin: 0; }
.offer-banner a { color: #fff; }
.offer-banner .draft-flag {
  background: #f6eee0;
  color: #5a4320;
}

/* Shop categories */
.shop-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 1.1rem;
  font-weight: 560;
}
.shop-cat { padding-top: 1.6rem; padding-bottom: 1.4rem; }
.shop-cat-head { margin-bottom: 1rem; }
.shop-cat-head h2 { margin-bottom: 0.25rem; }
.shop-cat-head .sub { margin-bottom: 0; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.shop-card .btn { margin-top: auto; align-self: flex-start; }
.shop-card-addon { max-width: 28rem; }
.newsletter-shop {
  margin-top: 1.8rem;
}

/* Newsletter (footer band + shop block) */
.newsletter-band {
  padding: 0 0 1.6rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.newsletter {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: var(--shadow);
}
.newsletter-title {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.newsletter form { margin-top: 0.6rem; max-width: 36rem; }
.newsletter .checkbox { max-width: 36rem; }

@media (max-width: 840px) {
  .shop-grid { grid-template-columns: 1fr; }
}


.prose table { width: 100%; max-width: 40rem; border-collapse: collapse; margin: 0.8rem 0 1.2rem; font-size: 0.98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.45rem 0.55rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-tint); font-weight: 650; }


/* 14-day money-back guarantee badge — calm, brand colours, not cheesy */
.guarantee-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.7rem 0 1rem;
  max-width: 28rem;
  color: var(--ink);
}
.guarantee-badge-mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  display: block;
}
.guarantee-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  line-height: 1.35;
}
.guarantee-badge-text strong {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.98rem;
}
.guarantee-badge-text a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
.guarantee-badge-text a:hover { color: var(--accent); }
.faq .guarantee-badge { margin-top: 0.7rem; }
.prose .guarantee-badge { margin-top: 0.85rem; }
