/* ============================================================
   TV Mount Wise — Help Center stylesheet
   A single-file, dependency-free stylesheet.

   DESIGN TOKENS
   -------------------------------------------------------------
   Palette
     --cream        #FFFBF3   warm page background
     --violet       #6D5AE6   primary (headings accents, links, CTA)
     --violet-deep  #574AC7   pressed / hover primary
     --mint         #2FBF9F   secondary (success, tags, step numbers)
     --sunny        #FFC24B   accent highlight
     --ink          #2A2540   strong headings text
     --body         #4B4763   body copy
     --card         #FFFFFF   card surface
     --line         #F0E7D6   soft warm border
   Type
     display : "Baloo 2", rounded friendly headings (600/700)
     body    : "Nunito Sans", legible body (400/600/700)
   Radii    : 12 / 18 / 26 (varied on purpose — not one-size)
   Shadow   : soft warm-tinted elevation
   ============================================================ */

:root {
  --cream: #FFFBF3;
  --violet: #6D5AE6;
  --violet-deep: #574AC7;
  --violet-soft: #EEEBFB;
  --mint: #2FBF9F;
  --mint-soft: #E1F5EF;
  --sunny: #FFC24B;
  --sunny-soft: #FFF1D4;
  --ink: #2A2540;
  --body: #4B4763;
  --muted: #6E6A85;
  --card: #ffffff;
  --line: #F0E7D6;
  --line-strong: #E4D9C4;

  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --shadow-sm: 0 4px 14px rgba(80, 60, 140, 0.07);
  --shadow-md: 0 14px 34px rgba(80, 60, 140, 0.12);
  --shadow-lg: 0 26px 60px rgba(80, 60, 140, 0.16);

  --wrap: 1140px;
}

/* ---------- Reset-ish base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Visible focus everywhere */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--violet-deep); color: #fff; }
.btn-mint { background: var(--mint); color: #073c32; }
.btn-mint:hover { background: #26a889; color: #073c32; }
.btn-ghost { background: #fff; color: var(--violet-deep); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn-lg { font-size: 17px; padding: 15px 30px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; }
.brand b { color: var(--violet); font-weight: 700; }

.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.main-nav a {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.main-nav a:hover { background: var(--violet-soft); color: var(--violet-deep); text-decoration: none; }
.main-nav a.is-active { background: var(--violet); color: #fff; }
.main-nav .nav-cta { background: var(--sunny); color: #4a3405; }
.main-nav .nav-cta:hover { background: #ffb42a; color: #4a3405; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line-strong);
  background: #fff; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 18px 20px; }
  .main-nav a { padding: 12px 14px; border-radius: 12px; }
}

/* ---------- Section rhythm ---------- */
.section { padding: 74px 0; }
.section-sm { padding: 52px 0; }
.section-tint { background: linear-gradient(180deg, #fff 0%, #FFFDF7 100%); }
.section-mint { background: var(--mint-soft); }
.section-violet { background: var(--violet-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  color: var(--violet-deep); background: var(--violet-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow.tone-mint { color: #157a63; background: var(--mint-soft); }
.eyebrow.tone-sun { color: #8a5b04; background: var(--sunny-soft); }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.h-xl { font-size: clamp(30px, 5vw, 46px); }
.h-lg { font-size: clamp(26px, 3.6vw, 34px); }
.lead { font-size: 18.5px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 66px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(560px 300px at 12% 8%, rgba(109,90,230,0.12), transparent 60%),
    radial-gradient(520px 320px at 92% 22%, rgba(47,191,159,0.14), transparent 60%),
    radial-gradient(420px 260px at 78% 92%, rgba(255,194,75,0.16), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 46px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.6vw, 52px); margin-bottom: 16px; }
.hero h1 .u { color: var(--violet); }
.hero-lead { font-size: 19px; color: var(--body); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-reassure { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--muted); }
.hero-reassure span { display: inline-flex; align-items: center; gap: 7px; }

/* Problem selector */
.picker {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.picker h2 { font-size: 20px; margin-bottom: 4px; }
.picker p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picker-tile {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: #FFFDF8; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.picker-tile:hover { text-decoration: none; border-color: var(--violet); transform: translateY(-2px); background: #fff; }
.picker-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-deep);
}
.picker-tile:nth-child(2) .picker-ic { background: var(--mint-soft); color: #157a63; }
.picker-tile:nth-child(3) .picker-ic { background: var(--sunny-soft); color: #8a5b04; }
.picker-tile:nth-child(4) .picker-ic { background: #FCE4EF; color: #a83b74; }
.picker-tile small { display: block; font-family: var(--sans); font-weight: 600; font-size: 12.5px; color: var(--muted); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cat-ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet-deep); margin-bottom: 16px;
}
.cat-card:nth-child(3n+2) .cat-ic { background: var(--mint-soft); color: #157a63; }
.cat-card:nth-child(3n+3) .cat-ic { background: var(--sunny-soft); color: #8a5b04; }
.cat-card h3 { font-size: 20px; margin-bottom: 8px; }
.cat-card p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.cat-card .card-link {
  margin-top: auto; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--violet-deep);
}

/* ---------- Step tiles (setup / activation flow) ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 22px 22px 78px; box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute; left: 20px; top: 22px;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--violet); color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px;
}
.step:nth-child(4n+2) .step-num { background: var(--mint); color: #073c32; }
.step:nth-child(4n+3) .step-num { background: var(--sunny); color: #4a3405; }
.step:nth-child(4n+4) .step-num { background: var(--ink); color: #fff; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Callout / note ---------- */
.note {
  border-radius: var(--r-md); padding: 20px 22px; border: 1px solid var(--line-strong);
  background: var(--sunny-soft); color: #5b4413; display: flex; gap: 14px; align-items: flex-start;
}
.note svg { flex: 0 0 auto; margin-top: 2px; color: #b07b12; }
.note strong { color: #4a3405; }
.note.tone-violet { background: var(--violet-soft); border-color: #d9d2f6; color: #3f3670; }
.note.tone-violet svg { color: var(--violet-deep); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.ac-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ac-item.is-open { border-color: var(--violet); box-shadow: var(--shadow-sm); }
.ac-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px; justify-content: space-between;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 18px 20px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink);
}
.ac-trigger:hover { background: #FFFDF7; }
.ac-badge {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--mint-soft); color: #157a63; transition: transform .2s ease;
}
.ac-item.is-open .ac-badge { transform: rotate(45deg); background: var(--violet); color: #fff; }
.ac-panel { display: none; padding: 0 20px 20px; }
.ac-item.is-open .ac-panel { display: block; }
.ac-panel p { font-size: 15px; color: var(--body); margin: 0 0 .7rem; }
.ac-panel ul { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.ac-panel li { position: relative; padding-left: 26px; font-size: 15px; }
.ac-panel li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border-radius: 3px; background: var(--mint);
}

/* ---------- Help filter ---------- */
.filter-bar { margin-bottom: 22px; }
.filter-bar label { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.filter-input {
  width: 100%; max-width: 480px; font-family: var(--sans); font-size: 16px;
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
}
.filter-input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,90,230,0.15); }
.filter-empty { display: none; color: var(--muted); font-style: italic; padding: 8px 2px; }
.filter-empty.show { display: block; }

/* ---------- Info / list rows ---------- */
.tick-list { list-style: none; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 34px; font-size: 16px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 8px;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23157a63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Support / contact ---------- */
.support-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 26px; align-items: stretch; }
.support-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-sm);
}
.support-panel {
  border-radius: var(--r-lg); padding: 34px 32px; color: #fff;
  background: linear-gradient(155deg, #6D5AE6 0%, #574AC7 60%, #4a3fb0 100%);
  box-shadow: var(--shadow-md);
}
.support-panel h2, .support-panel h3 { color: #fff; }
.support-panel a { color: #fff; text-decoration: underline; }
.info-row { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.16); display: grid; place-items: center; }
.info-row strong { display: block; font-family: var(--display); }
.info-row p { margin: 0; color: rgba(255,255,255,0.86); font-size: 14.5px; }

/* ---------- Contact form ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #FFFDF8;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,90,230,0.15); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-status { display: none; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.form-status.show { display: block; }
.form-status.ok { background: var(--mint-soft); color: #12694f; border: 1px solid #b7e6d8; }

/* ---------- Simple 2-col prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 25px; margin-top: 2rem; }
.prose h3 { font-size: 20px; margin-top: 1.6rem; }
.prose ul.bullets { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 1rem; }
.prose p a { text-decoration: underline; }

/* ---------- FAQ (reuse accordion, on cards) ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.media-frame .tag {
  position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); display: inline-flex; gap: 8px; align-items: center;
}

/* ---------- Mini cards row ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-sm);
}
.mini .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--mint-soft); color: #157a63; margin-bottom: 12px; }
.mini h3 { font-size: 17px; margin-bottom: 6px; }
.mini p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(520px 260px at 85% 0%, rgba(47,191,159,0.13), transparent 60%),
              radial-gradient(480px 240px at 6% 30%, rgba(109,90,230,0.11), transparent 60%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--violet-deep); }

/* ---------- Footer ---------- */
.site-footer { background: #241F38; color: #cfc9e2; margin-top: 10px; }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand b { color: var(--sunny); }
.footer-brand p { font-size: 14.5px; color: #a9a2c4; margin-top: 12px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #cfc9e2; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-note p { font-size: 13px; color: #9c95bb; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0 28px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: space-between; align-items: center; }
.footer-bottom .copy { font-size: 13.5px; color: #9c95bb; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { font-size: 13.5px; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .picker-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn:hover, .cat-card:hover, .picker-tile:hover { transform: none; }
}
