/* CloakerKit Landing Styles */

:root {
  --bg: #F6F8FC;
  --bg-soft: #FFFFFF;
  --panel: #FFFFFF;
  --line: #E6ECF5;
  --text: #1F2937;
  --muted: #667085;
  /* Brand primary */
  --primary: #3D7AD3; /* Primary */
  --primary-2: #2E64B3; /* Primary dark */
  --primary-hover: #4DA3FE; /* On hover */
  --primary-click: #0163CB; /* On click */
  /* Icons and list states */
  --icon-muted: #7FADEB; /* collapsed menu icons */
  --item-hover-bg: #F5FAFF; /* item on hover BG */
  --item-selected-bg: #ECF4FF; /* item selected BG */
  /* Accents */
  --accent: #FFA940; /* Accent Bright */
  --accent-2: #FFC069; /* Accent Normal */
  --accent-3: #FFD591; /* Accent Light */
  --danger: #E53E3E;
  --shadow: rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: -9999px;
}
.skip:focus { left: 12px; top: 12px; background: #000; color: #fff; padding: 8px 12px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  width: 40px; height: 40px; padding: 0; border-radius: 10px; cursor: pointer;
}
.nav__toggle .icon { width: 22px; height: 22px; display: block; }
.nav__toggle .icon--close { display: none; }
/* when menu open, swap to close icon */
.nav.open .nav__toggle .icon--menu { display: none; }
.nav.open .nav__toggle .icon--close { display: block; }
.nav__toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(77,163,254,.35); }

.nav__menu { list-style: none; margin: 0; padding: 0; display: none; }
.nav__menu a { color: var(--text); text-decoration: none; opacity: .9; }
.nav__menu a:hover { background: rgba(77,163,254,.08); border-radius: 8px; }
.nav__menu .btn--primary { color: #fff; }
.nav__menu .btn, .nav__menu .link { margin-left: 4px; }
.nav__menu .divider { width: 1px; height: 22px; background: var(--line); margin: 0 8px; display: none; }

.nav.open .nav__menu { display: block; position: absolute; right: 4%; top: 64px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow); }
.nav.open .nav__menu li { margin: 8px 0; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; align-items: center; gap: 16px; }
  .nav__menu .divider { display: block; }
}

/* Hero */
.hero { padding: 72px 0 36px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__text h1 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero .lead { font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); margin: 0 0 22px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .sub { color: var(--muted); margin-top: 10px; font-size: 14px; }

.hero__card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--panel); box-shadow: 0 8px 24px var(--shadow); }
.hero__card-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.hero__flows { display: grid; gap: 10px; background: var(--item-selected-bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.flow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pill { background: var(--item-hover-bg); color: var(--text); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.pill--muted { opacity: .7; }
.arrow { opacity: .5; }
.dest { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.dest--green { background: var(--item-hover-bg); border-color: var(--item-selected-bg); color: var(--primary); }
.dest--gray { background: #F2F4F7; color: #475467; }
.signals { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 0 0; justify-content: center; }
.signals li { font-size: 12px; color: var(--text); background: var(--item-hover-bg); border: 1px solid rgba(61,122,211,.35); padding: 6px 10px; border-radius: 999px; position: relative; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 6px var(--shadow); }
.signals li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.signals li:hover { border-color: var(--primary-hover); box-shadow: 0 4px 10px rgba(77,163,254,.25); }

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: .9fr 1.1fr; }
}

/* Logos */
.logos { padding: 22px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.logo-carousel { position: relative; overflow: hidden; }
.logo-track { display: flex; transition: transform .5s ease; will-change: transform; }
.logo-slide { flex: 0 0 100%; }
.logo-row { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 10px 0; align-items: center; }
.logo-row li { display: flex; align-items: center; justify-content: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 4px 12px var(--shadow); }
.logo-row img { height: 24px; width: auto; filter: grayscale(1) opacity(.8); transition: filter .2s ease, transform .2s ease; }
.logo-row li:hover img { filter: grayscale(0) opacity(1); transform: translateY(-1px); }

/* Mobile layout for logos: 2 columns, larger tiles, full-contrast logos */
@media (max-width: 680px) {
  .logo-row { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 12px 0; }
  .logo-row li { padding: 14px 16px; }
  .logo-row img { height: 28px; filter: grayscale(0) opacity(1); }
}

/* Sections */
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); }

.features { padding: 48px 0 24px; }
.grid { display: grid; gap: 14px; }
.grid.three { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 680px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 150px; box-shadow: 0 6px 18px var(--shadow); }
.card .card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.card .card__icon { width: 22px; height: 22px; color: var(--icon-muted); flex: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.2)); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* How */
.how { padding: 40px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 6px 18px var(--shadow); }
.step { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: inline-grid; place-items: center; font-weight: 700; color: #ffffff; }

/* Metrics */
.metrics { padding: 26px 0; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; box-shadow: 0 6px 18px var(--shadow); }
.metric:hover { background: rgba(245,250,255,0.04); border-color: rgba(77,163,254,.25); }
.metric strong { display: block; font-size: 22px; }
.metric span { color: var(--muted); font-size: 12px; }

/* Pricing */
.pricing { padding: 40px 0; }
.cards { align-items: stretch; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 6px 18px var(--shadow); }
.price--featured { border-color: rgba(61,122,211,.6); box-shadow: 0 10px 30px rgba(61,122,211,.15); }
.price__value { font-size: 24px; margin: 6px 0; }
.price__value .cur, .price__value .per { color: var(--muted); font-size: 14px; }
.price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.footnote { text-align: center; color: var(--muted); margin-top: 12px; font-size: 12px; }

/* FAQ */
.faq { padding: 34px 0 60px; }
.accordion details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 10px 12px; background: var(--panel); box-shadow: 0 6px 18px var(--shadow); }
.accordion summary { cursor: pointer; font-weight: 600; list-style: none; }
.accordion summary::-webkit-details-marker { display:none; }
.accordion details[open] { background: rgba(77,163,254,0.08); border-color: rgba(77,163,254,0.35); }
.accordion p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 20px 0; }
.muted { color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { color: var(--text); text-decoration: none; opacity: .9; padding: 4px 6px; border-radius: 6px; }
.foot-links a:hover { background: rgba(77,163,254,.08); }
.foot-cta { display: flex; align-items: center; gap: 10px; }
.copy { border-top: 1px solid var(--line); padding: 12px 0 22px; color: var(--muted); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Buttons & Links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--lg { padding: 12px 18px; font-size: 16px; }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: rgba(61,122,211,.5); box-shadow: 0 10px 24px rgba(61,122,211,.2); color: #ffffff; }
.btn--primary:hover { background: linear-gradient(135deg, var(--primary-hover), var(--primary)); border-color: var(--primary-hover); box-shadow: 0 10px 24px rgba(77,163,254,.25); }
.btn--primary:active { background: var(--primary-click); border-color: var(--primary-click); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(77,163,254,.35); }
.btn--ghost { background: transparent; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.25); }
.btn:hover { filter: brightness(1.05); }
.link { color: var(--text); opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--primary-hover); opacity: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Center single pricing plan */
.pricing .cards { grid-template-columns: 1fr; justify-items: center; }
.pricing .price { width: min(480px, 100%); }

/* Pricing panel v2 (rich card) */
.price--panel { padding: 18px; }
.price__big { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -0.01em; margin: 4px 0 6px; }
.price__currency { color: var(--muted); font-size: 0.6em; margin-right: 2px; }
.price__term { color: var(--muted); font-size: 14px; font-weight: 600; margin-left: 6px; }
.price__desc { color: var(--muted); margin: 0 0 8px; }
.price__k { margin: 10px 0 6px; font-size: 14px; color: var(--muted); font-weight: 700; }

.checklist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 8px; }
.check { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 1px; }

.checklist--emph li { color: var(--primary); font-weight: 600; }

.price__plus { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; color: var(--primary); border: 1px solid rgba(61,122,211,.5); margin: 6px auto; font-weight: 800; }

.price__limits { margin: 8px 0 6px; color: var(--muted); display: grid; gap: 4px; }

.btn--wide { width: 100%; }

/* Hero flow emphasis + animations */
.flow { position: relative; overflow: hidden; /* defaults; JS will refine */
  --signal-start: 80px; /* px from left inside .flow */
  --signal-dist: 140px; /* px distance to travel */
  --signal-size: 14px; /* arrow height */
  --signal-speed: 1.6s; /* animation duration (faster default) */
  --signal-c1: var(--primary);
  --signal-c2: var(--accent);
}
/* ensure content sits above decorative track/arrow */
.flow > * { position: relative; z-index: 2; }
.flow--pass { background: rgba(77,163,254,.08); border-left: 3px solid var(--primary); border-radius: 8px; padding: 6px 8px; --signal-c1: var(--primary); --signal-c2: var(--accent); --signal-speed: 1.3s; }
.flow--pass .pill { font-weight: 700; }
.flow--pass .dest--green { box-shadow: 0 0 0 0 rgba(77,163,254,.35); animation: offerGlow 3s ease-in-out infinite; }

.flow--deny { background: rgba(2, 6, 23, .03); border-left: 3px solid #D0D5DD; border-radius: 8px; padding: 6px 8px; --signal-c1: #A3AED0; --signal-c2: var(--primary-hover); --signal-speed: 2.6s; }
.flow--deny .pill { opacity: .8; }

/* colorful signal track */
.flow::before { content: ""; position: absolute; top: 50%; left: var(--signal-start); width: var(--signal-dist); height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, var(--signal-c1), var(--signal-c2)); opacity: .28; border-radius: 2px; pointer-events: none; }
/* flying arrow */
.flow::after { content: ""; position: absolute; top: 50%; left: var(--signal-start); width: calc(var(--signal-size) * 1.2); height: var(--signal-size); transform: translateY(-50%); background: linear-gradient(90deg, var(--signal-c1), var(--signal-c2)); clip-path: polygon(0 50%, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%); filter: drop-shadow(0 2px 6px rgba(77,163,254,.35)); animation: signalFly var(--signal-speed) linear infinite; will-change: transform; pointer-events: none; }

.flow .arrow { color: var(--muted); display: inline-block; }
.flow--pass .arrow { color: var(--primary); animation: arrowNudge 1.6s ease-in-out infinite; }
.flow--deny .arrow { animation: arrowNudgeSoft 2.4s ease-in-out infinite; }

/* Request dots pulse */
.hero__card-top .dot { animation: dotPulse 1.8s ease-in-out infinite; }
.hero__card-top .dot + .dot { animation-delay: .2s; }
.hero__card-top .dot + .dot + .dot { animation-delay: .4s; }

@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@keyframes arrowNudgeSoft {
  0%, 100% { transform: translateX(0); opacity: .7; }
  50% { transform: translateX(2px); opacity: .9; }
}
@keyframes offerGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77,163,254,.25); }
  50% { box-shadow: 0 0 0 6px rgba(77,163,254,.12); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.25); opacity: 1; }
}
@keyframes signalFly {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(var(--signal-dist)); }
}

/* Chips in one line with smooth horizontal scroll (desktop/tablet only) */
@media (min-width: 681px) {
  .signals { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; gap: 8px; }
  .signals::-webkit-scrollbar { display: none; }
  .signals { scrollbar-width: none; }
  .signals li { scroll-snap-align: start; }
}
/* On small screens, allow chips to wrap into multiple lines (2 rows typical) */
@media (max-width: 680px) {
  .signals { flex-wrap: wrap; overflow: visible; justify-content: center; }
}

/* Reduced motion safeguard */
@media (prefers-reduced-motion: reduce) {
  .flow--pass .arrow, .flow--deny .arrow, .hero__card-top .dot, .flow--pass .dest--green, .flow::after { animation: none !important; }
}
/* Traffic diagram section */
.traffic-diagram { padding: 28px 0; }
.traffic-diagram .diagram { position: relative; display: block; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px var(--shadow); padding: 16px; }
@media (max-width: 680px) {
  .traffic-diagram { padding: 18px 0; }
  .traffic-diagram .diagram { padding: 12px; }
}


/* Hero: remove default figure margins inside the right card */
.hero__card .diagram { margin: 0; display: block; }


/* Enhanced hover interactions */
.brand img { transition: transform .2s ease, filter .2s ease; }
.brand:hover img { transform: translateY(-1px); filter: drop-shadow(0 2px 6px rgba(61,122,211,.2)); }

.card, .price, .steps li, .hero__flows .flow, .dest, .pill { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease, color .2s ease; }

/* Feature cards */
.card:hover { border-color: rgba(77,163,254,.35); box-shadow: 0 10px 24px var(--shadow); transform: translateY(-2px); background: var(--item-hover-bg); }
.card:hover .card__icon { color: var(--primary); }

/* Pricing card */
.price:hover { border-color: rgba(77,163,254,.35); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(61,122,211,.18); }
.price--panel:hover .price__big { color: var(--primary); }

/* How it works steps */
.steps li:hover { border-color: rgba(77,163,254,.35); box-shadow: 0 8px 20px var(--shadow); background: var(--item-hover-bg); }
.steps li:hover .step { filter: brightness(1.02); }

/* Hero flows emphasis */
.hero__flows .flow:hover { border-left-color: var(--primary-hover); background: rgba(77,163,254,.12); --signal-speed: 1.2s !important; }
.hero__flows .flow:hover::before { opacity: .45; }
.hero__flows .flow:hover::after { filter: drop-shadow(0 3px 8px rgba(77,163,254,.35)); }
.dest--green:hover { box-shadow: 0 0 0 6px rgba(77,163,254,.10); }
.dest--gray:hover { background: #EDEFF3; }

/* Checklist hover */
.checklist .check { transition: color .2s ease; }
.checklist li:hover .check { color: var(--primary-hover); }
.checklist li:hover { color: var(--text); }

/* Accordion summary hover */
.accordion summary { transition: background-color .2s ease; }
.accordion summary:hover { background: var(--item-hover-bg); border-radius: 8px; }

/* Logo tiles lift in carousel */
.logo-row li { transition: transform .2s ease, box-shadow .2s ease; }
.logo-row li:hover { box-shadow: 0 8px 18px var(--shadow); transform: translateY(-2px); }

/* Nav link and button smoothness */
.nav__menu a { transition: background-color .2s ease, color .2s ease; }
.btn { transition: filter .2s ease, transform .1s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Signals chips subtle lift */
.signals li { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.signals li:hover { transform: translateY(-1px); }

/* Mobile header right padding to keep Menu button off-edge */
@media (max-width: 680px) {
  .site-header .header-row { padding-right: 12px; }
}
