/* AIDO TV home. Same structure as the Presupusta home; markup generated by tools/aido-tv/build.mjs (page). */

:root {
  --navy: #0B1220;
  --navy-2: #11214a;
  --glow: rgba(253, 118, 26, .35);
}

.av-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.av-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.av-h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.025em; }
.av-lead { margin-top: 14px; color: var(--on-surface-variant); font-size: clamp(16px, 1.8vw, 18px); max-width: 620px; }
.av-center { text-align: center; }
.av-center .av-lead { margin-left: auto; margin-right: auto; }
.av-section { padding: clamp(64px, 9vw, 112px) 0; }

/* ============================ HERO ============================ */
.av-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(244,63,94,.28), transparent 60%),
    radial-gradient(1000px 600px at 10% 110%, rgba(59,130,246,.55), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, #1d4ed8 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(120px, 14vw, 180px);
}
.av-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.av-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.av-hero .platforms { margin-bottom: 22px; }
.av-hero .pill { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.av-hero .platforms .lang-switch { color: #cfe0ff !important; background: none; padding: 0 4px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.av-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.av-hero h1 span { display: block; color: #93c5fd; }
.av-hero__lead { margin-top: 22px; font-size: clamp(17px, 2vw, 21px); color: #d6e3ff; max-width: 520px; }
.av-hero .store-note { color: #a9c2f2; }
.av-hero .store-badge:hover { box-shadow: 0 10px 30px rgba(0,0,0,.35); }

.av-stage { position: relative; height: clamp(420px, 52vw, 600px); }
.av-phone {
  position: absolute; margin: 0; width: clamp(150px, 19vw, 250px);
  padding: 7px; border-radius: 36px; background: #0b1326;
  box-shadow: 0 0 0 1.5px #3b4a6b inset, 0 40px 80px rgba(2,10,30,.55), 0 8px 24px rgba(2,10,30,.4);
}
.av-phone img { width: 100%; height: auto; display: block; border-radius: 29px; }
.av-phone--c { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; width: clamp(170px, 22vw, 290px); animation: av-float 7s ease-in-out infinite; }
.av-phone--l { left: 2%; top: 9%; transform: rotate(-9deg); z-index: 2; animation: av-float-l 8s ease-in-out infinite; }
.av-phone--r { right: 2%; top: 13%; transform: rotate(8deg); z-index: 2; animation: av-float-r 9s ease-in-out infinite; }
@keyframes av-float { 50% { transform: translateX(-50%) translateY(-12px); } }
@keyframes av-float-l { 50% { transform: rotate(-9deg) translateY(-8px); } }
@keyframes av-float-r { 50% { transform: rotate(8deg) translateY(-10px); } }

.av-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--on-surface); border-radius: 14px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; box-shadow: 0 16px 40px rgba(2,10,30,.35);
}
.av-chip small { display: block; font-weight: 500; color: var(--outline); font-size: 11px; }
.av-chip__dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(31,166,113,.14); display: grid; place-items: center; color: var(--tertiary); }
.av-chip--a { left: -4%; bottom: 6%; animation: av-bob 6s ease-in-out infinite; }
.av-chip--b { right: -3%; top: 50%; animation: av-bob 7s ease-in-out -2s infinite; }
@keyframes av-bob { 50% { transform: translateY(-9px); } }

/* ============================ PROOF STRIP ============================ */
.av-proof { position: relative; z-index: 5; margin-top: -72px; }
.av-proof__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(17,28,45,.16);
  border: 1px solid var(--outline-variant); overflow: hidden;
}
.av-proof__item { padding: 26px 22px; text-align: center; border-right: 1px solid var(--surface-container); }
.av-proof__item:last-child { border-right: 0; }
.av-proof__num { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--primary); line-height: 1; }
.av-proof__txt { margin-top: 8px; font-size: 14px; color: var(--on-surface-variant); }

/* ============================ HOW ============================ */
.av-steps { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.av-step { position: relative; background: #fff; border: 1px solid var(--outline-variant); border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow-sm); }
.av-step__n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--secondary); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 20px var(--glow);
}
.av-step h3 { font-size: 18px; font-weight: 700; }
.av-step p { margin-top: 6px; font-size: 14.5px; color: var(--on-surface-variant); }

/* ============================ SHOWCASE ============================ */
.av-show { overflow: hidden; }
.av-show:nth-of-type(odd) { background: var(--surface-low); }
.av-show__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.av-show--rev .av-show__art { order: -1; }
.av-show__copy .av-lead { max-width: 520px; }
.av-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.av-list li { position: relative; padding-left: 34px; color: var(--on-surface-variant); font-size: 16px; }
.av-list li strong { color: var(--on-surface); font-weight: 650; }
.av-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(31,166,113,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA671' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.av-tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 6px; background: var(--secondary); color: #fff;
}
.av-show__art { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.av-show__art::before {
  content: ""; position: absolute; width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(59,130,246,.28), rgba(59,130,246,.04) 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.av-show__art .av-phone { position: relative; width: clamp(220px, 28vw, 290px); }

.av-doc {
  position: relative; width: min(100%, 560px); background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 40px 80px rgba(17,28,45,.22), 0 0 0 1px rgba(17,28,45,.06);
}
.av-doc img { width: 100%; height: auto; border-radius: 8px; }
.av-doc__pill {
  position: absolute; top: -14px; left: 22px; background: var(--secondary); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; padding: 6px 12px; border-radius: 999px; box-shadow: 0 10px 24px var(--glow);
}
.av-swatches { position: absolute; right: -10px; bottom: -22px; display: flex; gap: 8px; background: #fff; padding: 10px 12px; border-radius: 999px; box-shadow: var(--shadow-md); }
.av-swatches i { width: 22px; height: 22px; border-radius: 50%; display: block; }

/* ============================ FEATURE GRID ============================ */
.av-feats { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.av-feats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 90% 0%, rgba(59,130,246,.35), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(244,63,94,.18), transparent 60%);
}
.av-feats .av-wrap { position: relative; }
.av-feats .av-eyebrow { color: #93c5fd; }
.av-feats .av-lead { color: #b9cdf3; }
.av-legend { margin-top: 22px; display: flex; gap: 18px; justify-content: center; font-size: 13px; color: #b9cdf3; }
.av-legend span { display: inline-flex; align-items: center; gap: 8px; }
.av-legend i { width: 10px; height: 10px; border-radius: 50%; display: block; background: var(--tertiary); }
.av-legend i.pro { background: var(--secondary); }
.av-fgrid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.av-f {
  position: relative; border-radius: 18px; padding: 24px 20px 22px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s, background .2s, border-color .2s;
}
.av-f:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.av-f__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #9ec3ff; margin-bottom: 16px; }
.av-f--pro .av-f__ic { background: rgba(244,63,94,.18); color: #93c5fd; }
.av-f h3 { font-size: 16.5px; font-weight: 700; }
.av-f p { margin-top: 6px; font-size: 14px; color: #b9cdf3; }
.av-f__b { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 800; letter-spacing: .07em; padding: 3px 8px; border-radius: 999px; background: rgba(31,166,113,.2); color: #6fe0b0; }
.av-f--pro .av-f__b { background: var(--secondary); color: #fff; }

/* ============================ COMPARE + PRICING ============================ */
.av-compare { margin: 44px auto 0; max-width: 860px; background: #fff; border: 1px solid var(--outline-variant); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.av-compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.av-compare th, .av-compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--surface-container); }
.av-compare th:first-child, .av-compare td:first-child { text-align: left; font-weight: 600; }
.av-compare thead th { background: var(--surface-low); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-surface-variant); }
.av-compare thead th.pro { background: var(--secondary); color: #fff; }
.av-compare td.pro { background: rgba(244,63,94,.05); font-weight: 600; }
.av-compare tr:last-child td { border-bottom: 0; }
.av-yes { color: var(--tertiary); font-weight: 800; }
.av-no { color: var(--outline-variant); }
.av-compare .sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--outline); }
.av-pricing { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin-left: auto; margin-right: auto; }
.av-plan { position: relative; background: #fff; border: 1px solid var(--outline-variant); border-radius: 20px; padding: 28px 24px; text-align: center; }
.av-plan--feat { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 50px rgba(0,88,190,.18); transform: translateY(-8px); }
.av-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.av-plan__name { font-size: 15px; font-weight: 700; color: var(--on-surface-variant); }
.av-plan__price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 4px; }
.av-plan__price span { font-size: 15px; font-weight: 500; color: var(--outline); letter-spacing: 0; }
.av-plan__note { font-size: 13.5px; color: var(--on-surface-variant); }
.av-fine { margin: 26px auto 0; max-width: 700px; text-align: center; font-size: 12.5px; color: var(--outline); }

/* ============================ FAQ ============================ */
.av-faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
.av-faq details { background: #fff; border: 1px solid var(--outline-variant); border-radius: 16px; padding: 4px 22px; transition: box-shadow .2s; }
.av-faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.av-faq summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 16.5px; padding: 18px 28px 18px 0; position: relative; }
.av-faq summary::-webkit-details-marker { display: none; }
.av-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); font-weight: 400; transition: transform .2s; }
.av-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.av-faq p { padding: 0 0 20px; color: var(--on-surface-variant); font-size: 15.5px; }
.av-faq a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ============================ FINAL CTA ============================ */
.av-cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 40px);
  background: radial-gradient(700px 360px at 50% 120%, rgba(244,63,94,.4), transparent 60%), linear-gradient(135deg, var(--navy), #1d4ed8);
}
.av-cta h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; max-width: 780px; margin: 0 auto; }
.av-cta p { margin: 16px auto 0; color: #cfe0ff; font-size: 17px; max-width: 520px; }
.av-cta .store-badges { justify-content: center; margin-top: 34px; }

/* ============================ REVEAL ============================ */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 960px) {
  .av-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .av-hero__copy { display: flex; flex-direction: column; align-items: center; }
  .av-hero .store-badges { justify-content: center; }
  .av-stage { height: clamp(300px, 74vw, 470px); order: 2; margin-top: 8px; }
  .av-phone { width: clamp(130px, 30vw, 210px); }
  .av-phone--c { width: clamp(150px, 36vw, 250px); }
  .av-show__inner { grid-template-columns: 1fr; text-align: left; }
  .av-show--rev .av-show__art { order: 0; }
  .av-show__art { margin-top: 12px; }
  .av-fgrid { grid-template-columns: repeat(2, 1fr); }
  .av-steps { grid-template-columns: repeat(2, 1fr); }
  .av-proof__grid { grid-template-columns: repeat(2, 1fr); }
  .av-proof__item:nth-child(2) { border-right: 0; }
  .av-proof__item:nth-child(-n+2) { border-bottom: 1px solid var(--surface-container); }
}
@media (max-width: 640px) {
  .av-fgrid, .av-steps { grid-template-columns: 1fr; }
  .av-pricing { grid-template-columns: 1fr; }
  .av-plan--feat { transform: none; }
  .av-chip { display: none; }
  .av-compare th, .av-compare td { padding: 12px 10px; font-size: 13.5px; }
  .av-swatches { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .av-phone, .av-chip { animation: none !important; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ============================ TV FRAME + PHONES (AIDO TV) ============================ */
.av-tv { margin: 0; position: relative; padding: 9px; border-radius: 16px; background: #0a0f1c; box-shadow: 0 0 0 1.5px #34415f inset, 0 40px 80px rgba(2,10,30,.5), 0 8px 24px rgba(2,10,30,.35); }
.av-tv img, .av-tv video { width: 100%; height: auto; display: block; border-radius: 8px; background: #0B1220; }
.av-tv::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 26%; height: 14px; transform: translateX(-50%); background: linear-gradient(#1b2640, #0a0f1c); border-radius: 0 0 10px 10px; }
.av-stage { position: relative; height: auto; padding: 28px 0 56px; }
.av-tv--hero { width: 100%; }
.av-phone { margin: 0; padding: 6px; border-radius: 26px; background: #0b1326; box-shadow: 0 0 0 1.5px #3b4a6b inset, 0 24px 50px rgba(2,10,30,.5); }
.av-phone img { width: 100%; height: auto; display: block; border-radius: 20px; }
.av-phone--hero { position: absolute; right: -2%; bottom: 0; width: clamp(100px, 20%, 170px); z-index: 3; animation: av-float 7s ease-in-out infinite; }
@keyframes av-float { 50% { transform: translateY(-10px); } }
.av-chip--a { left: -4%; top: auto; bottom: 22%; }
.av-chip--b { right: 3%; top: -2%; }
.av-show__art .av-tv { width: min(100%, 560px); margin: 0 auto 18px; }
.av-show__art::before { width: min(520px, 100%); }
.av-mobile { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-low) 100%); }
.av-phones { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 3vw, 32px); max-width: 900px; margin-left: auto; margin-right: auto; }
.av-phones .av-phone { position: relative; left: auto; top: auto; width: 100%; animation: none; }
.av-phones .av-phone:nth-child(odd) { transform: translateY(18px); }
.js .av-phones .av-phone.rv.in:nth-child(odd) { transform: translateY(18px); }
.av-f--mix .av-f__b { background: linear-gradient(90deg, rgba(31,166,113,.3), rgba(244,63,94,.6)); color: #fff; }
.av-f--mix .av-f__ic { background: rgba(244,63,94,.14); color: #fda4af; }
.av-plan__prices { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; text-align: left; }
.av-plan__prices li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--surface-container); font-size: 15px; color: var(--on-surface-variant); }
.av-plan__prices strong { color: var(--on-surface); font-size: 18px; }
.av-plan__prices small { font-weight: 500; color: var(--outline); font-size: 12px; }
.av-plan__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; text-align: left; font-size: 14.5px; color: var(--on-surface-variant); }
.av-plan__list li { position: relative; padding-left: 26px; }
.av-plan__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(31,166,113,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA671' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; }
.av-pricing { margin: 40px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; text-align: center; align-items: start; }
.av-pricing .av-plan { text-align: center; }
.av .disclaimer-note { margin: 26px auto 0; max-width: 700px; text-align: center; font-size: 12.5px; color: var(--outline); }
.av .av-fine { margin: 26px auto 0; max-width: 700px; text-align: center; font-size: 12.5px; color: var(--outline); }
@media (max-width: 640px) { .av-pricing { grid-template-columns: 1fr; } .av-phones { grid-template-columns: repeat(2, 1fr); } .av-phone--hero { width: 24%; } }
@media (min-width: 961px) { .av-fgrid { grid-template-columns: repeat(3, 1fr); } }
