/* ==========================================================================
   MámTip.cz — papírová nástěnka
   Postaveno z design tokenů v design_handoff_mamtip_landing/README.md.
   Reference má 434 inline stylů a nula tříd; tady jsou z toho komponenty.
   ========================================================================== */

:root {
  --paper:        #EFE7D7;
  --panel:        #FBF6EA;
  --panel-muted:  #E6DECC;
  --ink:          #13251E;
  --ink-body:     #4B584F;
  --ink-muted:    #6E7A71;
  --ink-caption:  #3A463E;
  --primary:      #D6431F;
  --primary-hover:#A8300F;
  --berry:        #9C2F52;
  --yellow:       #F7C64B;
  --yellow-soft:  #F8E3B0;
  --green:        #0E6152;
  --green-soft:   #A8DCC9;
  --cream:        #FFF8E7;
  --photo-bg:     #E2DAC7;
  --big-number:   #DCD2BB;
  --border:       rgba(19,37,30,.13);
  --border-dashed:rgba(19,37,30,.2);

  --sh-polaroid:  0 22px 44px -22px rgba(19,37,30,.5);
  --sh-polaroid-s:0 18px 34px -22px rgba(19,37,30,.45);
  --sh-card:      0 16px 34px -20px rgba(19,37,30,.4);
  --sh-cta:       0 10px 24px -10px rgba(214,67,31,.7);
  --sh-form:      0 24px 50px -30px rgba(19,37,30,.4);
  --sh-bar:       0 -10px 30px -18px rgba(19,37,30,.7);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body:    "Instrument Sans", system-ui, sans-serif;
  --f-hand:    "Caveat", cursive;
  --f-mono:    "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

/* Kroky formulare maji inline display:grid, ktery by prebil UA pravidlo
   [hidden]{display:none}. Bez tohohle by krok 1 zustal viditelny i po
   prepnuti na krok 2. */
[hidden] { display: none !important; }

body {
  margin: 0;
  /* Tečkovaná textura dělá z pozadí papír. Bez ní je to jen béžová. */
  background: var(--paper) radial-gradient(rgba(19,37,30,.055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;              /* místo pro spodní lištu */
}

/* ── Typografie ─────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
h3 { font-size: 18.5px; font-weight: 800; }
p  { margin: 0; }
a  { color: var(--primary); }
a:hover { color: var(--berry); }

.eyebrow {
  display: inline-block; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--berry);
  background: var(--yellow-soft); padding: 7px 12px; border-radius: 4px;
  transform: rotate(-1deg);
}
.hand { font-family: var(--f-hand); font-size: 23px; color: var(--ink-muted); }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-body); max-width: 33em; }

/* Žlutý zvýrazňovač pod textem — ne celé pozadí, jen pruh přes spodek písma */
.hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%);
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap    { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.wrap-sm { max-width: 900px;  margin: 0 auto; padding-inline: 20px; }
.wrap-xs { max-width: 820px;  margin: 0 auto; padding-inline: 20px; }
.sec     { padding-top: 88px; }
.grid    { display: grid; gap: 24px; }
.g-260   { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-300   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-320   { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g-230   { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g-215   { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.g-190   { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ── Tlačítka ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--f-body); font-weight: 600; font-size: 17px;
  padding: 17px 26px; border-radius: 10px; border: 0; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s;
  min-height: 44px;                  /* tap target */
}
.btn-primary { background: var(--primary); color: var(--cream); box-shadow: var(--sh-cta); }
.btn-primary:hover { background: var(--primary-hover); color: var(--cream); }
.btn-ghost { background: var(--panel); color: var(--ink); border: 1.5px solid rgba(19,37,30,.18); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #f0b92c; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #0b1a15; color: var(--cream); }

/* ── Polaroid ───────────────────────────────────────────────────────── */
.polaroid {
  position: relative; background: var(--panel);
  padding: 13px 13px 58px; border-radius: 3px; box-shadow: var(--sh-polaroid);
}
.polaroid-sm { padding: 11px 11px 48px; box-shadow: var(--sh-polaroid-s); }
/* height:auto je nutnost — atribut height="875" je prezentacni hint a prebil by
   aspect-ratio, takze fotka vyjela na plnou vysku originalu. */
.polaroid img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--photo-bg); }
.polaroid figcaption {
  position: absolute; left: 13px; right: 13px; bottom: 14px;
  font-family: var(--f-hand); font-size: 24px; color: var(--ink-caption); line-height: 1.15;
}
.polaroid-sm figcaption { font-size: 21px; left: 11px; right: 11px; bottom: 12px; }

/* Lepicí páska. Poloprůhledná žlutá, aby prosvítalo, co je pod ní. */
.tape {
  position: absolute; top: -15px; left: 50%; width: 104px; height: 28px;
  margin-left: -52px; background: rgba(247,198,75,.62); transform: rotate(-2.5deg);
}
.tape-l { left: 24px; margin-left: 0; width: 88px; height: 26px; top: -13px; }

/* ── Karty ──────────────────────────────────────────────────────────── */
.card {
  background: var(--panel); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 26px;
}
.card-muted { background: var(--panel-muted); border-color: rgba(19,37,30,.12); }
.card-dark  { background: var(--ink); color: var(--cream); border: 0; }
.card-dark .lead, .card-dark p { color: rgba(255,248,231,.72); }

/* Index card — kartička z kartotéky, ostřejší roh a výraznější stín */
.index-card {
  position: relative; background: var(--panel); border-radius: 4px;
  padding: 30px 26px 26px; box-shadow: var(--sh-card);
}
.index-num { font-family: var(--f-display); font-weight: 800; font-size: 52px; color: var(--big-number); line-height: 1; }

/* Die-cut — nepravidelný tvar vystřižené nálepky */
.diecut {
  background: var(--panel); padding: 9px; max-width: 230px; margin-inline: auto;
  border-radius: 52% 48% 46% 54% / 50% 52% 48% 50%;
  box-shadow: 0 16px 32px -18px rgba(19,37,30,.5);
}
/* aspect-ratio na obrazku, ne na obalu: procentni vyska by se nemela
   proti cemu spocitat a fotka by vysla 0 px vysoka. */
.diecut img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover;
              border-radius: 50%; display: block; }

/* Nálepka do rohu karty */
.sticker {
  position: absolute; top: -14px; right: -10px; background: var(--yellow); color: var(--ink);
  font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 11px; border-radius: 4px; transform: rotate(4deg);
}

/* Rotace. Nikdy víc než ±4° a dvě sousední karty nikdy stejným směrem. */
.r-4  { transform: rotate(-4deg); }   .r-3  { transform: rotate(-3deg); }
.r-25 { transform: rotate(-2.5deg); } .r-2  { transform: rotate(-2deg); }
.r-18 { transform: rotate(-1.8deg); } .r-15 { transform: rotate(-1.5deg); }
.r-1  { transform: rotate(-1deg); }   .r-06 { transform: rotate(-.6deg); }
.r08  { transform: rotate(.8deg); }   .r12  { transform: rotate(1.2deg); }
.r14  { transform: rotate(1.4deg); }  .r16  { transform: rotate(1.6deg); }
.r2   { transform: rotate(2deg); }    .r25  { transform: rotate(2.5deg); }
.r3   { transform: rotate(3deg); }

/* ── Ticker ─────────────────────────────────────────────────────────── */
.ticker {
  background: var(--ink); color: var(--cream); padding: 14px 0; overflow: hidden;
  transform: rotate(-.6deg); margin: 56px 0;
}
.ticker-track { display: flex; width: max-content; animation: mtMarquee 34s linear infinite; }
.ticker span { font-family: var(--f-mono); font-size: 13.5px; letter-spacing: .06em; padding-right: 0; white-space: nowrap; }
@keyframes mtMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── Hlavička ───────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239,231,215,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(19,37,30,.1);
}
.hdr-in { max-width: 1140px; margin: 0 auto; padding: 14px 20px; display: flex;
          align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-badge {
  width: 34px; height: 34px; background: var(--primary); color: var(--cream);
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  display: grid; place-items: center; border-radius: 8px; transform: rotate(-4deg);
}
.logo-word { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-body); text-decoration: none; }
.nav a:hover { color: var(--primary); }
.nav .nav-cta { background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { background: var(--primary); color: var(--cream); }
@media (max-width: 860px) { .nav a:not(.nav-cta) { display: none; } }

/* ── Spodní lišta ───────────────────────────────────────────────────── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); color: var(--cream); padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: var(--sh-bar);
}
.bar-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
             text-transform: uppercase; color: var(--yellow); }
.bar-amount { font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.bar .btn { padding: 10px 16px; font-size: 14.5px; border-radius: 999px; }
@media (max-width: 560px) { .bar-outline { display: none; } }

/* ── Formulář ───────────────────────────────────────────────────────── */
.form-card {
  background: var(--panel); border: 1.5px solid rgba(19,37,30,.14);
  border-radius: 12px; padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--sh-form);
}
.field { display: grid; gap: 7px; }
.field > span { font-size: 14.5px; font-weight: 500; color: var(--ink-body); }
.field input, .field select, .field textarea {
  padding: 14px; border: 1.5px solid rgba(19,37,30,.2); border-radius: 8px;
  background: #fff; color: var(--ink); font-family: var(--f-body); font-size: 16px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent;
}
.progress { height: 4px; background: #E2DAC7; border-radius: 999px; overflow: hidden; }
.progress > * { display: block; height: 100%; background: var(--primary); transition: width .25s; }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: var(--ink-body); }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.err { font-size: 14.5px; font-weight: 600; color: var(--berry); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { background: var(--panel); border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq + .faq { margin-top: 12px; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-family: var(--f-display); font-weight: 600; font-size: 17.5px;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq[open] .faq-q::after { content: "–"; }
.faq-a { padding: 0 22px 22px; font-size: 15.5px; line-height: 1.6; color: var(--ink-body); }

/* ── Drobnosti ──────────────────────────────────────────────────────── */
.dashed-top { border-top: 1px dashed var(--border-dashed); }
.band { background: var(--green); color: #F2FAF6; border-radius: 8px; padding: 26px 28px; }
.band-yellow { background: var(--yellow-soft); border-radius: 8px; padding: 22px 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-body); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ══ Komponenty z handoffu, ktere v prvni verzi chybely ══════════════ */

/* Paska nalepena vlevo nahore na kartotecnim listku (sekce Proces). */
.tape-tl { position: absolute; top: -13px; left: 24px; width: 88px; height: 26px;
           background: rgba(247,198,75,.6); }

/* Polaroid s popiskem POD fotkou, ne pres ni — sekce "Kde najdes tip". */
.polaroid-cap { position: relative; background: var(--panel); padding: 11px 11px 16px;
                border-radius: 3px; box-shadow: var(--sh-polaroid-s); }
.polaroid-cap img { display: block; width: 100%; height: auto; aspect-ratio: 1/1;
                    object-fit: cover; background: var(--photo-bg); }
.polaroid-cap .cap { font-family: var(--f-hand); font-size: 22px; color: var(--berry); }

/* Prehravac videa — kolecko s trojuhelnikem pres nahled. */
.play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.play > span {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 999px;
  background: rgba(214,67,31,.94); color: var(--cream); font-size: 22px; padding-left: 5px;
}
.badge-tmavy {
  position: absolute; top: 10px; right: 10px; background: var(--ink); color: var(--yellow);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 4px; pointer-events: none;
}

/* Kolecko s portretem (sekce "Kdo ti zavola"). */
.portret { flex: 0 0 auto; background: var(--panel); padding: 7px; border-radius: 50%;
           box-shadow: 0 12px 24px -14px rgba(19,37,30,.5); width: 96px; height: 96px; }
.portret img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* Doplnene rotace — zbytek uz je vyse u ostatnich. */
.r-22 { transform: rotate(-2.2deg); }  .r-08 { transform: rotate(-.8deg); }

/* Utrzene listky s cenovkou — sekce "Za jeden tip". Nesou polozky, na
   ktere nemame fotku, takze nemusi cekat na focení. */
.stub {
  position: relative; background: var(--panel); border-radius: 3px;
  padding: 14px 16px; box-shadow: var(--sh-card);
  border-left: 3px solid var(--yellow);
}
.stub .castka { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
                text-transform: uppercase; color: var(--berry); }
.stub .co { font-family: var(--f-display); font-weight: 800; font-size: 15.5px;
            letter-spacing: -.015em; margin-top: 4px; line-height: 1.25; }
