/* ============================================================
   OBLAK — Adriatic Editorial Fintech
   Design system + page styles
   ============================================================ */

:root {
  /* Palette — derived from oblak.online */
  --blue-700: #0056b3;
  --blue-600: #006fe0;
  --blue-500: #007bff;   /* primary CTA / accents */
  --blue-400: #2b8cf5;
  --blue-300: #74b5fc;   /* light accent */
  --blue-100: #e5f1ff;   /* subtle section tint */

  --navy-900: #0b2545;
  --navy-800: #102f55;
  --navy-700: #00366f;   /* heading dark blue */
  --navy-600: #004289;   /* secondary heading blue */
  --navy-500: #283d50;   /* footer / deep ui */

  --bg:        #ffffff;
  --bg-alt:    #f6f9fd;
  --bg-tint:   #eef5ff;

  --ink-900: #1a2536;
  --ink-700: #283d50;
  --ink-600: #444444;
  --ink-500: #556877;
  --ink-300: #93a2b1;
  --ink-100: #dde4ec;

  --ok: #1e8e5a;
  --err: #c44545;

  /* Type — match oblak.online */
  --ff-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ff-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Spacing
     section-y: mobile min stays 3.5rem so phones feel airy enough;
     desktop max capped at 5rem (was 7rem) so laptop view is compact. */
  --container: 1180px;
  --pad-x: clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 5vw, 5rem);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(0,54,111,.06), 0 4px 14px rgba(0,54,111,.06);
  --sh-2: 0 4px 12px rgba(0,54,111,.07), 0 18px 40px rgba(0,54,111,.09);
  --sh-cta: 0 1px 2px rgba(0,86,179,.22), 0 10px 28px rgba(0,123,255,.35);
  --sh-cta-hover: 0 1px 2px rgba(0,86,179,.22), 0 16px 38px rgba(0,123,255,.45);
  --sh-inset: inset 0 0 0 1px rgba(0,54,111,.08);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(0,.6,.2,1);
  --d-fast: 160ms;
  --d-med:  280ms;
  --d-slow: 600ms;
  
  --section-y: clamp(3.5rem, 2vw, 5rem);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(1rem, .3vw + .9rem, 1.0625rem);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--navy-700); text-decoration: none; transition: color var(--d-fast) var(--ease); }
a:hover { color: var(--blue-700); }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--blue-500); color: #fff; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  background: var(--navy-900); color: #fff;
  padding: .75rem 1rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--blue-500); outline-offset: 2px; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display, h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--navy-700);
  margin: 0;
}
.display em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue-500);
}
.display-light { color: #fff; }
.display-light em { color: var(--blue-300); }

h1, .h1 { font-size: clamp(2.1rem, 3.4vw + .5rem, 3rem); font-weight: 700; }
h2, .h2 { font-size: clamp(1.65rem, 1.8vw + .5rem, 2.15rem); font-weight: 700; }
h3       { font-size: clamp(1.05rem, .35vw + 1rem, 1.2rem); font-family: var(--ff-display); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-700);
  /* Native scroll-to-anchor (from URL hash) also accounts for sticky header */
  scroll-margin-top: 90px;
}
.eyebrow .dot {
  position: relative;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
  /* Box-shadow ring expands outward and fades — visible even with
     prefers-reduced-motion partly because the dot itself doesn't move. */
  box-shadow: 0 0 0 0 rgba(0,123,255,.65);
  animation: dotPulse 1.5s cubic-bezier(0,.55,.45,1) infinite;
}
.eyebrow .dot::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--blue-500);
  animation: dotRing 1.5s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,123,255,.65); }
  70%  { box-shadow: 0 0 0 14px rgba(0,123,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,123,255,0); }
}
@keyframes dotRing {
  0%   { transform: scale(1);   opacity: .9; }
  60%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
.eyebrow-dark { color: var(--navy-700); }
.eyebrow-light { color: var(--blue-300); }
.eyebrow .rule {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--navy-700);
}
.eyebrow .rule-light { background: var(--blue-300); }

.lede {
  font-size: clamp(1.05rem, .4vw + 1rem, 1.2rem);
  color: var(--ink-500);
  line-height: 1.55;
  max-width: 38ch;
  margin: 0;
}
.section-lede {
  font-size: clamp(1rem, .3vw + .95rem, 1.125rem);
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 58ch;
  margin: 1rem 0 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

main > section { padding-block: var(--section-y); }

.section-head { margin-bottom: clamp(1.5rem, 2.6vw, 2.5rem); max-width: 720px; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .display { margin-bottom: 0; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lede,
.section-head-center .section-lede { margin-inline: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-body); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.4rem; min-height: 48px;
  border-radius: var(--r-full);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-med) var(--ease), background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  position: relative;
}
.btn-sm { padding: .55rem 1rem; min-height: 40px; font-size: .9rem; }
.btn-lg { padding: 1rem 1.6rem; min-height: 56px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: var(--sh-cta);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-cta-hover);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--navy-800);
  border-color: rgba(0,54,111,.25);
}
.btn-secondary:hover {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: rgba(0,54,111,.18);
}
.btn-ghost:hover { background: rgba(0,54,111,.06); color: var(--navy-800); }

.btn-ghost-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-med) var(--ease), background var(--d-med) var(--ease), padding var(--d-med) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: rgba(0,54,111,.08);
  background: rgba(255,255,255,.92);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(.75rem, 1.5vw, 1.1rem);
}
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo-img {
  height: clamp(38px, 4.6vw, 50px);
  width: auto; display: block;
}
.logo-img-footer {
  height: 44px;
  filter: brightness(0) invert(1) opacity(.94);
}

.primary-nav { display: none; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.primary-nav a {
  font-weight: 600;
  font-size: .94rem;
  color: var(--ink-700);
  padding: .4rem .2rem;
  position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: .2rem; right: .2rem; bottom: 0;
  height: 2px; background: var(--blue-500); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-med) var(--ease);
}
.primary-nav a:hover { color: var(--navy-800); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .75rem; }

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0,123,255,.22);
  background: linear-gradient(180deg, #ffffff, var(--bg-tint));
  box-shadow: 0 1px 2px rgba(0,54,111,.06), 0 2px 6px rgba(0,54,111,.04);
  transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.menu-toggle:hover {
  border-color: rgba(0,123,255,.45);
  background: linear-gradient(180deg, var(--bg-tint), #ffffff);
}
.menu-toggle:active { transform: scale(.96); }
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--navy-700); border-radius: 2px;
  transition: transform var(--d-med) var(--ease), opacity var(--d-fast) var(--ease), width var(--d-fast) var(--ease);
  transform-origin: center;
}
.menu-toggle span:nth-child(1) { width: 20px; }
.menu-toggle span:nth-child(2) { width: 14px; }
.menu-toggle span:nth-child(3) { width: 18px; }
body.menu-open .menu-toggle {
  background: var(--blue-500);
  border-color: var(--blue-500);
}
body.menu-open .menu-toggle span { background: #fff; width: 20px; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: 5.5rem var(--pad-x) 2rem;
  overflow: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { max-width: 540px; margin: 0 auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 600;
  color: var(--ink-900);
  padding: .6rem 0;
  border-bottom: 1px solid rgba(0,54,111,.08);
  letter-spacing: -0.015em;
}
.mobile-menu nav a:hover { color: var(--navy-700); }
.mobile-menu nav .num {
  font-family: var(--ff-body); font-weight: 700;
  font-size: .7rem; letter-spacing: .15em;
  color: var(--blue-700);
  flex-shrink: 0; width: 28px;
}
.mobile-menu-cta { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(2rem, 3vw, 3rem);
  padding-bottom: var(--section-y);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(124,184,232,.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(0,123,255,.10), transparent 60%),
    var(--bg);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  top: -10%; right: -10%; width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(43,140,217,.4), transparent 70%);
}
.hero-glow-2 {
  bottom: -20%; left: -10%; width: 40%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0,123,255,.22), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-content > * + * { margin-top: clamp(1.25rem, 2vw, 1.75rem); }
.hero-content .display { letter-spacing: -0.015em; }
.hero-h1-tail { display: block; color: var(--ink-700); }

/* Mobile-first: center hero content; switch to left-align on desktop */
.hero-content { text-align: center; }
.hero-content .lede { margin-inline: auto; padding-bottom: 15px; }

.trust-row {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .35rem 1.25rem;
  font-size: .92rem;
  color: var(--ink-500);
}
.trust-row li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row strong { color: var(--ink-900); font-weight: 700; }
.trust-row .star { color: var(--blue-500); font-size: 1.1em; }

.store-badges { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: .65rem;
  background: var(--ink-900); color: #fff;
  padding: .55rem 1rem .6rem .85rem;
  border-radius: var(--r-md);
  transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
  min-height: 52px;
}
.store-badge small { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; line-height: 1.3; }
.store-badge strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.store-badge:hover { color: #fff; background: var(--navy-900); transform: translateY(-1px); }

/* Phone visual — real screenshot in clean frame */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  margin: 0 auto;
}
.phone {
  position: relative;
  width: min(270px, 78vw);
  aspect-ratio: 9/19.5;
  background: linear-gradient(150deg, #1a1f28, #0a0e16);
  border-radius: 34px;
  padding: 9px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 1px 0 1px #2a2f38 inset,
    0 40px 70px -25px rgba(0,54,111,.35),
    0 20px 50px -15px rgba(0,54,111,.20);
}
.phone-screen-img {
  width: 100%; height: 100%;
  display: block;
  border-radius: 26px;
  object-fit: cover;
  object-position: top center;
}

/* Floating illustrative status badges — no monetary figures */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  padding: .65rem .85rem .65rem .65rem;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: 0 8px 24px rgba(0,54,111,.12), 0 1px 4px rgba(0,54,111,.08);
  border: 1px solid rgba(0,54,111,.06);
  font-size: .82rem;
  z-index: 5;
  max-width: 200px;
}
.float-card small { display: block; font-size: .65rem; color: var(--ink-500); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.float-card strong { display: block; font-weight: 700; color: var(--navy-700); font-size: .88rem; line-height: 1.2; margin-top: 2px; }
.fc-check {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: grid; place-items: center;
}
.float-card-receipt {
  top: 10%; left: 2%;
  animation: float 6s ease-in-out infinite;
}
.float-card-payment {
  bottom: 14%; right: 2%;
  animation: float 6s ease-in-out infinite -3s;
}
@media (max-width: 540px) {
  .float-card { display: none; }
}
@media (min-width: 980px) {
  .float-card-receipt { left: -10%; }
  .float-card-payment { right: -10%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 4rem;
  }
  .phone { width: 320px; }
  .hero-visual { margin-right: -1rem; }
  /* On desktop split layout, content reads better left-aligned */
  .hero-content { text-align: left; }
  .hero-content .lede { margin-inline: 0; }
  .trust-row { justify-content: flex-start; }
  .store-badges { justify-content: flex-start; }
}

@media (min-width: 1200px) {
  .phone { width: 340px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(43,140,217,.25), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(0,123,255,.12), transparent 50%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 5vw, 4.5rem) !important;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem .75rem;
  text-align: left;
  min-width: 0;
}
.stat {
  min-width: 0;
  border-left: 2px solid rgba(255,255,255,.12);
  padding-left: .65rem;
}
.stat-num {
  font-family: var(--ff-display);
  font-weight: 700;
  /* allow numbers to scale down enough that "400.000+" doesn't overflow at 375px */
  font-size: clamp(1.55rem, 6.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-feature-settings: "tnum";
  color: #fff;
  display: inline-flex; align-items: baseline; gap: .03em;
  white-space: nowrap;
  word-break: keep-all;
}
.stat-num-static { color: var(--blue-400); }
.stat-slash { color: rgba(255,255,255,.4); font-weight: 400; margin: 0 .04em; }
.stat-label {
  font-size: clamp(.78rem, .25vw + .75rem, .9rem);
  color: rgba(255,255,255,.7);
  margin-top: .4rem;
  letter-spacing: .01em;
}
.stats-foot {
  position: relative;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  text-align: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(.95rem, .3vw + .9rem, 1.1rem);
  color: rgba(255,255,255,.75);
  max-width: 50ch; margin-inline: auto;
}

@media (min-width: 560px) {
  .stat { padding-left: 1rem; }
  .stats-grid { gap: 1.5rem 1.25rem; }
}
@media (min-width: 768px) {
  /* Tablet: keep 2×2 — 4-col here would squeeze 400.000+ into next cell. */
  .stats-grid { gap: 2rem 2.5rem; }
  .stat-num { font-size: clamp(1.85rem, 4vw, 2.5rem); }
}
@media (min-width: 1024px) {
  /* Laptop+ : 4 columns now have enough room for 400.000+ without overlap. */
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
  .stat { padding-left: .9rem; }
  .stat-num { font-size: clamp(1.75rem, 2vw + .25rem, 2.35rem); }
  .stat-label { font-size: .85rem; margin-top: .35rem; }
}
@media (min-width: 1280px) {
  .stats-grid { gap: 1.5rem 2.5rem; }
  .stat-num { font-size: clamp(2rem, 1.6vw + .35rem, 2.5rem); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--bg-alt); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.feature-card {
  background: #fff;
  border: 1px solid rgba(0,54,111,.07);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1.6vw, 1.65rem);
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease), border-color var(--d-med) var(--ease);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-med) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--bg-alt), #fff);
  color: var(--navy-700);
  margin-bottom: 1rem;
  border: 1px solid rgba(0,54,111,.08);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: .5rem; color: var(--ink-900); }
.feature-card p { margin: 0; color: var(--ink-500); font-size: .92rem; line-height: 1.55; }

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   SHORTS
   ============================================================ */
.shorts { background: var(--bg); }
.shorts-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--pad-x);
  padding: .5rem var(--pad-x) 1rem;
  margin: 0 calc(var(--pad-x) * -1);
  scrollbar-width: thin;
}
.shorts-track::-webkit-scrollbar { height: 6px; }
.shorts-track::-webkit-scrollbar-thumb { background: rgba(0,54,111,.18); border-radius: 4px; }
.shorts-track::-webkit-scrollbar-track { background: transparent; }

.short-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
}
.short-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.short-thumb {
  position: relative;
  /* These are play-buttons, not video previews — keep them compact */
  aspect-ratio: 16/9;
  background-color: var(--bg-tint);
  background-size: cover;
  background-position: top center;
  display: grid; place-items: center;
  overflow: hidden;
}
/* Darken thumbnail image so the white play button reads clearly */
.short-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,.25) 0%, rgba(11,37,69,.55) 100%);
}
.short-num {
  position: absolute; top: .75rem; left: 1rem;
  z-index: 2;
  font-family: var(--ff-display); font-weight: 700;
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  letter-spacing: -.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.short-play {
  position: relative; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--navy-800);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.18);
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
}
.short-play svg { transform: translateX(2px); }
.short-card:hover .short-play { transform: scale(1.08); }
.short-meta { padding: .85rem 1rem 1rem; }
.short-meta strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1rem; color: var(--ink-900); }
.short-meta small { display: block; font-size: .8rem; color: var(--ink-500); margin-top: .15rem; }

@media (min-width: 720px) {
  .shorts-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    padding: 0;
    margin: 0;
    gap: 1.25rem;
    max-width: 760px;
    margin-inline: auto;
  }
}

/* ============================================================
   DEMO VIDEO
   ============================================================ */
.demo-video { background: var(--bg-alt); }
.demo-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--sh-2);
  cursor: pointer;
  /* Cap the poster size on wide screens — it's a play button, not a hero */
  max-width: 680px;
  margin-inline: auto;
}
.demo-poster {
  position: absolute; inset: 0;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
  color: #fff;
}
/* Subtle dark vignette so the white play button reads against varied imagery */
.demo-poster::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(11,37,69,.10) 0%, rgba(11,37,69,.55) 100%);
  pointer-events: none;
}
.demo-play {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: clamp(58px, 7vw, 84px); aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--navy-900);
  display: grid; place-items: center;
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
  transition: transform var(--d-med) var(--ease);
}
.demo-play::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  animation: ring 2.5s infinite;
}
.demo-play svg { transform: translateX(4px); }
.demo-wrap:hover .demo-play { transform: scale(1.06); }
@keyframes ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: #fff; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 60%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--pad-x);
  padding: .5rem var(--pad-x) 1.25rem;
  margin: 0 calc(var(--pad-x) * -1);
  scrollbar-width: thin;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: rgba(0,54,111,.18); border-radius: 4px; }

.gallery-card {
  scroll-snap-align: start;
  aspect-ratio: 9/19;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--bg-tint);
  border: 1px solid rgba(0,54,111,.08);
  box-shadow: var(--sh-1);
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
  padding: 0;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.gallery-hint {
  text-align: center; font-size: .85rem; color: var(--ink-500); margin: 1rem 0 0;
}

@media (min-width: 720px) { .gallery-track { grid-auto-columns: 38%; } }
@media (min-width: 1024px) { .gallery-track { grid-auto-columns: 24%; } }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg-alt); position: relative; }
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-top: 1rem;
}
@media (min-width: 980px) {
  .plan-grid { gap: 1.5rem; }
}
.plan-card {
  background: #fff;
  border: 1px solid rgba(0,54,111,.08);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 1.8vw, 1.85rem) clamp(1.4rem, 1.8vw, 1.65rem);
  display: flex; flex-direction: column;
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
  position: relative;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.plan-card-featured {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-2);
  transform: translateY(-8px);
}
.plan-card-featured:hover { transform: translateY(-12px); box-shadow: var(--sh-2); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .85rem;
  border-radius: var(--r-full);
  box-shadow: var(--sh-cta);
}
.plan-name {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.3rem; margin-bottom: .25rem;
  color: inherit;
}
.plan-tagline { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0 0 1rem; }
.plan-card:not(.plan-card-featured) .plan-tagline { color: var(--ink-500); }

.plan-price {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1;
  letter-spacing: -.02em;
  margin: .5rem 0 1.25rem;
  display: flex; align-items: baseline; flex-wrap: wrap;
  font-feature-settings: "tnum";
}
.plan-amt { font-feature-settings: "tnum"; }
.plan-cur { font-weight: 400; color: var(--ink-500); margin-right: .35rem; }
.plan-card-featured .plan-cur { color: rgba(255,255,255,.6); }
.plan-price small {
  font-family: var(--ff-body); font-size: .85rem; font-weight: 500;
  color: var(--ink-500); flex-basis: 100%; margin-top: .25rem;
}
.plan-card-featured .plan-price small { color: rgba(255,255,255,.6); }

/* Featured card has white-on-dark CTA so it stands out against navy bg */
.plan-card-featured .btn-primary {
  background: #ffffff;
  color: var(--navy-700);
  box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 10px 28px rgba(0,0,0,.25);
}
.plan-card-featured .btn-primary:hover {
  background: var(--blue-100);
  color: var(--navy-700);
  box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 16px 38px rgba(0,0,0,.32);
}

.plan-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: .55rem;
  flex-grow: 1;
}
.plan-list li {
  position: relative; padding-left: 1.6rem;
  font-size: .94rem; line-height: 1.5;
  color: var(--ink-700);
}
.plan-card-featured .plan-list li { color: rgba(255,255,255,.85); }
.plan-list li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23094b7d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat;
}
.plan-card-featured .plan-list li::before {
  background-color: rgba(255,255,255,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23f0a96b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}

@media (min-width: 980px) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan-card-featured { z-index: 2; }
}

.addons {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,54,111,.08);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.addons-title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.1rem; margin: 0 0 1rem;
  color: var(--ink-900);
}
.addons-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.addons-list li {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px dashed rgba(0,54,111,.12);
}
.addons-list li:last-child { border-bottom: none; }
.addons-list li strong { font-family: var(--ff-display); font-weight: 600; font-feature-settings: "tnum"; color: var(--ink-900); }
.addons-list li strong.free { color: var(--ok); }
@media (min-width: 720px) {
  .addons-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

.plan-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--r-full);
  font-size: .82rem; font-weight: 600;
  background: #fff; color: var(--navy-800);
  border: 1px solid rgba(0,54,111,.12);
}
.pill-light::before {
  content: "✓"; color: var(--blue-700); font-weight: 800;
}

.plan-note {
  text-align: center; margin: 1.5rem auto 0; max-width: 56ch;
  color: var(--ink-500); font-size: .92rem;
}
.plan-note a { font-weight: 700; color: var(--navy-800); border-bottom: 1px solid currentColor; }

/* ============================================================
   WHY (dark band)
   ============================================================ */
.why {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(43,140,217,.2), transparent 50%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0,123,255,.12), transparent 40%);
}
.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.why-intro .display { margin-top: 1rem; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.why-list li {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}
.why-num {
  display: inline-block;
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -.025em;
  color: var(--blue-400);
  margin-bottom: .5rem;
  line-height: 1;
  font-feature-settings: "tnum";
}
.why-list strong {
  display: block;
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.15rem; color: #fff;
  margin-bottom: .35rem;
}
.why-list p { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; line-height: 1.55; }

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 4rem; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg); }
.faq-container { max-width: 900px; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(0,54,111,.08);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
}
.faq-item[open] { border-color: rgba(0,54,111,.18); box-shadow: var(--sh-1); }

.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1rem, .3vw + .95rem, 1.1rem);
  color: var(--ink-900);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy-700); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--navy-700); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--d-med) var(--ease), opacity var(--d-med) var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.faq-body { padding: 0 1.25rem 1.25rem; color: var(--ink-500); }
.faq-body p { margin: 0 0 .75rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { font-weight: 700; border-bottom: 1px solid currentColor; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-alt); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; top: -10%; right: -10%;
  width: 40%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,123,255,.15), transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1080px; margin: 0 auto;
  position: relative;
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.contact-form {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--sh-1);
  border: 1px solid rgba(0,54,111,.06);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: .4rem;
}
.field input, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid rgba(0,54,111,.1);
  border-radius: var(--r-md);
  font-family: var(--ff-body); font-size: 1rem;
  color: var(--ink-900);
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(0,54,111,.1);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .field-row .field { margin-bottom: 1rem; }
}

/* Honeypot field — hidden to humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* CAPTCHA widget wrapper — sits between GDPR checkbox and submit */
.captcha-wrap {
  margin: .5rem 0 1rem;
  display: flex;
  justify-content: center;
}
.captcha-wrap .cf-turnstile { width: 100%; max-width: 320px; }
@media (min-width: 540px) {
  .captcha-wrap { justify-content: flex-start; }
}

.checkbox {
  display: flex; align-items: flex-start; gap: .65rem;
  margin: .5rem 0 1.25rem;
  font-size: .88rem; color: var(--ink-500); line-height: 1.5;
  cursor: pointer;
}
.checkbox input {
  width: 20px; height: 20px;
  accent-color: var(--blue-500);
  margin-top: 1px;
  flex-shrink: 0;
}
.checkbox a { font-weight: 700; color: var(--navy-800); border-bottom: 1px solid currentColor; }

.form-msg { margin-top: 1rem; min-height: 1.5rem; font-size: .92rem; }
.form-msg.success { color: var(--ok); font-weight: 600; }
.form-msg.error { color: var(--err); font-weight: 600; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex; gap: 1rem;
  border: 1px solid rgba(0,54,111,.07);
  transition: border-color var(--d-med) var(--ease), transform var(--d-med) var(--ease);
}
.info-card:hover { border-color: rgba(0,54,111,.18); transform: translateX(2px); }
.info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  color: var(--navy-700);
  display: grid; place-items: center;
}
.info-card strong {
  display: block; font-family: var(--ff-display); font-weight: 600;
  font-size: 1.05rem; color: var(--ink-900); margin-bottom: .25rem;
}
.info-card p { margin: 0; color: var(--ink-500); font-size: .92rem; line-height: 1.55; }
.info-card a { color: inherit; }
.info-card a:hover { color: var(--navy-800); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,.7);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
  position: relative;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
.footer-brand p { margin: 1rem 0 0; font-size: .92rem; max-width: 38ch; line-height: 1.55; }
.footer-nav {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.footer-nav div { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav strong {
  display: block;
  font-family: var(--ff-display); font-weight: 600;
  color: #fff; font-size: 1.02rem;
  margin-bottom: .35rem;
}
.footer-nav a {
  font-size: .92rem; color: rgba(255,255,255,.7);
  transition: color var(--d-fast) var(--ease);
}
.footer-nav a:hover { color: var(--blue-400); }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr); }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   STICKY DESKTOP CTA BAR
   ============================================================ */
.sticky-cta {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 60;
  background: var(--navy-900); color: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 50px rgba(11,37,69,.4), 0 2px 0 0 rgba(255,255,255,.04) inset;
  transform: translateY(120%);
  transition: transform var(--d-slow) var(--ease);
  border: 1px solid rgba(255,255,255,.06);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta[hidden] { display: none; }
.sticky-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.sticky-cta p { margin: 0; font-size: .94rem; flex: 1; min-width: 240px; }
.sticky-cta p strong { color: var(--blue-400); display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; }
.sticky-cta-actions { display: flex; align-items: center; gap: .5rem; }
.sticky-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  display: grid; place-items: center;
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.sticky-close:hover { background: rgba(255,255,255,.08); color: #fff; }

@media (max-width: 768px) {
  .sticky-cta { display: none !important; }
}

/* ============================================================
   MOBILE FAB
   ============================================================ */
.fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  z-index: 50;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0,123,255,.5), 0 4px 10px rgba(0,86,179,.3);
  opacity: 0;
  transform: translateY(20px) scale(.85);
  transition: opacity var(--d-med) var(--ease), transform var(--d-med) var(--ease);
  pointer-events: none;
}
.fab.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab[hidden] { display: none; }
.fab-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--blue-500);
  animation: fabPulse 2.2s infinite;
  z-index: -1;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab:hover { transform: scale(1.06); color: #fff; }

@media (min-width: 769px) {
  .fab { display: none !important; }
}

/* ============================================================
   VIDEO MODAL (fullscreen shorts + demo player)
   ============================================================ */
.video-modal {
  display: none;
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0;
  background: transparent;
  border: 0;
  z-index: 1000;
  color: #fff;
}
.video-modal[open] {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 4rem 1rem 2rem;
  gap: .75rem;
}
.video-modal::backdrop {
  background: rgba(5,15,30,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.vm-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  transition: background var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
  z-index: 2;
}
.vm-close:hover { background: rgba(255,255,255,.22); transform: scale(1.05); }

.vm-frame {
  width: min(96vw, 1100px);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
/* Vertical (shorts 9:16) mode: portrait, fits height */
.vm-frame.vm-vertical {
  width: auto;
  height: min(82vh, 720px);
  aspect-ratio: 9/16;
  max-width: 96vw;
}
.vm-frame iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.vm-hint {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  margin: 0;
  text-align: center;
}

@media (max-width: 640px) {
  .video-modal[open] { padding: 3.25rem .5rem 1.25rem; }
  .vm-close { top: .5rem; right: .5rem; width: 44px; height: 44px; }
  .vm-frame.vm-vertical { height: min(78vh, 640px); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  /* default: invisible to layout & pointer events (native dialog default) */
  display: none;
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  z-index: 1000;
}
.lightbox[open] { display: block; }
.lightbox::backdrop {
  background: rgba(11,37,69,.95);
  backdrop-filter: blur(20px);
}
.lb-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  transition: background var(--d-fast) var(--ease);
  z-index: 3;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
/* Arrows float over the image edges so they NEVER push off-screen */
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  transition: background var(--d-fast) var(--ease);
  z-index: 3;
}
.lb-prev { left: max(.5rem, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(.5rem, env(safe-area-inset-right, 0px)); }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
@media (min-width: 768px) {
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
}
.lb-content {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 4rem 64px 3rem; /* leave space for arrows on sides + close on top + counter at bottom */
}
@media (max-width: 480px) {
  .lb-content { padding: 4rem 56px 3rem; }
}
.lb-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  border-radius: var(--r-lg);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .9rem; letter-spacing: .1em; color: rgba(255,255,255,.5);
  font-feature-settings: "tnum";
}

/* ============================================================
   ANIMATIONS / REVEALS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-1 { transition-delay: .03s; }
.reveal-2 { transition-delay: .08s; }
.reveal-3 { transition-delay: .13s; }
.reveal-4 { transition-delay: .18s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   LEGAL PAGES (uslovi, politika)
   ============================================================ */
.legal-page {
  background: var(--bg-alt);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  min-height: 60vh;
}
.legal-article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,54,111,.07);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: var(--sh-1);
  font-size: clamp(.95rem, .2vw + .9rem, 1rem);
  line-height: 1.65;
  color: var(--ink-700);
}
.legal-title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem);
  color: var(--navy-700);
  margin: 0 0 1rem;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.legal-back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .88rem; font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 1.5rem;
}
.legal-back:hover { color: var(--blue-500); }
.legal-article p { margin: .85rem 0; }
.legal-article strong { color: var(--ink-900); font-weight: 700; }
.legal-article a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 2px; }
.legal-article a:hover { color: var(--blue-700); }
.legal-article .special-title {
  margin: 2rem 0 0;
  font-family: var(--ff-display); font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-700);
}

/* Print: keep it sane */
@media print {
  .site-header, .mobile-menu, .sticky-cta, .fab, .lightbox { display: none !important; }
  .legal-article { box-shadow: none; border: none; padding: 0; }
}
