/* ==========================================================
   TAVA LAPA — minimālistisks dizains ar dinamiskiem efektiem
   ========================================================== */

@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #f8f4ee;
  --bg-2: #f1ebe1;
  --card: #fffdf9;
  --ink: #2b2520;
  --ink-2: #6f655b;
  --line: #e6dccd;
  --acc: #c4a27a;
  --acc-d: #a8845c;
  --acc-l: #ecdcc6;
  --dark: #211c18;
  --wa: #25d366;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grotesk: "Space Grotesk", "Inter", system-ui, sans-serif;

  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 12px 40px -12px rgba(60, 40, 20, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }

::selection { background: var(--acc); color: #fff; }

/* ---------- Scroll progress + cursor glow ---------- */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--acc), var(--acc-d));
  transform-origin: 0 50%; transform: scaleX(0); z-index: 200;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px;
  background: radial-gradient(circle, rgba(196, 162, 122, .22), transparent 65%);
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.is-stuck {
  padding: 10px 0;
  background: rgba(248, 244, 238, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--acc-d); }
.logo svg { transition: transform .6s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.08); }
.logo__text { display: flex; flex-direction: column; color: var(--ink); font-weight: 600; letter-spacing: .22em; font-size: 15px; line-height: 1.1; }
.logo__text small { font-weight: 400; letter-spacing: .38em; font-size: 8.5px; color: var(--ink-2); text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 8px 14px; font-size: 13.5px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink); border-radius: 99px; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px;
  background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--acc-d); }

.header__cta { display: flex; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; padding: 9px 20px; border-radius: 99px;
  border: 1.5px solid var(--acc); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.pill--ghost { color: var(--acc-d); }
.pill--solid { background: var(--acc); color: #fff; }
.pill:hover { background: var(--acc-d); border-color: var(--acc-d); color: #fff; transform: translateY(-2px); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 99px; border: 1.5px solid var(--acc);
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .35s, transform .35s var(--ease), box-shadow .35s;
  will-change: transform;
}
.btn > span { position: relative; z-index: 2; pointer-events: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1; transform: translateY(101%);
  transition: transform .45s var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--acc); color: #fff; box-shadow: 0 10px 24px -10px rgba(168, 132, 92, .8); }
.btn--primary::before { background: var(--dark); }
.btn--ghost { background: transparent; color: var(--acc-d); }
.btn--ghost::before { background: var(--acc); }
.btn--ghost:hover { color: #fff; }
.btn--wa::before { background: var(--wa); }

/* ---------- Eyebrow / reveal ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--acc-d);
}
.eyebrow--light { color: var(--acc); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(196, 162, 122, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(196, 162, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(196, 162, 122, 0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; z-index: 1; }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #f3ece2; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section__head h2 { font-size: clamp(36px, 5vw, 60px); margin: 18px 0 18px; }
.section__head p:not(.eyebrow) { color: var(--ink-2); max-width: 560px; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 150px 0 90px; display: flex; align-items: center; overflow: hidden; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(42px, 6.2vw, 84px); margin: 22px 0 26px; font-weight: 500; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .1s; }
.hero__title .line:nth-child(2) > span { animation-delay: .22s; }
.hero__title .line:nth-child(3) > span { animation-delay: .34s; }
@keyframes rise { to { transform: none; } }
.hero__title em {
  font-style: italic; background: linear-gradient(100deg, var(--acc-d), #d9b98d 40%, var(--acc-d) 80%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite; padding-right: .1em;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hero__lead { max-width: 520px; color: var(--ink-2); font-size: 18px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 40px 0 0; font-size: 14px; color: var(--ink-2); }
.hero__facts b { color: var(--acc-d); font-family: var(--serif); font-size: 22px; margin-right: 4px; }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.blob--1 { width: 460px; height: 460px; background: #ecd5b4; top: -100px; right: 6%; animation: float1 16s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: #f3e5d0; bottom: -80px; left: -60px; animation: float2 19s ease-in-out infinite; }
.blob--3 { width: 260px; height: 260px; background: #d9c3a3; top: 38%; left: 46%; opacity: .35; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate(-50px, 60px) scale(1.12); } }
@keyframes float2 { 50% { transform: translate(70px, -40px) scale(.92); } }

.hero__visual { position: relative; padding: 20px 0 30px; }
.hero__layer { transition: transform .25s ease-out; }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px;
  background: rgba(255, 253, 249, .9); backdrop-filter: blur(8px); box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: 13px; transition: transform .25s ease-out; z-index: 3;
}
.float small { display: block; color: var(--ink-2); font-size: 11px; line-height: 1.2; }
.float b { font-weight: 600; font-size: 13.5px; }
.float__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--acc-l); color: var(--acc-d); display: grid; place-items: center; font-size: 16px; }
.float--mail { left: -6%; bottom: 6%; animation: bob 6s ease-in-out infinite; }
.float--ok { right: -2%; top: 2%; font-weight: 500; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { margin-top: -12px; } }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3fb26b; box-shadow: 0 0 0 0 rgba(63, 178, 107, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(63, 178, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 178, 107, 0); } }

/* browser mock */
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f5efe6; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e0d3c0; }
.dots i:nth-child(1) { background: #e8a8a0; } .dots i:nth-child(2) { background: #ecd08e; } .dots i:nth-child(3) { background: #a9d3a4; }
.browser__url { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: 12.5px; color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; }
.browser__url svg { flex: none; color: #3fb26b; }
.caret { width: 1.5px; height: 14px; background: var(--acc-d); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mini { padding: 20px; display: grid; gap: 18px; min-height: 330px; background: linear-gradient(180deg, #fffdf9, #f8f3ea); }
.mini__nav { display: flex; align-items: center; gap: 12px; }
.mini__nav b { font-family: var(--serif); font-size: 18px; margin-right: auto; }
.mini__nav i { width: 34px; height: 6px; border-radius: 6px; background: var(--line); }
.mini__hero { padding: 26px 18px; border-radius: 14px; background: linear-gradient(135deg, #ecd9bd, #d9bc92); display: grid; gap: 10px; position: relative; overflow: hidden; }
.mini__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.mini__h { height: 14px; width: 72%; border-radius: 8px; background: rgba(255, 255, 255, .85); }
.mini__h--s { width: 48%; height: 9px; opacity: .7; }
.mini__btn { width: 92px; height: 28px; border-radius: 99px; background: var(--dark); margin-top: 8px; }
.mini__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini__cards i { height: 74px; border-radius: 12px; background: #fff; border: 1px solid var(--line); animation: cardfloat 4s ease-in-out infinite; }
.mini__cards i:nth-child(2) { animation-delay: -1.3s; } .mini__cards i:nth-child(3) { animation-delay: -2.6s; }
@keyframes cardfloat { 50% { transform: translateY(-6px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--acc); border-radius: 20px; z-index: 2; opacity: .8; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--acc-d); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 18px 0; position: relative; z-index: 1; }
.marquee__track { display: flex; width: max-content; gap: 30px; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--ink-2); }
.marquee__track i { color: var(--acc); font-style: normal; font-size: 16px; align-self: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; padding: 34px 28px 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: box-shadow .4s, border-color .4s, opacity .9s var(--ease) var(--d, 0s), transform .25s ease-out;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 162, 122, .22), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--acc-l); }
.card:hover::before { opacity: 1; }
.card__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--acc-l); color: var(--acc-d); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s, color .3s; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--acc); color: #fff; }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 28px; margin-top: 6px; }
.card p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.card p b { color: var(--ink); font-weight: 600; }
.card__tag { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-d); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--acc-l); background: #fbf6ee; }

/* ---------- Demo configurator ---------- */
.demo { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.demo__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 24px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.field { display: grid; gap: 10px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(196, 162, 122, .2); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 0; position: relative;
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .12);
  transition: transform .35s var(--ease), box-shadow .3s;
}
.swatch:hover { transform: scale(1.12) rotate(12deg); }
.swatch.is-active { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .12), 0 0 0 3px var(--card), 0 0 0 5px var(--acc-d); }
.seg { display: flex; padding: 4px; background: var(--bg-2); border-radius: 99px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(60, 40, 20, .12); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 46px; height: 26px; border-radius: 99px; background: #d9cfbf; position: relative; transition: background .3s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.switch input:checked + i { background: var(--acc); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 4px rgba(196, 162, 122, .3); }

.demo__out { display: grid; gap: 12px; padding-top: 20px; border-top: 1px dashed var(--line); }
.demo__out small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.demo__out b { font-size: 15px; font-weight: 600; word-break: break-all; color: var(--acc-d); }

/* demo tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); font-weight: 500; font-size: 14.5px; transition: all .35s var(--ease); }
.tabs button i { font-style: normal; filter: grayscale(.4); }
.tabs button:hover { border-color: var(--acc); transform: translateY(-2px); }
.tabs button.is-active { background: var(--dark); border-color: var(--dark); color: #fff; box-shadow: 0 10px 24px -10px rgba(33, 28, 24, .6); }
.demo__note { text-align: center; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); }

/* the mock website — fully driven by CSS variables */
.site {
  --s-bg: #f8f4ee; --s-card: #fffdf9; --s-ink: #2b2520; --s-mut: #7a6f63; --s-acc: #c4a27a; --s-acc-ink: #fff; --s-line: #e6dccd;
  --s-font: var(--sans); --s-body: var(--sans); --s-hw: 600;
  --s-r: 20px; --s-rb: 99px; --s-bw: 1px; --s-bc: var(--s-line); --s-sh: 0 12px 30px -16px rgba(60, 40, 20, .35);
  background: var(--s-bg); color: var(--s-ink); font-family: var(--s-body);
  padding: clamp(18px, 3vw, 34px); display: grid; gap: 22px; min-height: 600px; align-content: start;
  transition: background .6s var(--ease), color .6s var(--ease);
}
.site[data-theme="sea"] { --s-bg: #eaf3f4; --s-card: #f8fcfc; --s-ink: #17323a; --s-mut: #587078; --s-acc: #3f7d8c; --s-line: #cfe2e5; }
.site[data-theme="forest"] { --s-bg: #eef3ec; --s-card: #f9fcf7; --s-ink: #1f3325; --s-mut: #5d7262; --s-acc: #4f7a5a; --s-line: #d3e0d1; }
.site[data-theme="rose"] { --s-bg: #f8eeee; --s-card: #fffafa; --s-ink: #3a2425; --s-mut: #84686a; --s-acc: #b86b6b; --s-line: #eed7d7; }
.site[data-theme="graphite"] { --s-bg: #202023; --s-card: #2a2a2e; --s-ink: #f3efe8; --s-mut: #a29d95; --s-acc: #e0b36a; --s-acc-ink: #1c1c1e; --s-line: #3a3a3f; }
.site[data-font="serif"] { --s-font: var(--serif); --s-hw: 500; }
.site[data-font="sans"] { --s-font: var(--sans); --s-hw: 600; }
.site[data-font="grotesk"] { --s-font: var(--grotesk); --s-body: var(--grotesk); --s-hw: 600; }

/* dizaina stili */
.site[data-style="classic"] { --s-r: 3px; --s-rb: 2px; --s-sh: none; }
.site[data-style="bold"] { --s-r: 0px; --s-rb: 0px; --s-bw: 2px; --s-bc: var(--s-ink); --s-sh: 6px 6px 0 var(--s-ink); }

/* tikai aktīvā parauga saturs */
.tpl { display: none; gap: 18px; }
.site[data-tpl="resto"] .tpl--resto, .site[data-tpl="shop"] .tpl--shop, .site[data-tpl="pro"] .tpl--pro { display: grid; animation: tplin .6s var(--ease); }
@keyframes tplin { from { opacity: 0; transform: translateY(14px); } }
.nl { display: none; }
.site[data-tpl="resto"] .nl--resto, .site[data-tpl="shop"] .nl--shop, .site[data-tpl="pro"] .nl--pro { display: inline; }

.site__nav { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--s-mut); padding-bottom: 14px; border-bottom: var(--s-bw) solid var(--s-bc); }
.site__nav b { margin-right: auto; font-family: var(--s-font); font-weight: var(--s-hw); font-size: 23px; color: var(--s-ink); letter-spacing: -.01em; }
.site[data-style="classic"] .site__nav b { letter-spacing: .1em; text-transform: uppercase; font-size: 19px; }
.site[data-style="classic"] .site__nav { justify-content: center; flex-direction: column; gap: 10px; }
.site[data-style="classic"] .site__nav b { margin: 0; }
.site[data-style="classic"] .site__nav .nl { display: none !important; }
.site[data-style="classic"][data-tpl="resto"] .nl--resto, .site[data-style="classic"][data-tpl="shop"] .nl--shop, .site[data-style="classic"][data-tpl="pro"] .nl--pro { display: inline !important; }
.site[data-style="classic"] .site__nav { flex-flow: row wrap; justify-content: center; }
.site[data-style="classic"] .site__nav b { flex: 0 0 100%; text-align: center; }
.site[data-style="bold"] .site__nav { border-bottom-width: 2px; }
.site[data-style="bold"] .site__nav b { text-transform: uppercase; letter-spacing: -.03em; }

.sx-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center;
  padding: clamp(26px, 4.4vw, 46px); border-radius: var(--s-r); border: var(--s-bw) solid var(--s-bc); box-shadow: var(--s-sh);
  background: linear-gradient(135deg, color-mix(in srgb, var(--s-acc) 24%, var(--s-bg)), color-mix(in srgb, var(--s-acc) 7%, var(--s-bg)));
  transition: background .6s var(--ease), border-radius .4s var(--ease), box-shadow .4s;
}
.sx-hero__t { display: grid; gap: 14px; justify-items: start; position: relative; z-index: 1; }
.sx-hero small { text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: var(--s-acc); font-weight: 600; }
.sx-hero h4 { font-family: var(--s-font); font-weight: var(--s-hw); font-size: clamp(30px, 4.2vw, 48px); line-height: 1.04; letter-spacing: -.015em; }
.sx-hero h4 em { font-style: italic; color: var(--s-acc); }
.sx-hero p { color: var(--s-mut); max-width: 32em; font-size: 15px; }
.sx-hero .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sx-hero button { border: var(--s-bw) solid var(--s-acc); padding: 12px 24px; border-radius: var(--s-rb); font-weight: 600; letter-spacing: .06em; font-size: 12.5px; text-transform: uppercase; transition: transform .3s var(--ease), border-radius .4s var(--ease), background .4s, color .4s; }
.sx-hero .b1 { background: var(--s-acc); color: var(--s-acc-ink); }
.sx-hero .b2 { background: transparent; color: var(--s-ink); border-color: var(--s-bc); }
.sx-hero button:hover { transform: translateY(-3px); }
.sx-hero__a { justify-self: center; width: min(100%, 230px); color: var(--s-acc); transition: transform .6s var(--ease); }
.sx-hero__a svg { width: 100%; height: auto; overflow: visible; }

/* SVG fill utilītas */
.f-card { fill: var(--s-card); stroke: var(--s-line); stroke-width: 1.5; }
.f-line { fill: none; stroke: var(--s-line); stroke-width: 1.5; }
.f-acc { fill: var(--s-acc); }
.f-acc.o3 { opacity: .3; }
.f-acc-s { fill: none; stroke: var(--s-acc); }
.sw { stroke-width: 1.2; }
.sw2 { stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.f-line.sw { stroke-width: 1; }

.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.it { background: var(--s-card); border: var(--s-bw) solid var(--s-bc); border-radius: var(--s-r); padding: 20px 18px; display: grid; gap: 4px; align-content: start; transition: transform .4s var(--ease), border-radius .4s var(--ease), background .6s, border-color .6s, box-shadow .4s; }
.it i { font-style: normal; font-family: var(--s-font); color: var(--s-acc); font-size: 22px; }
.it b { font-family: var(--s-font); font-weight: var(--s-hw); font-size: 19px; }
.it span { font-size: 13.5px; color: var(--s-mut); }
.it u { text-decoration: none; margin-top: 8px; font-weight: 600; color: var(--s-acc); font-family: var(--s-font); font-size: 18px; }
.pa { aspect-ratio: 1; border-radius: calc(var(--s-r) * .6); display: grid; place-items: center; margin-bottom: 10px; background: color-mix(in srgb, var(--s-acc) 18%, var(--s-bg)); }
.pa--2 { background: color-mix(in srgb, var(--s-acc) 30%, var(--s-bg)); } .pa--3 { background: color-mix(in srgb, var(--s-acc) 10%, var(--s-bg)); }
.pa svg { width: 54%; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.stats div { padding: 16px 8px; border-radius: var(--s-r); border: var(--s-bw) dashed var(--s-bc); }
.stats b { display: block; font-family: var(--s-font); font-weight: var(--s-hw); font-size: clamp(26px, 3.4vw, 38px); color: var(--s-acc); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--s-mut); }

.site__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: var(--s-bw) solid var(--s-bc); font-size: 13px; color: var(--s-mut); }
.site__foot u { text-decoration: none; color: var(--s-acc); font-weight: 600; }

/* — KLASISKS — centrēts, smalks, ar rāmīti */
.site[data-style="classic"] .sx-hero { grid-template-columns: 1fr; text-align: center; background: var(--s-card); outline: 1px solid var(--s-line); outline-offset: -10px; padding: 40px 30px; }
.site[data-style="classic"] .sx-hero__t { justify-items: center; }
.site[data-style="classic"] .sx-hero__a { order: -1; width: 110px; }
.site[data-style="classic"] .sx-hero h4 { font-weight: 500; }
.site[data-style="classic"] .sx-hero small { letter-spacing: .34em; }
.site[data-style="classic"] .sx-hero .row { justify-content: center; }
.site[data-style="classic"] .sx-hero button { letter-spacing: .16em; }
.site[data-style="classic"] .sx-hero .b2 { border-color: var(--s-acc); }
.site[data-style="classic"] .it { background: transparent; border-width: 0; border-top: 1px solid var(--s-acc); padding: 16px 4px 4px; text-align: center; }
.site[data-style="classic"] .stats div { border-style: solid; border-width: 0 0 1px; }
/* — MŪSDIENĪGS — mīksts, ar ēnām */
.site[data-style="modern"] .it { box-shadow: var(--s-sh); }
.site[data-style="modern"] .it:hover { transform: translateY(-6px); }
/* — DROSMĪGS — ass, kontrastains */
.site[data-style="bold"] .sx-hero { background: var(--s-acc); color: var(--s-acc-ink); }
.site[data-style="bold"] .sx-hero small, .site[data-style="bold"] .sx-hero p { color: var(--s-acc-ink); opacity: .85; }
.site[data-style="bold"] .sx-hero h4 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.1; }
.site[data-style="bold"] .sx-hero h4 em { font-style: normal; background: var(--s-bg); color: var(--s-ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.site[data-style="bold"] .sx-hero .b1 { background: var(--s-ink); color: var(--s-bg); border-color: var(--s-ink); }
.site[data-style="bold"] .sx-hero .b2 { background: var(--s-bg); color: var(--s-ink); border-color: var(--s-ink); }
.site[data-style="bold"] .sx-hero__a { color: var(--s-acc-ink); }
.site[data-style="bold"] .sx-hero__a .f-card { fill: var(--s-bg); stroke: var(--s-ink); stroke-width: 3; }
.site[data-style="bold"] .sx-hero__a .f-acc { fill: var(--s-ink); }
.site[data-style="bold"] .sx-hero__a .f-line { stroke: var(--s-ink); stroke-width: 2; }
.site[data-style="bold"] .sx-hero__a .f-acc-s { stroke: var(--s-ink); }
.site[data-style="bold"] .it { box-shadow: 4px 4px 0 var(--s-ink); }
.site[data-style="bold"] .it:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--s-ink); }
.site[data-style="bold"] .stats div { border-style: solid; box-shadow: 4px 4px 0 var(--s-ink); }
.site[data-style="bold"] .it b, .site[data-style="bold"] .stats b { letter-spacing: -.03em; }

/* animācijas */
.site.anim .sx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 5s ease-in-out infinite; pointer-events: none; }
.site.anim .sx-hero__a { animation: cardfloat 5s ease-in-out infinite; }
.site.anim .it { animation: cardfloat 5s ease-in-out infinite; }
.site.anim .it:nth-child(2) { animation-delay: -1.6s; } .site.anim .it:nth-child(3) { animation-delay: -3.2s; }
.site.anim .it:hover { animation-play-state: paused; }
.site.anim .sx-hero .b1 { animation: nudge 3.2s ease-in-out infinite; }
@keyframes nudge { 0%, 85%, 100% { transform: none; } 90% { transform: translateX(5px); } 95% { transform: translateX(-3px); } }
.site.swap .sx-hero, .site.swap .site__nav b { animation: swapin .6s var(--ease); }
@keyframes swapin { from { opacity: .3; transform: scale(.985); filter: blur(3px); } }

/* ---------- FX intro ---------- */
.fx-points { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fx-points li { padding: 18px 20px; border-left: 2px solid var(--acc); background: linear-gradient(90deg, rgba(196, 162, 122, .1), transparent); display: grid; gap: 4px; }
.fx-points b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.fx-points span { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.fx-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; padding: 26px 34px; border-radius: var(--r); background: var(--dark); color: #f3ece2; }
.fx-cta p { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; max-width: 620px; }

/* ---------- Fona bildes ---------- */
.has-bg { overflow: hidden; isolation: isolate; }
.has-bg > .container { position: relative; z-index: 2; }
.bgimg { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; z-index: -2; will-change: transform; }
.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.has-bg--light::after { background: linear-gradient(90deg, rgba(241, 235, 225, .5), rgba(241, 235, 225, .93) 28%, rgba(241, 235, 225, .93) 72%, rgba(241, 235, 225, .5)); }
.has-bg--dark::after { background: linear-gradient(100deg, rgba(33, 28, 24, .96) 20%, rgba(33, 28, 24, .8)); }
.has-bg--dark .bgimg { filter: saturate(.8); }

/* ---------- FX gallery ---------- */
.fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fx { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 26px; transition: box-shadow .4s, transform .9s var(--ease) var(--d, 0s), opacity .9s var(--ease) var(--d, 0s); }
.fx:hover { box-shadow: var(--shadow); }
.fx__stage { height: 200px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; overflow: hidden; position: relative; margin-bottom: 22px; }
.fx h4 { font-size: 26px; padding: 0 12px; margin-bottom: 4px; }
.fx p { padding: 0 12px; color: var(--ink-2); font-size: 15px; }

.magnet-zone { width: 100%; height: 100%; display: grid; place-items: center; }
.tilt-demo { width: 170px; height: 130px; border-radius: 18px; background: linear-gradient(135deg, var(--acc), var(--acc-d)); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: 0 20px 40px -14px rgba(168, 132, 92, .8); position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out; }
.tilt-demo span { font-family: var(--serif); font-size: 50px; line-height: 1; }
.tilt-demo small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.tilt-demo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(200px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 60%); pointer-events: none; }

.scramble { font-family: var(--serif); font-size: 38px; font-weight: 500; letter-spacing: .02em; cursor: default; outline: none; min-width: 7.5em; text-align: center; color: var(--ink); }
.scramble .ch { color: var(--acc-d); }

.spin-border { padding: 2px; border-radius: 20px; background: conic-gradient(from var(--a), var(--acc), #f4e6d0, var(--acc-d), #f4e6d0, var(--acc)); animation: spin 4s linear infinite; }
.spin-border > div { background: var(--card); border-radius: 18px; padding: 28px 34px; text-align: center; }
.spin-border b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.spin-border small { color: var(--ink-2); font-size: 13px; }
@keyframes spin { to { --a: 360deg; } }

.ripple .rp { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); animation: rp .8s ease-out forwards; pointer-events: none; z-index: 3; }
@keyframes rp { to { transform: scale(1); opacity: 0; } }

.reveal-light { width: 82%; height: 78%; border-radius: 16px; background: #211c18; position: relative; display: grid; place-items: center; cursor: none; overflow: hidden; --mx: 50%; --my: 50%; }
.reveal-light span { font-family: var(--serif); font-size: 36px; text-align: center; line-height: 1.05; color: #e8c895; -webkit-mask-image: radial-gradient(90px circle at var(--mx) var(--my), #000 30%, transparent 100%); mask-image: radial-gradient(90px circle at var(--mx) var(--my), #000 30%, transparent 100%); }
.reveal-light::after { content: "Aiziet uz šejieni"; position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6d6154; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 44px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: var(--line); }
.steps::after { background: linear-gradient(var(--acc), var(--acc-d)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: flex; gap: 28px; align-items: flex-start; }
.step__n { position: relative; z-index: 1; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: var(--ink-2); transition: background .5s, color .5s, border-color .5s, transform .5s var(--ease); }
.step.is-in .step__n { background: var(--acc); border-color: var(--acc); color: #fff; transform: scale(1.06); }
.step h3 { font-size: 30px; margin: 8px 0 8px; }
.step p { color: var(--ink-2); max-width: 520px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: stretch; }
.price { position: relative; padding: clamp(30px, 4vw, 48px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; box-shadow: var(--shadow); transition: transform .25s ease-out, opacity .9s var(--ease) var(--d, 0s); }
.price::before { content: ""; position: absolute; inset: -1px; border-radius: 29px; padding: 1.5px; background: conic-gradient(from var(--a), var(--acc), transparent 30%, var(--acc-d) 55%, transparent 80%, var(--acc)); animation: spin 7s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.price--alt { background: transparent; box-shadow: none; }
.price--alt::before { display: none; }
.price--alt h3 { font-size: clamp(30px, 3.4vw, 42px); }
.price--alt p { color: var(--ink-2); }
.price__badge { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--acc-d); padding: 7px 14px; border-radius: 99px; background: var(--acc-l); }
.price__amount { display: flex; align-items: flex-end; gap: 10px; line-height: 1; }
.price__amount > small { font-size: 16px; color: var(--ink-2); padding-bottom: 18px; }
.price__num { font-family: var(--serif); font-size: clamp(84px, 11vw, 132px); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.price__cur { font-family: var(--serif); font-size: 44px; color: var(--acc-d); padding-bottom: 14px; display: flex; flex-direction: column; line-height: 1; }
.price__cur small { font-family: var(--sans); font-size: 12px; color: var(--ink-2); margin-top: 8px; letter-spacing: .04em; }
.ticks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--acc-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.500 10.500l3 3 6-6.500' fill='none' stroke='%23a8845c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.contact h2 { font-size: clamp(40px, 5.4vw, 70px); margin: 18px 0 22px; color: #fbf5ea; }
.contact__text > p:not(.eyebrow) { color: #bdb2a3; max-width: 460px; }
.contact__links { display: grid; gap: 14px; margin-top: 36px; max-width: 420px; }
.contact__row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; border: 1px solid #3a322b; background: rgba(255, 255, 255, .03); transition: transform .4s var(--ease), border-color .3s, background .3s; }
.contact__row:hover { transform: translateX(8px); border-color: var(--acc); background: rgba(196, 162, 122, .08); }
.contact__row small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #968b7c; line-height: 1.3; }
.contact__row b { font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.contact__ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(196, 162, 122, .16); color: var(--acc); display: grid; place-items: center; font-size: 19px; flex: none; }
.contact__ic--wa { background: rgba(37, 211, 102, .16); color: var(--wa); }

.form { background: #2a241e; border: 1px solid #3a322b; border-radius: 28px; padding: clamp(26px, 4vw, 42px); display: grid; gap: 18px; }
.form h3 { font-size: 32px; color: #fbf5ea; }
.field--dark > span { color: #a89d8d; }
.field--dark input, .field--dark select, .field--dark textarea { background: #1d1915; border-color: #3d352d; color: #f3ece2; }
.field--dark textarea { resize: vertical; min-height: 96px; }
.field--dark input::placeholder, .field--dark textarea::placeholder { color: #6f655a; }
.form__note { font-size: 12.5px; color: #8f8575; text-align: center; }
.form .btn { width: 100%; }

/* ---------- Footer / FAB ---------- */
.footer { background: #181410; color: #8f8575; padding: 28px 0; font-size: 13.5px; position: relative; z-index: 1; }
.footer__inner { display: flex; justify-content: space-between; gap: 14px 30px; flex-wrap: wrap; align-items: center; }
.to-top { color: var(--acc); transition: transform .3s; }
.to-top:hover { transform: translateY(-3px); }
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .35s var(--ease); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: fab 2.6s ease-out infinite; }
.wa-fab:hover { transform: scale(1.1) rotate(-8deg); }
@keyframes fab { to { transform: scale(1.7); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero__visual { max-width: 560px; }
  .demo { grid-template-columns: 1fr; }
  .demo__panel { position: static; }
  .fx-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-points { grid-template-columns: repeat(2, 1fr); }
  .pricing, .contact { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 92px 6% 30px; flex-direction: column; gap: 4px;
    background: rgba(248, 244, 238, .97); backdrop-filter: blur(16px); box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
    transform: translateY(-110%); transition: transform .5s var(--ease); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 17px; padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .header__inner { position: relative; z-index: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .fx-grid { grid-template-columns: 1fr; }
  .float--mail { left: 0; bottom: -2%; } .float--ok { right: 0; }
  .items, .stats { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero__a { width: 150px; order: -1; }
  .site__nav .nl { display: none !important; }
  .fx-points { grid-template-columns: 1fr; }
  .price__amount { flex-wrap: wrap; }
  .step { gap: 18px; }
  .step h3 { font-size: 26px; }
  .wa-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}
