/* ===== Tokens ===== */
:root {
  --forest: #0c3c1c;
  --forest-deep: #082a14;
  --leaf: #2f7a3a;
  --moss: #6ca471;
  --ink: #14231a;
  --muted: #4a5a50;
  --paper: #f7f9f6;
  --tint: #eaf2ea;
  --line: #d6e1d7;
  --white: #fff;
  --blue: #0b63e5;
  --blue-dark: #0849ad;
  --saffron: #ff8a00;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 32px);
  --radius: 14px;
  --header-h: 68px;
  --ease: 180ms ease;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
input, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: var(--white); padding: 10px 16px; border-radius: 8px; transition: top var(--ease); }
.skip-link:focus { top: 12px; color: var(--white); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; background: var(--forest); color: var(--white); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform var(--ease), background var(--ease), box-shadow var(--ease), border-color var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(12 60 28 / 0.22); color: var(--white); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-saffron { background: var(--saffron); color: #1b1200; }
.btn-saffron:hover { background: #ffa033; color: #1b1200; }
.btn-ghost { background: transparent; border-color: rgb(255 255 255 / 0.7); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.14); }
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); font: 800 1.45rem var(--font-display); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--leaf); }
.brand img { width: 44px; height: 44px; object-fit: contain; }

.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform var(--ease), background var(--ease); }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgb(12 60 28 / 0.1); }
.nav.is-open { display: block; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-list > li > .btn { margin-top: 10px; width: 100%; }
.nav-link, .drop-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 8px; border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 8px; transition: background var(--ease), color var(--ease); }
.nav-link:hover, .drop-btn:hover { background: var(--tint); color: var(--forest); }
.drop-btn::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--ease); }
.dropdown.is-open .drop-btn::after { transform: translateY(1px) rotate(225deg); }
.menu { display: none; padding: 0 0 6px 14px; }
.dropdown.is-open .menu { display: block; }
.menu a { display: block; padding: 10px 8px; color: var(--forest); text-decoration: none; border-radius: 8px; transition: background var(--ease), color var(--ease); }
.menu a:hover { background: var(--leaf); color: var(--white); }

@media (min-width: 56rem) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-list { flex-direction: row; align-items: center; gap: 4px; }
  .nav-list > li > .btn { margin: 0 0 0 10px; width: auto; }
  .nav-link, .drop-btn { width: auto; padding: 8px 12px; }
  .dropdown { position: relative; }
  .menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 34px rgb(12 60 28 / 0.14); }
}

/* ===== Hero ===== */
.hero { color: var(--white); background: linear-gradient(100deg, rgb(8 42 20 / 0.94) 20%, rgb(12 60 28 / 0.7) 70%, rgb(12 60 28 / 0.5)), url("https://images.unsplash.com/photo-1465101046530-73398c7f28ca?auto=format&fit=crop&w=1500&q=80") center / cover; }
.hero-inner { max-width: var(--wrap); padding-block: clamp(72px, 14vw, 150px); }
.hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 7.5vw, 4.8rem); font-weight: 800; letter-spacing: -0.035em; }
.hero p { max-width: 36rem; margin-top: 22px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgb(255 255 255 / 0.88); }
.hero-inner > * { animation: rise 600ms ease both; }
.hero-inner > :nth-child(2) { animation-delay: 90ms; }
.hero-inner > :nth-child(3) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ===== Sections ===== */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--forest); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.kicker { font-size: 0.95rem; font-weight: 700; color: var(--moss); margin-bottom: 10px; }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head p:last-child { color: rgb(255 255 255 / 0.8); }

.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.photo { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 3 / 2; box-shadow: 0 20px 44px rgb(12 60 28 / 0.16); }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .split-reverse .photo { order: 2; }
}

/* Vikreta */
.feature-list li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); transition: padding-left var(--ease); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li:hover { padding-left: 10px; }
.feature-list strong { display: block; margin-bottom: 4px; font: 800 1.25rem var(--font-display); color: var(--forest); }

/* Checklists */
.checks { display: grid; gap: 12px; margin: 26px 0 30px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 10.5 2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
@media (min-width: 40rem) { .checks { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }

/* ApkaTV product panel */
.product { display: grid; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 28px; background: linear-gradient(125deg, #0f4a25, var(--forest-deep)); }
.product-copy { padding: clamp(26px, 5vw, 56px); align-self: center; }
.product-copy p:not(.kicker) { max-width: 26rem; color: rgb(255 255 255 / 0.82); }
.product-logo { display: inline-flex; align-items: flex-start; justify-content: center; gap: 2px; padding: 14px 18px; margin-bottom: 26px; border-radius: 18px; background: linear-gradient(135deg, #91bcff, #88efd1); color: #08111e; font: 800 1.5rem/1 var(--font-display); letter-spacing: -0.06em; }
.product-logo span { font-size: 0.85rem; margin-top: 2px; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 700; color: #8fe6c4; text-decoration: none; transition: transform var(--ease), color var(--ease); }
.text-link:hover { color: var(--white); transform: translateX(4px); }
.product-visual { position: relative; display: grid; place-items: center; min-height: 300px; padding: 40px 0; background: radial-gradient(ellipse at 50% 45%, rgb(136 239 209 / 0.22), transparent 62%); }
.tv { width: min(78%, 440px); }
.tv-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 8px solid #1d2f45; border-radius: 18px; background: linear-gradient(145deg, #203d61, #101b31 65%, #224b57); box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); }
.tv-glow { position: absolute; top: 0; left: 25%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(128 240 209 / 0.45), transparent 70%); }
.tv-play { position: absolute; top: 45%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; padding-left: 3px; border-radius: 50%; background: #eef5ff; color: #14213a; transform: translate(-50%, -50%); }
.tv-caption { position: absolute; left: 20px; bottom: 16px; display: grid; gap: 2px; }
.tv-caption span { font-size: 0.75rem; letter-spacing: 0.08em; color: #80f0d1; }
.tv-caption strong { font-size: 0.95rem; }
.tv-neck { width: 14%; height: 22px; margin: auto; background: #28364c; }
.tv-base { width: 28%; height: 8px; margin: auto; border-radius: 8px; background: #34445b; }
.chip { position: absolute; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 12px; background: rgb(8 42 20 / 0.85); font-size: 0.85rem; font-weight: 700; }
.chip-one { top: 14%; left: 6%; transform: rotate(-6deg); }
.chip-two { right: 5%; bottom: 14%; transform: rotate(5deg); }
@media (min-width: 56rem) { .product { grid-template-columns: 0.85fr 1.15fr; min-height: 420px; } }

/* ===== Contact ===== */
.contact { display: grid; gap: 36px; }
.contact > div > p + p { margin-top: 14px; color: var(--muted); }
.form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 34px rgb(12 60 28 / 0.08); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.95rem; font-weight: 700; }
input, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color var(--ease), box-shadow var(--ease); }
input:hover, textarea:hover { border-color: var(--moss); }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(11 99 229 / 0.2); }
input:user-invalid, textarea:user-invalid { border-color: #c62828; }
textarea { min-height: 140px; resize: vertical; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
#form-status { flex: 1 1 200px; font-size: 0.95rem; }
#form-status.is-ok { color: var(--leaf); }
#form-status.is-error { color: #c62828; }
@media (min-width: 40rem) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
@media (min-width: 56rem) { .contact { grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 64px; } }

/* ===== Footer ===== */
.site-footer { padding-top: 48px; background: var(--forest); color: var(--white); border-top: 2px solid var(--moss); }
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; transition: color var(--ease); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: #8fe6c4; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { margin-bottom: 14px; font: 800 1.6rem var(--font-display); }
.footer-title { margin-bottom: 10px; font-weight: 700; }
.site-footer nav li { margin-bottom: 8px; }
.social { display: flex; gap: 10px; }
.social a { display: block; width: 40px; height: 40px; border-radius: 10px; background: rgb(255 255 255 / 0.1); transition: background var(--ease), transform var(--ease); }
.social a::before { content: ""; display: block; width: 100%; height: 100%; background: var(--white); opacity: 0.85; -webkit-mask: var(--icon) center / 20px no-repeat; mask: var(--icon) center / 20px no-repeat; }
.social a:hover { background: rgb(255 255 255 / 0.22); transform: translateY(-2px); text-decoration: none; }
.i-linkedin { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/linkedin.svg"); }
.i-twitter { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/twitter.svg"); }
.i-github { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/github.svg"); }
.i-youtube { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/youtube.svg"); }
.copyright { margin-top: 36px; padding: 18px var(--gutter); border-top: 1px solid rgb(255 255 255 / 0.12); text-align: center; font-size: 0.85rem; color: rgb(255 255 255 / 0.7); }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== ApkaTV product page ===== */
.centered { text-align: center; margin-inline: auto; }
.centered .lead { margin-inline: auto; }
.micro-copy { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

.page-hero { color: var(--white); background: linear-gradient(125deg, #0f4a25, var(--forest-deep)); }
.page-hero-inner { display: grid; gap: 40px; align-items: center; padding-block: clamp(48px, 9vw, 96px); }
.page-hero h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
.hero-copy { max-width: 34rem; font-size: 1.15rem; color: rgb(255 255 255 / 0.85); }
.page-hero .micro-copy { color: rgb(255 255 255 / 0.65); }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 0.95rem; color: rgb(255 255 255 / 0.8); text-decoration: none; transition: color var(--ease), transform var(--ease); }
.back-link:hover { color: var(--white); transform: translateX(-3px); }
.hero-visual { min-height: 340px; padding: 40px 0; }
.chip strong, .chip small { display: block; line-height: 1.35; }
.chip small { font-weight: 400; color: rgb(255 255 255 / 0.7); font-size: 0.78rem; }
@media (min-width: 56rem) { .page-hero-inner { grid-template-columns: 1.05fr 0.95fr; } }

.feature-grid { display: grid; gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color var(--ease), transform var(--ease); }
.feature-card:hover { border-color: var(--moss); transform: translateY(-3px); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.3rem; color: var(--forest); }
.feature-card p { color: var(--muted); }
.section-head.centered { margin-bottom: 36px; }
@media (min-width: 48rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.availability { display: grid; gap: 32px; }
.platforms { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.platform-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.platform-row:last-child { border-bottom: 0; }
.platform-row strong, .platform-row small { display: block; }
.platform-row small { color: var(--muted); font-size: 0.85rem; }
.status { justify-self: end; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.status.available { background: #d5f0da; color: #11572a; }
.row-link { grid-column: 1 / -1; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.row-link.muted { color: var(--muted); font-weight: 400; }
.availability .micro-copy { margin-top: 0; }
@media (min-width: 48rem) {
  .platform-row { grid-template-columns: 1fr auto 110px; }
  .row-link { grid-column: auto; text-align: right; }
}
@media (min-width: 56rem) {
  .availability { grid-template-columns: 0.7fr 1.3fr; gap: 56px; }
  .availability .micro-copy { grid-column: 2; }
}

.faq { display: grid; gap: 28px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 20px 36px 20px 0; font-weight: 700; cursor: pointer; list-style: none; transition: color var(--ease); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--leaf); }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--leaf); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-bottom: 20px; color: var(--muted); }
@media (min-width: 56rem) { .faq { grid-template-columns: 0.7fr 1.3fr; gap: 56px; } }

.cta-strip { padding-block: clamp(48px, 8vw, 80px); background: var(--forest); color: var(--white); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-strip h2 { margin: 0; color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.5rem); }

/* ===== Legal / policy pages ===== */
.legal-page { max-width: 760px; padding-block: clamp(48px, 8vw, 88px); }
.legal-page h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; color: var(--forest); }
.legal-page .effective { display: inline-block; margin-bottom: 28px; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--forest); font-size: 0.95rem; }
.legal-page h2 { margin: 2.4rem 0 0.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: clamp(1.4rem, 3vw, 1.75rem); color: var(--forest); }
.legal-page p { margin-bottom: 1rem; color: #33443a; line-height: 1.75; }
.legal-page strong { color: var(--ink); }
.legal-page a { font-weight: 500; }
