/* BrandReady commercial website styles.
   Converted from the approved homepage mockup:
   reference/mockups/BrandReady_Home Page Mockup.html */

:root {
  --paper: #faf7f2;
  --paper2: #f2ede4;
  --card: #ffffff;
  --ink: #17222c;
  --navy: #101a2b;
  --muted: #5d6b77;
  --line: #e5ddcf;
  --accent: #f85000;
  --accent-soft: #ffe3d5;
  --good: #3e7a4e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
}

img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}

h1, h2, h3 { font-family: 'Archivo', sans-serif; color: var(--navy); letter-spacing: -0.5px; }

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link: visually hidden until focused */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  padding: 10px 16px;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ============ NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  height: 66px;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  font-size: 15px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 6px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; }
.nav-cta {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 15px;
  background: var(--navy); color: #fff;
  text-decoration: none;
  border-radius: 8px; padding: 10px 18px;
  margin-left: 10px;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  margin-left: 10px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px; width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .15s, opacity .15s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .brand img { height: 36px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(28,43,58,0.35);
    padding: 8px 12px 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 16px;
    color: var(--navy);
    padding: 13px 14px;
  }
}
@media (max-width: 420px) {
  .nav-cta { font-size: 14px; padding: 9px 12px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 16px;
  border-radius: 9px;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer; border: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: #ff6a1f; }
.btn.ghost { background: none; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--navy); }

/* ============ HERO ============ */
.hero { padding: 84px 0 70px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 760px) { .hero { padding: 56px 0 56px; } }
h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700; line-height: 1.06;
  margin: 16px 0 20px;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 18.5px; max-width: 480px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 22px;
  font-size: 14px; color: var(--muted);
}

/* ============ HERO DEMO CARD ============ */
.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(28,43,58,0.25);
  overflow: hidden;
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy);
  padding: 11px 16px;
}
.demo-chrome .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.demo-chrome .label {
  margin-left: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; letter-spacing: 1px;
  color: rgba(255,255,255,0.75);
}
.demo-body { padding: 22px 24px 24px; }
@media (max-width: 420px) { .demo-body { padding: 18px 16px 18px; } }
.demo-topic {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
}
.demo-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 21px; color: var(--navy);
  margin: 4px 0 14px;
}
.beam-view {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.beam-view svg { display: block; width: 100%; height: auto; }
.demo-ctrl { margin-top: 16px; }
.demo-ctrl label {
  display: flex; justify-content: space-between;
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px;
}
.demo-ctrl label span { color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 13px; }
input[type=range] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.demo-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 14px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
}
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); }
.demo-note {
  margin-top: 14px;
  font-size: 13.5px; color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

/* ============ SECTIONS ============ */
section { padding: 76px 0; }
@media (max-width: 760px) { section { padding: 56px 0; } }
section.alt { background: var(--paper2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; line-height: 1.12; margin: 12px 0 14px; }
.section-lede { color: var(--muted); font-size: 17.5px; max-width: 560px; }
.center { text-align: center; }
.center .section-lede { margin: 0 auto; }

/* ============ PROBLEM ============ */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-top: 8px;
}
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }
.doc-pile { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 14.5px; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.doc .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; letter-spacing: 1px;
  background: var(--paper2); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 7px;
  color: var(--navy); white-space: nowrap;
}
.right-col { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.swap-visual {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px 18px;
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
}
.swap-group { text-align: center; }
.old-docs { position: relative; width: 118px; height: 74px; margin: 0 auto; }
.odoc {
  position: absolute;
  width: 52px; height: 64px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px; letter-spacing: 1px;
  color: var(--muted);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 7px;
  opacity: 0.75;
}
.odoc.d1 { left: 0; top: 8px; transform: rotate(-7deg); }
.odoc.d2 { left: 33px; top: 2px; transform: rotate(2deg); z-index: 1; }
.odoc.d3 { left: 66px; top: 9px; transform: rotate(8deg); }
.swap-arrow { color: var(--accent); font-size: 26px; font-weight: 600; padding-bottom: 18px; }
.new-mod {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  box-shadow: 0 10px 24px -14px rgba(248,80,0,0.45);
}
.nm-mark {
  width: 28px; height: 28px;
  display: block;
  flex-shrink: 0;
}
.nm-body { min-width: 108px; }
.nm-t { font-size: 12.5px; font-weight: 600; color: var(--navy); text-align: left; }
.nm-bar { height: 7px; border-radius: 4px; background: var(--paper2); overflow: hidden; margin-top: 6px; }
.nm-bar i { display: block; height: 100%; width: 62%; background: var(--accent); border-radius: 4px; }
.swap-cap {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 420px) { .swap-arrow { display: none; } .swap-visual { flex-direction: column; gap: 14px; } }

.counter-q {
  background: var(--navy);
  border-radius: 14px;
  padding: 30px 32px;
  color: #fff;
}
.counter-q .mono { color: #f0b493; }
.cq-list { list-style: none; margin-top: 14px; }
.cq-list li {
  display: flex; align-items: baseline; gap: 13px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600; font-size: 21px; line-height: 1.3;
  color: #fff;
  padding: 7px 0;
}
.cq-list li::before {
  content: '\2192';
  color: var(--accent);
  font-size: 19px;
  flex-shrink: 0;
}

/* ============ SOLUTION (LEARN/SEE/USE/CHECK) ============ */
.steps4 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin-top: 36px;
  text-align: left;
}
.step4 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
}
.step4 .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--accent); letter-spacing: 1px;
}
.step4 h3 { font-size: 21px; margin: 8px 0 8px; }
.step4 p { font-size: 15px; color: var(--muted); }

/* ============ HOW IT WORKS SUMMARY ============ */
.hiw {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0; margin-top: 40px;
  counter-reset: hiw;
}
.hiw-step { position: relative; padding: 0 26px 0 0; }
.hiw-step::before {
  counter-increment: hiw;
  content: counter(hiw, decimal-leading-zero);
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 44px;
  color: var(--accent-soft);
  -webkit-text-stroke: 1.5px var(--accent);
  display: block; line-height: 1;
}
.hiw-step h3 { font-size: 19px; margin: 12px 0 6px; }
.hiw-step p { font-size: 15px; color: var(--muted); }
@media (max-width: 700px) { .hiw { gap: 26px; } }

/* ============ TRAINING GALLERY ============ */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px; margin-top: 40px;
  text-align: left;
}
.g-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.g-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  background: var(--navy);
}
.g-body { padding: 18px; }
.g-sub { font-weight: 600; font-size: 14.5px; color: var(--navy); }
.g-sub-gap { margin-bottom: 12px; }
.g-quote { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.g-question { font-size: 13.5px; color: var(--navy); font-weight: 600; margin-bottom: 10px; }
.mini-bar { height: 8px; border-radius: 4px; background: var(--paper2); overflow: hidden; margin: 8px 0 14px; }
.mini-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
/* Illustrative bar widths from the approved mockup */
.w33 { width: 33%; }
.w66 { width: 66%; }
.w72 { width: 72%; }
.w100 { width: 100%; }
.lvl { padding: 7px 0; border-bottom: 1px solid var(--paper2); }
.lvl:last-child { border-bottom: none; }
.lvl-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lvl-top b { font-size: 13.5px; color: var(--navy); font-weight: 600; }
.lvl-bar { flex: 0 0 78px; height: 7px; border-radius: 4px; background: var(--paper2); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.lvl-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.g-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--paper2); }
.g-row:last-child { border-bottom: none; }
.g-row b { color: var(--navy); font-weight: 600; }
.g-row.win b { color: var(--good); }
.q-opt {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: var(--muted);
}
.q-opt.right { border-color: var(--good); color: var(--good); font-weight: 600; background: rgba(62,122,78,0.06); }
.profile-chip {
  display: inline-block;
  font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 12px;
  margin: 0 6px 8px 0;
  color: var(--navy);
}
.profile-chip.hot { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.g-result { text-align: center; padding: 6px 0; }
.g-result .pct {
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 42px; color: var(--good); line-height: 1;
}
.g-result .verdict {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; letter-spacing: 2px; color: var(--good);
  margin-top: 4px;
}
.g-result .who { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gallery-note { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ============ WHO IT IS FOR ============ */
.who-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin-top: 36px;
}
.who {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--card);
}
.who h3 { font-size: 19px; margin-bottom: 6px; }
.who p { font-size: 14.5px; color: var(--muted); }

/* ============ CAPABILITIES ============ */
.cap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 10px 34px; margin-top: 34px;
}
.cap {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 15.5px; padding: 9px 0;
  border-bottom: 1px solid var(--paper2);
  color: var(--navy); font-weight: 500;
}
.cap::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; position: relative; top: -1px; }
.cap .future {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 1px;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px;
  margin-left: 4px;
}

/* ============ FINAL CTA ============ */
.final-section { padding-top: 20px; }
.final {
  background: var(--navy);
  border-radius: 18px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
@media (max-width: 420px) { .final { padding: 44px 22px; } }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 28px; font-size: 17px; }
.final .btn.primary { background: var(--accent); }
.final .btn.primary:hover { background: #ff6a1f; }

footer {
  padding: 30px 24px 40px;
  text-align: center;
  font-size: 13.5px; color: var(--muted);
}
footer b { color: var(--navy); }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
