/* Kouzelná Linka — homepage (loaded after kl.css) */

/* ---------- Hero ---------- */
.hero { --vh: 170px; padding-top: 22px; }
.hero-grid { display: grid; gap: 40px; position: relative; z-index: 1; padding-bottom: calc(var(--vh) - 6px); }
.hero-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-kicker { font: 600 1.7rem/1 var(--font-hand); color: var(--gold); transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 11px; border-radius: 999px; text-decoration: none;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: .875rem; color: var(--on-night-2);
}
.rating-chip .stars { color: var(--gold); letter-spacing: 1.5px; font-size: .8rem; }
.rating-chip b { color: #fff; }
.hero h1 { margin-top: 14px; font-weight: 900; font-size: clamp(2.05rem, 8.8vw, 3.3rem); line-height: 1.14; letter-spacing: -.015em; }
.rot { display: inline-block; color: var(--gold); white-space: nowrap; }
.rot-word { display: inline-block; font-style: italic; padding-right: .06em; transition: transform .38s var(--ease), opacity .3s; }
.rot.is-out .rot-word { transform: translateY(-.3em); opacity: 0; }
.rot.is-in .rot-word { transform: translateY(.3em); opacity: 0; transition: none; }
.lead { margin-top: 20px; font-size: 1.1875rem; line-height: 1.55; color: var(--on-night-2); max-width: 35ch; }
.lead strong { color: var(--on-night); font-weight: 650; }
/* all three sentences sit in one grid cell, so the hero never reflows when the caller changes */
.lead[data-lead] { display: grid; }
.lead-v { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lead-v.on { opacity: 1; visibility: visible; transition: opacity .35s .15s, visibility 0s; }
.lead-who { color: var(--on-night); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding: 0; list-style: none; font-size: .9375rem; color: var(--on-night-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .i { width: 17px; height: 17px; color: var(--gold); stroke-width: 2.6; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }

.hero-stage { display: grid; justify-items: center; gap: 18px; }
.who { display: grid; justify-items: center; gap: 10px; }
.who-label { font: 600 1.35rem/1 var(--font-hand); color: var(--on-night-2); }
.who-list { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); }
.who-btn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px 4px 4px; border: 0; border-radius: 999px; background: transparent; color: var(--on-night-2); font-weight: 700; font-size: .9rem; transition: background-color .25s, color .25s; }
.who-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.who-btn:hover { color: #fff; }
.who-btn[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.stage-cta { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; padding-bottom: 6px; }
.stage-cta small { color: var(--on-night-2); font-size: .875rem; }
.stage-cta .btn { min-height: 56px; }

/* village skyline under the hero */

@media (min-width: 640px) { .hero { --vh: 210px; } }
@media (min-width: 980px) {
  /* the village grows with the width so the church tower never gets cropped */
  .hero { --vh: max(260px, 18.1vw); padding-top: 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 32px; padding-bottom: calc(var(--vh) - 90px); }
  .hero-copy { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.5rem, 3.5vw, 3.2rem); }
  .lead { font-size: 1.25rem; }
  .hero-stage { position: relative; z-index: 2; }
  /* desktop: one CTA in the hero is enough */
  .stage-cta .btn { display: none; }
}
@media (min-width: 1200px) {
  .hero-stage { grid-template-columns: auto auto; justify-content: end; align-items: center; column-gap: 26px; }
  .who { align-self: center; }
  .who-list { flex-direction: column; border-radius: 26px; padding: 6px; gap: 6px; }
  .who-btn { padding: 6px 16px 6px 6px; font-size: .95rem; }
  .who-btn img { width: 40px; height: 40px; }
  .stage-cta { grid-column: 2; }
}

/* ---------- Phone demo ---------- */
.phone {
  --w: min(292px, 78vw, max(240px, calc((100vh - 250px) * .4867)));
  position: relative; width: var(--w); aspect-ratio: 292 / 600; border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .034);
  background: linear-gradient(160deg, #34403c, #0d1513 40%, #060a09);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -40px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(8, 20, 24, .9);
}
@supports (height: 100svh) { .phone { --w: min(292px, 78vw, max(240px, calc((100svh - 250px) * .4867))); } }
@media (min-width: 980px) { .hero-stage .phone { --w: min(300px, calc((100vh - 200px) * .4867)); } }
.phone::before { content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 13%; border-radius: 3px; background: #34403c; }
.phone.is-ringing { animation: buzz 3.4s infinite; }
@keyframes buzz { 0%, 70%, 100% { transform: none; } 72%, 76%, 80%, 84% { transform: rotate(-1.2deg) translateX(-1px); } 74%, 78%, 82% { transform: rotate(1.2deg) translateX(1px); } }
.phone-screen { position: relative; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.poster { position: absolute; inset: 0; z-index: -2; }
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: filter .7s var(--ease), transform .7s var(--ease), opacity .4s; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .05) 34%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .78) 100%); transition: background .6s; }
.phone[data-state="live"] .poster img, .phone[data-state="ended"] .poster img { filter: blur(20px) brightness(.42) saturate(1.2); transform: scale(1.2); }
.phone[data-state="live"] .poster::after, .phone[data-state="ended"] .poster::after { background: rgba(5, 10, 12, .3); }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 31%; height: 25px; border-radius: 20px; background: #000; z-index: 4; }
.statusbar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 0 24px; font-size: .75rem; font-weight: 700; }
.statusbar .sb { display: inline-flex; gap: 5px; align-items: center; }
.statusbar .sb svg { height: 10px; width: auto; fill: #fff; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 46px 16px 22px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.phone[data-state="ringing"] .ph-ring, .phone[data-state="live"] .ph-live, .phone[data-state="ended"] .ph-ended { opacity: 1; visibility: visible; transition: opacity .35s .1s, visibility 0s; }
.ph-top { text-align: center; display: grid; gap: 2px; padding-top: 10px; }
.ph-sub { font-size: .8rem; font-weight: 600; opacity: .82; }
.ph-name { font: 700 clamp(1.8rem, 9.5vw, 2.3rem)/1.05 var(--font-display); letter-spacing: -.01em; }
.ph-name.sm { font-size: 1.3rem; }
.ph-actions { margin-top: auto; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 6px 6px; }
.ph-btn { display: grid; justify-items: center; gap: 8px; background: none; border: 0; color: #fff; font-size: .75rem; font-weight: 600; padding: 0; }
.ph-btn > span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s var(--ease); }
.ph-btn:hover > span { transform: scale(1.05); }
.ph-btn .i { width: 28px; height: 28px; }
.ph-btn.decline > span, .ph-btn.end > span { background: #ff3b30; }
.ph-btn.decline .i, .ph-btn.end .i { transform: rotate(135deg); }
.ph-btn.accept > span { background: #30c95b; }
/* pulsing ring: a scaled pseudo-element (compositor only) instead of an animated box-shadow */
.ph-btn.accept > span, .notif.call .answer { position: relative; isolation: isolate; }
.ph-btn.accept > span::before, .notif.call .answer::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(48, 201, 91, .5); z-index: -1; animation: ringPulse 1.6s ease-out infinite; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.ph-hint { position: absolute; left: 74%; bottom: 120px; transform: translateX(-50%); width: max-content; padding: 7px 11px; border-radius: 10px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 800; line-height: 1; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .55); animation: hintBob 1.8s var(--ease) infinite; }
.ph-hint::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.ph-toast { position: absolute; left: 16px; right: 16px; bottom: 120px; padding: 11px 14px; border-radius: 16px; font-size: .85rem; line-height: 1.35; text-align: center; background: rgba(20, 26, 28, .88); animation: pop .35s var(--ease) both; }
.ph-timer { font-size: .85rem; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
.ph-known { margin-top: 12px; display: grid; justify-items: center; gap: 6px; min-height: 52px; }
.ph-known-label { font-size: .625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.fact { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: rgba(232, 185, 49, .16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(232, 185, 49, .45); animation: pop .4s var(--ease) both; }
.fact .i { width: 11px; height: 11px; stroke-width: 3.2; }
.captions { position: absolute; left: 12px; right: 12px; bottom: 112px; top: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.bubble { align-self: flex-start; max-width: 94%; padding: 8px 12px 9px; border-radius: 16px 16px 16px 5px; background: rgba(255, 255, 255, .14); font-size: .875rem; line-height: 1.38; animation: pop .3s var(--ease) both; }
.bubble b { display: block; font-size: .625rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .62; margin-bottom: 2px; }
.bubble.child { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: #30c95b; color: #04220f; }
.bubble.child b { opacity: .7; }
.w { opacity: .34; transition: opacity .18s; }
.w.on { opacity: 1; }
.ph-controls { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 2px 6px; }
.ph-ctl { display: grid; justify-items: center; gap: 8px; font-size: .7rem; font-weight: 600; opacity: .85; }
.ph-ctl > span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.ph-ctl.on > span { background: #fff; color: #000; }
.ph-ctl .i { width: 22px; height: 22px; }
.ph-controls .ph-btn > span { width: 58px; height: 58px; }
.ph-ended .ph-end-box { margin: auto 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.ph-ended .ph-end-box .btn { margin-top: 14px; }
.phone-error { position: absolute; left: 14px; right: 14px; bottom: 116px; font-size: .8rem; text-align: center; color: #ffd6d6; }

/* ---------- Bonuses ---------- */
.bonus { padding-block: 40px 8px; }
.bonus-card { position: relative; padding: 30px 22px 24px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-paper); }
.ribbon { position: absolute; top: -7px; left: 24px; width: 36px; height: 64px; background: linear-gradient(180deg, #e3474d, var(--red-press)); border-radius: 3px 3px 0 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 13px), 0 100%); box-shadow: 0 8px 16px rgba(60, 30, 10, .25); }
.ribbon::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1.5px; transform: translateX(-50%); background: rgba(255, 255, 255, .3); }
.bonus-card .ribbon { left: 22px; }
.bonus-head { display: grid; gap: 2px; padding-left: 52px; min-height: 52px; align-content: center; }
.bonus-head h2 { font-size: clamp(1.45rem, 5.6vw, 1.95rem); font-weight: 900; line-height: 1.16; }
.bonus-head h2 em { color: var(--red); }
.bonus-head h2 em { padding-bottom: .1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 6c5-4 10-4 15 0s10 4 15 0 7-3 10-1' fill='none' stroke='%23e8b931' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 40px 10px repeat-x; }
.bonus-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.bonus-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; }
.bonus-list b { display: block; font-size: 1rem; line-height: 1.25; }
.bonus-list small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.35; margin-top: 2px; }
.b-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-deep); }
.b-ico .i { width: 22px; height: 22px; }
.bonus-list li.prem .b-ico { background: var(--night); color: var(--gold); }
@media (min-width: 640px) { .bonus-list { grid-template-columns: 1fr 1fr; gap: 18px 26px; } }
@media (min-width: 980px) { .bonus { padding-top: 56px; } .bonus-card { padding: 34px 36px 30px; } .bonus-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- How it works: garland steps + letter → call ---------- */
.letter-section { padding-top: 64px; }
.letter-head { display: grid; gap: 14px; max-width: 760px; }
.garland-steps { list-style: none; margin: 38px 0 6px; padding: 0; display: grid; gap: 26px; }
.garland-steps li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
.garland-steps .gs-num { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2f2300; font: 700 1.35rem/1 var(--font-display); box-shadow: 0 0 0 6px rgba(232, 185, 49, .18); position: relative; z-index: 1; }
.garland-steps b { font: 700 1.2rem/1.25 var(--font-display); align-self: end; }
.garland-steps small { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.garland-steps li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 58px; bottom: -26px; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px); }
@media (min-width: 820px) {
  .garland-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 46px; }
  .garland-steps li { grid-template-columns: 1fr; row-gap: 8px; }
  .garland-steps .gs-num { grid-row: auto; margin-bottom: 8px; }
  .garland-steps li:not(:last-child)::after {
    left: 66px; right: -24px; top: 12px; bottom: auto; width: auto; height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cpath d='M0 10c8 8 16 8 24 0s16-8 24 0' fill='none' stroke='%23c99a2e' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='15' r='3' fill='%23d42b33'/%3E%3Ccircle cx='36' cy='7' r='3' fill='%23e8b931'/%3E%3C/svg%3E") left center / 48px 28px repeat-x;
  }
}
.letter-grid { display: grid; gap: 22px; margin-top: 40px; align-items: start; }
.lg-col { display: grid; gap: 16px; }
.lg-step { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-arrow { color: var(--red); justify-self: center; transform: rotate(40deg); }
.lg-arrow svg { width: 54px; height: 48px; }
.letter {
  position: relative; padding: 34px 26px 26px 30px; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-paper);
  transform: rotate(-1.6deg); max-width: 440px;
  background-image: repeating-linear-gradient(180deg, transparent 0 37px, rgba(120, 150, 170, .28) 37px 38px);
  background-position: 0 30px;
}
.letter::before { content: ""; position: absolute; top: -13px; left: 50%; width: 118px; height: 28px; background: rgba(232, 185, 49, .42); transform: translateX(-50%) rotate(2deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.letter::after { content: ""; position: absolute; top: 0; bottom: 0; left: 18px; width: 1.5px; background: rgba(212, 43, 51, .3); }
.letter-text { font: 500 1.65rem/38px var(--font-hand); color: #2b2f3a; }
.letter-text u { text-decoration: none; background-repeat: no-repeat; background-size: 100% 6px; background-position: 0 92%; padding-bottom: 1px; }
.letter-text u.m1 { background-image: linear-gradient(var(--mark-1), var(--mark-1)); }
.letter-text u.m2 { background-image: linear-gradient(var(--mark-2), var(--mark-2)); }
.letter-sign { display: block; text-align: right; margin-top: 2px; }
.stamp { position: absolute; top: -20px; right: 16px; width: 62px; padding: 6px; transform: rotate(6deg); background: radial-gradient(circle, transparent 2.4px, #fff 2.9px) -4px -4px / 8px 8px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18)); }
.stamp img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.chat { display: grid; gap: 10px; padding: 18px 16px; border-radius: 26px; background: var(--night); max-width: 460px; }
.msg { max-width: 88%; padding: 10px 14px 11px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .1); color: var(--on-night); font-size: 1.02rem; line-height: 1.42; }
.msg b { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.msg.kid { justify-self: end; border-radius: 18px 18px 6px 18px; background: #30c95b; color: #052611; font: italic 700 1.05rem/1.35 var(--font-display); }
.msg.kid b { color: #062a13; font-family: var(--font-text); font-style: normal; }
.chat mark.m1 { background: linear-gradient(transparent 55%, rgba(232, 185, 49, .55) 55%); color: #fff; }
.chat mark.m2 { background: linear-gradient(transparent 55%, rgba(255, 110, 120, .5) 55%); color: #fff; }
@media (min-width: 980px) {
  .letter-grid { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 52px; }
  .lg-arrow { transform: rotate(-20deg); margin-top: 40px; }
  .letter { margin-top: 10px; }
}

/* ---------- Listen: three sample cards with real waveforms ---------- */
.samples {
  background-color: var(--night);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 78% 14%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.6px 1.6px at 88% 70%, rgba(255, 210, 122, .7), transparent),
    radial-gradient(1px 1px at 30% 82%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.2px 1.2px at 55% 40%, rgba(255, 255, 255, .35), transparent);
}
.samples-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.samples-head .sub { margin-inline: auto; }
.sp-cards { display: grid; gap: 16px; margin-top: 36px; }
.sp-card { display: grid; gap: 18px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sp-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.sp-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.sp-head h3 { font-size: 1.35rem; color: var(--on-night); }
.sp-head p { color: var(--on-night-2); font-size: .92rem; line-height: 1.4; margin-top: 2px; }
.sp-player { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(0, 0, 0, .22); }
.sp-play { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--gold); color: #2f2300; transition: transform .15s var(--ease); }
.sp-play:active { transform: scale(.94); }
.sp-play .i { width: 20px; height: 20px; }
.sp-time { font-size: .85rem; font-weight: 700; color: var(--on-night); min-width: 34px; text-align: right; }
.sp-more { color: var(--on-night-2); font-size: .9rem; }
.sp-more a { color: var(--on-night); }
@media (min-width: 900px) { .sp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---------- Pricing: dark Premium with gold, light framed Basic ---------- */
.pricing { background: var(--paper-2); }
.pricing-head { display: grid; gap: 12px; text-align: center; justify-items: center; }
.tags { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin: 52px auto 0; max-width: 980px; }
.tag-card { position: relative; display: flex; flex-direction: column; gap: 18px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-paper); transition: transform .25s var(--ease); }
.tag-card:hover { transform: translateY(-3px); }
.flag { position: absolute; top: -13px; right: 20px; padding: 6px 12px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: #2f2300; box-shadow: 0 8px 18px -6px rgba(232, 185, 49, .6); }
.tag-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 12px; padding-left: 52px; }
@media (max-width: 400px) { .featured .tag-price strong { font-size: 2.5rem; } .basic .tag-price strong { font-size: 1.9rem; } }
.tag-top small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag-top h3 { margin-top: 2px; }
.tag-price { white-space: nowrap; font-weight: 800; }
.tag-price strong { font: 700 2.4rem/1 var(--font-display); letter-spacing: -.02em; }
.tag-card ul { list-style: none; padding: 16px 0 0; border-top: 1.5px dashed var(--line-2); display: grid; }
.tag-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; line-height: 1.45; font-weight: 500; }
.tag-card li span { min-width: 0; }
.tag-card li .i { width: 18px; height: 18px; margin-top: 2px; color: var(--green-ink); stroke-width: 2.6; }
.tag-card li.off { color: var(--muted); }
.tag-card li.off .i { color: var(--line-2); }
.tag-card li strong { font-weight: 800; }
.tag-card .btn { margin-top: auto; }
.tag-card.featured { padding: 36px 26px 28px; background: var(--night); color: var(--on-night); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 8px rgba(232, 185, 49, .14), 0 30px 60px -28px rgba(8, 20, 24, .8); }
.featured .ribbon { background: linear-gradient(180deg, #f0c765, #c3932a); }
.featured .tag-top small { color: var(--on-night-2); }
.featured .tag-top h3 { font-size: 2rem; }
.featured .tag-price { color: var(--gold); }
.featured .tag-price strong { font-size: 3rem; }
.featured ul { gap: 11px; font-size: 1.02rem; border-top-color: rgba(255, 255, 255, .16); }
.featured li .i, .featured li strong { color: var(--gold); }
.tag-card.basic { padding: 26px 22px 22px; background: #f1e7d3; box-shadow: inset 0 0 0 1.5px #dcc9a3; }
.tag-card.basic .tag-top small, .tag-card.basic li.off { color: var(--ink-2); }
.basic .ribbon { height: 52px; width: 30px; }
.basic .tag-top { padding-left: 44px; }
.basic .tag-top h3 { font-size: 1.5rem; }
.basic .tag-price { color: var(--ink); }
.basic .tag-price strong { font-size: 2.1rem; }
.basic ul { gap: 8px; font-size: .94rem; }
.pay-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 30px; color: var(--ink-2); font-size: .9375rem; }
.pay-row > .i { width: 18px; height: 18px; color: var(--green-ink); }
.retry-note { margin: 12px auto 0; color: var(--ink-2); font-size: .9375rem; max-width: 64ch; text-align: center; }
@media (min-width: 820px) {
  .tags { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: center; gap: 26px; }
  .tag-card.featured { padding: 44px 40px 36px; }
  .tag-card.basic { padding: 30px 28px 26px; }
}

/* ---------- Reviews ---------- */
.voices { border-top: 1px solid var(--line); }
.voices-top { display: grid; gap: 4px; margin-bottom: 28px; justify-content: start; }
.voices-top .h2 { margin-top: 6px; }
.voices-row { display: grid; gap: 22px; }
.big-quote blockquote { margin-top: 10px; font: italic 700 clamp(1.45rem, 5.4vw, 2.2rem)/1.3 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.big-quote blockquote::before { content: "„"; color: var(--red); }
.big-quote blockquote::after { content: "“"; color: var(--red); }
.big-quote p { margin-top: 18px; color: var(--ink-2); font-size: 1.0625rem; max-width: 58ch; }
.who-said { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9375rem; color: var(--muted); }
.who-said b { color: var(--ink); }
.big-quote .who-said { gap: 12px; margin-top: 18px; flex-wrap: nowrap; }
.big-quote .who-said > span:last-child { display: grid; line-height: 1.3; }
.big-quote .who-said small { color: var(--muted); font-size: .875rem; }
.initial { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-deep); font-weight: 800; flex: none; }
.score-card { display: grid; gap: 8px; align-content: start; padding: 24px 22px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-align: center; justify-items: center; }
.score-card strong { font: 700 3.4rem/1 var(--font-display); }
.score-card .stars-row { font-size: 1.1rem; letter-spacing: 3px; }
.score-card p { color: var(--muted); font-size: .9rem; }
.score-card small { color: var(--muted); font-size: .78rem; line-height: 1.4; max-width: 30ch; }
.score-card .btn { margin-top: 6px; }
.small-quotes { display: grid; margin-top: 26px; }
.small-quote { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.small-quote:last-child { border-bottom: 1px solid var(--line); }
.small-quote .stars-row { font-size: .85rem; }
.small-quote q { display: block; font: italic 700 1.12rem/1.35 var(--font-display); quotes: "„" "“"; }
.small-quote p { color: var(--ink-2); font-size: 1rem; }
.small-quote .who-said { margin-top: 2px; font-size: .9rem; }
@media (min-width: 980px) {
  .voices-row { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center; }
  .small-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 40px; }
  .small-quote, .small-quote:last-child { border-bottom: 0; }
}

/* ---------- Diploma ---------- */
.dipl { position: relative; overflow: hidden; background: var(--pine); }
.dipl .wrap { position: relative; z-index: 1; display: grid; gap: 40px; }
.dipl-glow { position: absolute; z-index: -1; left: 50%; top: 52%; width: 900px; height: 700px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 207, 118, .2), transparent); }
.dipl-head { display: grid; gap: 10px; text-align: center; justify-items: center; }
.dipl-grid { display: grid; gap: 40px; align-items: center; }
.dipl-stage { display: grid; justify-items: center; padding-top: 10px; }
.dipl-frame { position: relative; width: min(360px, 86vw); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.dipl-frame:hover { transform: rotate(0deg) scale(1.01); }
.dipl-frame .dp { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); }
.magnet { position: absolute; z-index: 2; top: -16px; left: 50%; width: 38px; height: 38px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b6f, var(--red) 55%, #8f1219); box-shadow: 0 6px 12px rgba(0, 0, 0, .45); }
.magnet::before { content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 9px; transform: translateX(-50%); border-radius: 3px; background: linear-gradient(180deg, #f5d27a, #b98a1e); }
.dipl-copy { display: grid; gap: 26px; max-width: 520px; justify-self: center; width: 100%; }
.dipl-copy .btn-gold { justify-self: start; }
.try { display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.try-label { font: 600 1.4rem/1.1 var(--font-hand); color: var(--gold); }
.try-input { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--paper); color: var(--ink); font: 700 1.3rem/1 var(--font-display); }
.try-input:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.try-who { display: flex; flex-wrap: wrap; gap: 6px; }
.try-who button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: var(--on-night-2); font-weight: 700; font-size: .875rem; }
.try-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.try-who button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.dipl-facts { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--on-night); }
.dipl-facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.dipl-facts .i { color: var(--gold); width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.6; }
@media (min-width: 980px) {
  .dipl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .dipl-frame { width: 420px; }
  .dipl-copy { justify-self: start; }
}

/* ---------- How the day goes: notifications ---------- */
.flow-grid { display: grid; gap: 40px; }
.flow-aside { display: grid; gap: 16px; align-content: start; }
.flow-aside p { color: var(--ink-2); }
.flow-aside .btn { justify-self: start; }
.contact-tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--gold-tint); }
.contact-tip .i { width: 26px; height: 26px; color: var(--gold-deep); }
.contact-tip p { font-size: .9375rem; color: var(--ink); }
.notes { list-style: none; padding: 0; display: grid; gap: 14px; position: relative; }
.note { display: grid; gap: 8px; }
.note-when { font: 600 1.35rem/1 var(--font-hand); color: var(--red); padding-left: 4px; }
.notif { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 16px 15px 14px; border-radius: 20px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 14px 30px -20px rgba(40, 30, 10, .35); }
.notif-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); }
.notif-ico svg { width: 30px; height: 30px; }
.notif-head { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); }
.notif-head b { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.notif strong { display: block; margin-top: 2px; font-size: 1rem; }
.notif p { font-size: .9375rem; color: var(--ink-2); line-height: 1.45; margin-top: 1px; }
.notif.call { background: var(--night); color: var(--on-night); box-shadow: 0 18px 40px -20px rgba(8, 20, 24, .7); grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; }
.notif.call img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.notif.call strong { font: 700 1.2rem/1.1 var(--font-display); }
.notif.call p { color: var(--on-night-2); }
.notif.call .answer { width: 44px; height: 44px; border-radius: 50%; background: #30c95b; display: grid; place-items: center; color: #fff; }
.notif.call .answer .i { width: 22px; height: 22px; }
@media (min-width: 980px) { .flow-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } .flow-aside { position: sticky; top: 110px; } }

/* ---------- Rules (struck-through notepad) ---------- */
.rules-grid { display: grid; gap: 40px; align-items: center; }
.rules-copy { display: grid; gap: 18px; }
.rules-copy p { color: var(--ink-2); max-width: 52ch; }
.rules-facts { list-style: none; padding: 0; display: grid; gap: 10px; }
.rules-facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.rules-facts .i { color: var(--green-ink); width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.4; }
.notepad { position: relative; padding: 30px 28px 26px; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-paper); transform: rotate(1.2deg); max-width: 470px; justify-self: center; width: 100%; }
.notepad::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; border-radius: 6px 6px 0 0; background: radial-gradient(circle at 11px 8px, var(--page) 3.2px, transparent 3.8px) 4px 0 / 22px 16px repeat-x, var(--red); }
.notepad h3 { font: 600 1.35rem/1.1 var(--font-hand); color: var(--muted); margin-top: 6px; }
.notepad ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 4px; }
.notepad li { font: 600 1.75rem/1.35 var(--font-hand); color: #2b2f3a; }
.notepad li s { text-decoration: none; background-image: linear-gradient(var(--red), var(--red)); background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 58%; }
.notepad .signed { display: block; margin-top: 14px; font: 600 1.4rem/1 var(--font-hand); color: var(--red); text-align: right; transform: rotate(-3deg); }
@media (min-width: 980px) { .rules-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } .notepad { justify-self: end; } }

/* ---------- FAQ: serif questions, a round plus that turns into a cross ---------- */
.faq-section { background: var(--page); border-top: 1px solid var(--line); }
.faq-layout { display: grid; gap: 30px; }
.faq-intro { display: grid; gap: 14px; align-content: start; }
.faq { display: grid; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font: 700 1.08rem/1.4 var(--font-display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .2s; }
.faq-ico .i { width: 18px; height: 18px; }
.faq details[open] .faq-ico { transform: rotate(45deg); background: var(--gold); color: #2f2300; box-shadow: none; }
.faq summary:hover .faq-ico { box-shadow: inset 0 0 0 1.5px var(--ink); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 64ch; }
@media (min-width: 980px) { .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } .faq-intro { position: sticky; top: 110px; align-self: start; } }

/* ---------- Finale (village painting) ---------- */
.finale { min-height: 640px; display: grid; align-items: start; text-align: center; padding-block: 84px 300px; }
.finale-bg { position: absolute; inset: 0; z-index: -3; background: 50% 78% / cover no-repeat; }
.finale-bg.is-near { background-image: url("/images/night-village.webp"); }
.finale-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 27, 33, .82) 0%, rgba(12, 27, 33, .45) 38%, rgba(12, 27, 33, 0) 62%, rgba(8, 19, 15, .35) 86%, #08130f 100%); }
.finale .sky { z-index: -2; }
.finale .wrap { display: grid; justify-items: center; gap: 16px; position: relative; z-index: 1; }
.countdown-line { font: 600 1.6rem/1.1 var(--font-hand); color: var(--gold); }
.countdown-line b { font-size: 2.1rem; }
.finale h2 { font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 900; line-height: 1.1; }
.finale h2 em { color: var(--gold); }
.finale .sub { margin-inline: auto; color: var(--on-night); opacity: .9; }
.finale .btn { margin-top: 10px; }
.finale small { color: var(--on-night-2); font-size: .875rem; }
@media (min-width: 980px) { .finale { min-height: 760px; padding-block: 120px 340px; } .finale-bg { background-position: 50% 82%; } }

@media (prefers-reduced-motion: reduce) {
  .phone.is-ringing { animation: none; }
  .ph-btn.accept > span::before, .notif.call .answer::before { animation: none; opacity: 0; }
}

/* Sections below the first screen are laid out only when they come near the viewport,
   so the first paint does not wait for the whole long page. */
.page-home main > section:not(.hero) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.cv-all .page-home main > section:not(.hero) { content-visibility: visible; }
