:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --paper: #f8fafc;
  --paper-elevated: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-glow: rgba(13, 148, 136, 0.14);
  --savings: #059669;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --max: 1140px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 148, 136, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 35% at 95% 5%, rgba(13, 148, 136, 0.05), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  pointer-events: none;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-bottom: 8px;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--ink) 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-link:hover {
  background: #1e293b;
  text-decoration: none;
  transform: translateY(-1px);
}

.header-link:focus-visible,
.button:focus-visible,
.brand:focus-visible,
.international-callout a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 32px 0 80px;
}

.slim-hero {
  grid-template-columns: minmax(0, 720px);
  padding-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-elevated);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: var(--ink);
  color: #f8fafc;
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--paper-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: #fff;
}

.hero-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13, 148, 136, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  padding: 28px;
}

.card-label {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.receipt-preview {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.receipt-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.receipt-preview-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.receipt-preview-row strong {
  color: var(--ink);
  font-weight: 600;
}

.saving {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.saving-value {
  margin: 4px 0 14px;
  color: var(--savings);
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-card p,
.step p,
.signup-copy p,
.international-callout p,
.form-footnote {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 6px;
}

.step > div p {
  margin: 0;
}

.founder-note {
  padding: clamp(40px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #134e4a 100%);
  color: #f1f5f9;
  box-shadow: var(--shadow-lg);
}

.founder-note p {
  max-width: 48ch;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-align: center;
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.signup-copy {
  max-width: 420px;
}

.privacy-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.55;
}

.beta-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.privacy-retention {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.privacy-retention li + li {
  margin-top: 12px;
}

.section ul:not(.privacy-retention) {
  padding-left: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.section ul:not(.privacy-retention) li + li {
  margin-top: 8px;
}

.store-shopped {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.store-shopped strong {
  color: var(--ink);
}

.receipt-compare {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-size: 0.8rem;
}

.receipt-compare-head,
.receipt-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr) minmax(0, 0.9fr);
  gap: 8px;
  align-items: center;
}

.receipt-compare-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.receipt-compare-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.receipt-compare-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.receipt-compare-row span:nth-child(2),
.receipt-compare-row span:nth-child(3) {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.receipt-compare-row .is-lower {
  color: var(--savings);
}

.waitlist-form-shell {
  display: grid;
  gap: 0;
}

.signup-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-md);
}

label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.signup-form .button {
  width: 100%;
  margin-top: 6px;
}

.form-footnote {
  margin: 2px 0 0;
  font-size: 0.85rem;
}

.waitlist-success h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.waitlist-success p {
  margin: 0;
}

.form-error {
  margin: 4px 0 0;
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 600;
}

.thank-you-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
  padding: 48px 0 72px;
}

.thank-you-panel {
  width: min(640px, 100%);
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-elevated);
  box-shadow: var(--shadow-lg);
}

.thank-you-lead {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}

.thank-you-steps {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.thank-you-steps li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.thank-you-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.95rem;
}

.thank-you-steps span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.international-callout {
  grid-column: 2;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.international-callout h3 {
  font-size: 0.95rem;
}

.international-callout a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.international-callout a:hover {
  text-decoration: underline;
}

.compact-signup {
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.85fr);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero,
  .two-column,
  .signup-section,
  .compact-signup {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero-card {
    order: -1;
  }

  .international-callout {
    grid-column: auto;
    margin-top: 0;
  }

  .step {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 32px, var(--max));
  }

  .header-link {
    padding: 0 14px;
    font-size: 0.85rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .hero-card-inner,
  .signup-form {
    padding: 22px;
  }

  .signup-form {
    gap: 16px;
  }

  .receipt-compare-head {
    display: none;
  }

  .receipt-compare-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .receipt-compare-head span:not(:first-child),
  .receipt-compare-row span:nth-child(2),
  .receipt-compare-row span:nth-child(3) {
    text-align: left;
  }

  .receipt-compare-row span:nth-child(2)::before {
    content: "Tesco: ";
    color: var(--muted);
    font-weight: 600;
  }

  .receipt-compare-row span:nth-child(3)::before {
    content: "Sainsbury's: ";
    color: var(--muted);
    font-weight: 600;
  }

  .founder-note {
    padding: 32px 24px;
  }

  .founder-note p {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
