/*
  bundle.css — combined stylesheet for TheHomeUserGuide.
  Concatenation of tokens.css + base.css + buttons.css + forms.css +
  pages/homeuserguide.css, in that exact cascade order, so the page
  makes ONE stylesheet request instead of five (cuts render-blocking
  request round-trips). Content is unchanged — edit the individual
  source files below and re-concatenate; do not hand-edit this file.
*/

/*
  Design tokens — single source of truth for color, spacing and font values
  used across TheHomeUserGuide site. Mirrors the pattern used in the
  virtual-viewing-website reference project (one tokens file, imported by
  site.css, instead of a <style> block pasted into every page's <head>).
*/
:root {
  /* Backgrounds */
  --bg: #0B0D0C;
  --card: #141816;

  /* Text */
  --ink: #EDECE6;
  --ink2: rgba(237, 236, 230, 0.72);
  --ink3: rgba(237, 236, 230, 0.66);
  --ink4: rgba(237, 236, 230, 0.62);
  --ink5: rgba(237, 236, 230, 0.55);
  --ink6: rgba(237, 236, 230, 0.5);
  /* 0.45 measured at 3.99:1 against --bg, just under the 4.5:1 WCAG AA
     minimum for normal-size text; raised to 0.52 (4.87:1) to pass. Only
     consumer is .thug-footer__bottom's copyright/legal line. */
  --ink7: rgba(237, 236, 230, 0.52);

  /* Fills / borders */
  --line1: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --line3: rgba(255, 255, 255, 0.18);

  /* Brand accent */
  --accent: #82BF96;
  --accent-ink: #0B0D0C;

  /* Status */
  --danger-bg: rgba(255, 85, 85, .12);
  --danger-border: rgba(255, 85, 85, .35);
  --danger-ink: #ffb4b4;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 18px;

  /* Font */
  --font-sans: 'Roboto', system-ui, sans-serif;

  /* Nav height, kept in sync with JS (see nav component script) */
  --navh: 75px;
}

/*
  Base element styles and resets, shared by the whole page.
  Depends on tokens.css being loaded first (uses its custom properties).
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  /*
    `overflow-x: hidden` on <body> alone does NOT reliably stop the root
    document from scrolling horizontally — per the CSS Overflow spec,
    overflow set on <body> (with <html> left at its default `visible`)
    propagates to the viewport's scrolling box, but <body> itself keeps
    scrolling as `visible`. In practice this means an absolutely-positioned
    element that pokes past the viewport edge (e.g. .thug-hero__glow) can
    still be reached by swiping/scrolling the page horizontally, even
    though there's no visible scrollbar — confirmed via
    document.documentElement.scrollWidth being wider than clientWidth, and
    window.scrollTo(x, 0) actually moving the page. Setting overflow-x on
    *both* html and body closes that gap.
  */
  overflow-x: hidden;
}

html,
body {
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

input,
textarea,
select {
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(237, 236, 230, 0.4);
}

/* Keep in-page anchor targets clear of the fixed header */
[id] {
  scroll-margin-top: var(--navh, 75px);
}

.thug-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Visually hidden until keyboard-focused — lets keyboard users jump past the nav */
.thug-skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  z-index: 2147483647;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) 0;
}

.thug-skip-link:focus {
  top: 0;
}

/* Respect the OS-level "reduce motion" preference: disable decorative
   entrance animations without changing layout or content for anyone else. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes vvRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vvFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vvPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes thugMenuFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes thugMenuRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/*
  Button styles. Covers the primary CTA ("Request a demo", "See the
  features", "Send enquiry") repeated across the nav, hero and contact
  sections.
*/

.thug-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}

.thug-btn--primary {
  color: var(--accent-ink);
  background: var(--accent);
}

/*
  Explicit `color` here (not just `background`) is required: .thug-btn is
  an <a>, and base.css's generic `a:hover { color: var(--ink) }` rule has
  higher specificity than the un-hovered `.thug-btn--primary` color rule
  (one more element-selector point), so without this override hovering
  would set the text to var(--ink) — the exact same light color the
  background switches to below, making the label unreadable.
*/
.thug-btn--primary:hover {
  color: var(--accent-ink);
  background: var(--ink);
}

.thug-btn--outline {
  color: var(--ink);
  padding: 15px 22px;
  border: 1px solid var(--line3);
}

.thug-btn--outline:hover {
  border-color: var(--accent);
}

.thug-btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}

.thug-btn--lg {
  padding: 15px 28px;
}

.thug-btn--block {
  display: flex;
  width: 100%;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
}

/* Square icon button — nav burger/close */
.thug-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--line1);
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}

.thug-icon-btn__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/*
  Contact/demo form field styles.
*/

.thug-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thug-field__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink2);
}

.thug-input,
.thug-textarea {
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
}

.thug-input:focus,
.thug-textarea:focus {
  border-color: var(--accent);
}

.thug-textarea {
  resize: vertical;
}

.thug-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}

.thug-form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.thug-alert {
  border-radius: var(--radius-md);
  padding: 12px 13px;
  font-size: 14px;
  line-height: 1.45;
}

.thug-alert--danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-ink);
}

/*
  index.html (TheHomeUserGuide landing page) styles.

  Ported 1:1 from the original inline styles in TheHomeUserGuide.dc.html —
  same colors, spacing and typography — with fluid clamp() sizing and
  auto-fit grid tracks added so the layout reflows on narrow viewports
  instead of squashing two fixed-fraction columns into a phone screen.
*/

.thug-page {
  font-family: var(--font-sans);
}

/* ============ NAV ============ */
.thug-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 13, 12, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line1);
}

/*
  .thug-nav is position:fixed (removed from normal flow), so this spacer
  — placed right after the header in the markup — reserves the same
  height in the document so the hero section isn't tucked underneath it.
  Matches the virtual-viewing-website reference's fixed-nav + spacer
  pattern (position:sticky was silently broken here by base.css's
  `overflow-x: hidden` on body, which turns body into a new scrolling
  container that position:sticky can't stick against).
*/
.thug-nav-spacer {
  height: var(--navh, 75px);
}

.thug-nav__bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.thug-nav__logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.thug-nav__logo-img {
  width: 44px;
  height: 44px;
  display: block;
  background: #F4F1EA;
  border-radius: 50%;
}

.thug-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.thug-nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
}

.thug-nav__link:hover {
  color: var(--ink);
}

.thug-nav__burger {
  display: none;
  margin-left: auto;
}

/* ---- Mobile nav (matches virtual-viewing-website's Nav.html breakpoint) ---- */
@media (max-width: 900px) {
  .thug-nav__logo-img {
    width: 38px;
    height: 38px;
  }
  .thug-nav__links {
    display: none;
  }
  .thug-nav__burger {
    display: inline-flex;
  }
}

.thug-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: var(--bg);
  flex-direction: column;
  overflow-y: auto;
  font-family: var(--font-sans);
  animation: thugMenuFade .2s ease;
}

.thug-nav-overlay.is-open {
  display: flex;
}

.thug-nav-overlay__header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 32px);
  border-bottom: 1px solid var(--line1);
}

.thug-nav-overlay__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px clamp(20px, 4vw, 32px) 40px;
  animation: thugMenuRise .3s cubic-bezier(.16, .84, .44, 1) both;
}

.thug-nav-overlay__item {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line1);
}

.thug-nav-overlay__cta {
  margin-top: 28px;
}

/* ============ HERO ============ */
.thug-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 76px) clamp(20px, 4vw, 32px) 44px;
  position: relative;
}

.thug-hero__glow {
  position: absolute;
  top: 40px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(130, 191, 150, 0.16), transparent 66%);
  pointer-events: none;
}

.thug-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
  position: relative;
}

.thug-hero__content {
  animation: vvRise .8s ease both;
}

.thug-hero__eyebrow {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.thug-hero__title {
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.thug-hero__title-accent {
  color: var(--accent);
}

.thug-hero__body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink3);
  max-width: 480px;
  margin-bottom: 34px;
  text-wrap: pretty;
}

.thug-hero__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.thug-hero__stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line1);
}

.thug-hero__stat {
  flex: 1 1 140px;
  padding-right: 24px;
}

.thug-hero__stat + .thug-hero__stat {
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line1);
}

.thug-hero__stat-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.thug-hero__stat-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink5);
  margin-top: 8px;
}

.thug-hero__media {
  position: relative;
  animation: vvFade 1.1s ease both;
}

.thug-hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.6));
}

/* ============ MARQUEE ============ */
.thug-marquee {
  border-top: 1px solid var(--line1);
  border-bottom: 1px solid var(--line1);
  margin-top: 32px;
}

.thug-marquee__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink6);
}

.thug-marquee__sep {
  color: var(--accent);
}

/* ============ INTRO ============ */
.thug-intro {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 92px) clamp(20px, 4vw, 32px) 48px;
}

.thug-intro__text {
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.thug-intro__accent {
  color: var(--accent);
}

/* ============ VIDEO ============ */
.thug-video {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 32px) 56px;
}

.thug-video__label {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.thug-video__frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line1);
  box-shadow: 0 34px 60px rgba(0, 0, 0, 0.5);
}

.thug-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ ADVANTAGES ============ */
.thug-advantages {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 56px) clamp(20px, 4vw, 32px) 48px;
}

.thug-advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 6vw, 56px);
  align-items: start;
}

.thug-advantages__intro {
  position: sticky;
  top: 104px;
}

@media (max-width: 900px) {
  .thug-advantages__intro {
    position: static;
  }
}

.thug-advantages__eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.thug-advantages__title {
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.thug-advantages__body {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink3);
  text-wrap: pretty;
}

.thug-advantages__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.thug-advantages__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line1);
}

.thug-advantages__item:last-child {
  border-bottom: none;
}

.thug-advantages__check {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.thug-advantages__text {
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.3;
}

/* ============ ORGANISE ============ */
.thug-organise {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 92px) clamp(20px, 4vw, 32px) 48px;
}

.thug-organise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}

.thug-organise__eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.thug-organise__title {
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.thug-organise__body {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink3);
  margin-bottom: 16px;
  text-wrap: pretty;
}

.thug-organise__media {
  position: relative;
}

.thug-organise__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, 0.55));
}

/* ============ TAG IT / SEE IT CARDS ============ */
.thug-cards {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 56px) clamp(20px, 4vw, 32px) 48px;
}

.thug-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.thug-card {
  background: var(--card);
  border: 1px solid var(--line1);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.thug-card__eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.thug-card__title {
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.thug-card__body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink4);
  max-width: 420px;
  text-wrap: pretty;
}

.thug-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-top: 28px;
  border-radius: 16px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

/* ============ DEMO / CONTACT ============ */
.thug-demo {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 88px) clamp(20px, 4vw, 32px) 48px;
}

.thug-demo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 6vw, 56px);
  align-items: start;
}

.thug-demo__eyebrow {
  font-weight: 500;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.thug-demo__title {
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.thug-demo__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink3);
  max-width: 460px;
  margin-bottom: 28px;
  text-wrap: pretty;
}

.thug-demo__email {
  font-size: 15px;
  color: var(--accent);
}

.thug-demo__panel {
  background: var(--card);
  border: 1px solid var(--line1);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.thug-demo__success {
  text-align: center;
  padding: 48px 12px;
}

.thug-demo__success-title {
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 12px;
}

.thug-demo__success-body {
  color: var(--ink3);
  font-size: 15px;
}

/* ============ FOOTER ============ */
.thug-footer {
  border-top: 1px solid var(--line1);
  margin-top: 56px;
}

.thug-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 64px) clamp(20px, 4vw, 32px) 44px;
}

.thug-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
}

.thug-footer__brand-row {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.thug-footer__logo {
  width: 48px;
  height: 48px;
  display: block;
  background: #F4F1EA;
  border-radius: 50%;
}

.thug-footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink6);
  max-width: 280px;
}

.thug-footer__vv-logo {
  margin-top: 26px;
  height: 51px;
  width: auto;
  opacity: 0.95;
}

.thug-footer__office-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.thug-footer__office-addr {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink4);
}

.thug-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line1);
  font-size: 13px;
  color: var(--ink7);
}

.thug-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
