/* ==========================================================
   Kaizen Web — landing page
   ========================================================== */

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --cream: #fffefa;
  --sand: #f1eee7;
  --sand-2: #eae5db;
  --ink: #20201f;
  --text: #62605b;
  --muted: #686762;
  --line: #e2ddd4;

  --red: #b91f36;
  --red-dark: #96182b;
  --red-light: #e17b88; /* emphasis on dark */

  --dark: #252522;
  --dark-2: #282825;
  --dark-3: #201f1d;
  --on-dark: #f9f6ef;

  --bonsai: #426d4c;
  --koi: #bd6b3c;
  --koi-ink: #9c4f2d;
  --katana: #b91f36;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Liberation Serif", "Times New Roman", Times, serif;
  /* type scale: xs for fine print and tags, sm for UI and labels, base for reading, lg for leads */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-lg: 17px;

  --header-h: 84px;
  --section-pad: clamp(72px, 8vw, 112px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--red); }
p { margin: 0; }

h1 { font-size: clamp(2.6rem, 5.4vw, 65px); line-height: 1.07; letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 49px); line-height: 1.07; letter-spacing: -.055em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 40px); }

.lead { font-size: var(--fs-lg); line-height: 1.8; color: var(--text); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 700 var(--fs-sm)/1.65 var(--font);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .link-arrow:focus-visible, .tier-btn:focus-visible { outline: 3px solid rgba(185, 31, 54, .3); outline-offset: 2px; }
.btn > span[aria-hidden] { font-weight: 400; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-light { background: var(--paper); color: #242421; }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 0; padding: 11.5px 17px; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #b8b2a9;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.65;
  color: #333;
  text-decoration: none;
}
.link-arrow span { font-weight: 400; color: var(--red); transition: transform .2s; }
.link-arrow:hover span { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--dark) url("../assets/img/seigaiha.svg") 0 0 / 96px 48px repeat;
  box-shadow: 0 6px 18px rgba(20, 18, 16, .18);
}
/* red haze + glowing rule along the bottom edge */
.site-header::before,
.site-header::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.site-header::before { bottom: 0; height: 35%; background: linear-gradient(transparent, rgba(225, 50, 80, .08)); }
.site-header::after {
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 70, 96, .4), #e8566f 15%, #f59aaa 50%, #e8566f 85%, rgba(225, 70, 96, .4));
  box-shadow: 0 0 4px rgba(235, 60, 90, .45), 0 0 10px rgba(225, 40, 72, .2);
}
.header-art { display: none; }
.header-inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  position: relative;
  padding: 11.5px 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.65;
  color: #d9d5cc;
  text-decoration: none;
  transition: color .2s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a:not(.btn):hover,
.main-nav a.active { color: var(--on-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--on-dark); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 86px);
  background:
    radial-gradient(ellipse 12% 8% at 86% 45%, rgba(214, 206, 192, .22), transparent),
    radial-gradient(ellipse 13% 13% at 5% 90%, rgba(213, 208, 199, .22), transparent),
    linear-gradient(112deg, #f7f5f0 0%, #f8f6f1 48%, #efebe3 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 65px;
  align-items: center;
  padding-bottom: 78px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; }
.hero-copy p strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero h1 { max-width: 690px; }
.hero .lead { max-width: 540px; padding-top: 7px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 9px; }

.hero-visual { position: relative; padding-top: 2px; }
.hero-rings {
  position: absolute;
  top: 2px; right: 0;
  width: min(360px, 67%);
  aspect-ratio: 1;
  border: 1px solid #c7bfb2;
  border-radius: 50%;
  opacity: .65;
}
.hero-rings::after { content: ""; position: absolute; inset: 24px; border: 1px solid #d8d0c4; border-radius: 50%; }
.hero-devices { position: relative; width: 104%; max-width: none; margin: 25px 0 26px -2%; height: auto; }
.hero-banner { position: absolute; top: 20.4%; left: 78.9%; width: 35.8%; height: auto; }
.hero-price { position: absolute; top: 4%; left: 1%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: clamp(104px, 10vw, 132px); aspect-ratio: 1; margin: 0; border-radius: 50%; background: var(--red); box-shadow: 0 12px 26px rgba(150, 24, 43, .28); color: #fff; font-size: var(--fs-sm); line-height: 1.2; text-align: center; }
.hero-price strong { font: 700 clamp(1.9rem, 3vw, 40px)/1 var(--font-head); letter-spacing: -.04em; }

.hero-strip { border-top: 1px solid var(--line); }
.hero-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  min-height: 65px;
  padding-block: 20px;
  font-size: var(--fs-xs);
  line-height: 1.65;
  text-transform: uppercase;
}
.hero-strip p { letter-spacing: .13em; color: #8a857c; }
.pkg-link { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s; }
.pkg-link:hover { color: var(--red); }
.help-list .pkg-link, .offer-summary .pkg-link { text-decoration-color: var(--red-light); }
.help-list .pkg-link:hover, .offer-summary .pkg-link:hover { color: var(--red-light); }
.tier { scroll-margin-top: 16px; }
.tier-names { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; font-weight: 700; letter-spacing: .18em; color: #4e4b45; }
.tier-names li { display: flex; align-items: center; }
.tier-names li + li::before { content: ""; width: 4px; height: 4px; margin: 0 22px; border-radius: 50%; background: var(--red); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-pad) 0; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 19px; max-width: 690px; margin: 0 auto; text-align: center; }
.section-head > p { max-width: 620px; font-size: var(--fs-base); line-height: 1.8; color: var(--muted); }
.section-head-left { align-items: flex-start; margin: 0; text-align: left; }

.section-dark { background: var(--dark); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark h2 em { color: var(--red-light); }
.section-waves { background: var(--dark) url("../assets/img/seigaiha.svg") 0 0 / 96px 48px repeat; }

/* 01 Kako vam pomažemo */
.help-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 95px; align-items: start; }
.help-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.help-copy h2 { max-width: 400px; margin-bottom: 4px; font-size: clamp(2.1rem, 4.4vw, 53px); letter-spacing: -.045em; }
.help-art { width: 100%; max-width: 520px; height: auto; margin-top: 48px; margin-left: -24px; pointer-events: none; user-select: none; }
.help-list { margin: 0; padding: 0; list-style: none; }
.help-list li { position: relative; padding: 23px 37px 28px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.help-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.help-list .help-step { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--red-light); }
.help-list h3 { margin-bottom: 5px; font-size: var(--fs-lg); font-weight: 800; line-height: 1.37; }
.help-list p { max-width: 450px; font-size: var(--fs-base); line-height: 1.8; color: #b8b6b0; }

/* 02 Zašto Kaizen */
.why { background: var(--sand); padding-block: 47px; }
.why-banner { position: relative; overflow: hidden; }
.why-banner img { width: 100%; height: auto; aspect-ratio: 1166 / 656; object-fit: cover; }
.why-copy { position: absolute; top: 11.9%; left: 6.1%; max-width: 540px; }
.why-copy h2 { font-size: clamp(2.1rem, 4.4vw, 53px); letter-spacing: -.045em; color: var(--on-dark); }
.why-copy h2 em { display: block; color: var(--red-light); }
.why-copy p { max-width: 400px; margin-top: 18px; font-size: var(--fs-lg); line-height: 1.8; color: #fff; }
.why-copy p strong { text-decoration: underline; text-decoration-color: var(--red-light); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* 03 Mogućnosti */
.features { background: var(--cream); }
.features.section-waves { background: var(--cream) url("../assets/img/seigaiha-cream.svg") 0 0 / 96px 48px repeat; }
.features .section-head { gap: 20px; margin-bottom: 60px; }
.features .section-head h2 { max-width: 540px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 85px; align-items: center; }
.feature + .feature { margin-top: 60px; }
.feature-flip { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.feature-flip .feature-media { order: 2; }

.feature-media { position: relative; margin: 0; padding: 24px 24px 38px; background: #f3f0e9; border: 1px solid #e6e0d6; }
.feature-shot { position: relative; aspect-ratio: 530.5 / 331.56; overflow: hidden; box-shadow: 0 10px 30px rgba(48, 39, 26, .07); }
.feature-shot img { position: absolute; object-fit: cover; }
.shot-desktop { inset: 0; width: 100%; height: 100%; }
.shot-phone { left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.feature-media figcaption { position: absolute; left: 25px; bottom: 13px; font-size: var(--fs-xs); line-height: 1.65; letter-spacing: .12em; text-transform: uppercase; color: #837d73; }

.feature-copy { display: flex; flex-direction: column; gap: 15px; max-width: 440px; padding-top: 7px; }
.feature-copy h3 { padding-top: 3px; font-size: clamp(1.75rem, 3vw, 36px); line-height: 1.18; letter-spacing: -.04em; }
.feature-copy ul { display: grid; gap: 10px; margin: 0; padding: 9px 0 0; list-style: none; font-size: var(--fs-base); line-height: 1.65; color: #504e48; }

/* 04 Demo */
.demo { background: var(--sand-2); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: center; }
.demo-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.demo-copy h2 { max-width: 420px; font-size: clamp(2.1rem, 4.1vw, 48px); }
.demo-copy > p:not(.fine-print) { max-width: 340px; padding-bottom: 8px; font-size: var(--fs-base); line-height: 1.85; color: var(--muted); }
.fine-print { max-width: 320px; font-size: var(--fs-xs); line-height: 1.7; color: #7d776d; }

.demo-visual { position: relative; justify-self: end; width: min(504px, 100%); padding: 20px 35px 25px 0; }
.demo-desktop { position: relative; aspect-ratio: 500 / 294; overflow: hidden; border: 1px solid #d4cec2; box-shadow: 0 25px 60px rgba(48, 39, 26, .13); }
.demo-desktop img { width: 100%; height: 100%; object-fit: cover; }
.demo-phone {
  position: absolute;
  left: 75.99%; right: 5.75%; bottom: 35.74px;
  aspect-ratio: 121 / 308;
  overflow: hidden;
  border: 5px solid var(--dark);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(48, 39, 26, .16);
}
.demo-phone img { position: absolute; left: -14.83%; top: -3.05%; width: 129.71%; height: 106.5%; max-width: none; }

/* 05 Paketi */
.packages {
  overflow: hidden;
  background:
    radial-gradient(circle 205px at 96% 26%, rgba(185, 31, 54, .055), transparent),
    radial-gradient(circle 210px at 3% 82%, rgba(66, 109, 76, .043), transparent),
    #f8f6f1 url("../assets/img/seigaiha-paper.svg") 0 0 / 96px 48px repeat;
}
.packages-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.packages-ring-red { top: 60px; right: -190px; width: 372px; height: 372px; border: 1px solid rgba(185, 31, 54, .1); box-shadow: 0 0 0 22px rgba(185, 31, 54, .02), 0 0 0 45px rgba(185, 31, 54, .02); }
.packages-ring-green { bottom: -270px; left: -240px; width: 432px; height: 432px; border: 1px solid rgba(66, 109, 76, .11); }
.packages .section-head { gap: 18px; max-width: 840px; }
.packages .section-head h2 { font-size: clamp(2.1rem, 4.2vw, 50px); }

.tiers { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; align-items: stretch; }
.tier {
  --c: var(--bonsai);
  --c-ink: var(--bonsai);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 25px 22px;
  background: rgba(255, 254, 250, .82);
  border: 1px solid #d9ded4;
  box-shadow: 0 8px 28px rgba(44, 36, 26, .02);
}
.tier-koi { --c: var(--koi); --c-ink: var(--koi-ink); padding: 22.5px 23.5px 20.5px; background: var(--cream); border: 2.5px solid var(--koi); box-shadow: none; filter: drop-shadow(0 8px 10px rgba(56, 33, 20, .12)); }
.tier-katana { --c: var(--katana); --c-ink: var(--katana); border-color: #e6c8cc; }

.tier-badge {
  position: absolute;
  top: -12.5px; right: 17.5px;
  padding: 4px 10px 5px;
  border-radius: 8px;
  background: var(--koi);
  font-size: var(--fs-xs);
  line-height: 1.32;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.tier-top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 154px; padding-bottom: 16px; border-bottom: 1px solid #e9e3d9; }
.tier-top img { width: 142px; height: 142px; margin: -3px 0 0 -2px; border-radius: 50%; }
.tier-tag { padding-top: 20px; font-size: var(--fs-xs); line-height: 1.65; letter-spacing: .16em; text-transform: uppercase; color: #888176; }
.tier h3 { padding-top: 12px; margin-bottom: 2px; font-size: 29px; line-height: 1.37; letter-spacing: -.04em; color: var(--c-ink); }
.tier-sub { min-height: 32px; font-size: var(--fs-base); line-height: 1.65; color: var(--muted); }
.tier-price { display: flex; flex-direction: column; gap: 4px; padding: 13px 0 10px; border-bottom: 1px solid #eee9e1; }
.tier-price strong { font: 700 34px/1.37 var(--font-head); letter-spacing: -.05em; color: var(--ink); }
.tier-price small { font-size: var(--fs-sm); line-height: 1.3; color: #898378; }
.tier-desc { min-height: 70px; padding: 0 0 14px; font-size: var(--fs-base); line-height: 1.7; color: #68645d; }
.tier-price + .tier-desc { padding-top: 6px; }
.tier-list { display: grid; gap: 8.6px; margin: 0; padding: 10px 0 28px; list-style: none; font-size: var(--fs-base); line-height: 1.5; color: #55524b; }
.tier-list li { display: flex; gap: 9px; }
.tier-list li::before { content: "✓"; flex: none; font-weight: 700; color: var(--c); }
.tier-foot { margin: auto 0 0; padding-bottom: 12px; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink); }
.tier-foot + .tier-btn { margin-top: 0; }
.tiers-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin-top: 34px; font-size: var(--fs-base); text-align: center; }

.tier-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  margin-top: auto;
  padding: 13px 15px;
  border: 1px solid var(--c);
  border-radius: 4px;
  background: var(--c);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  transition: filter .2s;
}
.tier-btn:hover { filter: brightness(.9); }
.tier-btn span { font-weight: 400; }
.tier-koi .tier-btn { border-radius: 8px; }

/* FAQ */
.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 90px; align-items: start; }
.faq-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq-copy h2 { max-width: 380px; font-size: clamp(2rem, 3.8vw, 45px); }
.faq-copy .link-arrow { padding: 6px 0; }
.faq-list details { border-bottom: 1px solid #e3dfd7; }
.faq-list details:first-child { border-top: 1px solid #e3dfd7; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 20px; font-weight: 400; line-height: 1.65; color: var(--red); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid rgba(185, 31, 54, .3); outline-offset: 2px; }
.faq-list details p { max-width: 560px; padding: 0 32px 22px 0; font-size: var(--fs-base); line-height: 1.8; color: var(--muted); }

/* 06 Kontakt */
.contact { background: var(--dark-2); padding-block: clamp(72px, 7vw, 95px); }
.contact.section-waves { background: var(--dark-2) url("../assets/img/seigaiha-dark-2.svg") 0 0 / 96px 48px repeat; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 100px; align-items: center; }
/* The banner stands on the form's bottom edge, overlapping it slightly; below 1080px the wrap
   goes static and the banner is placed against the whole grid instead. */
.contact-form-wrap { position: relative; }
.contact-banner { position: absolute; right: calc(100% - 18px); bottom: 0; z-index: 1; width: min(192px, 16.6vw); height: auto; pointer-events: none; }
.contact-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-copy h2 { max-width: 460px; font-size: clamp(2.1rem, 4.2vw, 50px); letter-spacing: -.045em; }

.lead-form { display: flex; flex-direction: column; gap: 14px; padding: 27px 28px 28px; background: #f9f7f1; border-radius: 5px; }
.field { display: flex; flex-direction: column; gap: 7.5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field > label, .field > legend { padding: 0; font-size: var(--fs-sm); font-weight: 700; line-height: 1.65; color: #555149; }
.field legend { margin-bottom: 7.5px; }
.optional { font-weight: 400; color: #999187; }
.field input:not([type="radio"], [type="checkbox"]), .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  font: 400 var(--fs-base)/1.5 var(--font);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #ded8cd;
  border-radius: 3px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { font-weight: 700; font-size: var(--fs-base); color: #757575; opacity: 1; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: #555149; box-shadow: 0 0 0 3px rgba(32, 32, 31, .08); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field[hidden] { display: none; }
.field .error { font-size: var(--fs-sm); line-height: 1.4; color: var(--red); }
.field .error:empty { display: none; }

.package-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.package-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 7px;
  row-gap: 5px;
  align-content: start;
  min-height: 88px;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px solid #ded8cd;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.package-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin: 0;
  align-self: center;
  background: url("../assets/img/radio.svg") center / 16px 16px no-repeat;
  cursor: pointer;
}
.package-option input:checked { background-image: url("../assets/img/radio-selected.svg"); }
.package-option input:focus-visible { outline: 2px solid rgba(185, 31, 54, .4); outline-offset: 2px; border-radius: 50%; }
.package-name, .package-price { font-family: "Inter", var(--font); font-weight: 600; line-height: 1.375; color: #292927; }
.package-name { font-size: var(--fs-base); }
.package-price, .package-note { grid-column: 2 / -1; }
.package-price { margin-top: 2px; font: 700 var(--fs-lg)/1.3 var(--font-head); letter-spacing: -.02em; color: var(--red); }
.package-note { font-size: var(--fs-xs); font-weight: 700; line-height: 1.8; color: #7a756e; }
.package-option:has(input:checked) { background: #fff0f1; border: 1.3px solid #c51f3b; }
.package-option:has(input:checked) .package-price { color: #c51f3b; }
.package-option:has(input[value=""]) { background: transparent; border-style: dashed; }
.package-option:has(input[value=""]) .package-name { font-weight: 500; color: #7a756e; }
.package-option:has(input[value=""]:checked) { background: transparent; border: 1px dashed #b9b1a4; }
.package-option:has(input[value=""]:checked) .package-name { color: #292927; }
.package-options:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.package-options:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-options .package-option { min-height: 0; padding: 12px; }
.choice-options .package-note { grid-column: 2 / -1; }
.consent label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: var(--fs-sm); font-weight: 400; line-height: 1.6; color: #6b665e; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.field.consent.invalid label { color: var(--red); }

.lead-form .btn { min-height: 53px; }
.form-note { font-size: var(--fs-xs); line-height: 1.6; color: #837c72; }
.form-status { font-size: var(--fs-sm); line-height: 1.6; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--bonsai); }
.form-status.err { color: var(--red); }
.form-status a { color: inherit; }
.lead-form.sent > :not(.form-status) { display: none; }
.lead-form.sent .form-status { font-size: var(--fs-base); padding: 48px 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.contact-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 20px 24px; border: 1px solid rgba(225, 123, 136, .45); border-radius: 5px; background: rgba(185, 31, 54, .12); font-size: var(--fs-base); line-height: 1.6; color: var(--on-dark); text-decoration: none; transition: border-color .2s, background .2s; }
.contact-more strong { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 4px; background: var(--red); color: #fff; font: 700 var(--fs-sm)/1.65 var(--font); letter-spacing: .01em; white-space: nowrap; transition: background .2s, transform .2s; }
.contact-more strong span { font-weight: 400; }
.contact-more:hover { border-color: var(--red-light); background: rgba(185, 31, 54, .2); }
.contact-more:hover strong { background: var(--red-dark); transform: translateY(-1px); }
.contact-more:focus-visible { outline: 3px solid rgba(225, 123, 136, .4); outline-offset: 2px; }

/* ---------- /ponuda/ ---------- */
.offer-section { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.offer-section .section-head { margin-bottom: 32px; }
.offer-section:first-child { border-top: 0; }
.offer-section h1, .offer-section h2 { font-size: clamp(1.9rem, 3.6vw, 40px); line-height: 1.07; letter-spacing: -.055em; }

.offer-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.offer-steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 5px; }
.offer-steps .step-n { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--red); }
.offer-steps strong { font: 700 22px/1.3 var(--font-head); letter-spacing: -.03em; color: var(--ink); }
.offer-steps p { font-size: var(--fs-base); line-height: 1.7; }
.offer-steps .step-free { background: #edf3ee; border-color: #d3e2d6; }
.offer-steps .step-free .step-n, .offer-steps .step-free strong { color: var(--bonsai); }

.offer-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.offer-card { --c: var(--bonsai); --c-ink: var(--bonsai); display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 26px; background: var(--cream); border: 1px solid var(--line); border-radius: 5px; }
.offer-card.is-koi { --c: var(--koi); --c-ink: var(--koi-ink); border: 2.5px solid var(--koi); }
.offer-card.is-premium { --c: var(--red); --c-ink: var(--red); border: 2.5px solid var(--red); }
.offer-card.is-basic { --c: var(--ink); --c-ink: var(--ink); }
.offer-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.offer-card h3 { font-size: 29px; line-height: 1.3; letter-spacing: -.04em; color: var(--c-ink); }
.offer-card .tier-tag { padding: 0; }
.offer-price { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eee9e1; }
.offer-price strong { font: 700 34px/1.2 var(--font-head); letter-spacing: -.05em; color: var(--ink); }
.offer-price small { font-size: var(--fs-sm); color: #898378; }
.offer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-base); line-height: 1.6; color: #55524b; }
.offer-list li { display: flex; gap: 10px; }
.offer-list li::before { content: "✓"; flex: none; font-weight: 700; color: var(--c); }
.offer-list li.plus::before { content: "+"; }
.offer-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #eee9e1; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink); }

.offer-katana { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 18px; padding: 18px 26px; background: var(--cream); border: 1px solid #e6c8cc; border-radius: 5px; }
.offer-katana p { font-size: var(--fs-base); }
.offer-katana strong { font-family: var(--font-head); font-size: var(--fs-lg); color: var(--katana); }

.offer-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 32px; }
.offer-facts div { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.offer-facts b { font-family: var(--font-head); font-size: var(--fs-base); color: var(--ink); }
.offer-facts span { font-size: var(--fs-base); line-height: 1.7; }

.offer-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.offer-form-grid .section-head { grid-column: 1 / -1; margin-bottom: 8px; }
.offer-form-grid .section-head > p { color: #c9c4ba; }
.offer-summary { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--dark-3); border: 1px solid rgba(255, 255, 255, .1); border-radius: 5px; color: #c9c4ba; }
.sum-title { font-size: var(--fs-base); color: var(--on-dark); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.sum-line span:last-child { color: var(--on-dark); text-align: right; }
.sum-line[hidden] { display: none; }
.sum-line.big { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .13); font-weight: 700; }
.sum-line.big span:last-child { font: 700 20px var(--font-head); }
.sum-note { font-size: var(--fs-sm); line-height: 1.6; }
.offer-form-grid:has(.lead-form.sent) .offer-summary { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0 18px; background: var(--dark-3); }
.footer-inner { display: flex; align-items: center; gap: 25px; padding-bottom: 25px; }
.brand-footer .brand-logo { width: 168px; height: auto; }
.footer-tagline { font-size: var(--fs-sm); line-height: 1.65; color: #aaa59c; }
.footer-top { margin-left: auto; font-size: var(--fs-xs); line-height: 1.65; color: #d8d4cc; text-decoration: none; white-space: nowrap; }
.footer-top:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: var(--fs-xs); line-height: 1.65; color: #938e85; }
.copyright { margin: 0; }

/* ---------- Reveal on scroll ---------- */
/* Only elements below the first screen start hidden, so the first frame is always complete. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.pending { opacity: 0; transform: translateY(24px); }
.reveal.pending.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .btn, .link-arrow span { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .help-grid, .demo-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 560px; }
  .help-art { display: none; }
  .demo-visual { justify-self: start; }
  .contact-grid { max-width: 620px; }
  .contact-form-wrap { position: static; }
  .offer-form-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .offer-summary { position: static; order: -1; }
  .contact-copy { padding-right: 150px; }
  .contact-banner { top: -24px; bottom: auto; left: auto; right: 0; width: 130px; }
  .why-copy h2 { font-size: clamp(1.8rem, 4.4vw, 53px); }
  .why-copy p { margin-top: 12px; font-size: var(--fs-base); }
  .feature, .feature-flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature-flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .feature-media { max-width: 640px; }
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; gap: 28px; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 34px; }
  .header-inner { justify-content: flex-start; gap: 0; }
  .nav-toggle { display: block; margin-left: 14px; padding: 4px 0 4px 14px; border-left: 1px solid rgba(249, 246, 239, .3); }
  .header-art { display: block; position: absolute; right: 0; bottom: 2px; height: calc(100% - 2px); width: auto; max-width: min(62%, 100% - 196px); object-fit: contain; object-position: right bottom; pointer-events: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; bottom: 0;
    width: min(320px, 85vw);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: var(--paper);
    border-right: 1px solid #e6e1d8;
    box-shadow: 20px 0 30px -20px rgba(0, 0, 0, .3);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); color: #4f4d49; }
  .main-nav a:not(.btn):hover, .main-nav a.active { color: var(--ink); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; padding-block: 14px; font-size: var(--fs-sm); }

  /* darken the top so the copy stays legible over the busier part of the image */
  .why-banner::before { content: ""; position: absolute; inset: 0 0 45%; z-index: 1; background: linear-gradient(rgba(20, 18, 16, .65), transparent); }
  .why-copy { z-index: 2; top: 28px; left: 24px; right: 24px; }
  .offer-steps, .offer-cards, .offer-facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .container { width: min(1160px, 100% - 32px); }
  .hero .lead br { display: none; }
  .hero-actions { width: 100%; gap: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-grid { padding-bottom: 48px; }

  .field input:not([type="radio"], [type="checkbox"]), .field textarea { font-size: 16px; } /* 16px keeps iOS from zooming on focus */

  .help-list li { padding-right: 0; }
  .why { padding-block: 32px; }
  .why-banner img { aspect-ratio: 3 / 4; object-position: 62% 50%; } /* too short for its copy at phone width */
  .why-copy { top: 22px; left: 18px; right: 18px; }
  .hero-banner { left: auto; right: -4%; top: 18%; width: 30%; }
  .contact-copy { padding-right: 96px; }
  .contact-banner { top: -16px; width: 88px; }
  .feature-media { padding: 14px 14px 34px; }
  .feature-media figcaption { left: 15px; bottom: 11px; }
  .demo-visual { padding-right: 20px; }
  .demo-phone { bottom: 20px; border-width: 4px; border-radius: 12px; }

  .lead-form { padding: 22px 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .package-options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .package-option { grid-template-columns: 16px auto 1fr; align-items: center; min-height: 0; padding: 12px 14px; }
  .package-price, .package-note { grid-column: auto; }
  .package-price { justify-self: end; }
  .package-note { grid-column: 2 / -1; }

  .footer-inner { flex-wrap: wrap; gap: 16px 25px; }
  .footer-tagline { flex: 1 1 180px; }
  .footer-top { margin-left: 0; }
  .footer-bottom { flex-direction: column; }
}

/* Chat nudge: weathered question banner popping out from behind the chat bubble (js/chat-nudge.js) */
.chat-nudge {
  position: fixed;
  right: 54px; /* tucked ~18px behind the 56px bubble at right:16px */
  bottom: 16px;
  z-index: 2147482998; /* below the bubble (2147482999) */
  display: flex;
  align-items: center;
  gap: 2px;
  height: 112px; /* 2x the bubble */
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateX(40px) scale(.9);
  transform-origin: right bottom;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.chat-nudge.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .3s ease, transform .3s ease;
}
.chat-nudge-text {
  padding: 8px 12px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 4px 14px rgba(32, 32, 31, .18);
  font: 600 var(--fs-base)/1.3 var(--font);
  text-align: center;
  white-space: nowrap;
}
.chat-nudge-banner {
  flex: none;
  width: 75px;
  height: 112px;
  background: url("../assets/img/chat-nudge-banner.webp") center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(32, 32, 31, .25));
}
@media (prefers-reduced-motion: reduce) {
  .chat-nudge, .chat-nudge.is-visible { transform: none; transition: opacity .01s, visibility 0s; }
}
