/* Pay-Split marketing site — "Pay-Split Light" design tokens.
   Mirrors app/lib/theme/split_theme.dart: white canvas, ink text, one mint
   accent. Money, codes, and IBANs always render in IBM Plex Mono. */

:root {
  --ink: #10130f;
  --ink-soft: #5b625a;
  --mint: #00e09e;
  --mint-deep: #00c98d;
  --mist: #eaf7f1;
  --amber: #f5a623;
  --seat: #eceeec;
  --paper: #ffffff;
  --radius-card: 24px;
  --radius-pill: 999px;
  --measure: 42rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

a { color: inherit; }

::selection { background: var(--mint); color: var(--ink); }

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

/* ---------- header ---------- */

.site-header {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--ink);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.header-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  transition: background .15s ease, color .15s ease;
}

.header-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero (landing) ---------- */

.hero {
  background:
    radial-gradient(38rem 38rem at 85% -10%, #7dffd4 0%, rgba(125, 255, 212, 0) 60%),
    linear-gradient(160deg, #00e09e 0%, #00c98d 100%);
  border-radius: var(--radius-card);
  margin: 0 auto 5rem;
  max-width: 72rem;
  padding: 4.5rem 1.5rem 5rem;
  overflow: hidden;
}

@media (min-width: 73rem) { .hero { margin-left: auto; margin-right: auto; } }
@media (max-width: 73rem) { .hero { border-radius: 0; } }

.hero-inner {
  max-width: 66rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 52rem) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
}

.hero p.lede {
  margin-top: 1.2rem;
  font-size: 1.12rem;
  max-width: 30rem;
  color: rgba(16, 19, 15, .78);
}

.store-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: .55rem 1.2rem;
  line-height: 1.25;
}

.store-badge small { font-size: .62rem; opacity: .75; }
.store-badge span { font-weight: 700; font-size: .98rem; }

.store-note {
  font-size: .8rem;
  color: rgba(16, 19, 15, .65);
  font-weight: 600;
}

/* ---------- the split card (signature) ---------- */

.split-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(6, 40, 30, .25);
  padding: 1.6rem;
  max-width: 24rem;
  justify-self: center;
  width: 100%;
  rotate: 1.5deg;
}

@media (prefers-reduced-motion: no-preference) {
  .split-card { animation: card-in .7s cubic-bezier(.2, .9, .3, 1) both; }
  @keyframes card-in {
    from { opacity: 0; translate: 0 1.6rem; rotate: 3deg; }
    to   { opacity: 1; translate: 0 0; rotate: 1.5deg; }
  }
}

.split-card .card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.split-card .card-title h3 { font-size: 1.05rem; font-weight: 700; }

.split-card .amount {
  font-size: 1.05rem;
  font-weight: 600;
}

.segments {
  display: flex;
  gap: .35rem;
  margin: 1rem 0 .5rem;
}

.segments i {
  height: .45rem;
  flex: 1;
  border-radius: var(--radius-pill);
  background: var(--seat);
}

.segments i.done { background: var(--mint-deep); }
.segments i.wait { background: var(--amber); }

.progress-line {
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.people { list-style: none; margin-top: 1.1rem; }

.people li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 0;
  border-top: 1px solid #f0f2f0;
  font-size: .88rem;
  font-weight: 600;
}

.people .dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  flex: none;
}

.dot.done { background: var(--mint-deep); }
.dot.wait { background: var(--amber); }
.dot.open { background: var(--seat); }

.people .state {
  margin-left: auto;
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.people .owes { font-size: .82rem; }

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

.section {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.5rem 5.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: .8rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  max-width: 34rem;
}

/* the 3-step loop — a genuine sequence, so numbers carry meaning */

.steps {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--mist);
  border-radius: var(--radius-card);
  padding: 1.6rem;
}

.step .step-n {
  font-size: .8rem;
  font-weight: 600;
  color: var(--mint-deep);
}

.step h3 { font-size: 1.15rem; margin: .6rem 0 .4rem; letter-spacing: -.01em; }
.step p { font-size: .92rem; color: var(--ink-soft); }

/* honest-by-design list */

.plain-list {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
  list-style: none;
  max-width: 46rem;
}

@media (max-width: 42rem) { .plain-list { grid-template-columns: 1fr; } }

.plain-list li {
  display: flex;
  gap: .7rem;
  font-size: .95rem;
}

.plain-list li::before {
  content: "✓";
  color: var(--mint-deep);
  font-weight: 700;
  flex: none;
}

/* closing band */

.closing {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-card);
  max-width: 66rem;
  margin: 0 auto 5.5rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

@media (max-width: 68rem) { .closing { margin-left: 1.5rem; margin-right: 1.5rem; } }

.closing h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin: 0 auto; }

.closing .mono-line {
  margin-top: 1rem;
  color: var(--mint);
  font-size: .95rem;
}

/* ---------- document pages (privacy, terms) ---------- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.doc .updated {
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--ink-soft);
}

.doc h2 {
  font-size: 1.2rem;
  letter-spacing: -.01em;
  margin: 2.4rem 0 .6rem;
}

.doc p, .doc li { color: #333833; font-size: .97rem; }

.doc p + p { margin-top: .8rem; }

.doc ul { margin: .6rem 0 0 1.2rem; }

.doc li + li { margin-top: .4rem; }

.doc .callout {
  margin-top: 2rem;
  background: var(--mist);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  font-size: .93rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid #eef1ee;
  padding: 2.2rem 1.5rem 3rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}

.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }

/* ---------- contact form ---------- */

.form-grid { margin-top: 2rem; display: grid; gap: 1.2rem; }

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fafbfa;
  border: 1.5px solid #e2e6e2;
  border-radius: 14px;
  padding: .8rem 1rem;
  transition: border-color .15s ease;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.submit-btn {
  font: inherit;
  font-weight: 700;
  background: var(--mint);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: .95rem 2.2rem;
  cursor: pointer;
  justify-self: start;
  transition: background .15s ease;
}

.submit-btn:hover { background: var(--mint-deep); }
.submit-btn:disabled { opacity: .6; cursor: default; }

.form-error {
  color: #b3261e;
  font-size: .9rem;
  font-weight: 600;
  display: none;
}

.sent-card {
  display: none;
  background: var(--mist);
  border-radius: var(--radius-card);
  padding: 2.2rem;
  text-align: center;
  margin-top: 2rem;
}

.sent-card .tick {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--ink);
}

.sent-card h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.sent-card p { color: var(--ink-soft); font-size: .95rem; }
