/* Homepage (/) sections: the Ledger layout from design/Sentry Trader B - Ledger.dc.html with every
   mockup style= turned into a class. Tokens and shared components (buttons, details, .caption)
   come from site.css. Contrast per RESEARCH Pitfall 4: text on light backgrounds is L 0.52 or
   darker; text on the dark band is L 0.72 or lighter. */

/* Hero */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: clamp(64px, 10vw, 128px);
  padding-bottom: clamp(72px, 9vw, 120px);
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
}

.site-main .hero-title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title em {
  color: var(--link);
}

.hero-lede {
  margin: 0;
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-note {
  margin: -14px 0 0;
  font-size: 13px;
  color: var(--muted-light);
}

/* Screenshot frames (D-06): explicit width/height on the img reserve space, CSS scales it. */
.shot {
  margin: 0;
  min-width: 0;
}

.shot picture {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 30px 60px -30px oklch(0.3 0.04 250 / 0.35);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 12px;
}

.shot-hero {
  width: 100%;
  margin-top: 28px;
}

.shot-hero picture {
  border-radius: 14px;
  box-shadow: 0 50px 100px -40px oklch(0.3 0.04 250 / 0.3);
}

/* Sections */
.section {
  border-top: 1px solid var(--border);
}

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

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

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.eyebrow-muted {
  color: var(--muted-light);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head,
.split-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}

.split-head {
  flex: 1 1 300px;
}

.split-body {
  flex: 2 1 520px;
  min-width: 0;
}

.section-head-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px 64px;
  align-items: end;
}

.section-intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.split-body .section-intro {
  margin-bottom: 32px;
  font-size: 18px;
}

.section-note {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  color: var(--muted);
}

.callout {
  margin: 32px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  background: var(--band);
  font-size: 16px;
  line-height: 1.6;
}

/* How it works: the four-step pipeline */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.step-num {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  color: var(--muted-light);
}

.step-num-accent {
  color: var(--link);
}

.step-title {
  font-size: 18px;
  font-weight: 500;
}

.step-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Feature rows: copy beside a screenshot */
.band {
  background: var(--band);
  border-top: 1px solid var(--border);
}

.features {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 112px);
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.feature,
.halt-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px;
  align-items: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}

.feature-text p {
  margin: 0;
}

.feature-text p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.feature-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Mockup crops: show the populated top-left of mostly empty screens. */
.shot img.crop-reasoning {
  aspect-ratio: 924 / 340;
  object-fit: cover;
  object-position: top left;
}

.shot img.crop-safety {
  aspect-ratio: 620 / 300;
  object-fit: cover;
  object-position: top left;
}

/* Risk controls */
.guards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.guards li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 28px 0;
  border-bottom: 1px solid var(--border);
}

.guards p {
  margin: 0;
}

.guard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.guard-name {
  font-size: 17px;
  font-weight: 500;
}

.guard-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--link);
}

.guard-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Kill switch: red-tinted panel. Text colours are L 0.47 or darker on L 0.95. */
.halt-box {
  gap: 32px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 14px;
  background: oklch(0.95 0.035 28);
}

.halt-box .eyebrow {
  color: oklch(0.47 0.19 28);
}

.halt-box .feature-title {
  color: oklch(0.3 0.06 28);
}

.halt-box .feature-text p:not(.eyebrow) {
  color: oklch(0.36 0.05 28);
}

.halt-box .shot picture {
  border-color: oklch(0.85 0.06 28);
  box-shadow: none;
}

/* Integrations */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card p {
  margin: 0;
}

.card-accent {
  background: oklch(0.97 0.012 225);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.card-accent .card-label {
  color: var(--link);
}

.card-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.shot-narrow {
  max-width: 760px;
}

/* Runs on your computer */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px 40px;
}

.facts p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.fact-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.shots-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px;
}

/* Setup guide */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: setup;
}

.setup-steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 12px;
  background: var(--card);
  counter-increment: setup;
}

.setup-steps li::before {
  content: counter(setup);
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
  color: var(--link);
}

.setup-title {
  font-size: 16px;
  font-weight: 500;
}

.setup-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Dark step: text L 0.78 and lighter on L 0.26. */
.setup-steps .setup-step-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.setup-step-dark::before {
  color: var(--on-dark-accent);
}

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

.section-band .cta-note {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.faq-list summary {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}

.faq-list details p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

.faq-more {
  margin: 0;
  font-size: 15px;
}

/* Closing CTA band (dark). Text L 0.78 and lighter on L 0.26. */
.cta-band {
  background: var(--dark);
  color: var(--on-dark);
}

.cta-band :focus-visible {
  outline-color: var(--on-dark-accent);
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
  text-align: center;
}

.cta-title {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-title em {
  color: var(--on-dark-accent);
}

.button-light,
.button-light:hover {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--ink);
}

.button-light:hover {
  background: #fff;
}

.cta-band .cta-note {
  margin: -12px 0 0;
  color: var(--on-dark-muted);
}

.cta-band .cta-note + .cta-note {
  margin-top: -20px;
}
