/* ==========================================================================
   Feltora — feltworks.digital
   Soft textile finance interface
   ========================================================================== */

:root {
  --ink:        #14110D;
  --fabric:     #1B1712;
  --felt:       #221D17;
  --raised:     #2A241C;
  --seam:       #3A3227;
  --linen:      #EDE4D5;
  --muted:      #A2957F;
  --sage:       #8A9A7B;
  --sage-dim:   #6E7C60;
  --thread:     #C7A96B;
  --clay:       #A8705A;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;

  --shadow-soft: 0 18px 40px -24px rgba(0,0,0,.85);
  --shadow-lift: 0 28px 60px -30px rgba(0,0,0,.95);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gut: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--linen);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.20) 0 1px, transparent 1px 4px),
    radial-gradient(1100px 620px at 12% -8%, rgba(138,154,123,.10), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(199,169,107,.08), transparent 60%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--thread); text-decoration: none; }
a:hover { color: var(--linen); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(58px, 8vw, 108px) 0; position: relative; }
.section--felt { background: linear-gradient(180deg, rgba(34,29,23,0) 0%, rgba(34,29,23,.72) 14%, rgba(34,29,23,.72) 86%, rgba(34,29,23,0) 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1rem; font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 9px); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.section-head { max-width: 660px; margin-bottom: clamp(30px, 4vw, 52px); }
.center { text-align: center; margin-inline: auto; }

/* stitched divider */
.stitch {
  height: 1px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg, var(--seam) 0 8px, transparent 8px 16px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .96rem/1 var(--font-body); cursor: pointer; text-align: center;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--sage); color: #14110D; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: #9DAE8C; color: #14110D; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--linen); border-color: var(--seam); }
.btn--ghost:hover { border-color: var(--thread); color: var(--thread); transform: translateY(-2px); }
.btn--thread { background: var(--thread); color: #14110D; }
.btn--thread:hover { background: #D8BC85; color: #14110D; transform: translateY(-2px); }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(20,17,13,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58,50,39,.7);
}
.site-header.is-scrolled { background: rgba(20,17,13,.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--linen); }
.brand:hover { color: var(--linen); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .01em; }
.brand-name span { color: var(--sage); }
.brand-sub { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--linen); font-size: .93rem; padding: .5rem .68rem; border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover, .nav a.is-active { background: rgba(138,154,123,.14); color: var(--sage); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; width: 46px; height: 42px; border-radius: var(--r-sm);
  background: var(--raised); border: 1px solid var(--seam); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--linen); border-radius: 2px; margin-inline: auto; position: relative;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 84px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--sage); }
.hero-note { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); margin-top: 1.4rem; }
.hero-note svg { width: 18px; height: 18px; flex: none; color: var(--sage); }

.hero-media { position: relative; }
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, #2A241C, #191510);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--seam);
}
.frame::after {
  content: ""; position: absolute; inset: 10px; border-radius: 18px; pointer-events: none;
  border: 1px dashed rgba(237,228,213,.22);
}
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; filter: saturate(.82) contrast(1.02) brightness(.9); }
.frame--tall img { aspect-ratio: 3 / 4; }
.frame--wide img { aspect-ratio: 16 / 9; }

.hero-card {
  position: absolute; left: -22px; bottom: -26px; width: min(272px, 74%);
  background: rgba(34,29,23,.96); border: 1px solid var(--seam); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-lift); backdrop-filter: blur(6px);
}
.hero-card-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-card-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--linen); margin: 4px 0 10px; }
.weave { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--fabric); }
.weave i { display: block; height: 100%; }
.weave-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; font-size: .74rem; color: var(--muted); }
.weave-legend span { display: inline-flex; align-items: center; gap: 6px; }
.weave-legend b { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 74px); }
.stat {
  background: rgba(34,29,23,.7); border: 1px solid var(--seam); border-radius: var(--r-md);
  padding: 22px 20px; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: repeating-linear-gradient(180deg, var(--thread) 0 6px, transparent 6px 12px); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--linen); }
.stat span { font-size: .88rem; color: var(--muted); }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(165deg, rgba(42,36,28,.92), rgba(27,23,18,.92));
  border: 1px solid var(--seam); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(138,154,123,.55); box-shadow: var(--shadow-lift); }
.card-img { position: relative; background: linear-gradient(135deg, #2A241C, #191510); }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.8) brightness(.82); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,17,13,.85)); }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .45em; }
.card-body p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.card-list { list-style: none; padding: 0; margin: auto 0 0; font-size: .9rem; color: var(--linen); }
.card-list li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .4em; }
.card-list li::before { content: ""; width: 7px; height: 7px; margin-top: .55em; flex: none; border-radius: 2px; background: var(--sage); transform: rotate(45deg); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; padding: 26px 22px; border-radius: var(--r-md);
  background: rgba(34,29,23,.62); border: 1px dashed rgba(58,50,39,1);
}
.step-num {
  font-family: var(--font-display); font-size: 1rem; color: var(--ink);
  width: 38px; height: 38px; border-radius: 50%; background: var(--thread);
  display: grid; place-items: center; margin-bottom: 14px; font-weight: 700;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.panel {
  background: linear-gradient(165deg, rgba(42,36,28,.95), rgba(25,21,16,.95));
  border: 1px solid var(--seam); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.input-money { position: relative; display: flex; align-items: center; }
.input-money input { padding-right: 52px; }
.input-money::after { content: "Kč"; position: absolute; right: 16px; color: var(--muted); font-size: .88rem; pointer-events: none; }
input, select, textarea {
  width: 100%; padding: .82rem 1rem; font: inherit; font-size: .96rem; color: var(--linen);
  background: rgba(20,17,13,.85); border: 1px solid var(--seam); border-radius: var(--r-sm);
  transition: border-color .18s ease, background-color .18s ease;
}
input:hover, select:hover, textarea:hover { border-color: #4B4133; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); background: rgba(20,17,13,1); }
textarea { min-height: 132px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.result-value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--sage); line-height: 1.1; }
.result-label { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.result-mini { background: rgba(20,17,13,.6); border: 1px solid var(--seam); border-radius: var(--r-sm); padding: 14px 16px; }
.result-mini b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--linen); }
.result-mini span { font-size: .8rem; color: var(--muted); }
.weave--lg { height: 26px; border-radius: var(--r-sm); }
.hint { font-size: .88rem; color: var(--muted); background: rgba(138,154,123,.09); border-left: 3px solid var(--sage); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 0; }
.hint--warn { background: rgba(168,112,90,.12); border-left-color: var(--clay); }

/* ---------- pricing ---------- */
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 34px; }
.toggle {
  display: inline-flex; background: rgba(34,29,23,.9); border: 1px solid var(--seam);
  border-radius: 999px; padding: 5px; gap: 4px;
}
.toggle button {
  border: 0; background: transparent; color: var(--muted); font: 600 .9rem/1 var(--font-body);
  padding: .62rem 1.25rem; border-radius: 999px; cursor: pointer; transition: background-color .18s, color .18s;
}
.toggle button.is-active { background: var(--sage); color: var(--ink); }
.toggle-save { font-size: .78rem; color: var(--thread); align-self: center; margin-left: 10px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: linear-gradient(170deg, rgba(42,36,28,.95), rgba(25,21,16,.95));
  border: 1px solid var(--seam); border-radius: var(--r-lg); padding: 30px 28px 32px;
  display: flex; flex-direction: column; position: relative;
}
.plan--featured { border-color: var(--sage); box-shadow: 0 0 0 1px rgba(138,154,123,.28), var(--shadow-lift); }
.plan-tag {
  position: absolute; top: -13px; left: 28px; background: var(--sage); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.plan h3 { margin-bottom: .2em; }
.plan-for { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; }
.plan-price b { font-family: var(--font-display); font-size: 2.5rem; color: var(--linen); }
.plan-price span { color: var(--muted); font-size: .92rem; }
.plan-bill { font-size: .82rem; color: var(--thread); min-height: 1.4em; margin: 6px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; font-size: .94rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; color: var(--linen); }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: .32em; color: var(--sage); }
.plan li.off { color: #6C6154; }
.plan li.off svg { color: #6C6154; }
.plan .btn { margin-top: auto; }

.price-notes { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note-box { background: rgba(34,29,23,.6); border: 1px dashed var(--seam); border-radius: var(--r-md); padding: 18px 20px; }
.note-box h4 { font-family: var(--font-body); font-size: .92rem; letter-spacing: .04em; margin: 0 0 .35em; color: var(--sage); }
.note-box p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--seam); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .94rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--seam); }
th { background: rgba(34,29,23,.9); font-weight: 600; color: var(--sage); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(34,29,23,.38); }
td strong { color: var(--linen); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: rgba(34,29,23,.72); border: 1px solid var(--seam); border-radius: var(--r-lg);
  padding: 28px 26px; display: flex; flex-direction: column;
}
.quote p { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.6; color: var(--linen); }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--seam); }
.quote-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-person b { display: block; font-size: .93rem; }
.quote-person span { font-size: .82rem; color: var(--muted); }

/* ---------- accordion ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.acc { border: 1px solid var(--seam); border-radius: var(--r-md); margin-bottom: 12px; background: rgba(34,29,23,.6); overflow: hidden; }
.acc-btn {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 20px 56px 20px 22px; color: var(--linen); font: 600 1.02rem/1.5 var(--font-body); position: relative;
}
.acc-btn::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
.acc.is-open .acc-btn::after { transform: translateY(-30%) rotate(-135deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-panel-inner { padding: 0 22px 20px; color: var(--muted); font-size: .96rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3vw, 46px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--seam); }
.info-list li:last-child { border-bottom: 0; }
.info-ico { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: rgba(138,154,123,.14); display: grid; place-items: center; color: var(--sage); }
.info-ico svg { width: 19px; height: 19px; }
.info-list b { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-list span, .info-list a { font-size: 1rem; color: var(--linen); }
.info-list a:hover { color: var(--thread); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--sage); padding: 0; }
.form-msg { margin-top: 16px; padding: 14px 18px; border-radius: var(--r-sm); font-size: .93rem; display: none; }
.form-msg.is-ok { display: block; background: rgba(138,154,123,.16); border: 1px solid var(--sage-dim); color: var(--linen); }
.form-msg.is-err { display: block; background: rgba(168,112,90,.16); border: 1px solid var(--clay); color: var(--linen); }
.field-error { display: block; font-size: .8rem; color: #D79A81; margin-top: .35rem; min-height: 1em; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--clay); }

/* ---------- cta band ---------- */
.band {
  background: linear-gradient(140deg, rgba(138,154,123,.16), rgba(199,169,107,.08));
  border: 1px solid var(--seam); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.band h2 { margin-bottom: .3em; }
.band p { color: var(--muted); margin: 0; max-width: 52ch; }

/* ---------- footer ---------- */
.site-footer { background: rgba(20,17,13,.92); border-top: 1px solid var(--seam); padding: clamp(46px, 6vw, 74px) 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-grid h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55em; }
.footer-grid a, .footer-grid p, .footer-grid address { color: var(--muted); font-size: .93rem; font-style: normal; }
.footer-grid a:hover { color: var(--thread); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--seam); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.disclaimer { margin-top: 22px; font-size: .82rem; color: #7E7364; line-height: 1.65; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  background: rgba(27,23,18,.98); border: 1px solid var(--seam); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow-lift); max-width: 880px; margin-inline: auto;
  display: none; backdrop-filter: blur(10px);
}
.cookie.is-visible { display: block; animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie h3 { font-size: 1.12rem; margin-bottom: .35em; }
.cookie p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: .72rem 1.3rem; font-size: .9rem; }
.cookie-prefs { display: none; margin: 4px 0 16px; border-top: 1px dashed var(--seam); padding-top: 14px; }
.cookie-prefs.is-open { display: block; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--seam); }
.pref:last-child { border-bottom: 0; }
.pref b { display: block; font-size: .93rem; }
.pref span { font-size: .82rem; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; background: var(--seam); border-radius: 999px; transition: background-color .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--linen); transition: transform .2s; }
.switch input:checked + i { background: var(--sage); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .55; }
.switch input:focus-visible + i { outline: 2px solid var(--thread); outline-offset: 2px; }

/* ---------- to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 46px; height: 46px;
  border-radius: 50%; background: var(--raised); border: 1px solid var(--seam); color: var(--linen);
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--thread); color: var(--thread); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- legal pages ---------- */
.page-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(26px, 3vw, 40px); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--thread); }
.legal { max-width: 860px; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 2.2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); font-size: .98rem; }
.legal strong { color: var(--linen); }
.legal-meta { font-size: .86rem; color: var(--muted); border: 1px dashed var(--seam); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 34px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.legal-nav a { font-size: .86rem; padding: .5rem 1rem; border: 1px solid var(--seam); border-radius: 999px; color: var(--muted); }
.legal-nav a:hover { border-color: var(--sage); color: var(--sage); }
.legal-nav a.is-current { background: rgba(138,154,123,.16); border-color: var(--sage); color: var(--linen); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .price-notes { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(20,17,13,.99); border-bottom: 1px solid var(--seam); padding: 14px var(--gut) 22px;
    max-height: calc(100vh - 74px); overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .9rem; border-radius: var(--r-sm); }
  .header-cta { display: none; }
  .hero-grid, .calc, .contact, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-card { left: 12px; bottom: -20px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--4, .steps, .stats { grid-template-columns: 1fr; }
  .field-row, .result-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .toggle { width: 100%; }
  .toggle button { flex: 1; }
}

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