/* ============================================================
   DashCash landing — tokens from LANDING_PAGE_PRD.md §4
   ============================================================ */
:root {
  --bg: #F5F7F5;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6C757D;
  --border: #E0E0E0;
  --accent: #22A93B;
  --accent-soft: #E8F5E9;
  --accent-text: #FFFFFF;
  --danger: #E53935;

  --paper: #FFFEF8;
  --ink: #1C1C1C;
  --rule: #D4D0C8;

  --charcoal-bg: #191919;
  --charcoal-surface: #262626;
  --accent-dark: #2DBE4A;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Nav ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch__btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  transition: color 160ms ease;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.is-active {
  color: var(--accent);
}

.lang-switch__sep {
  color: var(--border);
  font-size: 0.8rem;
  user-select: none;
}

.nav__cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 8px 18px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav__cta:hover {
  background: var(--accent);
  color: var(--accent-text);
}

/* ============ Hero ============ */
.hero {
  overflow: hidden;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.75rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--accent);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.05;
  margin-top: 18px;
}

.hero__support {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 30em;
  margin-top: 14px;
}

.hero__secondary {
  display: inline-block;
  margin-top: 22px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.hero__secondary:hover { color: var(--text); }

/* ============ Store CTAs ============ */
.store-ctas {
  margin-top: 28px;
  max-width: 320px;
}

.store-ctas--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--accent-text);
  background: var(--text);
  border-radius: 10px;
  padding: 12px 20px 12px 18px;
  transition: background-color 160ms ease, transform 120ms ease;
}

.store-btn:hover { background: #000; }
.store-btn:active { transform: scale(0.98); }

.store-btn__icon {
  flex-shrink: 0;
  display: block;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-btn__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.store-btn__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.store-ctas__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-ctas__live {
  color: var(--text);
  font-weight: 600;
}

.store-ctas--center .store-ctas__note {
  text-align: center;
}

/* ============ Receipt visual ============ */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
}

.printer {
  width: min(380px, 92%);
  background: var(--charcoal-bg);
  border-radius: 14px 14px 6px 6px;
  padding: 16px 18px 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.18);
}

.printer__slot {
  height: 8px;
  border-radius: 4px;
  background: var(--charcoal-surface);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.receipt-window {
  width: min(330px, 84%);
  overflow: hidden;
  margin-top: -6px;
}

.receipt {
  filter: drop-shadow(0 14px 22px rgba(26, 26, 26, 0.14));
}

.receipt.is-printing {
  animation: receipt-print 1400ms cubic-bezier(0.22, 0.9, 0.35, 1) both;
}

@keyframes receipt-print {
  from { transform: translateY(-92%); }
  to   { transform: translateY(0); }
}

.receipt__paper {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 26px 24px 14px;
}

.receipt__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-align: center;
}

.receipt__title {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.receipt__meta {
  text-align: center;
  font-size: 0.8rem;
  color: #6b6b66;
  margin-top: 2px;
}

.receipt__rule {
  border-top: 1.5px dashed var(--rule);
  margin: 12px 0;
}

.receipt__rule--double {
  border-top: 1.5px dashed var(--rule);
  border-bottom: 1.5px dashed var(--rule);
  height: 4px;
}

.receipt__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt__line--strong { font-weight: 700; }

.receipt__line--muted {
  font-size: 0.78rem;
  color: #6b6b66;
  margin-top: 6px;
}

.receipt__line--gas {
  font-weight: 700;
  color: var(--danger);
}

.receipt__line--profit {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  align-items: baseline;
}

.receipt__line--pace {
  font-size: 0.9rem;
  color: #6b6b66;
}

.receipt__foot {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #6b6b66;
  margin-top: 2px;
}

/* torn zigzag bottom edge */
.receipt__tear {
  height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, var(--paper) 7px) 0 0 / 14px 100% repeat-x,
    linear-gradient(45deg, transparent 7px, var(--paper) 7px) 7px 0 / 14px 100% repeat-x;
}

/* staggered settle-in of receipt lines */
.receipt.is-printing .receipt__paper > * {
  opacity: 0;
  animation: line-settle 400ms ease-out forwards;
}

@keyframes line-settle {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.receipt.is-printing .receipt__paper > *:nth-child(1)  { animation-delay: 150ms; }
.receipt.is-printing .receipt__paper > *:nth-child(2)  { animation-delay: 240ms; }
.receipt.is-printing .receipt__paper > *:nth-child(3)  { animation-delay: 330ms; }
.receipt.is-printing .receipt__paper > *:nth-child(4)  { animation-delay: 420ms; }
.receipt.is-printing .receipt__paper > *:nth-child(5)  { animation-delay: 510ms; }
.receipt.is-printing .receipt__paper > *:nth-child(6)  { animation-delay: 600ms; }
.receipt.is-printing .receipt__paper > *:nth-child(7)  { animation-delay: 690ms; }
.receipt.is-printing .receipt__paper > *:nth-child(8)  { animation-delay: 780ms; }
.receipt.is-printing .receipt__paper > *:nth-child(9)  { animation-delay: 870ms; }
.receipt.is-printing .receipt__paper > *:nth-child(10) { animation-delay: 960ms; }
.receipt.is-printing .receipt__paper > *:nth-child(11) { animation-delay: 1050ms; }
.receipt.is-printing .receipt__paper > *:nth-child(12) { animation-delay: 1140ms; }
.receipt.is-printing .receipt__paper > *:nth-child(13) { animation-delay: 1230ms; }
.receipt.is-printing .receipt__paper > *:nth-child(14) { animation-delay: 1320ms; }
.receipt.is-printing .receipt__paper > *:nth-child(15) { animation-delay: 1410ms; }
.receipt.is-printing .receipt__paper > *:nth-child(16) { animation-delay: 1500ms; }

/* ============ Sections shared ============ */
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.1;
}

.section-heading--dark { color: #FFFFFF; }

.problem, .how, .multi {
  padding: 88px 0;
}

/* ============ Problem ============ */
.problem {
  border-top: 1px solid var(--border);
}

.problem__compare {
  display: flex;
  align-items: stretch;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.problem__side { flex: 1; min-width: 220px; }

.problem__divider {
  width: 1px;
  background: var(--border);
}

.problem__label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.problem__figure {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.1;
  margin-top: 8px;
}

.problem__figure--gross { color: var(--muted); }
.problem__figure--net { color: var(--accent); }

.problem__note { color: var(--muted); margin-top: 4px; }

.problem__math {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--accent-soft);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 100%;
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 40px;
}

.problem__math span { white-space: nowrap; }

.problem__body {
  color: var(--muted);
  max-width: 38em;
  margin-top: 18px;
}

/* ============ How ============ */
.how {
  border-top: 1px solid var(--border);
}

.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 44px;
}

.how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.how__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 14px;
}

.how__body { color: var(--muted); margin-top: 6px; }

/* ============ Multi ============ */
.multi {
  border-top: 1px solid var(--border);
}

.multi__body {
  color: var(--muted);
  max-width: 40em;
  margin-top: 16px;
}

.multi__platforms {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
  border-top: 1.5px dashed var(--rule);
  border-bottom: 1.5px dashed var(--rule);
  padding: 14px 0;
  margin-top: 32px;
  overflow-x: auto;
  white-space: nowrap;
}

/* ============ Pro (charcoal band) ============ */
.pro {
  background: var(--charcoal-bg);
  color: #E6E6E6;
  padding: 88px 0;
}

.pro__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.pro__list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  max-width: 640px;
}

.pro__list li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
}

.pro__list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-weight: 700;
}

.pro__note {
  color: #9a9a9a;
  font-size: 0.95rem;
  margin-top: 28px;
}

/* ============ Final CTA ============ */
.cta {
  padding: 96px 0;
  text-align: center;
}

.cta__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--accent);
}

.cta__body {
  color: var(--muted);
  margin-top: 12px;
}

.cta__trust {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 24px;
}

/* ============ Legal pages ============ */
.legal {
  min-height: calc(100vh - 160px);
  padding: 32px 0 80px;
}

.legal__inner {
  max-width: 720px;
}

.legal__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--accent);
  margin-bottom: 24px;
}

.legal__body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.legal__meta {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
}

.legal__body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.legal__body p {
  margin: 0 0 1rem;
}

.legal__body ul,
.legal__body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal__body li {
  margin-bottom: 0.45rem;
}

.legal__body li::marker {
  color: var(--accent);
}

.legal__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__body a:hover {
  color: var(--text);
}

.legal__body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.legal__body strong {
  font-weight: 600;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
}

.footer__legal {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.footer__legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal a:hover {
  color: var(--text);
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 24px;
  }

  .hero__visual { order: 2; }

  .how__steps { grid-template-columns: 1fr; gap: 32px; }

  .problem__divider { display: none; }

  .pro__list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .store-btn { width: 100%; justify-content: center; }

  .receipt__paper { font-size: 0.85rem; padding: 22px 18px 12px; }
  .receipt__meta { font-size: 0.72rem; }
  .receipt__line--muted { font-size: 0.72rem; }
  .receipt__line--profit { font-size: 1.2rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .receipt.is-printing { animation: none; }

  .receipt.is-printing .receipt__paper > * {
    opacity: 1;
    animation: none;
  }

  .store-btn,
  .nav__cta,
  .lang-switch__btn,
  .hero__secondary { transition: none; }
}
