/* remoteScore landing — modern, minimal. No frameworks, no web fonts. */

:root {
  --accent: #FE0F4B;            /* iCR_Preferences.defaultAppColor() */
  --accent-ink: #D1003A;        /* accent for text on light bg (AA contrast) */
  --accent-soft: #FFE8EE;
  --bg: #ffffff;
  --surface: #f7f6f8;
  --card: #ffffff;
  --text: #111113;
  --muted: #5f5f66;
  --border: rgba(17, 17, 19, .08);
  --shadow: 0 1px 2px rgba(17,17,19,.04), 0 12px 32px -12px rgba(17,17,19,.12);
  --glow-1: rgba(255, 199, 209, .9);
  --glow-2: rgba(255, 235, 235, .7);
  --radius: 24px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-ink: #FF4D74;
    --accent-soft: rgba(254, 15, 75, .14);
    --bg: #0b0b0c;
    --surface: #131315;
    --card: #18181b;
    --text: #f4f4f6;
    --muted: #a3a3ab;
    --border: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
    --glow-1: rgba(153, 33, 61, .6);
    --glow-2: rgba(92, 20, 38, .4);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.narrow-text { max-width: 44em; margin-left: auto; margin-right: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.tinted { background: var(--surface); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.1875rem; /* ≥ 19px bold → AA large text on accent */
  padding: 12px 24px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px -10px rgba(254, 15, 75, .7);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(254, 15, 75, .8); }
.btn-sm { font-size: .95rem; padding: 8px 16px; box-shadow: none; font-weight: 700; }
.badge img { height: 48px; width: auto; }
.badge { transition: transform .2s ease; }
.badge:hover { transform: translateY(-1px); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: center; margin-top: 36px; }
.cta-row.left { justify-content: flex-start; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav-main { display: flex; gap: 24px; margin-left: auto; }
.nav-main a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-main a:hover { color: var(--text); }

/* Language dropdown (header + footer) */
.lang-menu { position: relative; }
.brand + .lang-menu { margin-left: auto; } /* pages without main nav (privacy) */
.lang-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: .85rem; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.lang-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu .globe { color: var(--muted); }
.lang-menu .chev { width: 14px; height: 14px; color: var(--muted); transition: rotate .2s ease; }
.lang-menu details[open] .chev { rotate: 180deg; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 160px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-menu.up ul { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; }
.lang-menu li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .93rem;
}
.lang-menu li a:hover { background: var(--surface); }
.lang-menu li a[aria-current="page"] { font-weight: 600; color: var(--accent-ink); }
.lang-menu li a[aria-current="page"]::after { content: "✓"; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(16px, 3vw, 40px) 0 clamp(24px, 4vw, 48px); overflow: hidden; isolation: isolate; }
.hero h1 { max-width: 16ch; margin: 0 auto; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 40em; margin: 24px auto 0; }
.meta { color: var(--muted); font-size: .9rem; margin-top: 18px; }
/* Hero animation: line art on a flat black background. Blended so the background disappears into the page:
   dark mode → screen (black drops out); light mode → inverted + multiply (white drops out, accent hue kept). */
.hero-media { max-width: 760px; margin: 0 auto clamp(20px, 3vw, 36px); }
.hero-video {
  display: block; width: 100%; height: auto; aspect-ratio: 1020 / 792;
  filter: invert(1) hue-rotate(180deg); mix-blend-mode: multiply;
  /* soft edges: no visible rectangle even where the browser composites the playing video without blending */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
@media (prefers-color-scheme: dark) {
  .hero-video { filter: none; mix-blend-mode: screen; }
}
.js .hero .wrap > *, .js .hero-video { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.js .hero .wrap > .hero-media { animation: none; } /* an animated parent would isolate the video's blend mode */
.js .hero .wrap > :nth-child(2) { animation-delay: .06s; }
.js .hero .wrap > :nth-child(3) { animation-delay: .12s; }
.js .hero .wrap > :nth-child(4) { animation-delay: .18s; }
.js .hero .wrap > :nth-child(5) { animation-delay: .22s; }
.js .hero .wrap > :nth-child(6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.step p, .card p, .who p { color: var(--muted); margin-top: 8px; font-size: 1rem; }

/* ---------- Feature cards ---------- */
.cards { margin-top: 56px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: translate .25s ease, box-shadow .25s ease, opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.card:hover { translate: 0 -3px; box-shadow: var(--shadow); }
.icon-wrap { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 20px; }
.icon { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Who (photos: one Magnific shoot, same light & palette) ---------- */
.who { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.who img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 22px; background: var(--surface);
}
.who h3 { position: relative; padding-left: 16px; }
.who h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 3px; background: var(--accent); }

/* ---------- digitalScore ---------- */
.ds-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px);
  padding: clamp(28px, 5vw, 64px);
}
.ds-text > p:not(.eyebrow):not(.trust) { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.trust { margin-top: 24px; font-size: .9rem; color: var(--muted); font-style: italic; }
.ds-shot { border-radius: 18px; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; translate: 0 -50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: rotate .25s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding: 0 44px 24px 0; }

/* ---------- Final CTA ---------- */
.final {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden;
  border-radius: calc(var(--radius) + 8px); border: 1px solid var(--border);
  background: radial-gradient(ellipse at 100% 0%, var(--glow-1), transparent 65%), var(--surface);
}
.final-photo { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.final-text { align-self: center; text-align: center; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px); }
.final-icon { margin: 0 auto 24px; border-radius: 16px; box-shadow: var(--shadow); }
.final p { color: var(--muted); font-size: 1.1rem; max-width: 30em; margin: 16px auto 32px; }
.final .badge { display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-inner nav:first-of-type { margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal { margin-top: 28px; display: grid; gap: 6px; font-size: .8rem; }

/* ---------- Scroll reveal (only with JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .who .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3n), .steps .reveal:nth-child(3), .who .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .ds-card, .final { grid-template-columns: 1fr; }
  .final-photo { aspect-ratio: 16 / 9; height: auto; }
  .nav-main { display: none; }
  .header-inner .lang-menu { margin-left: auto; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .steps, .cards, .who { grid-template-columns: 1fr; }
  .who { gap: 40px; }
  .header-inner { gap: 12px; }
  .brand { font-size: .95rem; }
  .footer-inner nav:first-of-type { margin-left: 0; }
}
@media (max-width: 380px) {
  .btn-sm { display: none; }
}

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

/* ---------- Legal pages (privacy) ---------- */
.legal-page { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 112px); }
.legal-page .back { display: inline-block; font-weight: 600; text-decoration: none; font-size: .95rem; margin-bottom: 28px; }
.legal-page .back:hover { text-decoration: underline; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-page .meta { margin-top: 12px; }
.legal-page .summary {
  margin: 40px 0 16px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.legal-page .summary h2 { font-size: 1.3rem; }
.legal-page .summary .checks { margin-top: 18px; }
.legal-page section { padding-top: 40px; }
.legal-page section h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.legal-page section p, .legal-page section li { color: var(--muted); }
.legal-page section p + p { margin-top: 12px; }
.legal-page section ul { padding-left: 1.2em; margin: 14px 0 0; display: grid; gap: 12px; }
.legal-page strong { color: var(--text); font-weight: 600; }
