/* BucketNest website. Colours match the app; dark mode follows the system. */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --border: #dfe5ee;
  --text: #0f172a;
  --text-2: #3d4b5f;
  --muted: #56657a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --primary-strong: #1d4ed8; /* text on the soft blues: ≥ 4.5:1 */
  --on-primary: #ffffff;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --info-soft: #e0ecff;
  --success: #047857;
  --b1: #2a78d6;
  --b2: #4a3aa7;
  --b3: #1baf7a;
  --b4: #eb6834;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 4px 16px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 20px 50px rgb(15 23 42 / 0.16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --surface: #131c2e;
    --border: #26324a;
    --text: #e8edf5;
    --text-2: #c2ccda;
    --muted: #a3afc2;
    --primary: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-soft: #1e3a5f;
    --primary-strong: #bfdbfe;
    --on-primary: #0b1120;
    --danger: #f87171;
    --danger-soft: #3f1d1d;
    --info-soft: #172a47;
    --success: #34d399;
    --b1: #3987e5;
    --b2: #9085e9;
    --b3: #1baf7a;
    --b4: #d95926;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 20px 50px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand .logo { width: 30px; height: 30px; color: #2563eb; flex-shrink: 0; }
.nav { display: flex; gap: 0.25rem 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; padding: 0.25rem 0; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--primary); }
.nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--primary); }
.header-cta { margin-left: auto; }
@media (max-width: 760px) {
  .header-row { gap: 0.5rem 1rem; }
  .site-header nav { order: 3; width: 100%; }
  .nav { gap: 0.15rem 1rem; padding-bottom: 0.3rem; }
  .nav a { white-space: nowrap; display: inline-block; padding: 0.35rem 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; font-size: 0.95rem; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn.large { min-height: 52px; padding-inline: 1.5rem; font-size: 1.02rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); background: radial-gradient(1200px 500px at 85% -10%, var(--primary-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-strong); background: var(--primary-soft); padding: 0.2rem 0.65rem; border-radius: 999px; margin-bottom: 1rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-2); }
.hero-shot { margin: 0; }
.hero-shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { text-align: center; }
.section .section-lede { text-align: center; color: var(--text-2); max-width: 46rem; margin: 0 auto 2.5rem; font-size: 1.08rem; }
.page-intro { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.page-intro h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-intro + .section { padding-top: 2rem; }
.section .page-intro h2, .two-col h2, .narrow h2, .card h2, .prose h2 { text-align: left; }
.faq-wrap h2 { text-align: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.card h2 { font-size: 1.35rem; }

/* Buckets */
.buckets { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bucket { background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--c); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.bucket .pct { display: block; font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 0.6rem; }
.bucket p { color: var(--text-2); font-size: 0.95rem; }
.b1 { --c: var(--b1); } .b2 { --c: var(--b2); } .b3 { --c: var(--b3); } .b4 { --c: var(--b4); }
@media (max-width: 900px) { .buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .buckets { grid-template-columns: 1fr; } }

/* Features */
.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.feature p { color: var(--text-2); font-size: 0.95rem; }
.feature-icon { width: 34px; height: 34px; color: var(--primary); background: var(--primary-soft); border-radius: 10px; padding: 6px; margin-bottom: 0.9rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.45fr); gap: 1.25rem; margin-top: 2rem; align-items: start; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery .phone { max-width: 260px; justify-self: center; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* Choice cards */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.choice { display: flex; flex-direction: column; gap: 0.5rem; }
.choice .btn { align-self: flex-start; margin-top: auto; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin: 0; }
@media (max-width: 700px) { .choices { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0.5rem 0 1.25rem; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 1rem; height: 0.55rem; border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding: 1rem 1.25rem; margin: 0; color: var(--text-2); }
.cta-band { background: linear-gradient(135deg, var(--primary-soft), var(--bg-alt)); }

/* Two columns (hosted) */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Code */
pre.code { background: #0f172a; color: #e2e8f0; padding: 1.1rem 1.25rem; border-radius: 10px; overflow-x: auto; line-height: 1.55; font-size: 0.88rem; }
p code, li code { background: var(--bg-alt); padding: 0.1rem 0.35rem; border-radius: 5px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 650; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
.input { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid #94a3b8; border-radius: 9px; padding: 0.65rem 0.8rem; min-height: 46px; }
.input:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 0; }
.input[aria-invalid='true'] { border-color: var(--danger); }
textarea.input { resize: vertical; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.error { font-size: 0.88rem; color: var(--danger); font-weight: 600; margin: 0; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500 !important; }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex-shrink: 0; }
.alert { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.95rem; }
.alert.error { background: var(--danger-soft); color: var(--text); border: 1px solid var(--danger); font-weight: 500; }
.alert.info { background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.alert a, .feature-icon { color: var(--primary-strong); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tabs a { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text-2); font-weight: 650; background: var(--surface); }
.tabs a[aria-current='page'] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Prose (privacy) */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.footer-grid .brand { margin-bottom: 0.75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0.4rem 2.5rem; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.fine-print { font-size: 0.82rem; color: var(--muted); margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
