:root {
  --paper: #F6F7FA;
  --paper-2: #FFFFFF;
  --line: #E1E5EE;
  --navy: #0A1830;
  --navy-2: #16233F;
  --ink: #0A1830;
  --ink-dim: #55648A;
  --teal: #008C96;
  --green: #32963C;
  --orange: #F05A14;
  --gold: #FABE00;
  --cream: #F5F2EB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  line-height: 1.55;
}

h1, h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  max-width: 1180px;
  margin: 0 auto;
}
.nav-brand img { height: 32px; display: block; }
.nav-login {
  text-decoration: none;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.55rem 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-login:hover { border-color: var(--teal); color: var(--teal); }

/* ── Flash messages ──────────────────────────────────────────── */
.flash-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3.5rem); }
.flash {
  background: #FFF3E0;
  border-left: 3px solid var(--orange);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--ink);
}

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3.5rem); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { flex: 1 1 420px; }
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 1.2rem;
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--ink-dim);
}

/* Receipt card — the one deliberate dark element on an otherwise
   light page: an itemized cost breakdown styled like a kitchen
   ticket, torn from a roll. */
.receipt {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: 2.2rem 1.75rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 20px 48px -18px rgba(10, 24, 48, 0.35);
  font-family: "Work Sans", system-ui, sans-serif;
  flex: 1 1 340px;
  max-width: 400px;
}
.receipt::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0; height: 14px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 14px repeat-x,
    linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 14px repeat-x;
}
.receipt-label {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  color: #93A3C4;
  letter-spacing: 0.02em;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.98rem;
}
.receipt-amt {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}
.receipt-rule {
  border-top: 1px dashed #3C4A6B;
  margin: 0.5rem 0;
}
.receipt-total { font-weight: 600; }
.receipt-price {
  margin-top: 0.3rem;
  padding-top: 0.6rem;
  border-top: 2px solid var(--cream);
  font-weight: 700;
  font-size: 1.08rem;
}
.receipt-price .receipt-amt { color: var(--gold); }

/* ── Features ────────────────────────────────────────────────── */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1rem, 4vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}
.feature {
  flex: 1 1 260px;
  padding-left: 1.1rem;
  border-left: 3px solid var(--line);
}
.feature h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.feature p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  margin: 0;
}
.feature-teal { border-left-color: var(--teal); }
.feature-orange { border-left-color: var(--orange); }
.feature-green { border-left-color: var(--green); }

/* ── Invite note ─────────────────────────────────────────────── */
.invite-note {
  background: var(--navy);
  color: var(--cream);
  border-radius: 10px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.invite-note p {
  margin: 0;
  max-width: 52ch;
  color: #B9C4DC;
  font-size: 1rem;
}
.invite-login-btn {
  flex-shrink: 0;
  text-decoration: none;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.invite-login-btn:hover { background: #ffd54d; }

/* ── Login page ──────────────────────────────────────────────── */
.login-section {
  max-width: 380px;
  margin: clamp(2.5rem, 8vw, 5rem) auto;
  text-align: left;
}
.login-section h1 { font-size: 2rem; }
.login-sub { color: var(--ink-dim); margin-top: 0.6rem; }
.login-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}
.login-form input {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}
.login-form input:focus { outline: none; border-color: var(--teal); }
.login-form button {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.login-form button:hover { background: var(--navy-2); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-dim);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
.footer-mark { width: 24px; height: 24px; }
.site-footer p { margin: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
/* Hero and features already wrap naturally via flex-wrap + flex-basis
   above — no extra breakpoint overrides needed for those. */
@media (max-width: 480px) {
  .hero-logo { width: 100%; }
}
