/* Stackback — site styles
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Components   6. Sections   7. Motion
   Brand colours live in :root only. Change them there. */

/* 1. Fonts (self-hosted, no Google requests) */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* 2. Tokens */
:root {
  color-scheme: light;
  --ink: #13213a;
  --ink-soft: #46546d;
  --paper: #ffffff;
  --fog: #eef1f6;
  --line: #d6dce6;
  --tangerine: #ff8a3d;
  --mint: #4fcb9b;
  --lilac: #b59bff;
  --butter: #ffd25a;
  --go: #157a45; /* WhatsApp-style action green, white text passes AA */
  --go-hover: #0f6338;

  --font-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-hero: clamp(2.6rem, 1rem + 6.4vw, 6.4rem);

  --radius: 10px;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

/* 3. Base */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.35em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 4. Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--fog { background: var(--fog); }
.section__head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.muted { color: var(--ink-soft); font-size: var(--step--1); margin-top: 1.25em; }

/* 5. Components */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-body); font-weight: 700; text-decoration: none;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn--go { background: var(--go); color: #fff; }
.btn--go:hover { background: var(--go-hover); }
.btn--go:active { transform: translateY(1px); }
.btn--small { padding: 0.55em 1.05em; font-size: var(--step--1); }
.btn--large { padding: 0.95em 1.6em; font-size: var(--step-1); }
.btn--block { width: 100%; padding: 0.95em 1.2em; font-size: var(--step-0); }
.btn span { white-space: nowrap; }
@media (max-width: 400px) {
  .btn--large { font-size: var(--step-0); padding: 1em 1.3em; }
}

.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--tangerine); }
.link:hover { text-decoration-color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1; padding-bottom: 3px; }

.checks { display: grid; gap: 0.7em; }
.checks li { display: flex; gap: 0.7em; align-items: flex-start; }
.checks .icon { color: var(--go); margin-top: 0.2em; }

.brick { width: 44px; height: 33px; flex: none; }
.brick--tangerine { fill: var(--tangerine); }
.brick--mint { fill: var(--mint); }
.brick--lilac { fill: var(--lilac); }
.brick--butter { fill: var(--butter); }

/* 6. Sections */

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.header__nav { display: flex; gap: 24px; margin-left: auto; font-size: var(--step--1); }
.header__nav a { text-decoration: none; color: var(--ink-soft); }
.header__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.lang { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .header .btn--small span { display: none; }
  .header .btn--small { padding: 0.6em; }
  .logo__word { font-size: 1.4rem; }
}

/* Hero: the headline is a stack of bricks */
.hero { padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__inner { display: grid; gap: clamp(32px, 5vw, 56px); }
.hero__side { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.hero__side .hero__intro { margin: 0; max-width: 34rem; }
.hero__side .facts { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding-top: 0.15em; font-size: var(--step-hero); line-height: 1; letter-spacing: -0.035em; }
.reg { font-size: 0.32em; vertical-align: top; position: relative; top: 0.35em; margin-left: 0.04em; letter-spacing: 0; }
.stack__slab { position: relative; display: inline-block; padding: 0.14em 0.32em 0.2em; border-radius: 0.16em; white-space: nowrap; }
.stack__slab--lilac { background: var(--lilac); margin-left: 0.5em; }
.stack__slab--mint { background: var(--mint); margin-left: 1.15em; }
.stack__slab--tangerine { background: var(--tangerine); }
/* studs on the top brick */
.stack__slab--lilac::before,
.stack__slab--lilac::after { content: ''; position: absolute; top: -0.13em; width: 0.42em; height: 0.15em; background: var(--lilac); border-radius: 0.06em 0.06em 0 0; }
.stack__slab--lilac::before { left: 0.45em; }
.stack__slab--lilac::after { left: 1.25em; }
.hero__intro { font-size: var(--step-1); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__call { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.hero__call a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5em 1.6em; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--step--1); }
.facts li { display: flex; gap: 0.5em; align-items: center; }
.facts .icon { color: var(--go); }
@media (max-width: 860px) {
  .hero__side { grid-template-columns: 1fr; }
  .hero__side .hero__intro,
  .hero__side .facts { grid-column: 1; grid-row: auto; }
  .facts { display: grid; }
}
@media (max-width: 420px) {
  .stack { font-size: 2.75rem; }
  .stack__slab--mint { margin-left: 0.7em; }
  .stack__slab--lilac { margin-left: 0.3em; }
}

/* Steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: none; }
.step { border-top: 3px solid var(--ink); padding-top: 24px; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.step p { color: var(--ink-soft); margin: 0; }
.steps__more { margin: 40px 0 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* What we buy */
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); }
.buy__item { display: flex; gap: 20px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--line); }
.buy__item .brick { margin-top: 2px; }
.buy__item p { color: var(--ink-soft); margin: 0; }
.buy__item--not { align-self: start; margin-top: 18px; padding: 22px; border: 2px dashed #c3cbd8; border-radius: var(--radius); background: var(--paper); }
.not__icon { display: grid; place-items: center; width: 44px; height: 36px; border-radius: 8px; background: var(--fog); color: var(--ink-soft); flex: none; }
@media (max-width: 760px) {
  .buy { grid-template-columns: 1fr; }
}

/* How we price */
.pricing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); }
.pricing__promise { font-weight: 700; padding-left: 16px; border-left: 4px solid var(--go); }
.factors { margin: 0; display: grid; gap: 14px; }
.factor { padding: 18px 20px 18px 22px; border-radius: var(--radius); background: var(--fog); border-left: 8px solid var(--tangerine); }
.factor--mint { border-left-color: var(--mint); }
.factor--lilac { border-left-color: var(--lilac); }
.factor--butter { border-left-color: var(--butter); }
.factor dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); letter-spacing: -0.01em; }
.factor dd { margin: 4px 0 0; color: var(--ink-soft); }
.boost { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 24px); padding-top: 32px; border-top: 1px solid var(--line); }
.boost .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; }
  .boost .checks { grid-template-columns: 1fr; gap: 0.8em; }
}

/* Photo tips + about */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.panel { background: var(--paper); border-radius: 16px; padding: clamp(24px, 4vw, 44px); }
.panel h2 { font-size: var(--step-2); }
.panel__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: var(--butter); }
.about { padding-top: clamp(0px, 3vw, 44px); }
.about h2 { font-size: var(--step-2); }
.about p { font-size: var(--step-1); line-height: 1.55; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
}

/* FAQ */
.faq h2, .faq__list { max-width: 52rem; }
.faq__list { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: var(--step-1); line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.5em; line-height: 0.8; color: var(--ink-soft); transition: transform 0.2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 24px; max-width: 44rem; color: var(--ink-soft); }

/* Final call to action */
.cta { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: var(--step-3); margin-bottom: 0.3em; }
.cta p { margin: 0; color: #c9d2e3; font-size: var(--step-1); }
.cta__actions { display: grid; gap: 14px; justify-items: start; }
.cta .btn--go { background: #1e9a58; }
.cta .btn--go:hover { background: #22ad63; }
.cta__phone { font-size: var(--step--1) !important; }
.cta__phone a { color: #fff; font-weight: 700; }

/* Footer */
.footer { padding: 48px 0 56px; background: var(--fog); font-size: var(--step--1); color: var(--ink-soft); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer .logo { margin-bottom: 16px; }
.footer p { margin: 0 0 0.5em; }
.footer__legal { font-size: 0.875rem; }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* Privacy page */
.legal__inner { max-width: 46rem; }
.legal h1 { font-size: var(--step-3); margin-top: 24px; }
.legal h2 { font-size: var(--step-2); margin-top: 1.6em; }
.legal__list { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal__list li { margin-bottom: 0.4em; }
.footer a { color: inherit; }

/* Sticky WhatsApp bar on phones */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.25s ease; }
.sticky.is-visible { transform: none; }
@media (min-width: 761px) {
  .sticky { display: none !important; }
}
@media (max-width: 760px) {
  body { padding-bottom: 80px; }
}

/* 7. Motion: one moment, the bricks of the headline stack up on load */
@media (prefers-reduced-motion: no-preference) {
  .js .stack__slab { animation: drop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
  .js .stack__slab:nth-child(3) { animation-delay: 0.05s; }
  .js .stack__slab:nth-child(2) { animation-delay: 0.2s; }
  .js .stack__slab:nth-child(1) { animation-delay: 0.35s; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-0.6em); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
