/* Točka na i — Upisi u 17. sezonu (glumačke radionice, Zagreb)
   ------------------------------------------------------------------
   Brand palette — SAMPLED FROM THE LOGO (logo.png, dominant 33.8k px cluster):
     --brand   #F51E1E  the logo red. CTA, the `i` mark, every accent.
     --ink     #16110F  warm near-black (never pure #000 on warm paper)
     --paper   #FBF7F2  warm off-white; their whole feed lives on paper/kraft
     --muted   #6B615C
     --line    #E4DAD1
   Do NOT introduce teal/green. 17 seasons of brand = a red `i` on paper.

   Type system — DERIVED FROM THE LOGO (client has no website, so no CSS to probe).
     Wordmark "Točka na" = monoline low contrast, oval (not circular) o, flat-cut
     terminal on a, rounded humanist shoulder on n  -> HUMANIST SANS -> Mulish.
     The hand-drawn `i` mark = thin top bar against a heavy stem + slab foot +
     spiral curl -> DIDONE / playbill flavour -> Bodoni Moda (variable opsz, so
     hairlines thicken instead of vanishing at card-title sizes).
     Both verified to render č ć ž š đ Č Ć Ž Š Đ „" € from the webfont:
       node shared/brand/font_from_logo.mjs verify --fonts "Bodoni Moda,Mulish"
     (Prata ships no latin-ext; Lato lists it and still drops đ/Đ. Never swap blind.)

   Mobile-first. EVERY mobile override lives inside a @media block — an unscoped
   layout override silently breaks desktop (LEARNED_RULES 2026-07-02). */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Mulish:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --brand: #F51E1E;
  --brand-dk: #C71414;
  --brand-tint: #FDEBEA;
  --ink: #16110F;
  --ink-2: #3A302B;
  --paper: #FBF7F2;
  --paper-2: #F3EBE1;
  --muted: #6B615C;
  --line: #E4DAD1;
  --white: #fff;

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* the logo's descriptor tracking, reused as the page's label token */
  --track-lockup: .18em;

  --wrap: 1180px;
  --r: 14px;
  --shadow: 0 18px 44px rgba(22, 17, 15, .10);
  --shadow-sm: 0 6px 18px rgba(22, 17, 15, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;   /* Didone: keep hairlines alive at small sizes */
  letter-spacing: 0;           /* neutral, NEVER negative on a Didone */
  line-height: 1.1;
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;              /* px, not rem: 13px is the audit's legibility floor */
  font-weight: 800;
  letter-spacing: var(--track-lockup);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }

.sec-head { max-width: 78ch; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.sec-head p { color: var(--muted); font-size: 1.05rem; }

section { padding: 74px 0; }

/* ===== Reveal — progressive enhancement.
   Default VISIBLE. The hide is gated behind html.js which the DOM script adds,
   so OG scrapers / no-JS / a11y / screenshotters always see real content.
   (LEARNED_RULES [reveal] 2026-07-17.) ===== */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 242, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 42px; width: auto; }
.topbar-ctas { display: flex; align-items: center; gap: 12px; }
.tel-alt {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .95rem; text-decoration: none; color: var(--ink);
  min-height: 44px; padding: 0 6px;
}
.tel-alt svg { width: 18px; height: 18px; color: var(--brand); }
.btn-top {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem;
  text-decoration: none; white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.btn-top:hover { background: var(--brand-dk); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  padding: 60px 0 70px;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(245, 30, 30, .09), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: start; }
.hero h1 { font-size: clamp(2.1rem, 5.1vw, 3.5rem); font-weight: 700; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lede { margin-top: 18px; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 30px; margin-top: 10px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-weight: 900; font-size: 1.04rem; text-decoration: none;
  box-shadow: 0 12px 28px rgba(245, 30, 30, .28);
  transition: background .18s ease, transform .18s ease;
}
.hero-cta:hover { background: var(--brand-dk); transform: translateY(-2px); }

.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.hero-points li { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; font-size: 1rem; }
.hero-points li::before {
  content: ""; width: 15px; height: 15px; margin-top: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint);
}

/* ===== FORM CARD ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);   /* distinctive on-brand form (LEARNED_RULES) */
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
  position: sticky; top: 96px;
}
.form-head { margin-bottom: 16px; }
.form-head .kicker {
  font-size: 13px; font-weight: 800; letter-spacing: var(--track-lockup);
  text-transform: uppercase; color: var(--brand);
}
.form-head h3 { font-size: 1.45rem; margin: 8px 0 4px; }
.form-head p { font-size: .95rem; color: var(--muted); margin: 0; }

.progress { height: 5px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 16px 0 20px; }
.progress .bar { height: 100%; width: 33%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }

.step { display: none; }
.step.active { display: block; animation: stepIn .26s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step > label.q { display: block; font-weight: 800; margin-bottom: 12px; font-size: 1.02rem; }

.choices { display: grid; gap: 10px; }
.choice {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  width: 100%; text-align: left; min-height: 56px; padding: 12px 16px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.choice:hover { border-color: var(--brand); background: var(--brand-tint); transform: translateX(2px); }
.choice .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand); flex: none; }
.choice small { display: block; font-weight: 600; font-size: .85rem; color: var(--muted); }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: .86rem; font-weight: 800; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--sans); font-size: 16px;  /* 16px stops iOS zoom-on-focus */
  background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.btn-submit {
  width: 100%; min-height: 58px; margin-top: 6px;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 1.06rem; font-weight: 900; cursor: pointer;
  box-shadow: 0 12px 28px rgba(245, 30, 30, .26);
  transition: background .18s ease, transform .18s ease;
}
.btn-submit:hover:not(:disabled) { background: var(--brand-dk); transform: translateY(-2px); }
.btn-submit:disabled { opacity: .65; cursor: default; }

.step-back {
  display: none; align-items: center; gap: 6px; margin-top: 12px;
  background: none; border: 0; color: var(--muted);
  font-family: var(--sans); font-size: .9rem; font-weight: 700; cursor: pointer;
  min-height: 44px; padding: 0;
}
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.form-note a { color: var(--brand); }

/* ===== STATS ===== */
.stats { background: var(--ink); color: #fff; padding: 42px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 700; color: #fff; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .88rem; color: rgba(255,255,255,.72); letter-spacing: .02em; }

/* ===== GROUP CARDS (visible columns, never tabs) ===== */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px;
}
.gcard .tag {
  font-size: 13px; font-weight: 800; letter-spacing: var(--track-lockup);
  text-transform: uppercase; color: var(--brand);
}
.gcard h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.gcard p { color: var(--muted); font-size: .97rem; margin: 0; }
.gcard ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.gcard li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; font-size: .95rem; }
.gcard li::before { content: "→"; color: var(--brand); font-weight: 900; }

/* ===== BENEFITS (objections -> benefits) ===== */
.bene { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 22px 22px;
}
.bcard h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 900; margin: 0 0 6px; letter-spacing: 0; }
.bcard p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ===== GALLERY ===== */
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 210px); gap: 14px; }
.gal figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.gal figure:first-child { grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; }

/* ===== TESTIMONIALS ===== */
.tst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
}
/* Croatian opening quote „ sits on the baseline, so it needs a full line-box or it clips. */
.tcard .mark { font-family: var(--serif); font-size: 3.4rem; line-height: 1; height: .62em; overflow: visible; color: var(--brand); }
.tcard blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.tcard .who { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.tcard .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.tcard .who b { display: block; font-size: .95rem; }
.tcard .who span { display: block; font-size: .82rem; color: var(--muted); }

/* ===== OFFER ===== */
.offer-wrap { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 30px; text-align: center;
}
.price-card .amount { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; line-height: 1; }
.price-card .per { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; text-align: left; }
.price-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .96rem; }
.price-card li::before { content: "✓"; color: var(--brand); font-weight: 900; }

.risk {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--brand-tint); border-radius: 12px; padding: 18px 20px; margin-top: 22px;
}
.risk b { font-size: .98rem; }
.risk p { margin: 4px 0 0; font-size: .93rem; color: var(--ink-2); }
.risk .ico { font-size: 1.4rem; line-height: 1; }

/* ===== FAQ ===== */
.faq { max-width: 860px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 800; font-size: 1.03rem; list-style: none;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: .98rem; }

/* ===== CTA BAND ===== */
.band { background: var(--ink); color: #fff; text-align: center; }
.band h2 { color: #fff; font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
.band p { color: rgba(255,255,255,.74); max-width: 58ch; margin-inline: auto; }
.band .hero-cta { margin-top: 18px; }

/* ===== FOOTER ===== */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); padding: 46px 0 34px; font-size: .93rem; }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.foot img { height: 40px; width: auto; margin-bottom: 12px; }
.foot h4 { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: var(--track-lockup); text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; }
.foot .legal a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.foot .legal > span { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== STICKY CALL BAR (mobile only) ===== */
.callbar { display: none; }

/* ===== PRIVACY MODAL ===== */
#privacy-modal { position: fixed; inset: 0; z-index: 100; display: none; }
#privacy-modal[aria-hidden="false"] { display: block; }
#privacy-modal .backdrop { position: absolute; inset: 0; background: rgba(22,17,15,.55); }
#privacy-modal .sheet {
  position: relative; margin: 6vh auto; width: min(100% - 32px, 680px); max-height: 84vh;
  overflow-y: auto; background: #fff; border-radius: var(--r); padding: 30px;
  box-shadow: var(--shadow);
}
#privacy-modal h3 { font-size: 1.4rem; }
#privacy-modal p, #privacy-modal li { font-size: .95rem; color: var(--ink-2); }
.privacy-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; background: var(--paper-2); border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; color: var(--ink);
}
body.privacy-open { overflow: hidden; }

/* ===== THANK YOU ===== */
.ty { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.ty .mark { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 22px; }
.ty h1 { font-size: clamp(2rem, 5vw, 3rem); }
.ty .lede { margin-inline: auto; }
.ty .next { display: grid; gap: 12px; max-width: 520px; margin: 26px auto 0; text-align: left; }
.ty .next li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ty .next li b { color: var(--brand); font-family: var(--serif); }

/* ==========================================================
   MOBILE — every override scoped inside @media (LEARNED_RULES)
   ========================================================== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .form-card { position: static; }
  .groups, .bene, .tst { grid-template-columns: 1fr 1fr; }
  .offer { grid-template-columns: 1fr; gap: 30px; }
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
  .gal figure:first-child { grid-row: span 1; grid-column: span 2; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .wrap { width: min(100% - 32px, var(--wrap)); }

  .topbar { min-height: 64px; }
  .topbar .wrap { min-height: 64px; }
  .brand-logo { height: 34px; }
  .btn-top { display: none; }          /* sticky callbar covers this on mobile */
  .tel-alt span { display: none; }     /* collapse phone CTA to the icon */
  .tel-alt { width: 44px; justify-content: center; }

  .hero { padding: 40px 0 46px; }
  .hero h1 { max-width: none; }
  .hero-cta { width: 100%; justify-content: center; }

  .stats .grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .groups, .bene, .tst { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 140px); }
  .form-card { padding: 22px 18px 18px; }

  .foot .cols { grid-template-columns: 1fr; gap: 24px; }
  .foot .legal { flex-direction: column; gap: 8px; }

  /* sticky call bar */
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251,247,242,.97); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .callbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; border-radius: 999px; font-weight: 900; font-size: .96rem;
    text-decoration: none;
  }
  .callbar .c-form { background: var(--brand); color: #fff; }
  .callbar .c-tel { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
  body { padding-bottom: 76px; }
}
