/* Kindly Budget — design system del sito (mobile first) */
:root {
  --ink: #22302A;
  --ink-soft: #3D4A43;
  --muted: #6B756F;
  --forest: #2F4A3A;
  --forest-dark: #243A2D;
  --sage: #9DB8A0;
  --sage-light: #DCE7DA;
  --sage-xlight: #EEF4EC;
  --cream: #F7F3EC;
  --paper: #FFFDF8;
  --butter: #F2D58A;
  --butter-light: #FBF1D3;
  --blush: #EBC4B5;
  --blush-light: #F8E6DF;
  --clay: #C65D3B;
  --line: #E6E0D3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(34, 48, 42, .14);
  --shadow-sm: 0 6px 18px rgba(34, 48, 42, .10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--forest); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(36px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.6vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.bg-paper { background: var(--paper); }
.bg-forest { background: var(--forest); color: var(--paper); }
.bg-forest h2, .bg-forest h3 { color: var(--paper); }
.bg-sage { background: var(--sage-xlight); }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; display: block; }
.lead { font-size: 19px; color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 243, 236, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--forest); }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav a.btn { color: var(--paper); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--forest); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 17px; padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--forest-dark); transform: translateY(-1px); }
.btn.small { padding: 10px 16px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--forest); border: 2px solid var(--forest); box-shadow: none; }
.btn.butter { background: var(--butter); color: var(--ink); }
.btn .price { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 2px 10px; font-size: 15px; }
.btn.butter .price { background: rgba(34, 48, 42, .08); }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Pills & badges */
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.pills li { background: var(--paper); border: 1.5px solid var(--sage-light); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--forest); }
.badge { display: inline-block; background: var(--butter); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.badge.sage { background: var(--sage-light); color: var(--forest); }

/* Hero */
.hero { padding: 48px 0 56px; position: relative; overflow: hidden; }
.hero .grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero .trust { font-size: 14px; color: var(--muted); margin-top: 12px; }
.blob { position: absolute; border-radius: 50%; z-index: -1; }

/* Cards */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.product-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .img { aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 21px; margin: 0; }
.product-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.product-card .price { font-weight: 700; font-size: 18px; color: var(--forest); }

/* Buckets (4-Bucket method) */
.buckets { display: grid; gap: 14px; counter-reset: b; }
@media (min-width: 820px) { .buckets { grid-template-columns: repeat(4, 1fr); } }
.bucket { border-radius: var(--radius); padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.bucket .n { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.bucket:nth-child(1) .n { background: var(--forest); color: var(--paper); }
.bucket:nth-child(2) .n { background: var(--sage); color: var(--paper); }
.bucket:nth-child(3) .n { background: var(--butter); color: var(--ink); }
.bucket:nth-child(4) .n { background: var(--blush); color: var(--ink); }
.bucket h3 { margin-bottom: 6px; }
.bucket p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Landing */
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.problem-list li { background: var(--paper); border-left: 4px solid var(--blush); border-radius: 10px; padding: 14px 16px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232F4A3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: flex; width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: var(--paper); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background: var(--paper); }
@media (min-width: 900px) { .gallery { grid-auto-columns: 46%; } }
.guarantee { display: grid; gap: 18px; align-items: center; background: var(--butter-light); border-radius: var(--radius); padding: 28px; }
@media (min-width: 720px) { .guarantee { grid-template-columns: 90px 1fr; } }
.seal { width: 86px; height: 86px; border-radius: 50%; background: var(--butter); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; color: var(--forest); text-align: center; font-size: 15px; line-height: 1.1; border: 3px dashed var(--forest); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--forest); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.buybox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.buybox .price-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.buybox .price-big { font-family: var(--serif); font-weight: 700; font-size: 40px; color: var(--forest); }
.bump-note { margin-top: 12px; font-size: 14px; background: var(--sage-xlight); border-radius: 10px; padding: 10px 12px; }
.included { display: grid; gap: 12px; }
.included a { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-decoration: none; color: inherit; }
.included img { border-radius: 8px; }
.included .v { font-weight: 700; color: var(--muted); font-size: 14px; }

/* Sticky CTA (mobile) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; justify-content: space-between; transform: translateY(110%); transition: transform .25s ease; box-shadow: 0 -8px 24px rgba(34, 48, 42, .08); }
.sticky-cta.show { transform: none; }
.sticky-cta .t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.sticky-cta .t small { display: block; font-weight: 500; color: var(--muted); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Links page */
.links { max-width: 520px; margin: 0 auto; padding: 40px 20px 60px; text-align: center; }
.links .avatar { width: 88px; height: 88px; margin: 0 auto 14px; }
.links a.link { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-decoration: none; color: var(--ink); margin: 12px 0; text-align: left; box-shadow: var(--shadow-sm); }
.links a.link img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.links a.link b { display: block; color: var(--forest); }
.links a.link span { font-size: 14px; color: var(--muted); }
.links a.link.primary { background: var(--forest); color: var(--paper); }
.links a.link.primary b, .links a.link.primary span { color: var(--paper); }

/* Footer */
.site-footer { background: var(--forest); color: var(--sage-light); padding: 48px 0 110px; font-size: 15px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .logo { color: var(--paper); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .fine { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(220, 231, 218, .18); font-size: 13px; color: var(--sage); }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } }

/* Legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 20px; margin-top: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Thank you */
.ty-box { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.oto { background: var(--paper); border: 3px solid var(--butter); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.notice { background: var(--butter-light); border: 1px dashed var(--clay); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
