/* SCOUT — marketing landing page
   Vanilla CSS, mobile-first, RTL-aware (logical properties throughout).
   Brand color: #193384 (D3 Secure blue). */

/* ---------- Tokens ---------- */
:root {
  --c-primary: #193384;
  --c-primary-hover: #142970;
  --c-primary-tint: #eaeefa;
  --c-bg: #ffffff;
  --c-surface: #f7f8fb;
  --c-surface-2: #eef1f8;
  --c-text: #0e1530;
  --c-text-muted: #4b5573;
  --c-border: #e3e6ee;
  --c-border-strong: #c9d0e4;
  --c-dark: #0e1530;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 21, 48, 0.06);
  --shadow-md: 0 4px 14px rgba(14, 21, 48, 0.08);
  --shadow-lg: 0 14px 36px rgba(14, 21, 48, 0.14);
  --shadow-primary: 0 10px 30px rgba(25, 51, 132, 0.18);

  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Helvetica Neue', Helvetica, 'Arial', 'Liberation Sans', sans-serif;

  --max-width: 1140px;
  --space-section-y: clamp(3rem, 6vw, 5.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--c-text);
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--c-text-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-primary);
  margin: 0 0 0.85rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 38rem;
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

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

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: -100px;
  background: var(--c-primary);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid rgba(25, 51, 132, 0.45); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.1;
}
.btn-primary {
  background: var(--c-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-primary-hover); box-shadow: var(--shadow-primary); }
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-primary); background: var(--c-primary-tint); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--c-primary);
}
.brand-name { font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--c-text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--c-surface); color: var(--c-primary); }
.nav-links .btn {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  margin-inline-start: 0.25rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  color: var(--c-text);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: 0.75rem;
    border-block-start: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    gap: 0.2rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a,
  .nav-links .btn {
    width: 100%;
    text-align: start;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(25, 51, 132, 0.06), transparent 70%),
    linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero-text .lede {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-block-end: 0.85rem;
}
.trial-note { font-size: 0.9rem; color: var(--c-text-muted); margin: 0; }

.hero-visual { display: flex; align-items: center; justify-content: center; }

/* Hero composition: browser-framed web app + floating mobile phone overlapping its bottom-right corner. */
.hero-composition {
  position: relative;
  width: 100%;
  max-width: 760px;
  padding-inline-end: 16px;
  padding-block-end: 32px;
}
.hero-browser {
  margin: 0;
  background: #0a1024;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14, 21, 48, 0.15);
}
.hero-browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #0a1024;
}
.hero-browser-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f3a5e;
}
.hero-browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 1304;
  background: var(--c-primary-tint);
  object-fit: cover;
}
.hero-phone {
  margin: 0;
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 25%;
  min-width: 110px;
  max-width: 180px;
  background: #0a1024;
  border-radius: 22px;
  padding: 5px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #0a1024;
}
.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1949;
  border-radius: 16px;
  background: var(--c-primary-tint);
  object-fit: cover;
}
@media (max-width: 880px) {
  .hero-composition { max-width: 100%; margin: 0 auto; padding-block-end: 2.5rem; }
  .hero-phone { width: 28%; max-width: 150px; }
}

/* ---------- Features ---------- */
.features { padding-block: var(--space-section-y); }
.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-block-start: 2.25rem;
}
.feature {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}
.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--c-primary);
  margin-block-end: 1rem;
  padding: 6px;
  background: var(--c-primary-tint);
  border-radius: var(--radius-sm);
  box-sizing: content-box;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.95rem; line-height: 1.55; }

/* ---------- Pricing ---------- */
.pricing { background: var(--c-surface); }
.plan-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-block-start: 2.5rem;
  align-items: stretch;
}
.plan {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.plan-featured {
  border: 2px solid var(--c-primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-6px);
}
@media (max-width: 880px) {
  .plan-featured { transform: none; }
}
.plan-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan-name { font-size: 1.45rem; margin: 0; font-weight: 700; }
.plan-pitch { color: var(--c-text-muted); margin: 0 0 0.75rem; font-size: 0.9rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; }
.plan-price-amount { font-size: 2.5rem; font-weight: 800; color: var(--c-text); letter-spacing: -0.02em; }
.plan-price-period { color: var(--c-text-muted); font-weight: 500; font-size: 1rem; }
.plan-iap { color: var(--c-text-muted); font-size: 0.82rem; margin: 0; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.plan-features li {
  position: relative;
  padding-inline-start: 1.75rem;
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.45;
}
.plan-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--c-primary-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23193384' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 6.5 12 13 5'/></svg>") center / 60% no-repeat;
}
.plan .btn { margin-block-start: auto; }
.pricing-trial-note {
  margin-block-start: 1.75rem;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  text-align: center;
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-primary-tint);
  color: var(--c-primary);
  font-weight: 700;
  margin-block-end: 1rem;
  font-size: 1rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.95rem; line-height: 1.55; }

.store-row {
  margin-block-start: 2.5rem;
  padding: 1.5rem;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.store-row p { margin: 0; color: var(--c-text); font-weight: 500; }
.store-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--c-dark);
  color: white;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  min-width: 170px;
  transition: background 0.18s ease, transform 0.12s ease;
  border: 1px solid var(--c-dark);
}
.store-badge:hover { background: #1a2553; transform: translateY(-1px); }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge-text small { font-size: 0.65rem; font-weight: 400; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge-text strong { font-size: 1.05rem; font-weight: 600; }

/* ---------- Screenshots ---------- */
.screenshots { background: var(--c-surface); }
.screenshot-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
  padding-block: 0.5rem 1rem;
  padding-inline-end: 1rem;
  margin-block-start: 2.5rem;
  transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* When any tile is hovered, expand the container so the grown tile fits without clipping.
   Uses :has() — Chrome/Edge 105+, Safari 15.4+, Firefox 121+ (~95% of users). */
.screenshot-grid:has(figure:hover) {
  min-height: 620px;
}
.screenshot-grid figure {
  flex: 0 0 180px;
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  aspect-ratio: 9 / 19.5;
  transition:
    flex-basis 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.3s ease,
    opacity 0.3s ease;
  will-change: flex-basis;
}
.screenshot-grid figure:hover {
  flex: 0 0 270px;
  box-shadow: 0 20px 50px rgba(14, 21, 48, 0.28);
  border-color: var(--c-border-strong);
  z-index: 2;
}
/* Soft-focus the neighbours when one tile is hovered — keeps them visible but draws focus. */
.screenshot-grid:has(figure:hover) figure:not(:hover) {
  filter: blur(2px) brightness(0.88);
  opacity: 0.82;
}
.screenshot-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--c-primary-tint);
}
@media (prefers-reduced-motion: reduce) {
  .screenshot-grid,
  .screenshot-grid figure {
    transition: none;
  }
}

/* ---------- Web Screenshots ---------- */
.screenshots.web-screenshots-section { background: var(--c-bg); }
.webshot-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
  padding-block: 0.5rem 1rem;
  padding-inline-end: 1rem;
  margin-block-start: 2.5rem;
  transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.webshot-grid:has(.webshot:hover) {
  min-height: 460px;
}
.webshot {
  flex: 0 0 400px;
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a1024;
  border: 1px solid var(--c-border);
  transition:
    flex-basis 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.3s ease,
    opacity 0.3s ease;
  will-change: flex-basis;
}
.webshot:hover {
  flex: 0 0 600px;
  box-shadow: 0 20px 50px rgba(14, 21, 48, 0.28);
  border-color: var(--c-border-strong);
  z-index: 2;
}
.webshot-grid:has(.webshot:hover) .webshot:not(:hover) {
  filter: blur(2px) brightness(0.88);
  opacity: 0.82;
}
.webshot-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #0a1024;
}
.webshot-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f3a5e;
}
.webshot-frame {
  aspect-ratio: 1995 / 1276;
  overflow: hidden;
  background: var(--c-primary-tint);
}
.webshot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .webshot-grid,
  .webshot { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 1.5rem; background: var(--c-dark); color: rgba(255,255,255,0.7); }
.site-footer .container {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer .container { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  font-weight: 600;
}
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-block-end: 0.85rem;
  text-decoration: none;
}
.footer-brand svg,
.footer-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--c-primary);
}
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; max-width: 22rem; line-height: 1.55; }
.footer-copy {
  grid-column: 1 / -1;
  padding-block-start: 2rem;
  margin-block-start: 1.5rem;
  border-block-start: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
