:root {
  --sage: #EEF0E4;
  --sage-deep: #DCE3C6;
  --paper: #FAFBF5;
  --ink: #1F2A17;
  --ink-soft: #4A5640;
  --olive: #5E7230;
  --line: #C9CFB5;
  --citron: #D9E36E;
  --apricot: #F0A47A;
  --peach: #F6D9C6;
  --butter: #F2E3A8;
  --sky: #CFDDE0;
  --radius: 28px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3, .wordmark {
  font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

a { color: var(--olive); }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.wordmark { font-size: 24px; font-weight: 700; }
.top nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 64px;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 30em; margin: 20px 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform 0.15s; }
.badge:hover { transform: translateY(-1px); }
.badge img { height: 52px; width: auto; }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

.phones { position: relative; display: flex; justify-content: center; }
.phone {
  width: 260px;
  border-radius: 40px;
  border: 8px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(31, 42, 23, 0.45);
}
.phone img { border-radius: 32px; }
.phone-wrap { position: relative; }
.phone-wrap .hazel {
  position: absolute;
  width: 120px;
  left: -64px;
  bottom: -14px;
  filter: drop-shadow(0 10px 18px rgba(31, 42, 23, 0.2));
}
/* Hazel's speech bubble, over the phone's lower left corner. */
.bubble {
  position: absolute;
  left: -84px;
  bottom: 112px;
  width: 230px;
  margin: 0;
  padding: 12px 15px;
  background: var(--paper);
  border-radius: 18px 18px 18px 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 12px 28px -10px rgba(31, 42, 23, 0.45);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -9px;
  border: 10px solid transparent;
  border-top-color: var(--paper);
  border-bottom: 0;
}
.bubble a { white-space: nowrap; }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 28px; max-width: 18em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--citron);
  margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature.peach { background: var(--peach); }
.feature.butter { background: var(--butter); }
.feature.sky { background: var(--sky); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.gallery figure { margin: 0; }
.gallery .phone { width: 100%; max-width: 280px; margin: 0 auto; }
.gallery figcaption { text-align: center; margin-top: 14px; font-weight: 600; }

.privacy-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.privacy-band img { width: 140px; }
.privacy-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 12px; }
.privacy-band p { margin: 0; color: rgba(250, 251, 245, 0.78); max-width: 38em; }
.privacy-band a { color: var(--citron); }

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.plan {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  border: 2px solid transparent;
}
.plan.best { border-color: var(--olive); }
.plan h3 { font-size: 24px; font-weight: 700; }
.plan .price { font-size: 34px; font-weight: 800; font-family: "Bricolage Grotesque", sans-serif; margin: 10px 0 4px; }
.plan p { margin: 0; color: var(--ink-soft); }
.chip { display: inline-block; background: var(--citron); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 600; margin-left: 8px; vertical-align: middle; }

.faq details {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 18px; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

footer {
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink-soft); }

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); margin: 0 0 28px; font-size: 15px; }
.legal h2 { font-size: 24px; font-weight: 700; margin: 36px 0 10px; }
.legal h3 { font-size: 19px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .summary {
  background: var(--paper);
  border-radius: 22px;
  padding: 6px 24px 10px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .features, .gallery { grid-template-columns: 1fr; }
  .gallery .phone { max-width: 260px; }
  .pricing { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .privacy-band img { width: 100px; }
  .top nav { gap: 14px; }
  .phone-wrap .hazel { left: -40px; width: 100px; }
  .bubble { left: -40px; bottom: 96px; width: 210px; font-size: 14px; }
}

/* Comparison articles (generated by scripts/nutstash-alternatives/generate.mjs) */
.article { max-width: 780px; margin: 0 auto; padding: 16px 0 24px; }
.article .crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.article .crumbs a { color: var(--ink-soft); }
.article h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; margin-bottom: 18px; }
.article .lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 14px; }
.article .updated { font-size: 14px; color: var(--ink-soft); margin: 0 0 32px; }
.article .updated a { color: inherit; }
.article > h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin: 48px 0 12px; scroll-margin-top: 16px; }
.article p { margin: 0 0 16px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.links a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 5px 13px; border-radius: 999px;
  border: 1.5px solid var(--olive); color: var(--olive); background: var(--paper); }
.links a:hover { background: var(--citron); color: var(--ink); border-color: var(--ink); }
.app { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; margin-bottom: 20px; }
.app.noshot { grid-template-columns: 1fr; }
.shot { margin: 0; text-align: center; }
.shot img { width: 100%; max-width: 190px; border-radius: 22px; border: 6px solid var(--ink); background: var(--ink); margin: 0 auto; }
.shot figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.proscons { display: grid; grid-template-columns: 1fr; gap: 12px; }
.proscons > div { background: var(--paper); border-radius: 20px; padding: 16px 20px; border-left: 6px solid var(--line); }
.proscons .pros { border-left-color: var(--olive); }
.proscons .cons { border-left-color: var(--apricot); }
.proscons h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.proscons ul { margin: 0; padding-left: 20px; font-size: 16px; }
.proscons li { margin-bottom: 7px; }
.tablewrap { overflow-x: auto; margin: 8px 0 12px; border-radius: 20px; background: var(--paper); }
table.compare { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
table.compare td:nth-child(2) { min-width: 170px; }
table.compare td:nth-child(3) { min-width: 190px; }
table.compare td:nth-child(4) { min-width: 165px; }
table.compare td:nth-child(5) { min-width: 120px; }
/* On wide screens the table spills past the 780px text column instead of scrolling. */
@media (min-width: 1000px) { .article .tablewrap { margin-left: -70px; margin-right: -70px; } }
table.compare th, table.compare td { text-align: left; padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--sage-deep); }
table.compare th { background: var(--sage-deep); font-weight: 700; white-space: nowrap; }
table.compare tr:last-child td { border-bottom: none; }
table.compare tr.hl td { background: rgba(217, 227, 110, 0.35); }
table.compare a { color: var(--ink); }
.verdict { background: var(--paper); border-left: 4px solid var(--olive); border-radius: 0 14px 14px 0; padding: 12px 16px; margin: 16px 0 8px; }
.article .verdict strong:first-child { color: var(--olive); }
ul.picks { padding-left: 22px; }
ul.picks li { margin-bottom: 10px; }
.article .note { font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
.cta { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 32px; margin: 48px 0 8px; }
.cta img { width: 96px; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; }
.cta p { color: rgba(250, 251, 245, 0.8); margin: 0 0 18px; }
.cta .badge img { width: auto; }
.article .faq { padding: 40px 0 0; }
.site-foot { display: block; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .shot img { max-width: 220px; }
  .cta { grid-template-columns: 1fr; padding: 26px 22px; }
  .cta img { width: 72px; }
}

/* How-to guides */
.answer { background: var(--paper); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 24px; border: 2px solid var(--olive); }
.article .answer h2 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.answer ul { margin: 0; padding-left: 20px; }
.answer li { margin-bottom: 8px; }
.toc { background: var(--sage-deep); border-radius: 20px; padding: 18px 24px; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--ink); }
ol.steps { padding-left: 22px; margin: 0 0 16px; }
ol.steps li { margin-bottom: 8px; }
.way { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: start; }
.way .shot img { border-radius: 26px; border-width: 7px; }
.inline-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.inline-cta .badge img { height: 46px; width: auto; }
@media (max-width: 860px) {
  .way { grid-template-columns: 1fr; }
  .way .shot img { max-width: 220px; }
  .toc ol { columns: 1; }
}

/* Fact boxes on cleaner pages: dated, sourced numbers that can be quoted on their own */
.facts { background: var(--sage-deep); border-radius: 20px; padding: 18px 24px; margin: 8px 0 20px; }
.article .facts h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.facts ul { margin: 0; padding-left: 20px; }
.facts li { margin-bottom: 6px; }
.more-link { margin: 0 0 8px; font-weight: 600; }
table.compare .rating { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
table.compare.cleaners th { white-space: normal; }
table.compare.cleaners td:nth-child(1) { min-width: 130px; }
table.compare.cleaners td:nth-child(2) { min-width: 140px; }
table.compare.cleaners td:nth-child(3) { min-width: 150px; }
table.compare.cleaners td:nth-child(4) { min-width: 160px; }
table.compare.cleaners td:nth-child(5) { min-width: 170px; }

/* Site footer: one for every Nutstash page (written by generate.mjs) */
footer.site-foot { display: block; border-top: none; margin-top: 56px; padding: 0 0 40px; font-size: 15px; color: var(--ink-soft); }
.site-foot .foot-top { display: grid; grid-template-columns: minmax(220px, 1.2fr) 3.8fr; gap: 40px;
  background: var(--paper); border-radius: var(--radius); padding: 36px; }
.site-foot .foot-brand .brand { margin-bottom: 14px; }
.site-foot .foot-brand p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.5; }
.site-foot .foot-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot .foot-badges .badge img { height: 40px; width: auto; }
.site-foot .foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.site-foot .foot-grid h3 { font-family: "Inter", system-ui, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--olive); margin: 4px 0 12px; line-height: 1.3; }
.site-foot .foot-grid ul { list-style: none; padding: 0; margin: 0; }
.site-foot .foot-grid li { margin-bottom: 9px; line-height: 1.35; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .foot-bottom { display: flex; align-items: center; gap: 12px; padding: 18px 8px 0; margin: 0; border-top: none; }
.site-foot .foot-bottom img { width: 36px; height: 36px; }
.site-foot .foot-bottom p { margin: 0; }
.site-foot .foot-bottom a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1000px) {
  .site-foot .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .site-foot .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .site-foot .foot-top { padding: 26px 20px; }
  .site-foot .foot-grid { gap: 24px 16px; font-size: 14px; }
}

/* Home page: Tidy up section */
.tidy { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 44px; }
.tidy .section-title { margin-bottom: 14px; }
.tidy .lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 18px; max-width: 34em; }
.tidy-list { list-style: none; padding: 0; margin: 0 0 18px; }
.tidy-list li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--sage-deep); position: relative; }
.tidy-list li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--olive); font-weight: 700; }
.tidy .phone { width: 100%; max-width: 280px; margin: 0 auto; }
@media (max-width: 860px) {
  .tidy { grid-template-columns: 1fr; padding: 30px 22px; gap: 28px; }
  .tidy .phone { max-width: 240px; }
}
