/* layout.css — Page structure, nav, hero grid, sections, footer, floating pill */

/* ── Page wrapper ── */
.page-wrapper {
  font-family: var(--font-body);
  background: var(--color-white);
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

/* ── Nav ── */
.v4-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.nav-by {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-light-gray);
  margin: 0 6px 0 3px;
}

.nav-valubyl-link {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Hero ── */
.v4-hero {
  background: var(--color-white);
  padding: 0 clamp(2rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  min-height: 76vh;
  max-width: 1440px;
  margin: 0 auto;
}

.v4-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.v4-hero-h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3.2rem, 4.5vw, 5.5rem);
  color: var(--color-black);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}

.v4-hero-br {
  display: block;
}

.v4-mobile-br {
  display: none;
}

.v4-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--color-gray);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 40px;
}

.v4-hero-cards {
  position: relative;
  width: 100%;
  padding-bottom: 92%;
}

/* ── Sections ── */
.section-logo-carousel {
  background: var(--color-white);
}

.section-logo-carousel-header {
  padding: 0 clamp(2rem, 6vw, 6rem) clamp(1.5rem, 2vw, 2rem);
  text-align: center;
}

.section-tactics {
  background: var(--color-bg-warm);
  padding: clamp(4rem, 7vw, 7rem) 0;
  overflow: hidden;
}

.section-tactics-header {
  text-align: center;
  padding: 0 clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-tactics-row {
  overflow: clip;
  contain: paint;
  position: relative;
  margin-bottom: 16px;
}

.v4-features-section {
  background: var(--color-white);
  padding: clamp(3rem, 5vw, 5rem) 24px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.v4-features-header {
  margin-bottom: 40px;
}

.section-reverse-ticker {
  background: var(--color-bg-warm);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  overflow: clip;
  contain: paint;
  position: relative;
  padding: 14px 0;
}

/* ── CTA (dark) ── */
.section-cta-dark {
  background: var(--color-black);
  overflow: clip;
}

.section-cta-dark-inner {
  padding: clamp(7rem, 11vw, 12rem) clamp(2rem, 6vw, 6rem)
    clamp(4rem, 7vw, 7rem);
  text-align: center;
}

/* ── Footer ── */
.footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-border-dark);
  padding: 32px 40px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-white);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.footer-copy,
.footer-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 18px;
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ── Nav home link ── */
.nav-home-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

/* ── Legal pages ── */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 40px 96px;
}

.legal-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-black);
  margin-bottom: 32px;
  text-align: left;
}

.legal-subheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 24px);
  color: var(--color-black);
  margin-top: 48px;
  margin-bottom: 16px;
  text-align: left;
}

.legal-heading + .legal-subheading {
  margin-top: 0;
}

.legal-subsubheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--color-black);
  margin-top: 24px;
  margin-bottom: 8px;
  text-align: left;
}

.legal-content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-black);
  text-align: left;
  margin-bottom: 20px;
}

.legal-content ul {
  padding-left: 1.5em;
  margin: 8px 0 20px;
}

.legal-content li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-black);
  margin-bottom: 6px;
}

.legal-content p + ul {
  margin-top: -8px;
}

.legal-content a {
  color: #1447E6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Floating "by Valubyl" pill ── */
.floating-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1.5px solid rgba(10, 10, 10, 0.12);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 12px;
  box-shadow: var(--shadow-pill);
  text-decoration: none;
}

.floating-pill-by {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-light-gray);
}

/* ── Graphic containers ── */
.v4-graphic-desktop {
  width: 100%;
  display: flex;
  justify-content: center;
}

.v4-graphic-mobile {
  display: none;
  width: 100%;
}

/* ── Tabs ── */
.v4-tabs-outer {
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid var(--color-black);
  position: relative;
}

.v4-tabs-row {
  display: flex;
  border-bottom: 2px solid var(--color-black);
}

.v4-tabs-content {
  grid-template-columns: 1fr 1fr;
  height: 560px;
  overflow: hidden;
  display: grid;
  opacity: 0;
  position: absolute;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.v4-tabs-content.active {
  opacity: 1;
  position: relative;
  visibility: visible;
}

.v4-tabs-content-text {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v4-tabs-content-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 4vw, 4rem);
}
