/* Zardly marketing — Clean POS design language (see docs/new-deal-ux.md §14).
   White/graphite, one hairline at a time, big light tabular numerals.
   Rust = outgoing, green = incoming. Dark mode is a first-class twin. */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --border: #e8e9eb;
  --fill: #f1f2f4;
  --ink: #17191c;
  --muted: #84898f;
  --hairline: #ecedef;
  --out: #c24e2c;
  --in: #177a4a;
  /* Brand accent = the app's rust-orange (outgoing token), resolved per mode */
  --accent: var(--out);
  --accent-ink: #ffffff;
  --cta-bg: #17191c;
  --cta-ink: #ffffff;
  --shadow: 0 1px 2px rgba(23, 25, 28, 0.05), 0 8px 24px rgba(23, 25, 28, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131518;
    --card: #1c1f23;
    --border: #2a2e33;
    --fill: #24282d;
    --ink: #f2f3f5;
    --muted: #8e959d;
    --hairline: #26292e;
    --out: #e0764a;
    --in: #3fbf7f;
    /* Dark accent is lighter — dark ink on it reads better than white */
    --accent-ink: #17191c;
    --cta-bg: #f2f3f5;
    --cta-ink: #17191c;
    --shadow: none;
  }
}

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 300;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hairline { border: 0; border-top: 1px solid var(--hairline); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark::after { content: "."; color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

.site-nav .nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { color: var(--accent-ink); opacity: 0.85; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 600;
  line-height: 1.25;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.02rem;
}

.btn-store {
  border: 1px solid var(--border);
  background: var(--card);
  align-items: flex-start;
  padding: 9px 22px;
}
.store-small {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.store-big { font-size: 1rem; }

.btn-wide { width: 100%; align-items: center; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.cta-center { justify-content: center; }

.fineprint { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.footnote { display: block; margin-top: 2px; }
.footnote-mark { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 72px;
  background: radial-gradient(
    900px 460px at 82% -12%,
    color-mix(in srgb, var(--accent) 9%, transparent),
    transparent 70%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- Phone mock (deal window) ---------- */

.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 100%;
  max-width: 330px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.deal-type {
  background: var(--fill);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
  color: var(--ink);
}

.zone { display: flex; flex-direction: column; gap: 8px; }

.zone-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-in { background: var(--in); }
.dot-out { background: var(--out); }

.tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--fill);
  border-radius: 12px;
  padding: 10px 12px;
}

.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-set { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tile-nums { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.tile-agreed { font-size: 1.05rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.tile-market { font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Balance meter — thin track, center tick, offset fill */

.meter { display: flex; flex-direction: column; gap: 10px; padding: 2px 0; }

.meter-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--fill);
  overflow: visible;
}

.meter-tick {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 1px;
  height: 10px;
  background: var(--muted);
}

.meter-fill {
  position: absolute;
  left: 50%;
  top: 0;
  height: 4px;
  width: 7%;
  border-radius: 0 2px 2px 0;
  background: var(--in);
}

.meter-totals {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.total { display: flex; align-items: center; gap: 6px; }
.total b { font-size: 1.25rem; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--ink); }

.phone-cta {
  margin-top: 4px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  border-radius: 12px;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Feature sections ---------- */

.feature { padding: 72px 0; border-top: 1px solid var(--hairline); }
.feature-alt { background: var(--fill); background: color-mix(in srgb, var(--fill) 40%, var(--bg)); }

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.feature-grid.flip .feature-copy { order: 2; }
.feature-grid.flip .feature-visual { order: 1; }

.feature-copy p:not(.eyebrow) { margin-top: 16px; color: var(--muted); max-width: 32em; }
.feature-copy h2 + p { margin-top: 18px; }

.feature-visual { display: flex; justify-content: center; }

.mini-card {
  width: 100%;
  max-width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card .zone-label { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.spacer { flex: 1; }
.mini-card .zone-label b { font-size: 1.3rem; color: var(--ink); }
.mini-note { font-size: 0.8rem; color: var(--muted); }
.mini-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }

/* Scan visual */

.scan-card { background: #131518; border-color: #2a2e33; }

.scan-frame {
  position: relative;
  height: 150px;
  border-radius: 12px;
  background: #1c1f23;
  overflow: hidden;
}

.corner { position: absolute; width: 22px; height: 22px; border: 2px solid #f2f3f5; }
.c1 { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.c2 { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.c3 { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.c4 { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.scan-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 30%;
  height: 2px;
  border-radius: 1px;
  background: #3fbf7f;
  opacity: 0.9;
  animation: scan 2.6s ease-in-out infinite alternate;
}

@keyframes scan {
  from { top: 22%; }
  to { top: 74%; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-line { animation: none; top: 48%; }
}

.scan-result { display: flex; flex-direction: column; gap: 2px; }
.scan-card .tile-name { color: #f2f3f5; }
.scan-card .tile-set { color: #8e959d; }
.scan-card .num { color: #3fbf7f; font-weight: 400; }

/* Sync visual */

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--fill);
  border-radius: 12px;
  padding: 12px;
}
.alert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--in); margin-top: 7px; flex: none; }
.alert-text { display: flex; flex-direction: column; }
.alert-text b { font-size: 0.92rem; }
.alert-text span { font-size: 0.8rem; color: var(--muted); }

.sync-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
}
.sync-row:last-child { border-bottom: 0; }

.chip {
  background: var(--fill);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600;
  font-size: 0.8rem;
}

.sync-status { color: var(--muted); }
.sync-status.done { color: var(--in); font-weight: 600; }

/* Numbers visual */

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--muted);
}
.stat-row b { font-size: 1.3rem; color: var(--ink); }
.stat-row.stat-strong { border-bottom: 0; color: var(--ink); font-weight: 600; }
.stat-row .profit { color: var(--in); font-weight: 400; }

/* ---------- Pricing ---------- */

.pricing {
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.pricing-sub { margin: 14px auto 0; color: var(--muted); max-width: 34em; }

.price-card {
  max-width: 460px;
  margin: 36px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-main { display: flex; align-items: baseline; gap: 8px; }
.price-num { font-size: 3.2rem; letter-spacing: -0.02em; }
.price-per { color: var(--muted); }
.price-seats { font-size: 0.92rem; color: var(--muted); }

.price-list { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.95rem; }
.price-list li { padding-left: 24px; position: relative; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.trial-band {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* ---------- Closer ---------- */

.closer {
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.closer p { margin-top: 12px; color: var(--muted); }
.closer .cta-row { margin-top: 26px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand p { margin-top: 6px; font-size: 0.88rem; color: var(--muted); max-width: 24em; }

.footer-links { display: flex; gap: 22px; font-size: 0.92rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.footer-legal { margin-top: 28px; }
.footer-legal p { font-size: 0.78rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 56px 0 56px; }

  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid.flip .feature-copy { order: 1; }
  .feature-grid.flip .feature-visual { order: 2; }

  .feature { padding: 56px 0; }

  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 420px) {
  .cta-row .btn { width: 100%; align-items: center; }
  .btn-store { align-items: center; }
}
