/* Snackhaven Refreshments: site styles built on the Snackhaven design system (Design System/DESIGN.md) */

:root {
  --sh-bg: #F7F6F3;
  --sh-surface: #FFFFFF;
  --sh-surface-sunken: #EFEDE8;
  --sh-border: #E1DED6;
  --sh-border-strong: #C9C4B9;
  --sh-text: #1C1A17;
  --sh-text-muted: #635E54;
  --sh-primary: #1D5847;
  --sh-primary-hover: #174538;
  --sh-on-primary: #FFFFFF;
  --sh-primary-soft: #EEF6F2;
  --sh-on-primary-soft: #174538;
  --sh-accent: #E8A43A;
  --sh-accent-hover: #D58C1E;
  --sh-on-accent: #1C1A17;
  --sh-accent-soft: #FDF6EA;
  --sh-accent-text: #8A5810;
  --sh-success: #2D7A47;
  --sh-danger: #B23A2A;
  --sh-danger-soft: #FBEAE7;
  --sh-focus: #2F8065;

  --sh-chrome-bg: #12332A;
  --sh-chrome-raised: #174538;
  --sh-chrome-text: #F7F6F3;
  --sh-chrome-muted: #A9C9BB;
  --sh-chrome-accent: #F0BD62;

  --sh-shadow-1: 0 1px 2px rgba(28, 26, 23, 0.06), 0 1px 3px rgba(28, 26, 23, 0.08);
  --sh-shadow-2: 0 4px 12px rgba(28, 26, 23, 0.08), 0 2px 4px rgba(28, 26, 23, 0.05);
  --sh-shadow-3: 0 16px 40px rgba(28, 26, 23, 0.14);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --fast: 120ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --max: 1120px;
  --gutter: 40px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sh-bg: #0F1412;
    --sh-surface: #151B18;
    --sh-surface-sunken: #0B0F0D;
    --sh-border: #26302B;
    --sh-border-strong: #34403A;
    --sh-text: #EEECE7;
    --sh-text-muted: #A9B0AA;
    --sh-primary: #7FBDA4;
    --sh-primary-hover: #B6D9CA;
    --sh-on-primary: #12332A;
    --sh-primary-soft: #1A2E26;
    --sh-on-primary-soft: #B6D9CA;
    --sh-accent: #F0BD62;
    --sh-accent-hover: #F6D597;
    --sh-on-accent: #1C1A17;
    --sh-accent-soft: #2B2414;
    --sh-accent-text: #F0BD62;
    --sh-success: #6CC08A;
    --sh-danger: #F08A7A;
    --sh-danger-soft: #33191A;
    --sh-focus: #7FBDA4;
    --sh-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.40);
    --sh-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45);
    --sh-shadow-3: 0 16px 40px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--sh-bg);
  color: var(--sh-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }

a { color: var(--sh-primary); text-underline-offset: 3px; }
a:hover { color: var(--sh-primary-hover); }

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

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--sh-surface); color: var(--sh-text);
  padding: 8px 12px; border-radius: var(--r-md); z-index: 100;
}
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 767px) { :root { --gutter: 16px; } }

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sh-accent-text);
}
.lead { font-size: 18px; line-height: 28px; color: var(--sh-text-muted); max-width: 60ch; }
.muted { color: var(--sh-text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r-md);
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn-md { height: 40px; padding: 0 16px; }
.btn-primary { background: var(--sh-primary); color: var(--sh-on-primary); }
.btn-primary:hover { background: var(--sh-primary-hover); color: var(--sh-on-primary); }
.btn-secondary { background: var(--sh-surface); color: var(--sh-text); border-color: var(--sh-border-strong); }
.btn-secondary:hover { background: var(--sh-surface-sunken); color: var(--sh-text); }
.btn-accent { background: var(--sh-accent); color: var(--sh-on-accent); }
.btn-accent:hover { background: var(--sh-accent-hover); color: var(--sh-on-accent); }
.btn[disabled] { background: var(--sh-surface-sunken); color: var(--sh-text-muted); border-color: var(--sh-border); cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sh-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sh-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .logo-compact { display: none; height: 36px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--sh-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--sh-primary); }
.nav .phone { color: var(--sh-text-muted); font-weight: 500; }
@media (max-width: 900px) { .nav .hide-md { display: none; } }
@media (max-width: 767px) {
  .brand .logo-full { display: none !important; }
  .brand .logo-compact { display: block; }
  .site-header .wrap { height: 64px; }
}

/* Logo swapping for dark mode */
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .on-light { display: none !important; }
  .on-dark { display: block !important; }
}

/* Sections */
section { padding: 96px 0; }
@media (max-width: 767px) { section { padding: 64px 0; } }
.section-head { display: grid; gap: 12px; margin-bottom: 48px; max-width: 680px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.band { background: var(--sh-surface); border-top: 1px solid var(--sh-border); border-bottom: 1px solid var(--sh-border); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 .free { color: var(--sh-primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sh-text-muted); }
.checks svg { width: 18px; height: 18px; color: var(--sh-success); flex-shrink: 0; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 24px 40px rgba(18, 51, 42, 0.18)); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-art svg { max-width: 260px; }
}
@media (max-width: 767px) {
  h1 { font-size: 38px; line-height: 44px; }
  h2 { font-size: 28px; line-height: 36px; }
}

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--sh-border); }
.compare-col.old { background: var(--sh-surface-sunken); }
.compare-col.new { background: var(--sh-primary-soft); border-color: transparent; }
.compare-col h3 { margin-bottom: 20px; }
.compare-col.new h3 { color: var(--sh-on-primary-soft); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; }
.compare-col li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.compare-col.old li { color: var(--sh-text-muted); }
.compare-col.old li svg { color: var(--sh-text-muted); }
.compare-col.new li { color: var(--sh-on-primary-soft); font-weight: 500; }
.compare-col.new li svg { color: var(--sh-primary); }
@media (max-width: 767px) { .compare { grid-template-columns: 1fr; } .compare-col { padding: 24px; } }

/* Steps */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.steps-block h3.block-title { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.steps-block > p { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--sh-primary); color: var(--sh-on-primary);
  font: 700 16px/1 var(--font-display);
}
.steps strong { display: block; font-size: 17px; margin-bottom: 2px; }
.steps p { color: var(--sh-text-muted); }
.note {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--sh-accent-soft); color: var(--sh-text); font-size: 15px;
}
.note strong { color: var(--sh-accent-text); }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; gap: 56px; } }

/* Benefits */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-shadow-1); display: grid; gap: 8px; align-content: start;
}
.band .card { background: var(--sh-bg); box-shadow: none; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sh-primary-soft); color: var(--sh-primary); margin-bottom: 8px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--sh-text-muted); }
.card.feature { background: var(--sh-chrome-bg); border-color: var(--sh-chrome-bg); }
.card.feature h3 { color: var(--sh-chrome-text); }
.card.feature p { color: var(--sh-chrome-muted); }
.card.feature .icon { background: var(--sh-chrome-raised); color: var(--sh-chrome-accent); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-panel { background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 16px; align-content: start; }
.fit-panel .big { font: 700 40px/48px var(--font-display); letter-spacing: -0.015em; color: var(--sh-primary); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--sh-surface-sunken); font-size: 14px; font-weight: 600;
}
@media (max-width: 767px) { .fit { grid-template-columns: 1fr; } .fit-panel { padding: 24px; } }

/* About */
.about { background: var(--sh-chrome-bg); color: var(--sh-chrome-text); }
.about .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
.about .eyebrow { color: var(--sh-chrome-accent); }
.about h2 { color: var(--sh-chrome-text); margin: 12px 0 20px; }
.about p { color: var(--sh-chrome-muted); font-size: 18px; line-height: 28px; max-width: 60ch; }
.about p + p { margin-top: 16px; }
.about p strong { color: var(--sh-chrome-text); font-weight: 600; }
.contact-card {
  background: var(--sh-chrome-raised); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 20px;
}
.contact-card .name { font: 600 20px/28px var(--font-body); color: var(--sh-chrome-text); }
.contact-card .role { font-size: 14px; color: var(--sh-chrome-muted); }
.contact-line { display: flex; align-items: center; gap: 12px; color: var(--sh-chrome-text); text-decoration: none; font-weight: 600; }
.contact-line:hover { color: var(--sh-chrome-accent); }
.contact-line svg { width: 20px; height: 20px; color: var(--sh-chrome-accent); flex-shrink: 0; }
.about a:focus-visible { outline-color: var(--sh-chrome-accent); }
@media (max-width: 900px) { .about .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--r-lg);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; font-size: 17px; border-radius: var(--r-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--sh-text-muted); border-bottom: 2px solid var(--sh-text-muted);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--fast) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateX(-3px); }
.faq details p { padding: 0 24px 20px; color: var(--sh-text-muted); max-width: 65ch; }

/* Request form */
.request .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.request-intro { display: grid; gap: 16px; position: sticky; top: 104px; }
.request-intro ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.request-intro li { display: flex; gap: 12px; align-items: flex-start; }
.request-intro li svg { width: 20px; height: 20px; color: var(--sh-success); flex-shrink: 0; margin-top: 2px; }
.request-intro .direct { font-size: 15px; color: var(--sh-text-muted); padding-top: 8px; border-top: 1px solid var(--sh-border); margin-top: 8px; }
.form-card {
  background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--sh-shadow-2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--sh-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--sh-border-strong); border-radius: var(--r-md);
  background: var(--sh-surface); color: var(--sh-text);
  font: 400 16px/24px var(--font-body);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23807A6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sh-focus); box-shadow: 0 0 0 1px var(--sh-focus);
}
.field input:user-invalid, .field select:user-invalid { border-color: var(--sh-danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 16px; margin-top: 24px; }
.form-foot .btn { width: 100%; }
.form-foot .fine { font-size: 13px; line-height: 18px; color: var(--sh-text-muted); }
.form-error {
  display: none; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--sh-danger-soft); color: var(--sh-danger); font-size: 15px; font-weight: 500;
}
.form-error.show { display: block; }
@media (max-width: 900px) {
  .request .wrap { grid-template-columns: 1fr; gap: 40px; }
  .request-intro { position: static; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; border-radius: var(--r-lg); }
}

/* Footer */
.site-footer { background: var(--sh-chrome-bg); color: var(--sh-chrome-muted); padding: 48px 0 40px; border-top: 1px solid var(--sh-chrome-raised); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.site-footer img { height: 44px; width: auto; }
.footer-brand { display: grid; gap: 16px; }
.footer-brand p { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-links a { color: var(--sh-chrome-text); text-decoration: none; }
.footer-links a:hover { color: var(--sh-chrome-accent); }
.site-footer a:focus-visible { outline-color: var(--sh-chrome-accent); }

/* Simple pages (privacy, thanks) */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.prose { display: grid; gap: 16px; }
.prose h1 { font-size: 40px; line-height: 48px; margin-bottom: 8px; }
.prose h2 { font-size: 24px; line-height: 32px; margin-top: 24px; }
.prose p, .prose li { color: var(--sh-text-muted); max-width: 65ch; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.thanks { text-align: center; justify-items: center; }
.thanks .badge {
  width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center;
  background: var(--sh-primary-soft); color: var(--sh-primary); margin-bottom: 8px;
}
.thanks .badge svg { width: 36px; height: 36px; }
.thanks .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
