/* Qik WaterTech — shared styles. Mobile-first, matched to the 375px design. */
:root {
  --bg: #000;
  --panel: #111;
  --panel-2: #1a1a1a;
  --line: #2b2b2b;
  --text: #fff;
  --muted: #9a9a9a;
  --red: #d8262c;
  --radius: 8px;
  --pad: 16px;
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; padding: 0 20px;
  background: #fff; color: #000;
  border: 0; border-radius: var(--radius);
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #e6e6e6; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--sm { width: auto; height: 34px; padding: 0 20px; font-size: 13px; border-radius: 6px; }
.link-btn { display: block; text-align: center; font-size: 14px; font-weight: 500; padding: 14px 0; }

/* ---------- Header: fixed, glass (50% frost, depth 1) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),   /* depth: top edge light */
    0 1px 6px rgba(0, 0, 0, .25);              /* depth: soft lift */
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 56px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--red); }
.logo svg { display: block; height: 30px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% top; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.75) 70%, #000 100%);
}
.hero__content { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
.hero h1 { font-size: 28px; line-height: 1.15; font-weight: 700; }
.hero__sub { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.hero__from { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.hero__price { margin: 2px 0 16px; font-size: 24px; font-weight: 700; }
.hero__price small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }

/* ---------- Tabs ---------- */
.features { padding: 0 var(--pad); max-width: var(--maxw); margin: 0 auto; }
.tabs { display: flex; margin: 8px 0 0; padding: 0; background: var(--panel-2); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.tab {
  flex: 1; height: 40px; border: 0; background: transparent; color: #fff;
  font: 600 13px/1 var(--font); cursor: pointer; transition: background .15s ease;
}
.tab[aria-selected="true"] { background: #3a3a3a; }
.tab:not([aria-selected="true"]):hover { background: #242424; }

.panel { margin-top: 24px; display: grid; gap: 16px; }
.panel[hidden] { display: none; }
.feature {
  background: var(--panel); border-radius: 12px;
  min-height: 210px; padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature p { margin: 0 auto; max-width: 34ch; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Image sections ---------- */
.image-section { position: relative; margin-top: 52px; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.image-section--short { min-height: 500px; margin-top: 0; }
.image-section__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-section::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.7) 68%, #000 100%);
}
.image-section__content { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 8px; }
.image-section h2 { font-size: 28px; line-height: 1.15; font-weight: 700; margin-bottom: 12px; }
.image-section p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Newsletter ---------- */
.rainbow { width: 128px; height: 4px; margin: 56px auto 40px; border-radius: 4px;
  background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #af52de, #ff2d55); }
.newsletter { max-width: 420px; margin: 0 auto; padding: 0 var(--pad); text-align: center; }
.newsletter h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.newsletter .field { margin-bottom: 10px; text-align: left; }
.fineprint { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.fineprint a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding: 0 var(--pad) 40px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; }
.site-footer p { margin: 0 0 2px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px auto 0; max-width: 420px; }
.footer-links a { color: #fff; font-size: 13px; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
input, select, textarea {
  width: 100%; background: #000; color: #fff;
  border: 1px solid #3a3a3a; border-radius: 6px;
  padding: 0 14px; height: 44px;
  font: 400 14px/1.2 var(--font);
  transition: border-color .15s ease;
  appearance: none; -webkit-appearance: none;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
select:invalid { color: #7c7c7c; }
select option { color: #fff; background: #111; }
input::placeholder, textarea::placeholder { color: #7c7c7c; }
input:hover, select:hover, textarea:hover { border-color: #555; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #fff; }

.page { padding-top: 56px; }
.form-page { max-width: 640px; margin: 0 auto; padding: 40px var(--pad) 0; }
.form-page h1 { font-size: 28px; line-height: 1.15; font-weight: 700; }
.form-page .lead { margin: 8px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-grid { display: grid; gap: 18px; }
.row-2 { display: grid; gap: 18px; }
.field label, .field legend { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; height: 44px;
  border: 1px solid #3a3a3a; border-radius: 6px; font-size: 14px; background: #000;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip input:hover + span { border-color: #555; }
.chip input:checked + span { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 14px; line-height: 1.5; min-height: 1.4em; }
.form-status.ok { color: #4cd964; }
.form-status.err { color: #ff6b6b; }
.form-submit { margin-top: 8px; }
[hidden] { display: none !important; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .hero { min-height: min(100vh, 760px); }
  .hero__content, .image-section__content { padding-bottom: 56px; }
  .hero h1 { font-size: 48px; }
  .hero__sub { font-size: 18px; }
  .hero__price { font-size: 32px; }
  .hero .btn, .image-section .btn { width: 240px; }
  .hero .link-btn { text-align: left; padding-left: 0; width: 240px; }
  .tabs { max-width: 420px; margin-left: auto; margin-right: auto; }
  .panel { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature { min-height: 260px; }
  .image-section, .image-section--short { min-height: 640px; }
  .image-section h2 { font-size: 40px; }
  .image-section p { font-size: 16px; max-width: 520px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
