/**
 * Landing page styles — "Dark Operator", same language as the app.
 *
 * The :root tokens are copied VERBATIM from
 * apps/dashboard/app/assets/css/design-system.css so this page and the
 * dashboard read as one product. Copied, not imported: the dashboard sheet
 * carries app chrome (sidebar, tables, tabs) this page must not pay for.
 * If the tokens ever change there, change them here.
 *
 * Zero JavaScript is a feature of this page; nothing here assumes any.
 */

:root {
  /* Surfaces, darkest -> lightest */
  --chrome: #0e1116;
  --bg: #0b0d12;
  --surface: #12161d;
  --raised: #171d26;
  --raised-2: #1a1f28;

  --chrome-border: #1e232d;
  --border: #242a35;
  --border-strong: #262e3a;

  /* Text ramp */
  --text: #e7eaf0;
  --text-2: #c3c9d4;
  --muted: #9aa3b2;
  --muted-2: #7e8695;
  --faint: #5a6373;

  /* Accents */
  --accent: #c8f65a;
  --accent-ink: #0b0d12;
  --warn: #ffb84d;
  --error: #ff5f6d;

  --radius: 12px;
  --radius-sm: 8px;

  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* One centered column; sections own their vertical rhythm. */
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Shared idioms, mirrored from the app ---- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--raised);
  color: var(--text-2);
  text-decoration: none;
}
.btn:hover { border-color: var(--muted-2); text-decoration: none; }
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}
.btn.big { font-size: 14px; padding: 13px 22px; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
}
.badge.ok {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

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

header {
  border-bottom: 1px solid var(--chrome-border);
  background: var(--chrome);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  /* The padding SHORTHAND overrides .wrap's 20px side padding on the same
     element (same specificity, later in the file) — so the sides must be
     restated here, or the lockup sits flush against a phone's edge. */
  padding: 14px 20px;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.lockup:hover { text-decoration: none; }
/* The app's brand mark: lime tile, ink glyph via CSS mask on the one SVG. */
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-mark .glyph {
  width: 23px;
  height: 23px;
  background: var(--accent-ink);
  -webkit-mask: url('/logo.svg') center / contain no-repeat;
  mask: url('/logo.svg') center / contain no-repeat;
}
.wordmark {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-nav .signin { color: var(--text-2); font-size: 14px; }

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

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 18px auto 16px;
  max-width: 17ch;
}
.hero .sub {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 58ch;
  margin: 0 auto 30px;
}
.hero .micro {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 14px;
}

/* ---- Sections ---- */

section { padding: 56px 0; }
section.alt { background: var(--chrome); border-block: 1px solid var(--chrome-border); }
section h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
}
.lede { color: var(--muted); font-size: 17px; max-width: 64ch; margin: 0 0 28px; }

/* Two-column: copy beside the till illustration; stacks on small screens. */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* ---- The real till, framed like the phone it runs on ---- */

.phone {
  margin: 0 auto;
  max-width: 320px;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  box-shadow: 0 24px 60px color-mix(in srgb, black 50%, transparent);
}
.hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin: 14px 0 0;
  text-align: center;
}

/* ---- Card grids ---- */

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid .card h3 { font-size: 16px; margin: 0 0 6px; }
.grid .card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- How it works ---- */

.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step .n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.step h3 { font-size: 15.5px; margin: 6px 0; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

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

.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 18px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.plan .strap { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li {
  font-size: 14px;
  color: var(--text-2);
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.plan li::before { content: '— '; color: var(--faint); }
.trust {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}

/* ---- FAQ ---- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+  '; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::before { content: '−  '; }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

/* ---- Final CTA + footer ---- */

.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 20px; }

footer { border-top: 1px solid var(--chrome-border); background: var(--chrome); }
.footer-row {
  display: flex;
  align-items: center;
  gap: 18px;
  /* Same shorthand-vs-.wrap collision as .header-row: keep the sides. */
  padding: 26px 20px;
  flex-wrap: wrap;
}
.footer-row .fine {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.footer-row a { color: var(--muted); font-size: 14px; }

/* ---- Small screens ---- */

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
  .header-nav .signin { display: none; }
  .footer-row .fine { margin-left: 0; width: 100%; }
}

/* ---- Product screenshot in a browser frame ---- */

.shot-frame {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--chrome);
  box-shadow: 0 24px 60px color-mix(in srgb, black 50%, transparent);
}
.shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--chrome-border);
}
.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--raised-2);
}
.shot-frame img { display: block; width: 100%; height: auto; }
