/* --accent is defined once in index.html's inline critical CSS */

[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { line-height: 1.5; margin: 0; padding: 0; background: #000; color: #FFF; font-family: 'IBM Plex Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.section-white .btn:focus-visible { outline-color: #111111; }
#calendar { scroll-margin-top: 24px; outline: none; }

/* Global typography */
h2 {
  font-family: 'Bricolage Grotesque', Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 32px 0;
  line-height: 1.2;
}
@media (min-width: 768px) {
  h2 { font-size: 36px; }
}

.mono-label {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #5C5C5C;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-black .mono-label, .section-calculator .mono-label, .card-dark .mono-label { color: #BDBDBD; }

/* Sections */
.section-black { background-color: #000; color: #FFF; }
.section-white { background-color: #FFF; color: #111; }
.section-calculator { background-color: #111; color: #FFF; }
.section { padding: 60px 20px; }
.container { max-width: 640px; margin: 0 auto; }

/* Calculator */
.section-calculator .mono-label {
  margin-bottom: 14px;
  color: #9FA39F;
  letter-spacing: .1em;
}
.section-calculator h2 {
  max-width: 520px;
  margin-bottom: 36px;
  letter-spacing: -.018em;
}
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}
.calc-group {
  display: flex;
  flex-direction: column;
}
.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.005em;
}
.calc-live-val {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 17px;
  font-weight: 600;
  color: #FFF;
  line-height: 1;
  letter-spacing: -.02em;
}
.calc-note {
  font-size: 13px;
  color: #9B9B9B;
  margin: 10px 0 0;
  line-height: 1.5;
}
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) var(--range-progress, 0%),
    #353735 var(--range-progress, 0%),
    #353735 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
input[type=range]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFF;
  border: 3px solid #111;
  box-shadow:
    0 0 0 1px rgba(45, 216, 129, .75),
    0 4px 12px rgba(0, 0, 0, .35);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFF;
  cursor: pointer;
  border: 3px solid #111;
  box-shadow:
    0 0 0 1px rgba(45, 216, 129, .75),
    0 4px 12px rgba(0, 0, 0, .35);
}
.calc-output-box {
  background-color: #000;
  border: 1px solid #303330;
  border-radius: 10px;
  padding: 28px 26px 26px;
  margin-bottom: 14px;
  box-shadow: inset 2px 0 0 var(--accent);
}
.calc-output-label {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #A8ACA8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.calc-output-val {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 48px);
  color: #FFF;
  margin-bottom: 16px;
  line-height: .95;
  letter-spacing: -.045em;
}
.calc-output-desc {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  color: #E6E8E6;
  line-height: 1.6;
}
.calc-footnote {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #858985;
  margin: 0;
  line-height: 1.55;
  letter-spacing: .025em;
}

/* Split */
.split-section { padding-bottom: 40px; }
.split-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
@media (min-width: 500px) {
  .split-cards {
    flex-direction: row;
  }
  .split-cards::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% - 12px);
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, #CFCFCF, var(--accent));
    z-index: 0;
  }
  .split-cards::after {
    content: "";
    position: absolute;
    top: calc(50% - 3px);
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px #FFFFFF;
    z-index: 2;
  }
}
.split-card {
  flex: 1;
  position: relative;
  z-index: 1;
  border-radius: 12px;
  padding: 28px 24px;
  overflow: hidden;
}
.split-card .mono-label {
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: .12em;
}
.card-light {
  background-color: #FAFAF9;
  border: 1px solid #DEDEDA;
  color: #111;
  box-shadow: 0 8px 28px rgba(17, 17, 17, .05);
}
.card-dark {
  background-color: #111;
  border: 1px solid #252525;
  color: #FFF;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}
.card-dark::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(45, 216, 129, .18));
}
.card-dark .mono-label {
  color: var(--accent);
}
.split-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}
.split-list li {
  position: relative;
  padding: 11px 0 11px 16px;
  border-bottom: 1px solid rgba(17, 17, 17, .09);
}
.split-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #9A9A94;
}
.card-dark .split-list li {
  border-bottom-color: rgba(255, 255, 255, .1);
}
.card-dark .split-list li::before {
  background: #707070;
}
.split-list li:first-child { padding-top: 0; }
.split-list li:first-child::before { top: 9px; }
.split-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.split-metric strong {
  color: var(--accent);
}

/* Straight Talk */
.insight-section { padding-top: 16px; }
.talk-card {
  position: relative;
  border: 1px solid #DEDEDA;
  border-radius: 12px;
  padding: 30px 26px;
  background: #FAFAF9;
  box-shadow: 0 10px 32px rgba(17, 17, 17, .05);
  overflow: hidden;
}
.talk-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
}
.talk-card .mono-label {
  margin-bottom: 14px;
  color: #168C50;
  letter-spacing: .1em;
}
.talk-headline {
  font-weight: 700;
  font-size: 21px;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.28;
  letter-spacing: -.01em;
}
@media (min-width: 768px) {
  .talk-headline { font-size: 24px; }
}
.talk-body {
  max-width: 64ch;
  font-size: 15px;
  color: #5C5C5C;
  margin: 0;
  line-height: 1.7;
}

/* Proof */
.text-center { text-align: center; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
@media (min-width: 480px) {
  .proof-grid { gap: 16px; }
}
.proof-num {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: 20px;
  color: #111;
  margin-bottom: 8px;
}
.proof-label {
  font-size: 14px;
  color: #5C5C5C;
}
.portal-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 2914/1732;
  border-radius: 8px;
  background: #F5F5F5;
  border: 1px solid #E2E2E2;
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portal-caption {
  font-size: 14px;
  color: #5C5C5C;
  margin: 0;
}

/* Pain & Fix */
.pain-section { padding-top: 0; }
.pain-section h2 {
  max-width: 560px;
  margin-bottom: 36px;
  letter-spacing: -.018em;
}
.pain-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pain-card {
  background-color: #FAFAFA;
  border: 1px solid #E5E5E2;
  border-radius: 16px;
  padding: 26px 24px;
}
.pain-category {
  margin-bottom: 14px;
  color: #168C50;
  font: 600 11px/1.3 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: .1em;
}
.pain-line {
  font-weight: 400;
  color: #6B6B68;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.5;
}
.fix-line {
  display: grid;
  grid-template-columns: 1em minmax(0, 1fr);
  gap: 10px;
  font-weight: 600;
  color: #111;
  font-size: 16px;
  line-height: 1.5;
}
.fix-line > span:first-child {
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 479px) {
  .pain-section h2 { margin-bottom: 28px; }
  .pain-card { padding: 24px 20px; }
}

/* How it starts */
.steps-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.step-item { display: flex; align-items: flex-start; gap: 16px; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #111;
  color: #FFF;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.step-text { font-size: 16px; line-height: 1.5; color: #111; padding-top: 4px; }
.step-text strong { font-weight: 600; color: #111; display: block; margin-bottom: 4px; }
.mid-cta-btn {
  background-color: var(--accent);
  color: #000;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mid-cta-btn:hover { filter: brightness(1.1); }

/* Who this is not for */
#not-for h2 {
  margin-bottom: 36px;
  letter-spacing: -.018em;
}
.not-for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #2C2F2C;
}
.not-for-list li {
  padding: 24px 0 26px;
  border-bottom: 1px solid #2C2F2C;
}
.qualification-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  line-height: 1;
}
.qualification-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.qualification-label {
  color: #858985;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
}
.qualification-text {
  max-width: 58ch;
  color: #E6E8E6;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.005em;
}
@media (min-width: 768px) {
  #not-for h2 { margin-bottom: 42px; }
  .not-for-list li { padding: 28px 0 30px; }
  .qualification-meta { margin-bottom: 12px; }
  .qualification-text { font-size: 18px; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { padding: 24px 0; border-bottom: 1px solid #E2E2E2; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  color: #168C50;
  font: 500 24px/1 'IBM Plex Mono', 'Courier New', monospace;
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-q:focus-visible {
  outline: 2px solid #111;
  outline-offset: 6px;
}
.faq-a {
  max-width: 64ch;
  padding: 12px 44px 0 0;
  color: #5C5C5C;
  line-height: 1.65;
  font-size: 16px;
}

.faq-a p { margin: 0; }
.faq-a p + p { margin-top: 16px; }

/* Calendar Section */
#calendar-embed { min-height: 400px; position: relative; }
#calendar-placeholder {
  min-height: 400px; display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 24px; color: #5C5C5C;
  background: #F5F5F5; border: 1px solid #E2E2E2; border-radius: 8px;
}
#calendar-placeholder p { margin: 8px 0; overflow-wrap: anywhere; }
#calendar-placeholder p:first-child { font: 13px 'IBM Plex Mono', 'Courier New', monospace; }
#calendar-status { padding: 16px 0; color: #5C5C5C; }
#calendar-embed iframe { width: 100%; min-height: 780px; border: none; }
.btn-monochrome {
  background-color: #111;
  color: #FFF;
  height: 44px;
  min-height: 44px;
  font-size: 14px;
}
.btn-monochrome:hover { background-color: #222; }

.terms-box {
  margin-top: 32px;
  border: 1px solid #111;
  padding: 24px;
  border-radius: 8px;
}
.terms-text {
  color: #111;
  font-weight: 600;
  line-height: 1.5;
}

/* Footer */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: #FFF;
  text-decoration: underline;
  font-size: 14px;
}
.footer-links a:hover {
  color: #BDBDBD;
}
.footer-logo {
  display: block;
  width: min(220px, 70%);
  height: auto;
  margin: 0 auto;
}

/* Sticky Bar */
#sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  height: max(84px, calc(84px + env(safe-area-inset-bottom)));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  border-top: 1px solid #333;
  z-index: 100;
}
#sticky-bar[hidden] { display: none !important; }
@media (min-width: 769px) { #sticky-bar { display: none !important; } }
.sticky-text { font-weight: 700; color: #FFF; font-size: 14px; margin-bottom: 2px; }
.sticky-sub { color: #BDBDBD; font-size: 12px; font-weight: 400; }
.sticky-btn {
  background-color: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  min-height: 44px;
}
.sticky-btn:hover { filter: brightness(1.1); }

footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }

/* Desktop-only layout refinement. Tablet and mobile retain the base layout. */
@media (min-width: 1024px) {
  .hero {
    max-width: 760px;
    padding: 96px 24px 72px;
  }
  .hero-brand {
    top: 28px;
    left: 24px;
    width: 196px;
  }
  .hero-h1 {
    font-size: 52px;
    letter-spacing: -0.015em;
  }
  .hero-sub {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }
  .section {
    padding: 80px 32px;
  }
  .container {
    max-width: 800px;
  }
  .calc-form {
    gap: 28px;
    margin-bottom: 36px;
  }
  .calc-output-box {
    padding: 28px;
  }
  .split-cards,
  .pain-cards {
    gap: 20px;
  }
  .split-card,
  .pain-card {
    padding: 28px;
  }
  .talk-card {
    padding: 36px 32px;
  }
  .proof-grid {
    gap: 24px;
    margin-bottom: 48px;
  }
  .steps-list {
    gap: 28px;
    margin-bottom: 44px;
  }
  .faq-item {
    padding: 28px 0;
  }
  .terms-box {
    padding: 28px;
    margin-top: 40px;
  }
  footer {
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}