/* ==========================================================================
   Kakobuy Spreadsheet — design system
   Modern light editorial theme, Kakobuy brand red (#F82848)
   ========================================================================== */

:root {
  --brand: #f82848;
  --brand-dark: #d11437;
  --brand-soft: #fff1f3;
  --brand-glow: rgba(248, 40, 72, 0.18);

  --ink: #16161d;
  --body: #41414c;
  --muted: #6b7280;
  --line: #ececef;
  --line-soft: #f4f4f6;

  --bg: #ffffff;
  --bg-alt: #fafafb;
  --bg-ink: #14141b;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, 0.05), 0 1px 3px rgba(16, 16, 24, 0.06);
  --shadow: 0 6px 24px rgba(16, 16, 24, 0.07);
  --shadow-lg: 0 18px 50px rgba(16, 16, 24, 0.12);

  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.06rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); font-size: 1.18rem; letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo img { height: 26px; width: auto; }
.logo .tag { color: var(--muted); font-weight: 600; font-size: .82rem; border-left: 1px solid var(--line); padding-left: .55rem; }
.main-nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.main-nav a { color: var(--body); font-weight: 600; font-size: .95rem; padding: .5rem .7rem; border-radius: 8px; }
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.main-nav a.cta { background: var(--brand); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.main-nav a.cta:hover { background: var(--brand-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: linear-gradient(135deg, #fff7ec 0%, #fff3f4 55%, #fff 100%); }
.hero::before { content: ""; position: absolute; top: -180px; right: -120px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(255,176,74,.22), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); background: #fff; border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hero h1 { margin: 1rem 0 .6rem; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { font-size: 1.18rem; color: var(--body); max-width: 36ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-trust { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }
.hero-media { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }

/* ---------- video ---------- */
.video-wrap { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-wrap .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play span { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px var(--brand-glow); }
.video-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.lead-block { max-width: 720px; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .2s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e0e0e6; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.card .count { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 700; color: var(--brand-dark); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px; width: 38px; height: 38px; background: var(--brand); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 6px 16px var(--brand-glow); }
.step h3 { margin: 14px 0 .4rem; font-size: 1.1rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .9rem; color: var(--body); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f82848' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb .sep { margin: 0 .5rem; opacity: .5; }

/* ---------- prose (article body) ---------- */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.4rem 0; box-shadow: var(--shadow-sm); }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.prose-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.4rem 0; }
.prose-gallery figure { margin: 0; }
.prose-gallery img { margin: 0; width: 100%; }
@media (max-width: 560px) { .prose-gallery { grid-template-columns: 1fr; } }
.prose .formula { background: var(--bg-alt); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 600; color: var(--ink); }
.callout { background: var(--brand-soft); border: 1px solid #ffd9df; border-radius: var(--radius); padding: 18px 20px; margin: 1.6rem 0; }
.callout p { margin: 0; color: #7a1226; font-size: .98rem; }
table.cmp { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .96rem; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
table.cmp thead th { background: var(--bg-alt); color: var(--ink); }
table.cmp td:first-child { color: var(--muted); font-weight: 600; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 52px 18px 20px; font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer; position: relative; font-family: inherit; }
.faq-q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); font-weight: 400; transition: .2s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--body); }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------- help center article list ---------- */
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 4px; color: var(--ink); font-weight: 600; }
.article-list a:hover { color: var(--brand-dark); text-decoration: none; }
.article-list .arrow { color: var(--muted); transition: .15s; }
.article-list a:hover .arrow { color: var(--brand); transform: translateX(3px); }

/* search box */
.searchbox { position: relative; max-width: 560px; margin: 0 auto 8px; }
.searchbox input { width: 100%; padding: 15px 18px 15px 48px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1rem; font-family: inherit; transition: .15s; }
.searchbox input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.searchbox svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search-empty { text-align: center; color: var(--muted); padding: 1rem; }

/* ---------- services / feature photos (Kakobuy.com style) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.feat-media img { width: 100%; height: 100%; object-fit: cover; }
.feat-media .step { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; background: var(--brand); color: #fff; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 4px 12px var(--brand-glow); }
.feat-body { padding: 18px 20px 22px; }
.feat-body h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feat-body p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- product category cards (funnel to W2C) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .18s ease; }
.cat-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e0e0e6; }
.cat-thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-alt); }
.cat-emoji { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fff1f3 0%, #fff7ec 100%); }
.cat-emoji span { font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1; filter: saturate(1.05); }
.cat-meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cat-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.cat-sub { font-size: .8rem; color: var(--muted); }
.cat-group { margin-bottom: 40px; }
.cat-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cat-group-head h2 { margin: 0; font-size: 1.3rem; }
.cat-group-head a { font-size: .88rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* product search (posts to W2C) */
.prod-search { display: flex; max-width: 600px; margin: 18px 0 0; }
.hero .prod-search { margin: 22px 0 0; }
.prod-search input { border-radius: 999px 0 0 999px; border-right: 0; }
.prod-search button { border: 1.5px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; padding: 0 1.5rem; border-radius: 0 999px 999px 0; cursor: pointer; font-family: inherit; font-size: 1rem; transition: .15s; }
.prod-search button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.section-head + .prod-search, .prod-search.center { margin-left: auto; margin-right: auto; }

/* long-form hero image + category strip + funnel CTA */
.lf-hero { margin: 0 0 1.4rem; }
.lf-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lf-hero figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.cat-strip-wrap { margin: 2rem 0; padding: 22px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.cat-strip-head { font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-strip a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--body); font-size: .82rem; font-weight: 600; }
.cat-strip a:hover { color: var(--brand-dark); text-decoration: none; }
.cat-strip .cat-thumb { width: 100%; aspect-ratio: 1/1; border-radius: 12px; border: 1px solid var(--line); }
.cat-strip .cat-emoji span { font-size: clamp(1.4rem, 5vw, 2rem); }
.lf-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .cat-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- news / blog post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e0e0e6; }
.post-thumb-wrap { position: relative; }
.post-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg-alt); display: block; }
.post-card.pinned { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm); }
.pin-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .02em; padding: .32rem .6rem; border-radius: 999px; box-shadow: 0 4px 12px var(--brand-glow); }
.pin-badge.solo { position: static; display: inline-block; margin: 16px 16px 0; }
.post-body { padding: 20px 22px 24px; }
.post-meta { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.post-meta time { font-weight: 600; }
.post-meta .muted { color: var(--muted); }
.post-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.post-card p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- shipping price comparison (mobile-first: agents=rows, weights=cols) ---------- */
.ship-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ship-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ship-card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.ship-card-head h3 { margin: 0; font-size: 1.04rem; }
.ship-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ship-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ship-table th, .ship-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.ship-table thead th { background: #fff; color: var(--muted); font-weight: 700; font-size: .8rem; text-align: right; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.ship-table th.ag { text-align: left; color: var(--ink); font-weight: 600; position: sticky; left: 0; background: #fff; z-index: 1; }
.ship-table thead th.ag { z-index: 2; }
.ship-table tbody tr:last-child td, .ship-table tbody tr:last-child th { border-bottom: 0; }
.ship-table tr.kako th.ag { color: var(--brand-dark); font-weight: 800; }
.ship-table tr.kako td, .ship-table tr.kako th.ag { background: var(--brand-soft); }
.ship-table td.low { color: #0a7d3c; font-weight: 700; }
.ship-table td.lowtag, .ship-table .lowtag { display: none; }
.ship-table td.na { color: #c5c5cc; }
.ship-legend { font-size: .85rem; color: var(--muted); margin: 16px 0 22px; }
.ship-legend .k { color: var(--brand-dark); font-weight: 700; }
.ship-legend .l { color: #0a7d3c; font-weight: 600; }
@media (max-width: 920px) { .ship-grid { grid-template-columns: 1fr; } }

/* pills / tags */
.pill { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: .3rem .7rem; border-radius: 999px; }

/* CTA band */
.cta-band { background: var(--bg-ink); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b8b8c4; max-width: 50ch; margin: 0 auto 1.6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-ink); color: #aeaeba; padding: 56px 0 28px; margin-top: 8px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer a { color: #aeaeba; display: block; margin-bottom: .55rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand p { max-width: 34ch; margin-top: .8rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-logo img { height: 24px; filter: brightness(0) invert(1); opacity: .95; }
.footer-bottom { border-top: 1px solid #2a2a34; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #76767f; }
.footer-bottom a { display: inline; }
.disclaimer { font-size: .82rem; color: #76767f; max-width: 70ch; margin-top: 10px; }

/* ---------- responsive ---------- */
html, body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 18px; gap: 2px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem .6rem; border-radius: 8px; }
  .main-nav a.cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0 44px; }
  .cta-band { padding: 36px 24px; }
  .logo .tag { display: none; }
  /* hero: stop horizontal overflow — stack CTAs, full-width search */
  .hero h1 { word-break: break-word; }
  .prod-search { width: 100%; max-width: 100%; }
  .prod-search input { min-width: 0; flex: 1; }
  .prod-search button { padding: 0 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn { white-space: normal; }
  /* footer: brand full row, links two-up */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
