/* Home Buddy · prodejní stránka. Značka Wazo: papír, inkoust, terakota. Mobil první. */
:root {
  --ink: #111111;
  --paper: #F7F5EF;
  --paper-2: #EEEAE0;
  --muted: #6d6a63;
  --line: rgba(17, 17, 17, .14);
  --terra: #D17A5B;
  --terra-deep: #9c4f34;
  --navy: #2b3350;
  --ok: #2f7a4f;
  --err: #b3261e;
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }
.muted { color: var(--muted); font-size: .9rem; }
.eyebrow { color: var(--terra-deep); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--ink); color: var(--paper); text-decoration: none; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--body); padding: 1rem 1.4rem; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--terra-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--terra); outline-offset: 3px;
}
.btn--small { padding: .65rem 1rem; font-size: .9rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Navigace */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: .8rem var(--gutter); background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav__brand { font: 800 1.05rem var(--display); text-decoration: none; margin-right: auto; }
.nav__brand .mono { color: var(--terra-deep); margin-left: .2rem; }
.nav__links { display: none; gap: 1.5rem; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 820px) { .nav__links { display: flex; } }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.lede { margin-top: 1.3rem; font-size: 1.12rem; color: #2a2926; max-width: 36rem; }
.hero__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.note { font-size: .9rem; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; color: #3b3a36; }
.hero__visual { margin: 0; position: relative; }
.hero__visual img {
  width: 100%; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 40%, #fff 0%, var(--paper-2) 70%);
  padding: clamp(.5rem, 3vw, 2rem);
}
.hero__visual figcaption { margin-top: .6rem; color: var(--muted); text-align: center; }

/* Pás s problémem */
.band { background: var(--ink); color: var(--paper); }
.band__inner { max-width: 900px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); }
.big { font: 600 clamp(1.3rem, 2.8vw, 1.9rem)/1.4 var(--display); letter-spacing: -.01em; }

/* Sekce */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0; }
.section__head { max-width: 44rem; margin-bottom: 2.2rem; }
.section__head p:not(.eyebrow) { margin-top: .9rem; color: #3b3a36; }
.section--split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .section--split { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.section--small { max-width: 820px; padding-bottom: 1rem; }
.section--small h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.section--small p + p { margin-top: .6rem; }

/* Prohlížeč obrazovek */
.viewer { display: grid; justify-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.viewer__device {
  width: min(100%, 520px); background: #fbfaf6; border: 1px solid var(--line);
  border-radius: 28px; padding: clamp(14px, 4vw, 28px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.45);
}
.viewer__screen {
  background: #e9e7df; border-radius: 10px; padding: clamp(8px, 2.5vw, 16px);
  box-shadow: inset 0 0 0 2px #d8d4c8;
}
.viewer__screen img {
  width: 100%; image-rendering: pixelated; mix-blend-mode: multiply;
  transition: opacity .25s ease;
}
.viewer__screen img.is-swapping { opacity: 0; }
.viewer__ctl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.viewer__ctl button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  font: 600 1.4rem/1 var(--display); cursor: pointer; color: var(--ink);
}
.viewer__ctl button:hover { background: var(--ink); color: var(--paper); }
.viewer__name { text-transform: uppercase; color: var(--muted); }
.viewer__desc { max-width: 30rem; text-align: center; color: #3b3a36; min-height: 3.2em; }

.modules { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .modules { grid-template-columns: repeat(3, 1fr); } }
.modules li { background: var(--paper); padding: 1.2rem 1.3rem; display: grid; gap: .3rem; }
.modules strong { font-family: var(--display); font-weight: 600; }
.modules span { color: #4a4843; font-size: .95rem; }
.modules__soon { background: var(--paper-2) !important; }
.modules__soon strong { color: var(--terra-deep); }

/* Proč e-ink */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.reasons li { border-top: 1px solid var(--line); padding-top: 1rem; color: #3b3a36; }
.reasons strong { color: var(--ink); font-family: var(--display); }

/* Kroky */
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.steps .mono { color: var(--terra-deep); }
.steps strong { font-family: var(--display); font-size: 1.1rem; }
.steps p { color: #4a4843; font-size: .95rem; }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: .6rem; color: var(--muted); }

/* Nabídka a formulář */
.section--offer { padding-bottom: 1rem; }
.offer {
  display: grid; gap: 2rem; background: var(--ink); color: var(--paper);
  border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 5vw, 3.5rem);
}
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.offer .eyebrow { color: var(--terra); }
.price { margin-top: 1.2rem; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.price strong { font: 800 clamp(2.2rem, 5vw, 3rem) var(--display); }
.price span { color: #c9c5bb; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.checks li { padding-left: 1.7rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--terra); font-weight: 700; }
.how { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(247,245,239,.18); color: #dcd8ce; }
.how ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input[type=email], .form input[type=text], .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff;
  border: 1px solid #cfcabd; border-radius: 12px; padding: .8rem .9rem;
}
.form textarea { resize: vertical; }
.req { color: var(--terra-deep); }
.form input[aria-invalid=true] { border-color: var(--err); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 500; font-size: .95rem; margin-bottom: .45rem; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch span {
  display: flex; align-items: center; gap: .55rem; padding: .65rem .7rem; border: 1px solid #cfcabd;
  border-radius: 12px; background: #fff; font-size: .88rem; font-weight: 500; cursor: pointer; min-height: 48px;
}
.swatch i { flex: none; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.swatch input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; font-size: .88rem !important; color: #3b3a36; }
.consent input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { min-height: 1.4em; font-size: .95rem; }
.form__msg.is-ok { color: var(--ok); font-weight: 600; }
.form__msg.is-err { color: var(--err); }
.form.is-done > :not(h3):not(.form__msg) { display: none; }
.footer a { color: inherit; }

/* Kontakt */
.section--contact { padding-bottom: 0; }
.contact { display: grid; gap: 1.6rem; background: var(--paper-2); border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 5vw, 3rem); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; } }
.contact p:not(.eyebrow) { margin-top: .9rem; color: #3b3a36; }
.form--light { background: #fff; }

/* Otázky */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.3rem/1 var(--display); color: var(--terra-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; color: #3b3a36; }

/* Patička */
.footer {
  max-width: var(--max); margin: clamp(3rem, 8vw, 5rem) auto 0; padding: 1.6rem var(--gutter) 2.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; color: var(--muted);
  border-top: 1px solid var(--line); font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
