/* ───────────────────────────────────────────────────────────────────
   iowe landing page — public/landing.css
   Receipt-as-hero layout. All classes prefixed with `lp-`.
   ─────────────────────────────────────────────────────────────────── */

/* ── Reset ────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Page ─────────────────────────────────────────────────────────── */
.lp-page {
  --ink: #3C1F4D;
  --ink-soft: rgba(60, 31, 77, 0.6);
  --ink-faint: rgba(60, 31, 77, 0.35);
  --navy: #3C1F4D;
  --paper: #f9f7f2;
  --line: rgba(60, 31, 77, 0.08);

  /* Highlighter backgrounds */
  --hl-sarah: rgba(253, 216, 53, 0.32);
  --hl-mike: rgba(229, 115, 115, 0.28);
  --hl-you: rgba(77, 182, 172, 0.32);

  /* Plain label text, with row-level color carrying ownership. */
  --tag-sarah: #7a5f00;
  --tag-mike: #9e2f2f;
  --tag-you: #0a5c51;

  min-height: 100vh;
  overflow-x: clip;
  background: #edebe6;
}

.lp-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
  display: grid;
  gap: 28px;
  align-content: start;
}

/* ── Scroll reveal ────────────────────────────────────────────────── */
@keyframes lp-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lp-scroll-reveal {
      animation: lp-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
      will-change: opacity, transform;
    }
  }
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 12px;
  z-index: 3;
  min-height: 56px;
  padding: 8px 8px 8px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lp-nav-cta {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 9999px;
  background: rgba(60, 31, 77, 0.08);
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.lp-nav-cta:hover {
  background: rgba(60, 31, 77, 0.14);
  transform: translateY(-1px);
}

.lp-wordmark-link {
  text-decoration: none;
  flex-shrink: 0;
}

.lp-wordmark {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.lp-hero {
  padding: 36px 16px 0;
  text-align: center;
}

.lp-hero-title {
  margin: 0;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lp-hero-subtitle {
  margin: 14px auto 0;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

/* ── Store button ─────────────────────────────────────────────────── */
.lp-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 21px 13px 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(60, 31, 77, 0.18);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lp-store-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(60, 31, 77, 0.22);
}

.lp-store-play {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.95;
}

.lp-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.lp-store-eyebrow {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.65;
  line-height: 1;
}

.lp-store-name {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ═════════════════════════════════════════════════════════════════════
   THE RECEIPT
   ═════════════════════════════════════════════════════════════════════ */

.lp-receipt-wrap {
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.lp-receipt {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border-radius: 4px;
  padding: 30px 26px 24px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 3px 8px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.09),
    0 32px 64px rgba(0, 0, 0, 0.05);
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #3a3a3a;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Store header ─────────────────────────────────────────────────── */
.lp-receipt-store {
  text-align: center;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  margin-bottom: 2px;
}

.lp-receipt-store-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  line-height: 1.6;
}

.lp-receipt-meta {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
}

/* ── Separators ───────────────────────────────────────────────────── */
.lp-receipt-sep {
  height: 1px;
  margin: 8px 0;
  background: repeating-linear-gradient(
    90deg,
    #c0bdb5 0,
    #c0bdb5 4px,
    transparent 4px,
    transparent 8px
  );
}

.lp-receipt-sep-thick {
  height: 2px;
  margin: 3px 0;
  background: repeating-linear-gradient(
    90deg,
    #a09d95 0,
    #a09d95 3px,
    transparent 3px,
    transparent 6px
  );
}

/* ── Line items ───────────────────────────────────────────────────── */
.lp-receipt-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lp-receipt-row {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  margin: 0 -6px;
  border-radius: 3px;
  gap: 8px;
}

.lp-receipt-name {
  flex: 1;
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-receipt-price {
  font-size: 12px;
  text-align: right;
  min-width: 36px;
  flex-shrink: 0;
}

/* Owner labels stay plain; the row itself carries the color. */
.lp-receipt-tag {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  text-transform: none;
}

/* Highlight backgrounds */
.lp-hl-sarah { background-color: var(--hl-sarah); }
.lp-hl-mike  { background-color: var(--hl-mike); }
.lp-hl-you   { background-color: var(--hl-you); }

/* Plain label colors only. No redundant colored pills. */
.lp-receipt-tag-sarah { color: var(--tag-sarah); }
.lp-receipt-tag-mike  { color: var(--tag-mike); }
.lp-receipt-tag-you   { color: var(--tag-you); }

/* ── Totals ───────────────────────────────────────────────────────── */
.lp-receipt-totals {
  display: flex;
  flex-direction: column;
}

.lp-receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.lp-receipt-grand {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  padding-top: 2px;
}

/* ── Split section ────────────────────────────────────────────────── */
.lp-receipt-split-header {
  margin-top: 16px;
}

.lp-receipt-split-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #1a1a1a;
  padding: 4px 0;
}

.lp-receipt-split {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.lp-receipt-split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 3px;
  color: #1a1a1a;
}

.lp-receipt-split-row span:first-child {
  letter-spacing: 0.06em;
}

/* Receipt sign-off */
.lp-receipt-bye {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #999;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.lp-footer {
  display: flex;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .lp-container {
    width: min(1120px, calc(100% - 20px));
    padding: 14px 0 56px;
    gap: 24px;
  }

  .lp-nav {
    top: 8px;
    min-height: 50px;
    padding: 8px 14px;
  }

  .lp-wordmark {
    font-size: 26px;
  }

  .lp-hero {
    padding-top: 24px;
  }

  .lp-store-btn {
    margin-top: 20px;
  }

  .lp-receipt {
    max-width: 340px;
    padding: 24px 20px 20px;
  }
}
