/* ==========================================================================
   Butler Pantry — Warm Kitchen design system
   Palette: terracotta #C66B3D · cream #F5EBDC · mustard #E8A33D · warm white #FAF6F0
   Fonts: Fraunces (headings) · DM Sans (body) · DM Mono (data/numbers)
   Self-hosted WOFF2 in assets/fonts/ — no external CDNs.
   Accessible: AA contrast on all text, semantic HTML, keyboard nav.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dmsans-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/dmmono-400-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #FAF6F0;
  --cream: #F5EBDC;
  --paper: #FFFDF9;
  --terracotta: #C66B3D;
  --terracotta-dark: #8A4B23;
  --terracotta-deep: #70401F;
  --mustard: #E8A33D;
  --mustard-soft: #F3C878;
  --ink: #3A2E2A;
  --ink-soft: #6B4A3A;
  --line: #E7D9C3;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(58, 46, 42, 0.10);
  --shadow-soft: 0 2px 10px rgba(58, 46, 42, 0.06);
  --maxw: 1120px;
  --focus: #8A4B23;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; color: inherit; }
em { font-style: italic; }

a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--terracotta-dark { background: var(--terracotta-deep); color: var(--cream); }
.section--terracotta-dark h1, .section--terracotta-dark h2, .section--terracotta-dark h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 0.8rem;
  display: block;
}
.section--terracotta-dark .eyebrow { color: var(--mustard-soft); }

.lede { font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft); max-width: 46em; }
.section--terracotta-dark .lede { color: #F3E5D3; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; border-radius: 9px; background: var(--bg); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--terracotta-deep); background: var(--cream); }
.nav-links a[aria-current="page"] { color: var(--terracotta-dark); background: var(--cream); }

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 18px !important;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.nav-cta:hover { background: var(--terracotta-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 9px; font-size: 1.06rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .brand-name { font-size: 1.2rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero .tagline {
  font-size: 1.28rem;
  color: var(--terracotta-dark);
  font-weight: 500;
  margin-bottom: 0.9em;
}
.hero .lead { font-size: 1.17rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 1.6em; }

.hero-proof { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; gap: 10px; }
.hero-proof li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.hero-proof .p-ic {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--terracotta-dark);
}
.hero-proof svg { width: 21px; height: 21px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.1em; }
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terracotta); color: var(--white) !important; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--terracotta-deep); }
.btn--secondary { background: var(--white); color: var(--terracotta-dark) !important; border-color: var(--terracotta); }
.btn--secondary:hover { background: var(--cream); }
.btn--small { padding: 10px 18px; font-size: 0.98rem; border-radius: 10px; }

.hero-note { font-size: 0.92rem; color: var(--ink-soft); max-width: 34em; }

.hero-visual {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px 30px;
  box-shadow: var(--shadow);
}
.mock-receipt { font-family: var(--font-mono); font-size: 0.84rem; color: var(--ink); }
.mock-receipt .line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #DCCFB4; }
.mock-receipt .line b { font-weight: 500; white-space: nowrap; }
.mock-flash {
  margin-top: 16px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 11px;
  text-align: center;
  font-size: 1.02rem;
}
.mock-flash .num { font-family: var(--font-mono); }
.hero-visual .cap { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

@media (max-width: 860px) {
  .hero { padding: 52px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Strapline tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.tile .t-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--terracotta-dark); margin-bottom: 12px; }
.tile .t-ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.tile p { font-size: 0.99rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Pillar cards ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.pillar .t-ic { width: 46px; height: 46px; border-radius: 11px; background: var(--cream); display: grid; place-items: center; color: var(--terracotta-dark); margin-bottom: 14px; }
.pillar .t-ic svg { width: 27px; height: 27px; }
.pillar h3 { font-size: 1.2rem; }
.pillar p { font-size: 0.99rem; color: var(--ink-soft); flex: 1; }
.pillar .p-link { font-weight: 700; font-size: 0.97rem; margin-top: 14px; }
@media (max-width: 760px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Numbers / stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.stat .num { font-family: var(--font-mono); font-weight: 500; font-size: 1.9rem; color: var(--white); line-height: 1.1; }
.stat .num small { font-size: 1.05rem; }
.stat .label { font-size: 0.9rem; color: var(--mustard-soft); margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Proof point cards (feature page) ---------- */
.proof-list { display: grid; gap: 14px; counter-reset: proof; }
.proof {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}
.proof:hover { border-color: var(--terracotta); }
.proof .num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  display: grid; place-items: center;
  font-size: 1.15rem;
}
.proof h4 { margin: 0 0 0.25em; }
.proof p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Comparison table (privacy) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: 15px 18px; text-align: left; vertical-align: top; font-size: 0.98rem; }
table.data thead th { background: var(--cream); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta-dark); border-bottom: 2px solid var(--line); }
table.data tbody tr { border-bottom: 1px solid var(--line); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.plan--featured { border-color: var(--terracotta); background: var(--cream); box-shadow: var(--shadow); }
.plan .plan-badge {
  align-self: flex-start;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.plan h2 { font-size: 1.5rem; margin-bottom: 0.5em; }
.plan .price { font-family: var(--font-mono); font-weight: 500; color: var(--ink); line-height: 1; margin: 4px 0 2px; }
.plan .price .amt { font-size: 3.1rem; }
.plan .price .per { font-size: 1.1rem; color: var(--ink-soft); }
.plan .price-save { color: var(--terracotta-dark); font-weight: 700; font-size: 0.99rem; margin: 8px 0 18px; }
.plan ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan ul li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 0.99rem; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta-dark); font-weight: 700; }
.plan .btn { text-align: center; margin-top: auto; }
.plan-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Fine print ---------- */
.fineprint { font-size: 0.86rem; color: var(--ink-soft); max-width: 62em; line-height: 1.6; }
.fineprint p { margin-bottom: 0.7em; }

/* ---------- Waitlist form ---------- */
.waitlist {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
  margin-top: 36px;
}
.waitlist h2 { margin-bottom: 0.3em; }
.waitlist .sub { color: var(--ink-soft); margin-bottom: 1.4em; max-width: 40em; }
.waitlist form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.waitlist input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 11px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
}
.waitlist input[type="email"]:focus { border-color: var(--terracotta); }
.waitlist .form-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; }
.waitlist .form-ok { color: var(--terracotta-deep); font-weight: 600; margin-top: 12px; min-height: 1.4em; }
.waitlist__dark { background: var(--terracotta-deep); border-color: rgba(255,255,255,0.2); color: var(--cream); }
.waitlist__dark h2, .waitlist__dark .sub { color: var(--white); }
.waitlist__dark .sub { color: #F3E5D3; }
.waitlist__dark input[type="email"] { background: var(--paper); border-color: rgba(255,255,255,0.35); }
.waitlist__dark .form-note, .waitlist__dark .form-ok { color: var(--mustard-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
.faq item, details.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--terracotta-dark);
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 20px 20px; color: var(--ink-soft); font-size: 1rem; }
details.faq .faq-body p { margin-bottom: 0.8em; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9CBBB; padding: 56px 0 40px; font-size: 0.92rem; }
.site-footer a { color: var(--mustard-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 9px; margin-bottom: 12px; }
.footer-brand .name { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); font-weight: 700; display: block; margin-bottom: 8px; }
.footer-brand p { max-width: 28em; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 38px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer-legal .legal-note { font-size: 0.82rem; color: #B3A392; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.ta-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.maxw-narrow { max-width: 720px; }
.maxw-none { max-width: none; }
.section-head { max-width: 720px; margin-bottom: 36px; }

.pillar-icon-row { display: flex; gap: 18px; align-items: flex-start; }
.pillar-big-icon {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--terracotta);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
}
.pillar-big-icon svg { width: 34px; height: 34px; }
@media (max-width: 560px) { .pillar-icon-row { flex-direction: column; gap: 12px; } }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--terracotta-dark);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.claims-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); opacity: 0.75; }

/* ---------- What's new / changelog ---------- */
.update-list { display: grid; gap: 26px; }
.update {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.update-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 8px;
}
.update h2 { font-size: 1.55rem; margin-bottom: 0.7em; }
.update-sections { display: grid; gap: 20px; margin-top: 6px; }
.update-section h3 { font-size: 1.13rem; margin-bottom: 0.35em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.update-section p { margin: 0 0 0.6em; color: var(--ink-soft); font-size: 0.99rem; }
.update-section p:last-child { margin-bottom: 0; }
.update-section ul { margin: 0; padding-left: 22px; color: var(--ink-soft); font-size: 0.99rem; display: grid; gap: 5px; }
.update-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Screen-reader-only ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
