/* =========================================================
   VisiWave Site Survey — Styles (Cleaned)
   - Band-based homepage (dark/light sections)
   - Keeps shared header/nav/footer + forms used on other pages
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root {
  /* Light theme */
  --bg: #F4F6FB;
  --panel: #FFFFFF;
  --card: #FFFFFF;
  --border: #D9E1F2;
  --text: #0F1A44;
  --muted: #5C6B8A;
  --accent: #274ECF;

  /* Dark band theme (Rippling-ish) */
  /* --band-dark-1: #0B1433;
  --band-dark-2: #1A0B3E;
  --band-light: #F4F6FB; */
  --band-dark-1: #21318C;
  --band-dark-2: #444F89;
  --band-light: #FFF6E8;

  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  /* Components */
  --box-bg: rgba(255, 255, 255, 0.85);
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header & Nav ---------- */
.header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 38px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
}

.menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--text);
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.menu a.active,
.menu a:hover {
  background: rgba(39, 78, 207, 0.08);
  border-color: var(--border);
}

/* Hamburger */
.hamburger {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
}

.hamburger:focus {
  outline: 2px solid var(--accent);
}

/* Mobile nav */
@media (max-width:700px) {
  .menu {
    display: none;
    width: 100%;
    order: 3;
  }

  .menu.open {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    border-radius: 0 0 10px 10px;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .hamburger {
    display: inline-flex;
    margin-left: auto;
    align-self: center;
  }

  .brand img {
    height: 34px;
  }
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.btn.secondary,
.btn.tertiary {
  background: var(--panel);
  color: var(--text);
}

.btn[disabled],
.btn.is-busy {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Band sections (homepage) ---------- */
main {
  background: transparent;
}

.band {
  width: 100%;
}

.band-inner {
  padding: 54px 0;
}

/* Dark band */
.band-dark {
  background:
    radial-gradient(1100px 520px at 70% 20%, rgba(117, 42, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--band-dark-1), var(--band-dark-2));
  color: var(--on-dark);
}

.band-dark h1,
.band-dark h2,
.band-dark h3 {
  color: var(--on-dark);
}

.muted-on-dark {
  color: var(--on-dark-muted);
}

/* Light band */
.band-light {
  background: var(--band-light);
  color: var(--text);
}

/* Buttons on dark bands */
.band-dark .btn {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.26);
}

.band-dark .btn.primary {
  /* background: #FFB020; */
  background: #FFCC68;

  /* CTA pop */
  border-color: transparent;
  color: #1a1a1a;
}

/* ---------- Typography helpers ---------- */
.hero-tagline {
  font-size: 1.15rem;
  margin: 8px 0 12px;
  opacity: 0.95;
}

.hero-sub {
  max-width: 60ch;
}

.lead {
  max-width: 110ch;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Section 1: Hero (2 columns) ---------- */
.hero-2col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  /* 1.15fr 0.85fr; */
  gap: 24px;
  align-items: center;
}

.hero-left .hero-sub {
  color: var(--on-dark-muted);
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-media-small {
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-media-small img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bullets */
.bullets {
  margin: 18px 0 0;
  padding-left: 22px;
}

.bullets li {
  margin: 12px 0;
  color: var(--muted);
}

.bullets-on-dark li {
  color: var(--on-dark-muted);
}

/* ---------- Section 2: Box grid ---------- */
.box-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.box {
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.box h3 {
  margin: 0 0 6px;
}

.box p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Section 3: Dark split ---------- */
.two-col-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

/* Section 3: left/right split columns */
.split-left,
.split-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Optional: slightly constrain right column content */
.split-right {
  align-items: flex-start;
}

.split-right h2 {
  margin-bottom: 6px;
}

.split-right p {
  margin-top: 0;
}

.steps {
  padding-left: 18px;
}

.steps li {
  margin: 10px 0;
}

.steps-on-dark {
  color: var(--on-dark-muted);
}

.mini-grid {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.mini-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
}

.mini-card span {
  opacity: 0.86;
  display: block;
}

/* Mini cards on dark band */
.mini-grid-on-dark .mini-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.mini-grid-on-dark .mini-card span {
  color: var(--on-dark-muted);
  opacity: 1;
}

/* Section 3: stacked content on the left */
.stack {
  display: grid;
  gap: 2px;
}

.stack-block {
  /* subtle separation without looking like a "card" */
  padding: 0;
}

.right-media {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
}

.right-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Section 4: Video carousel ---------- */
.video-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

/* Slide becomes vertical instead of side-by-side */
.video-slide {
  display: grid;
  gap: 14px;
}

/* Center the title/description */
.video-meta-center {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto;
}

.video-meta-center h3 {
  margin: 0;
}

.video-meta-center p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Larger video area */
.video-frame-large {
  padding-top: 56.25%;
  /* keep 16:9 */
}

/* Make the carousel viewport feel more “full width” */
.carousel-slide {
  flex: 0 0 100%;
  padding: 22px;
}

/* On dark backgrounds you may want text lighter — optional if used only on light band */
.band-dark .video-meta-center p {
  color: var(--on-dark-muted);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

.carousel-track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.carousel-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.dot.is-active {
  background: rgba(0, 0, 0, 0.35);
}

/* ---------- Section 5: CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band p {
  margin: 8px 0 0;
}

/* Centered CTA layout (Section 5 only) */
.cta-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-centered .cta-row {
  justify-content: center;
  margin-top: 14px;
}

.cta-centered h2 {
  margin-bottom: 6px;
}

.cta-centered p {
  max-width: 65ch;
  margin: 0;
}

/* Section 5 CTA background image */
.band-dark .cta-centered {
  position: relative;
}

.band-dark .cta-centered::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/cta-waves.svg");
  background-repeat: no-repeat;
  background-size: cover;
  /* try 'contain' if you prefer */
  background-position: center;
  opacity: 0.90;
  /* main strength knob */
  pointer-events: none;
  z-index: 0;
}

.band-dark .cta-centered>* {
  position: relative;
  z-index: 1;
  /* keep text/buttons above art */
}

/* ---------- Forms (kept for other pages) ---------- */
.form {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

label {
  font-weight: 600;
}

.note {
  color: var(--muted);
  font-size: .95rem;
}

.small-muted {
  font-size: .9rem;
  color: var(--muted);
}

.badge {
  font-size: .825rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(39, 78, 207, 0.08);
  color: var(--text);
}

.code-input {
  width: 14ch;
  max-width: 100%;
  letter-spacing: 0.3px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 0;
  /* bands already create separation */
}

.footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {

  .hero-2col,
  .two-col-split {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .box-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {

  .carousel-btn {
    display: none;
  }
}

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

/* FAQ item separation */
details.faq-item {
  border-top: 1px solid #e5e5e5;
  padding: 0.75rem 0;
}

details.faq-item:first-child {
  border-top: none;
}

/* FAQ question styling */
details.faq-item>summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
}

/* Remove default marker */
details.faq-item>summary::-webkit-details-marker {
  display: none;
}

/* Highlight expanded questions */
details.faq-item[open]>summary {
  color: #0b5ed7;
  /* subtle brand blue */
}

details.faq-item[open] {
  background: #fafafa;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.5rem 0;
}

details.faq-item>summary::before {
  content: "▸";
  display: inline-block;
  width: 1em;
  margin-right: 0.4em;
  transition: transform 0.15s ease;
}

details.faq-item[open]>summary::before {
  transform: rotate(90deg);
}