/* AppsRank. Visto Apps style: dark aurora in the app's colors, glass surfaces,
   Instrument Serif headlines, Inter text. Shared kit: ~/Developer/visto-apps. */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times"), local("Liberation Serif"), local("Tinos"); font-style: normal; size-adjust: 83.4%; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Times-Italic"), local("Liberation Serif Italic"), local("Tinos Italic"); font-style: italic; size-adjust: 88.1%; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* app palette: the only block that changes between app sites */
  --c1: #9150ff;          /* primary, AppsRank violet */
  --c2: #3a2496;          /* secondary, deep indigo */
  --c3: #5b6bff;          /* depth, periwinkle */
  --accent-a: #d3b8ff;    /* italic headline gradient */
  --accent-b: #9fb0ff;
  --on-c1: #ffffff;       /* text on the primary button */
  --link: #cdbcff;        /* links and labels, light enough on the dark ground */
  /* shared */
  --bg: #0b0716;
  --bg-2: #150d2e;
  --text: #f6f3fd;
  --text-2: #d6cfe8;
  --text-3: #a79fc0;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-line-2: rgba(255, 255, 255, 0.26);
  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 28px;
  --max: 1120px;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; position: relative;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 10px; }
summary:focus-visible { outline-offset: -2px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--c1); color: var(--on-c1); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- aurora background ---------- */
.animated-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 1500px; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(38% 30% at 18% 8%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%),
    radial-gradient(34% 28% at 82% 14%, color-mix(in srgb, var(--c3) 50%, transparent), transparent 70%),
    radial-gradient(46% 30% at 50% 40%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 72%),
    radial-gradient(60% 40% at 50% 0%, color-mix(in srgb, var(--c1) 22%, var(--bg-2)), transparent 80%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
          mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.animated-bg::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 900px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 5px, rgba(255,255,255,.025) 5px 6px, transparent 6px 9px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), #000 30%, rgba(0,0,0,.3) 60%, transparent);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.5), #000 30%, rgba(0,0,0,.3) 60%, transparent);
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main { position: relative; display: block; }
section { position: relative; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 50; padding: 14px 0; transition: background .3s var(--ease); }
header.is-scrolled, header:has(.nav-links.active) { background: rgba(11, 7, 22, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
header .container { display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 24px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.logo img { width: 38px; height: 38px; border-radius: 22.5%; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.nav-links {
  display: flex; align-items: center; gap: 2px; margin: 0; padding: 5px; list-style: none; border-radius: 999px;
  background: color-mix(in srgb, var(--c1) 12%, rgba(20, 12, 40, .6)); border: 1px solid color-mix(in srgb, var(--c1) 38%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 24px color-mix(in srgb, var(--c1) 18%, transparent);
}
.nav-links a { display: block; padding: 8px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s; }
.nav-links a:hover { background: rgba(255,255,255,.08); }
.nav-links a[aria-current="page"] { background: color-mix(in srgb, var(--c1) 45%, rgba(255,255,255,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.nav-links a.lang-btn { margin-left: 4px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; background: rgba(255,255,255,.1); border: 1px solid var(--glass-line); }
.nav-links a.lang-btn:hover { background: rgba(255,255,255,.16); }
.mobile-menu-btn { display: none; width: 46px; height: 46px; place-items: center; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); color: var(--text); font: inherit; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
h1 em, h2 em {
  font-style: italic; padding-right: .06em;
  background: linear-gradient(95deg, var(--accent-a), var(--accent-b) 60%, color-mix(in srgb, var(--accent-b) 60%, white));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-label { display: block; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--link); }
section > .container > h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.04; margin-bottom: 18px; }
.section-intro { font-size: 18px; color: var(--text-2); max-width: 640px; margin-bottom: 36px; }

/* ---------- buttons ---------- */
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-glow, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16.5px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn-glow {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 85%, white), color-mix(in srgb, var(--c1) 72%, var(--c2))); color: var(--on-c1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 36px color-mix(in srgb, var(--c1) 50%, transparent);
}
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 14px 46px color-mix(in srgb, var(--c1) 65%, transparent); }
.btn-outline { background: rgba(255,255,255,.07); border: 1px solid var(--glass-line-2); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn-large { padding: 16px 30px; font-size: 17px; }
.trust-line { margin-top: 18px; font-size: 14.5px; color: var(--text-3); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 70px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero-pill {
  display: inline-block; margin-bottom: 22px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
  background: color-mix(in srgb, var(--c1) 16%, rgba(255,255,255,.04)); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
}
.hero-content h1 { font-size: clamp(44px, 6vw, 78px); line-height: 1; }
.hero-content .tagline { margin: 22px 0 30px; max-width: 600px; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.hero-phone { position: relative; justify-self: center; width: min(320px, 100%); }
.hero-phone::before {
  content: ""; position: absolute; inset: 12% -18% 6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c1) 55%, transparent), transparent);
  filter: blur(10px);
}
.hero-phone img { width: 100%; transform: rotate(4deg); transform-origin: 0 0; filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }

/* ---------- stats ---------- */
.stats { padding: 10px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 22px 20px; border-radius: 22px; text-align: center; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.stat .number { font-family: var(--serif); font-size: clamp(38px, 4vw, 52px); line-height: 1; margin-bottom: 8px; }
.stat .label { font-size: 14.5px; color: var(--text-2); }

/* ---------- glass cards ---------- */
.features { padding: 70px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.feature-card {
  position: relative; padding: 26px 24px 24px; border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 14%, rgba(255,255,255,.05)), rgba(255,255,255,.03));
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 55%, white 10%); box-shadow: 0 0 34px color-mix(in srgb, var(--c1) 25%, transparent); }
.feature-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.feature-icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--c1) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
  color: var(--accent-a);
}
.feature-icon svg { width: 26px; height: 26px; }

/* ---------- phone shot band ---------- */
.shot-band { padding: 20px 0 70px; }
.shot-note {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; padding: 36px 40px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 18%, rgba(255,255,255,.04)), color-mix(in srgb, var(--c3) 16%, rgba(255,255,255,.03)));
  border: 1px solid color-mix(in srgb, var(--c1) 35%, var(--glass-line));
}
.shot-note h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 16px; }
.shot-note p { color: var(--text-2); margin-bottom: 14px; }
.shot-note img { width: 100%; max-width: 300px; justify-self: center; filter: drop-shadow(0 20px 34px rgba(0,0,0,.5)); }

/* ---------- FAQ / support ---------- */
.support-page { padding: 30px 0 70px; }
.support-page .container { max-width: calc(860px + var(--gutter) * 2); }
.support-page h1 { font-size: clamp(42px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 14px; }
.faq-title { margin: 40px 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--link); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); overflow: hidden; }
.faq-item[open] { border-color: color-mix(in srgb, var(--c1) 45%, var(--glass-line)); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--c1); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: rgba(255,255,255,.03); }
.faq-item p { padding: 0 24px 22px; color: var(--text-2); }
.faq-item a, .contact a:not(.btn-glow) { color: var(--link); }
.contact { margin-top: 50px; padding: 40px 30px; text-align: center; border-radius: var(--radius); background: linear-gradient(110deg, color-mix(in srgb, var(--c1) 30%, transparent), color-mix(in srgb, var(--c3) 22%, transparent)); border: 1.5px solid color-mix(in srgb, var(--c1) 50%, white 15%); }
.contact h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.contact p { color: var(--text-2); margin-bottom: 22px; }
.contact .response { margin: 18px 0 0; font-size: 14px; color: var(--text-3); }

/* ---------- legal pages ---------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: 30px var(--gutter) 80px; }
.legal-page h1 { font-size: clamp(42px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 12px; }
.legal-page .last-updated { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.legal-page h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; margin: 44px 0 14px; }
.legal-page h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.legal-page p, .legal-page ul, .legal-page ol { color: var(--text-2); line-height: 1.7; margin: 0 0 16px; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 8px; }
.legal-page strong { color: var(--text); }
.legal-page a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-page a:hover { color: var(--text); }
.legal-toc { margin: 0 0 12px; padding: 22px 26px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); }
.legal-toc ol { columns: 2; column-gap: 32px; padding-left: 20px; margin: 0; }
.legal-toc li { margin: 0 0 6px; break-inside: avoid; }
.legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--text); text-decoration: underline; }
.legal-section { scroll-margin-top: 90px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border-radius: 18px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.04); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--text-2); }
.legal-table thead th { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.legal-table tbody th { color: var(--text); font-weight: 600; min-width: 140px; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table small { color: var(--text-3); font-weight: 400; }

/* ---------- footer ---------- */
footer { position: relative; margin-top: 20px; background: rgba(6, 3, 16, .6); border-top: 1px solid rgba(255,255,255,.08); }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 0 26px; }
.footer-section h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.footer-section h4 { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer-section p { font-size: 14.5px; color: var(--text-2); max-width: 300px; }
.footer-section ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-section li { font-size: 14.5px; }
.footer-section a { text-decoration: none; color: var(--text-2); overflow-wrap: anywhere; }
.footer-section a:hover { color: var(--text); }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-bottom a { color: var(--text-2); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) { h1 em, h2 em { color: CanvasText; background: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .nav-links a { padding: 8px 11px; font-size: 14px; } }
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .mobile-menu-btn { display: grid; }
  header nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 4px); }
  .nav-links { display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 22px; background: rgba(16, 9, 34, .97); }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 17px; border-radius: 14px; }
  .nav-links a.lang-btn { margin: 8px 0 4px 8px; align-self: flex-start; padding: 9px 16px; font-size: 14px; }
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-phone { width: min(280px, 72%); margin-top: 10px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-note { grid-template-columns: 1fr; padding: 30px 28px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .logo { font-size: 21px; }
  .logo img { width: 34px; height: 34px; }
  .hero { padding: 18px 0 40px; }
  .hero-content h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .hero-content .tagline { font-size: 16.5px; }
  .cta-buttons > a { flex: 1 1 100%; }
  .features { padding: 46px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .shot-note { padding: 26px 20px; }
  .legal-page { padding-top: 16px; }
  .legal-toc ol { columns: 1; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table tr { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .legal-table tbody tr:last-child { border-bottom: 0; }
  .legal-table th, .legal-table td { border: 0; padding: 3px 0; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--text-3); }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .contact { padding: 30px 20px; }
  /* text sits 28 px from the screen edge, like vistoapps.com */
  .hero .container, section > .container, .footer-content, .footer-bottom, .legal-page { padding-left: 28px; padding-right: 28px; }
  footer > .container { padding-left: 0; padding-right: 0; }
  .features-grid, .shot-note, .faq-list, .stats-grid { margin-left: -12px; margin-right: -12px; }
}
@media (max-width: 900px), (hover: none) {
  header.is-scrolled, header:has(.nav-links.active) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 7, 22, .94); }
}

/* overscroll:start  the aurora stretches from its bottom edge while iOS rubber-bands the top (--osy set by the script) */
.animated-bg { transform-origin: 50% 100%; scale: 1 calc(1 + var(--osy, 0) / 1500); }
/* overscroll:end */
