/* KONNECT Agency, minimal and calm */

:root {
  --bg: #FAF7F2;
  --text: #111111;
  --muted: #6B6560;
  --line: #E6DFD5;
  --accent: #FF6B3D;
  --accent-hover: #E85A2E;
  --dark: #111111;
  --white: #FFFFFF;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  --section: 72px;
  --radius: 14px;
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --section: 120px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 12px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: rgba(17, 17, 17, 0.06); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 300ms ease;
}
.text-link:hover { opacity: 0.75; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease;
}
.site-header.is-scrolled {
  background: var(--bg);
  color: var(--text);
  border-bottom-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 600; letter-spacing: 0.08em; font-size: 17px; text-decoration: none;
}
.logo-mark { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__link-item { display: none; }
@media (min-width: 768px) { .nav__link-item { display: list-item; list-style: none; } }

/* Sections */
.section { padding: var(--section) 0; scroll-margin-top: calc(var(--header-h) + 32px); }
.section + .section { padding-top: 0; }
.section__title { font-size: 34px; max-width: 18ch; }
@media (min-width: 768px) { .section__title { font-size: 48px; } }
.section__lead { margin-top: 16px; color: var(--muted); max-width: 46ch; }

/* How it works */
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; gap: 40px;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step__num { display: block; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.step__title { font-size: 22px; margin: 12px 0 8px; }
.step p { color: var(--muted); }

/* Calculator */
.calc {
  margin-top: 48px;
  display: grid; gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; gap: 80px; } }

.calc__inputs { display: grid; gap: 36px; align-content: start; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { display: block; font-weight: 600; margin-bottom: 12px; padding: 0; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__hint { color: var(--muted); font-size: 15px; }

.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 6px 4px; border-radius: 9px;
  font-weight: 500; text-align: center; line-height: 1.2; cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}
.segmented label:hover { background: rgba(17, 17, 17, 0.05); }
.segmented input:checked + label { background: var(--text); color: var(--bg); }
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented input:disabled + label { cursor: not-allowed; color: var(--muted); background: transparent; }
.segmented small { font-size: 12px; font-weight: 400; }

.range {
  width: 100%; height: 44px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(to right, var(--text) var(--fill, 0%), var(--line) var(--fill, 0%));
}
.range::-moz-range-track { height: 2px; background: var(--line); }
.range::-moz-range-progress { height: 2px; background: var(--text); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text);
}
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.qty-number { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qty-number input { width: 130px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 300ms ease;
}
input:hover, select:hover { border-color: #CFC6B9; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--text); }

.switch { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; width: 48px; height: 28px; border-radius: 999px;
  background: var(--line); transition: background-color 300ms ease; flex: none;
}
.switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  transition: transform 300ms var(--ease);
}
.switch input:checked + .switch__track { background: var(--text); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); border-color: var(--text); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc__result { display: grid; gap: 24px; align-content: start; }
@media (min-width: 900px) { .calc__result { border-left: 1px solid var(--line); padding-left: 80px; margin-left: -40px; } }
.result__label { color: var(--muted); font-size: 15px; }
.result__big {
  font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .result__big { font-size: 88px; } }
.result__suffix { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.result__mid { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result__nudge {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.result__empty { color: var(--muted); }
.result__fine { color: var(--muted); font-size: 14px; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Mockup form */
.mockup-form { margin-top: 40px; display: grid; gap: 24px; }
.form__estimate {
  font-size: 15px; color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.form__estimate strong { color: var(--text); font-weight: 500; }
.form__grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__field { display: grid; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form__field label, .form__label { font-weight: 500; font-size: 15px; }

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 140px; padding: 24px; text-align: center;
  border: 1px dashed #CFC6B9; border-radius: var(--radius);
  background: var(--white); cursor: pointer;
  transition: border-color 300ms ease, background-color 300ms ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--text); background: #FFFDF9; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone__text strong { font-weight: 600; }

.form__error { color: #B3261E; }
.thanks { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.thanks:focus { outline: none; }
.thanks__title { font-size: 28px; margin-bottom: 8px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0;
  font-weight: 500; font-size: 18px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 400; line-height: 1; color: var(--muted);
  transition: transform 300ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 120px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 56px; } }
.site-footer__inner { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer .wordmark { margin-bottom: 8px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__list a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__list li.muted { min-height: 44px; display: flex; align-items: center; }

/* Floating mobile pill */
.book-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  border: 1px solid rgba(17, 17, 17, 0.12);
  transition: opacity 400ms ease, transform 400ms var(--ease), background-color 300ms ease;
}
.book-pill.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
@media (min-width: 768px) { .book-pill { display: none; } }

/* Scroll reveal */
.js .reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
