/* ==========================================================================
   Storehelpa — Landing Page Styles
   Token system:
     Colors: --ink (navy bg), --primary/--primary-bright (brand blue),
             --success, --warning, --paper (warm light bg), --paper-line
     Type:   Plus Jakarta Sans (display/body) + IBM Plex Mono (data/labels)
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #0A1628;
  --ink-soft: #16243D;
  --ink-line: rgba(255,255,255,0.10);
  --primary: #0066CC;
  --primary-bright: #2F8AFF;
  --primary-deep: #003D7A;
  --success: #10B981;
  --success-bright: #34D399;
  --warning: #F59E0B;
  --danger: #EF4444;
  --paper: #F7F5F0;
  --paper-line: #E7E2D6;
  --paper-card: #FFFFFF;
  --text-dark: #10192B;
  --text-mid: #4B5566;
  --text-soft: #8A93A3;
  --text-on-dark: #F4F6FA;
  --text-on-dark-soft: #A9B4C8;

  /* Type tokens */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout tokens */
  --wrap-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(10,22,40,0.04), 0 12px 28px -12px rgba(10,22,40,0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

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

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,22,40,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-on-dark);
}
.brand-mark { color: var(--primary-bright); display: flex; }
.brand-word {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-bright), var(--primary));
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(0,102,204,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(0,102,204,0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 7px; }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-on-dark);
  border: 1px solid var(--ink-line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(47,138,255,0.28), transparent 60%),
    radial-gradient(700px 420px at 4% 110%, rgba(16,185,129,0.14), transparent 55%),
    var(--ink);
  color: var(--text-on-dark);
  padding: 72px 0 64px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success-bright);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-headline {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.hero-headline-accent {
  background: linear-gradient(90deg, var(--primary-bright), var(--success-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.6;
  color: var(--text-on-dark-soft);
  max-width: 620px;
}
.hero-form {
  margin-top: 36px;
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
.hero-microcopy {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-on-dark-soft);
}

.email-input, .text-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-line);
  background: rgba(255,255,255,0.05);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 15px;
}
.email-input::placeholder, .text-input::placeholder { color: var(--text-on-dark-soft); }
.email-input:focus, .text-input:focus {
  border-color: var(--primary-bright);
  background: rgba(255,255,255,0.08);
}

/* ---------- Ledger (signature element) ---------- */
.ledger {
  margin-top: 56px;
  width: 100%;
  max-width: 720px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
}
.ledger-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-soft);
  border-bottom: 1px solid var(--ink-line);
}
.ledger-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success-bright);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ledger-track {
  height: 220px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}
.ledger-row-set {
  animation: scrollLedger 14s linear infinite;
}
@keyframes scrollLedger {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}
.ledger-row {
  display: grid;
  grid-template-columns: 52px 1fr auto 110px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px solid var(--ink-line);
}
.tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 5px;
  text-align: center;
  width: fit-content;
}
.tag-in { background: rgba(16,185,129,0.16); color: var(--success-bright); }
.tag-out { background: rgba(245,158,11,0.16); color: var(--warning); }
.tag-alert { background: rgba(239,68,68,0.16); color: #FCA5A5; }
.tag-adjust { background: rgba(47,138,255,0.16); color: var(--primary-bright); }
.l-item { color: var(--text-on-dark); }
.l-qty { font-weight: 600; text-align: right; }
.qty-in { color: var(--success-bright); }
.qty-out { color: var(--warning); }
.qty-alert { color: #FCA5A5; }
.qty-fcst { color: var(--primary-bright); }
.l-branch { color: var(--text-on-dark-soft); font-size: 11.5px; text-align: right; }
.ledger-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-on-dark-soft);
  max-width: 480px;
}

/* ---------- Sections (shared) ---------- */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
.section-dark {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(47,138,255,0.16), transparent 60%),
    var(--ink);
  color: var(--text-on-dark);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-eyebrow-light { color: var(--primary-bright); }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.18;
  max-width: 760px;
}
.section-title-light { color: var(--text-on-dark); }

/* ---------- How it works ---------- */
.how-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.how-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0,102,204,0.08);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.how-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.how-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ---------- Benefits ---------- */
.benefits-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.benefit-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(47,138,255,0.35);
}
.benefit-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47,138,255,0.14);
  color: var(--primary-bright);
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-on-dark-soft);
}

/* ---------- Credibility ---------- */
.credibility-wrap { max-width: 980px; }
.credibility-note-placeholder {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  background: #FBF9F4;
  border: 1px dashed var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  max-width: 720px;
}
.credibility-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.credibility-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 26px;
}
.credibility-stat {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 10px;
}
.credibility-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ---------- Waitlist CTA ---------- */
.section-cta {
  background:
    radial-gradient(900px 460px at 15% 100%, rgba(16,185,129,0.18), transparent 60%),
    var(--ink);
  color: var(--text-on-dark);
  text-align: center;
}
.cta-wrap { display: flex; flex-direction: column; align-items: center; }
.cta-sub {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-dark-soft);
  max-width: 560px;
}
.cta-form {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 560px;
}
.cta-form .email-input,
.cta-form .text-input {
  flex: 1 1 220px;
}
.cta-form .btn { flex: 1 1 100%; }
@media (min-width: 640px) {
  .cta-form .btn { flex: 0 0 auto; }
}
.cta-microcopy {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-on-dark-soft);
}
.form-status {
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  max-width: 480px;
}
.form-status.status-success {
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.35);
  color: var(--success-bright);
}
.form-status.status-error {
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.35);
  color: #FCA5A5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0A1220;
  color: var(--text-on-dark-soft);
  padding: 52px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-brand .brand-word {
  color: var(--text-on-dark);
  font-size: 18px;
}
.footer-brand p {
  margin-top: 8px;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 14px; }
.footer-links a:hover { color: var(--text-on-dark); }
.footer-bottom {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .how-grid, .benefits-grid, .credibility-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 52px 0 48px; }
  .ledger-row { grid-template-columns: 46px 1fr auto; }
  .l-branch { display: none; }
}

@media (max-width: 520px) {
  .hero-form { flex-direction: column; }
  .hero-form .btn { width: 100%; }
  .wrap { padding: 0 18px; }
}
