/* Layout: une colonne de 1120px, bandes pleine largeur alternées clair / gris / nuit, grandes respirations façon Apple. */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --ink: #14171C;
  --ink-2: #3D434D;
  --muted: #5F6672;
  --line: #E1E5EB;
  --accent: #0A5BD3;
  --accent-ink: #FFFFFF;
  --night: #0D1424;
  --night-2: #182136;
  --on-night: #F2F4F8;
  --on-night-muted: #A9B2C3;
  --ok: #1F6B3F;
  --ok-bg: #E3F4EA;

  --f-sans: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-l: 32px;
  --r-m: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: 1168px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(80px, 11vw, 140px); }
.band--soft { background: var(--bg-soft); }
.band--night { background: var(--night); color: var(--on-night); }
.center { text-align: center; }

/* Type */
.eyebrow { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.band--night .eyebrow { color: var(--on-night-muted); }
.display { font-size: clamp(54px, 9vw, 112px); line-height: .98; font-weight: 700; letter-spacing: -.045em; }
.display em, .h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.h2 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; }
.h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.center .lead { margin-inline: auto; }
.body { color: var(--ink-2); max-width: 60ch; }
.band--night .body, .band--night .lead { color: var(--on-night-muted); }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btns { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; font-family: inherit;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 91, 211, .28); text-decoration: none; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link-more { font-weight: 600; text-decoration: none; padding: 12px 6px; }
.link-more::after { content: " ›"; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-top: clamp(80px, 12vw, 150px); text-align: center; }
.hero .display span { display: block; }
.hero .lead { margin: 28px auto 0; }
.hero .btns { margin-top: 40px; justify-content: center; }
.stage { position: relative; max-width: 1040px; margin: clamp(64px, 9vw, 104px) auto 0; padding-bottom: 48px; }

/* Device frames (aperçus) */
.browser { background: #FFFFFF; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 100px rgba(13, 20, 36, .18); text-align: left; color: var(--ink); }
.browser-bar { height: 36px; background: #F3F4F6; border-bottom: 1px solid #E6E8EC; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar i:nth-child(1) { background: #FF5F57; } .browser-bar i:nth-child(2) { background: #FEBC2E; } .browser-bar i:nth-child(3) { background: #28C840; }
.browser-url { margin: 0 auto; min-width: 0; max-width: 60%; padding: 3px 14px; border-radius: 7px; background: #FFFFFF; font-size: 12px; color: #5F6672; font-family: var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone { position: absolute; right: -12px; bottom: 0; width: 214px; background: #14171C; border-radius: 36px; padding: 9px; box-shadow: 0 40px 80px rgba(13, 20, 36, .32); text-align: left; }
.phone-screen { border-radius: 28px; overflow: hidden; height: 410px; }
@media (max-width: 760px) { .phone { display: none; } }

/* Béa app mock */
.app { display: flex; min-height: 430px; font-size: 13px; }
.app-side { width: 188px; flex-shrink: 0; background: #10224A; color: #FFFFFF; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-side b { font-size: 21px; letter-spacing: -.03em; margin-bottom: 18px; padding-left: 10px; }
.app-side span { padding: 9px 10px; border-radius: 8px; color: #B9C3DA; }
.app-side span.on { background: rgba(255, 255, 255, .12); color: #FFFFFF; font-weight: 600; }
.app-main { flex: 1; min-width: 0; background: #F7F8FA; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.app-title { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 700; }
.chip { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; }
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--warm { background: #FDF1DC; color: #7A4F08; }
.chip--blue { background: #E6EEFB; color: #1D4A8F; }
.kpis { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi { flex: 1 1 130px; background: #FFFFFF; border: 1px solid #E3E6EC; border-radius: 12px; padding: 13px 15px; }
.kpi small { color: #5F6672; font-size: 12px; }
.kpi strong { display: block; font-size: 24px; letter-spacing: -.03em; margin-top: 4px; }
.panels { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.panel { flex: 1 1 260px; min-width: 0; background: #FFFFFF; border: 1px solid #E3E6EC; border-radius: 12px; padding: 15px; }
.panel h4 { margin: 0 0 12px; font-size: 13px; }
.bars { height: 128px; display: flex; align-items: flex-end; gap: 7px; }
.bars i { flex: 1; display: block; background: #C9D3EA; border-radius: 4px 4px 0 0; transform-origin: bottom; }
.bars i.hi { background: #10224A; }
.rows div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #EEF0F4; font-size: 12px; }
.skel { display: block; height: 8px; border-radius: 4px; background: #E8EBF1; }

/* Press marquee */
.press { padding-block: 64px 88px; overflow: hidden; }
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; gap: 80px; width: max-content; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.03em; color: #9AA1AC; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee span:nth-child(odd) { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* Work */
.work-head { text-align: center; }
.work-head .lead { margin-top: 16px; }
.case { margin-top: 28px; border-radius: var(--r-l); overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; background: var(--bg); }
.case:first-of-type { margin-top: 64px; }
.case-text { flex: 1 1 340px; min-width: 0; padding: clamp(32px, 5vw, 56px); }
.case-text .h3 { margin-top: 12px; }
.case-text .body { margin-top: 18px; }
.case-visual { flex: 1 1 480px; min-width: 0; padding: clamp(24px, 4vw, 40px); }
.case--night { background: var(--night); color: var(--on-night); }
.case--night .body { color: var(--on-night-muted); }
.case--night .eyebrow { color: #8FB4FF; }
.case .eyebrow { color: var(--accent); }
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 36px; }
.stat strong { display: block; font-size: clamp(44px, 5vw, 56px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--on-night-muted); max-width: 22ch; }
.duo { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.duo .case { margin-top: 0; flex: 1 1 380px; flex-direction: column; align-items: stretch; }
.duo .case-visual { flex: none; padding: 32px 32px 0; }
.duo .browser { border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: 0 -10px 40px rgba(13, 20, 36, .08); }
.note { margin-top: 24px; text-align: center; font-size: 13px; color: var(--muted); }
.lift { transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.lift:hover { transform: translateY(-8px); box-shadow: 0 34px 70px rgba(13, 20, 36, .12); }

/* Quotes */
.quotes { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; }
.quote { flex: 1 1 400px; margin: 0; background: var(--bg-soft); border-radius: var(--r-l); padding: clamp(32px, 5vw, 52px); }
.quote blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(26px, 2.8vw, 32px); line-height: 1.25; letter-spacing: -.01em; }
.quote figcaption { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.quote figcaption i { width: 44px; height: 44px; border-radius: 50%; display: block; flex-shrink: 0; }

/* Offers */
.offers { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 56px; align-items: stretch; }
.offer { flex: 1 1 300px; min-width: 0; background: var(--bg); border-radius: var(--r-l); padding: 40px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.offer:hover { text-decoration: none; }
.offer--main { box-shadow: inset 0 0 0 2px var(--accent); }
.offer--night { background: var(--night); color: var(--on-night); }
.offer .name { font-size: 15px; font-weight: 600; color: var(--muted); }
.offer--main .name { color: var(--accent); }
.offer--night .name { color: var(--on-night-muted); }
.price { margin-top: 10px; font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.offer--night .price small { color: var(--on-night-muted); }
.offer .pitch { margin-top: 16px; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.offer ul { margin: 20px 0 0; padding-left: 20px; color: var(--ink-2); line-height: 1.9; }
.offer--night ul { color: #C9D0DC; }
.offer .foot { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.offer--night .foot { color: var(--on-night-muted); }
.offer .foot b { color: var(--accent); font-weight: 600; }
.offer--night .foot b { color: #8FB4FF; }
.fineprint { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }

/* Method */
.track { margin-top: 64px; height: 2px; background: var(--line); border-radius: 1px; overflow: hidden; }
.track i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.steps .k { font-family: var(--f-mono); font-size: 13px; color: var(--accent); }
.steps h3 { margin-top: 10px; font-size: 26px; letter-spacing: -.02em; }
.steps p { margin-top: 10px; color: var(--muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 72px); align-items: center; }
.portrait { flex: 1 1 300px; max-width: 420px; aspect-ratio: 4 / 5; border-radius: var(--r-l); background: var(--night-2); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--on-night-muted); }
.about-text { flex: 1 1 420px; min-width: 0; }
.about-text .body { margin-top: 20px; font-size: 19px; }

/* Lab */
.lab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: var(--r-l); padding: 36px 40px; }
.lab-id { display: flex; align-items: center; gap: 20px; }
.lab-icon { width: 64px; height: 64px; border-radius: 18px; background: #FFF3D6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Contact */
.contact { max-width: 640px; margin: 0 auto; text-align: center; }
.form { margin-top: 44px; display: grid; gap: 16px; text-align: left; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select { min-height: 52px; padding: 12px 16px; border: 1px solid #CBD1DA; border-radius: 14px; font: inherit; font-weight: 400; background: var(--bg); color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { margin-top: 6px; min-height: 54px; width: 100%; }
.form-msg { min-height: 1.5em; font-size: 15px; color: var(--ok); text-align: center; }
.contact .alt { margin-top: 20px; color: var(--muted); font-size: 15px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Inner pages */
.page-hero { padding-block: clamp(80px, 11vw, 130px) clamp(48px, 6vw, 72px); }
.page-hero .lead { margin-top: 24px; }
.page-hero .btns { margin-top: 36px; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.feature { background: var(--bg); border-radius: var(--r-m); padding: 32px; }
.feature h3 { font-size: 21px; letter-spacing: -.02em; }
.feature p { margin-top: 10px; color: var(--ink-2); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 340px; min-width: 0; }
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--bg-soft); border-radius: var(--r-m); padding: 22px 26px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 500; font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); }
.legal { max-width: 760px; }
.legal h2 { margin-top: 48px; font-size: 24px; letter-spacing: -.02em; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); }
.todo { background: #FFF3D6; color: #6B4A06; padding: 1px 6px; border-radius: 5px; font-size: .92em; }

/* Motion */
@keyframes blurin { from { opacity: 0; filter: blur(16px); transform: translateY(28px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rise { from { opacity: .55; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes zoomin { from { opacity: .5; transform: perspective(1400px) rotateX(14deg) scale(.88) translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(.06); } to { transform: scaleY(1); } }
@keyframes drawx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 30, 45, .45); } 100% { box-shadow: 0 0 0 16px rgba(200, 30, 45, 0); } }

.load { animation: blurin 1.25s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .28s; } .d3 { animation-delay: .5s; } .d4 { animation-delay: .7s; } .d5 { animation-delay: .9s; }
.float { animation: floaty 6s ease-in-out infinite; }
.pulse { animation: pulse 2s ease-out infinite; }

@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  .tilt { animation: zoomin linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  .bars i { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  .track i { animation: drawx linear both; animation-timeline: view(); animation-range: entry 30% cover 60%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Pop-up « Démarrer un projet » — entrée « portail » */
html.portal-open, html.portal-open body { background: var(--night); overflow: hidden; }
.world { background: var(--bg); transition: transform .9s cubic-bezier(.6,0,.2,1), filter .9s var(--ease), border-radius .9s var(--ease); }
.world.away { transform: perspective(1400px) translateZ(-260px) rotateX(9deg); filter: brightness(.55) saturate(.7); border-radius: 28px; overflow: hidden; pointer-events: none; }
.p-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(13,20,36,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .5s var(--ease); }
.p-scrim.on { opacity: 1; }
.pop { position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg); color: var(--ink); border-radius: 32px; padding: 44px 32px 28px; box-shadow: 0 50px 120px rgba(13,20,36,.4); }
.pop .in > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.pop.show .in > * { opacity: 1; transform: none; }
.pop .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 48%, transparent 62%); background-size: 250% 100%; background-position: 150% 0; opacity: 0; }
.pop.sweep .glare { animation: sweep 1.1s .1s var(--ease) both; }
@keyframes sweep { 0% { opacity: 1; background-position: 150% 0; } 100% { opacity: 1; background-position: -80% 0; } }
.pop-title { font-size: clamp(30px, 4vw, 40px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.pop-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.pop-sub { margin-top: 8px; color: var(--muted); }
.pop .form { margin-top: 22px; gap: 14px; }
.pop .form textarea { min-height: 100px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #CBD1DA; background: var(--bg); font: 500 15px var(--f-sans); color: var(--ink); cursor: pointer; transition: all .25s var(--ease); }
.pop-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pop-actions .btn { flex: 1 1 180px; width: auto; margin: 0; }
.btn--ghost { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px #CBD1DA; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink), 0 10px 24px rgba(13,20,36,.08); }
.pop-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pop-hint b { color: var(--ink); font-weight: 600; user-select: all; }
.pop-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.pop-close:hover { transform: rotate(90deg); }

.case--night .link-more { color: #8FB4FF; }

/* Test de site instantané */
.test .lead { color: var(--on-night-muted); }
.psi-form { margin: 40px auto 0; max-width: 620px; display: flex; flex-wrap: wrap; gap: 10px; padding: 8px; border-radius: 999px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.psi-form input { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--on-night); font: 400 18px var(--f-sans); }
.psi-form input::placeholder { color: #7D879A; }
.psi-form input:focus { outline: none; }
.psi-form:focus-within { box-shadow: inset 0 0 0 2px #5B9BFF; }
.psi-form .btn { min-height: 52px; }
@media (max-width: 520px) { .psi-form { border-radius: 24px; } .psi-form .btn { flex: 1 1 100%; } }
.psi-scan { max-width: 620px; margin: 28px auto 0; text-align: center; color: var(--on-night-muted); font-size: 15px; }
.psi-scan i { display: block; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, #5B9BFF, transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: scan 1.4s ease-in-out infinite; margin-bottom: 14px; }
@keyframes scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.psi-err { max-width: 620px; margin: 24px auto 0; text-align: center; color: #FFB4A8; }
.psi-out { margin-top: 48px; text-align: center; }
.rings { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
.ring { width: 132px; display: grid; justify-items: center; gap: 10px; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: rgba(255,255,255,.1); }
.ring .val { stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring-num { position: relative; margin-top: -96px; height: 64px; line-height: 64px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring span { font-size: 14px; color: var(--on-night-muted); }
.psi-lcp { margin-top: 28px; font-size: 17px; color: var(--on-night); }
.psi-verdict { margin: 12px auto 0; max-width: 60ch; color: var(--on-night-muted); }
.psi-src { margin-top: 18px; font-size: 13px; color: #8A93A5; }
.lead.center { margin-inline: auto; }

img.portrait { width: 100%; height: auto; object-fit: cover; display: block; }
