/* =========================================================
   KAVTOL — brand website styles
   Colours and type are set once here as tokens. Change a
   token and the whole site follows.
   ========================================================= */
:root {
  /* KAVTOL official brand colours (see brand.html) */
  --ink: #141414;          /* KAVTOL Black: logo, headlines, primary buttons */
  --ink-soft: #3a3a38;     /* Graphite: body text */
  --muted: #6d6a64;        /* Stone: secondary text */
  --paper: #f6f1ea;        /* Linen: main background */
  --paper-2: #efe7dc;      /* Sand: alternate sections */
  --card: #fffdfa;         /* Paper White: cards */
  --line: #e2d8ca;         /* Hairline: borders */
  --oak: #b98552;          /* Desk Oak: accent */
  --oak-deep: #8d5f33;     /* Deep Oak: accent text, icons (AA on Linen) */
  --leaf: #2f5d46;         /* Leaf Green: "available" status only */
  --amazon: #ff9900;
  --tbc: #d97706;          /* "to confirm" highlight in draft mode */

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 12px 32px -12px rgba(20, 20, 20, .18);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::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(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 38em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font: 600 .98rem/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-amazon { background: var(--ink); color: #fff; }
.btn-amazon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amazon); }
.btn-light { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Draft banner + "to confirm" markers ---------- */
.draft-bar {
  background: #2b2116; color: #f8e7cf;
  font-size: .86rem; line-height: 1.4;
  padding: .55rem 0;
}
.draft-bar .container { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.draft-bar button {
  background: transparent; color: inherit; border: 1px solid rgba(248, 231, 207, .5);
  border-radius: 999px; padding: .3rem .8rem; font: inherit; cursor: pointer;
}
body.draft:not(.draft-hidden) .tbc {
  outline: 2px dashed var(--tbc);
  outline-offset: 3px;
  border-radius: 4px;
  position: relative;
}
body.draft:not(.draft-hidden) .tbc::after {
  content: attr(data-tbc);
  position: absolute; top: -.75em; right: -.4em;
  background: var(--tbc); color: #fff;
  font: 600 .62rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: .25em .5em; border-radius: 4px; white-space: nowrap; z-index: 2;
  pointer-events: none;
}
body.draft:not(.draft-hidden) .tbc:not([data-tbc])::after { content: "To confirm"; }
body:not(.draft) .draft-only { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand img { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
.nav-cta { padding: .7rem 1.15rem; font-size: .9rem; }
.menu-btn {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
}
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s;
    z-index: -1;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links li a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links li:last-child a { border: 0; margin-top: 1rem; text-align: center; padding: 1rem; color: #fff; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 span { color: var(--oak-deep); }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1254 / 791; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -1.2rem; bottom: -1.2rem;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: center; max-width: 280px;
}
.hero-badge .ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; }
.hero-badge strong { display: block; font-size: .95rem; }
.hero-badge small { color: var(--muted); font-size: .82rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { left: .8rem; bottom: -1.4rem; }
}

/* ---------- Feature strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip ul { list-style: none; margin: 0; padding: 1.3rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip li { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; }
.strip svg { width: 22px; height: 22px; flex: none; color: var(--oak-deep); }
@media (max-width: 760px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Featured product */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-media { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature-media img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; background: #e7efe9; color: var(--leaf); padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; }
.ticks svg { width: 22px; height: 22px; color: var(--leaf); margin-top: 2px; }
.mini-specs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.mini-specs li { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: .5rem .8rem; font-size: .88rem; }
.mini-specs b { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.actions-row { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* Steps */
.dark { background: var(--ink); color: #f2ede6; }
.dark .eyebrow { color: #d9b48a; }
.dark .lead { color: #c9c3ba; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step { background: #1f1f1e; border: 1px solid #2d2d2b; border-radius: var(--radius); padding: 1.8rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 700 2.4rem/1 var(--font-display); font-stretch: 112%; color: #d9b48a; margin-bottom: 1.2rem;
}
.step p { color: #bdb7ad; margin: 0; }
.steps-media { margin-top: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.steps-media img { width: 100%; aspect-ratio: 25 / 11; object-fit: cover; object-position: center 40%; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps-media img { aspect-ratio: 4 / 3; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.value .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 1.4rem; color: var(--oak-deep); }
.value .ico svg { width: 24px; height: 24px; }
.value p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* Range */
.range { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.range-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; min-height: 340px;
}
.range-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.range-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.range-card .body p { color: var(--muted); margin: 0; font-size: .95rem; }
.range-card .more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .92rem; }
.range-card.soon {
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper) 12px 24px);
  border-style: dashed; justify-content: space-between; overflow: visible;
}
.range-card.soon .body { flex: 0; }
.range-card.soon .num { font: 700 4rem/1 var(--font-display); font-stretch: 112%; color: var(--line); padding: 1.5rem 1.5rem 0; }
@media (max-width: 900px) { .range { grid-template-columns: 1fr; } .range-card { min-height: 0; } }

/* About */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow); }
.name-note { border-left: 3px solid var(--oak); padding: .2rem 0 .2rem 1.1rem; margin: 1.8rem 0 0; color: var(--ink-soft); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-media { order: 2; } }

/* Contact */
.contact { background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: center; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--oak-deep); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdb7ad; padding: 4rem 0 2rem; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 22px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.legal { border-top: 1px solid #2d2d2b; margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8e887f; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Product page ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 1.4rem 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding: 1.5rem 0 clamp(3rem, 6vw, 5rem); align-items: start; }
.gallery { position: sticky; top: 92px; }
.gallery-main { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin-top: .8rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--card); cursor: pointer; aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.price-note { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin: 1.5rem 0; font-size: .95rem; color: var(--ink-soft); }
.price-note svg { width: 22px; height: 22px; color: var(--oak-deep); flex: none; }
.pdp .actions-row .btn { flex: 1 1 220px; padding-block: 1.05rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .96rem; }
.specs th, .specs td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; }
.box-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.box-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.box-item b { display: block; font: 700 1.8rem/1 var(--font-display); font-stretch: 112%; margin-bottom: .4rem; }
.box-item span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .box-grid { grid-template-columns: repeat(2, 1fr); } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; 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-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.use { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 1.6rem; }
.use p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } }
.wide-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.wide-img img { width: 100%; }
.mobile-buy {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--card); border-top: 1px solid var(--line); padding: .7rem var(--gutter);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.2);
}
.mobile-buy .btn { width: 100%; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .mobile-buy { display: block; }
  body.pdp-page .site-footer { padding-bottom: 6rem; }
}

/* Reveal on scroll (only when JS has run and the user allows motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
