/* BlueCollarClose marketing — tokens from bcc-platform design-system.md */

:root {
  --navy: #022e57;
  --navySolid: #022e57;
  --navySoft: #eef3f8;
  --orange: #fd8a18;
  --orange2: #9a4e00;
  --orangeAction: #b05a00;
  --orangeSoft: #fff4e8;
  --green: #1b6e1b;
  --ink: #0f0f12;
  --text2: #5a5c63;
  --text3: #6e7077;
  --line: #eaebee;
  --line2: #dee0e4;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --canvas: #eceef2;
  --elevated: #ffffff;
  --chrome: #0f0f12;
  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-sheet: 20px;
  --radius-pill: 9999px;
  --duration: 200ms;
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --max: 1120px;
  --font: "Libre Franklin", system-ui, -apple-system, sans-serif;
}

html.dark {
  --navy: #6faedd;
  --navySolid: #2f628f;
  --navySoft: #15273b;
  --orange2: #f6a14a;
  --orangeSoft: #2c1c0b;
  --green: #46c264;
  --ink: #eef1f6;
  --text2: #aeb6c2;
  --text3: #838b97;
  --line: #2a2f38;
  --line2: #353c46;
  --bg: #12161d;
  --surface: #0d1116;
  --canvas: #070809;
  --elevated: #1a1f29;
  --chrome: #0b0d11;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text2);
}

.lead {
  font-size: 1.125rem;
  color: var(--text2);
}

.muted {
  color: var(--text3);
  font-size: 0.875rem;
}

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

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--navySoft);
  border-block: 1px solid var(--line);
}

.section-canvas {
  background: var(--canvas);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a:not(.btn) {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-btn);
}

.nav-desktop a:not(.btn):hover {
  background: var(--bg);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 0.75rem 1rem 1rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* Theme toggle */
.theme-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  background: var(--navySoft);
  border-color: var(--navy);
}

html:not(.dark) .icon-sun {
  display: none;
}
html.dark .icon-moon {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.btn-primary {
  background: var(--orangeAction);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navySolid);
  color: #fff;
}

.btn-secondary {
  background: var(--elevated);
  color: var(--ink);
  border-color: var(--line2);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

.phone-frame {
  max-width: 280px;
  margin-inline: auto;
  padding: 0.85rem;
  border-radius: var(--radius-sheet);
  background: var(--navySoft);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 15, 18, 0.12);
}

.phone-frame img {
  width: 100%;
  border-radius: 14px;
  background: var(--elevated);
}

html:not(.dark) .shot-dark {
  display: none;
}
html.dark .shot-light {
  display: none;
}

/* Stakes */
.stakes {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .stakes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stake-card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.35rem;
}

.stake-card strong {
  display: block;
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.stake-card p {
  margin: 0;
  font-size: 0.95rem;
}

.stakes-note {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 48rem;
}

.source {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 0.5rem;
}

.source a {
  color: var(--text3);
  text-decoration: underline;
}

/* Plan steps */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--orangeAction);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

/* Pillars */
.pillars {
  display: grid;
  gap: 2rem;
}

.pillar {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 800px) {
  .pillar {
    grid-template-columns: 1fr 1fr;
  }
  .pillar:nth-child(even) .pillar-media {
    order: 2;
  }
}

.pillar-benefit {
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.75rem;
}

/* Privacy */
.privacy-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.privacy-col {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.35rem;
}

.privacy-col h3 {
  margin-bottom: 0.75rem;
}

.privacy-col ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text2);
}

.privacy-col li {
  margin-bottom: 0.4rem;
}

.privacy-col.keep h3 {
  color: var(--green);
}

/* Cards / grids */
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.35rem;
}

.placeholder-slot {
  border: 1px dashed var(--line2);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  background: var(--bg);
  color: var(--text3);
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--elevated);
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.65rem;
}

.faq details p {
  margin: 0;
}

/* Calculator */
.calc {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  max-width: 36rem;
}

.calc label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.calc input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  font: inherit;
  margin-bottom: 1rem;
}

.calc-result {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.calc-result strong {
  font-size: 1.5rem;
  color: var(--ink);
}

/* Forms */
.form {
  max-width: 32rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font: inherit;
  margin-bottom: 1rem;
}

.form textarea {
  min-height: 100px;
  resize: vertical;
}

.form .hint {
  font-size: 0.8125rem;
  color: var(--text3);
  margin: -0.5rem 0 1rem;
}

.form-success {
  display: none;
  background: var(--navySoft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.form-success.show {
  display: block;
}

.form.hidden {
  display: none;
}

/* Timeline (how it works) */
.timeline {
  display: grid;
  gap: 2.5rem;
}

.beat {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 800px) {
  .beat {
    grid-template-columns: 120px 1fr 220px;
    gap: 1.5rem;
  }
}

.beat-time {
  font-weight: 700;
  color: var(--orange2);
  font-size: 0.9rem;
}

.beat .phone-frame {
  max-width: 200px;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-oneliner {
  color: var(--text2);
  font-size: 0.95rem;
  max-width: 28rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text3);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  align-items: center;
}

.store-badges a {
  line-height: 0;
  opacity: 0.95;
}

.store-badges img {
  height: 40px;
  width: auto;
}

.caption-xs {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  font-weight: 500;
}

.final-cta {
  text-align: center;
  padding: 4.5rem 0;
}

.final-cta h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.final-cta p {
  max-width: 42rem;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orangeAction);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}
