/* ariaid.eu — one stylesheet for the landing page and the privacy pages.
   Colours: navy/indigo/teal brand tokens; type: Inter (self-hosted). */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0D1230;
  --ink2: #1B2150;
  --ink-line: #2E3570;
  --paper: #F5F7FB;
  --card: #FFFFFF;
  --line: #E2E5F0;
  --indigo: #5B5BF0;
  --indigo-dark: #8B8BFF;
  --teal: #0F9F8F;
  --teal-dark: #2DD4BF;
  --teal-tint: #DDF6F2;
  --text: #1B1F3B;
  --muted: #5B6280;
  --faint: #8A90AB;
  --soft: #C9CCE8;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* The root is navy so overscroll past the top or bottom never shows white. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); overscroll-behavior-y: none; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Shared bits ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s, opacity .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; transform: none; cursor: default; }
.btn-light { background: #fff; color: var(--ink); }
.lang-toggle { border: 1px solid currentColor; border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; opacity: .75; text-decoration: none; }
.lang-toggle:hover { opacity: 1; }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; text-decoration: none; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--indigo); margin: 0 0 .9rem; }
.grad { background: linear-gradient(90deg, var(--indigo-dark), var(--teal-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Dark areas ---------- */
.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.dark .eyebrow { color: var(--teal-dark); }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.glow::before { width: 760px; height: 760px; left: -220px; top: -60px; background: radial-gradient(circle, rgba(91,91,240,.38), transparent 62%); }
.glow::after { width: 680px; height: 680px; right: -240px; top: 30%; background: radial-gradient(circle, rgba(45,212,191,.2), transparent 62%); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; position: relative; z-index: 3; }
.nav .wordmark span { color: var(--indigo-dark); }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; color: var(--soft); }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: #fff; }

/* ---------- Browser frame and phone ---------- */
.bw { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(5,8,30,.65), 0 0 0 1px rgba(255,255,255,.08); }
.bw-bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #ECEEF5; border-bottom: 1px solid #DCDFEA; }
.bw-dots { display: flex; gap: 7px; }
.bw-dots i { width: 11px; height: 11px; border-radius: 50%; background: #C9CCE8; }
.bw-url { flex: 1; max-width: 360px; margin: 0 auto; height: 24px; border-radius: 7px; background: #fff; color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bw-url::before { content: ""; width: 9px; height: 10px; border: 1.6px solid var(--faint); border-radius: 2px 2px 3px 3px; }
.bw-spacer { width: 47px; }
.bw img { width: 100%; height: auto; aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; }
/* The phone is drawn at its real size (--s) rather than shrunk with scale(), which kept its screen sharp. */
.bk-phone { --s: 1; width: calc(290px * var(--s)); height: calc(590px * var(--s)); border-radius: calc(44px * var(--s)); background: #0b0e22; padding: calc(11px * var(--s)); position: relative; flex-shrink: 0; }
.bk-screen { width: 100%; height: 100%; border-radius: calc(34px * var(--s)); background: #fff; overflow: hidden; position: relative; }
.bk-notch { position: absolute; top: calc(9px * var(--s)); left: 50%; transform: translateX(-50%); width: calc(84px * var(--s)); height: calc(22px * var(--s)); background: #0b0e22; border-radius: 20px; z-index: 5; }
.bk-status { height: calc(40px * var(--s)); }
.bk-screen img { width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 110px; }
.hero-text { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -.05em; margin: 0; font-weight: 800; }
/* The web front page bleeds off the right edge; the phone is tilted over its lower left corner. */
.hero-vis { position: relative; padding-bottom: 70px; }
.hero-vis .bw { width: 122%; transform: perspective(1600px) rotateY(-10deg); transform-origin: left center; }
.hero-phone { --s: .56; position: absolute; left: -36px; bottom: 0; width: calc(290px * var(--s)); height: calc(590px * var(--s)); z-index: 2; }
.hero-phone .bk-phone { --s: inherit; transform: rotate(-8deg); transform-origin: top left; box-shadow: 0 50px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08) inset; }

/* ---------- Light sections ---------- */
.sec { padding: 110px 0; }
.sec h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.035em; line-height: 1.1; margin: 0; max-width: 20ch; }
.who { background: var(--card); border-bottom: 1px solid var(--line); }
.who h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); letter-spacing: -.04em; line-height: 1.08; max-width: 22ch; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 52px; }
.benefit svg { color: var(--teal); margin-bottom: 18px; }
.benefit h3 { margin: 0 0 8px; font-size: 1.15rem; }
.benefit p { margin: 0; color: var(--muted); }
.fit { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fit .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.fit p { color: var(--muted); font-size: 1.08rem; margin: 0 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }

/* ---------- Platform carousel ---------- */
.plat { position: relative; z-index: 2; padding: 110px 0 120px; }
.plat h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 12px; max-width: 18ch; }
.plat .sub { color: var(--soft); margin: 0 0 48px; max-width: 34rem; }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.steps { display: flex; flex-direction: column; }
.stp { text-align: left; background: none; border: 0; color: #fff; padding: 16px 0 16px 20px; border-left: 2px solid var(--ink-line); position: relative; opacity: .5; transition: opacity .3s; }
.stp:hover { opacity: .8; }
.stp.on { opacity: 1; }
.stp:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.stp .k { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--teal-dark); }
.stp h3 { margin: 4px 0 0; font-size: 1.08rem; letter-spacing: -.01em; }
.stp p { margin: 6px 0 0; color: var(--soft); font-size: .92rem; display: none; }
.stp.on p { display: block; }
.stp i { position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--teal-dark); }
.stage { position: relative; aspect-ratio: 1280 / 838; }
.stage .bw { position: absolute; inset: 0; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .55s ease, transform .55s ease; }
.stage .bw.on { opacity: 1; transform: none; }
.m-arrows { display: none; gap: 10px; margin-top: 18px; }
.c-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink-line); background: transparent; color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.c-arrow:hover { border-color: #fff; }

/* ---------- Contact ---------- */
.contact { padding: 110px 0 90px; position: relative; z-index: 2; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; margin: 0 0 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.form-grid > * { min-width: 0; }
.lead2 { color: var(--soft); margin: 0 0 22px; max-width: 30rem; }
.cform { display: grid; gap: 16px; background: rgba(27,33,80,.55); border: 1px solid var(--ink-line); border-radius: 18px; padding: 28px; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--soft); }
.cform input, .cform textarea { font: inherit; font-size: .95rem; color: #fff; background: rgba(13,18,48,.7); border: 1px solid var(--ink-line); border-radius: 10px; padding: .7rem .85rem; width: 100%; transition: border-color .2s; }
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--indigo-dark); }
.cform ::placeholder { color: #6B7194; }
.cform .send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cform .send small { color: var(--faint); font-size: .8rem; }
.cform .send small a { color: var(--soft); }
.cform .thanks { display: none; margin: 0; color: var(--teal-dark); font-weight: 600; }
.cform .form-error { margin: 0; color: #FCA5A5; font-size: .92rem; }
.cform .form-error:empty { display: none; }
.cform.sent > :not(.thanks) { display: none; }
.cform.sent .thanks { display: block; padding: 40px 0; text-align: center; font-size: 1.1rem; }
footer.site { border-top: 1px solid var(--ink-line); color: var(--faint); font-size: .88rem; padding: 32px 0; position: relative; z-index: 2; }
footer.site .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site b { color: #fff; }

/* ---------- Privacy page ---------- */
.doc { background: var(--card); padding: 80px 0 110px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.1; margin: 0 0 24px; }
.doc h2 { font-size: 1.25rem; letter-spacing: -.02em; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--muted); }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .lang-toggle { margin-left: auto; }
  .hero-text { grid-template-columns: 1fr; gap: 20px; }
  .hero-vis { margin-top: 24px; }
  .hero-vis .bw { width: 100%; transform: none; }
  .hero-phone { --s: .4; left: -6px; }
  .benefits, .fit .wrap, .form-grid, .cform .row2 { grid-template-columns: 1fr; gap: 24px; }
  .sec { padding: 72px 0; }
  .split { grid-template-columns: 1fr; }
  .steps { order: 2; }
  .stp:not(.on) { display: none; }
  .stp { border: 0; padding-left: 0; }
  .stp i { display: none; }
  .m-arrows { display: flex; }
  .bw-bar { height: 28px; }
  .bw-url { font-size: 10px; height: 18px; }
  .bw-dots i { width: 8px; height: 8px; }
}
@media (max-width: 420px) { .wrap { padding: 0 16px; } .cform { padding: 20px 14px; } }
/* Turnstile needs 300px; on the narrowest phones the form drops its card. */
@media (max-width: 340px) { .wrap { padding: 0 10px; } .cform { padding: 8px 0; border: 0; background: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
