/* Jobo stylesheet: mobile-first, one file, no framework.
   Font: Plus Jakarta Sans (SIL Open Font License, see /fonts/OFL.txt), served from our own server. */

@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #4f46e5;        /* indigo */
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --violet: #7c3aed;
  --accent: #059669;       /* emerald: good matches, success */
  --accent-soft: #ecfdf5;
  --ink: #0f172a;          /* headings, dark panels */
  --text: #334155;
  --muted: #64748b;
  --bg: #f5f6fb;
  --card: #ffffff;
  --border: #e4e7f0;
  --success-bg: #ecfdf5; --success-text: #065f46;
  --error-bg: #fef2f2;   --error-text: #991b1b;
  --info-bg: #eef2ff;    --info-text: #3730a3;
  --warn-bg: #fffbeb;    --warn-text: #92400e;
  --radius: 16px;
  --radius-small: 10px;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(30, 27, 75, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0.25rem 0; }
strong { color: var(--ink); }
::selection { background: #c7d2fe; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 28px; padding-bottom: 56px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, Consolas, monospace; }

.icon {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo em { font-style: normal; color: var(--brand); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient); color: #fff; font-size: 1.15rem;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; } /* right side, just before the menu */
.nav {
  display: flex; align-items: center; gap: 4px;
  order: 3; width: 100%; flex-wrap: wrap; margin: 0 -8px; padding-bottom: 8px;
}
.nav a, .nav .link-button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px;
  color: var(--text); font-weight: 600; font-size: 0.93rem; text-decoration: none;
}
.nav a:hover, .nav .link-button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav a.btn { color: #fff; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; }

.points-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 700; color: #92400e; text-decoration: none;
  background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #fcd34d;
  border-radius: 999px; padding: 5px 12px;
}
.points-badge:hover { color: #78350f; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25); }

/* "Installer l'app" (public/js/install.js shows it only when the browser can install) */
.install-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--brand-dark); cursor: pointer;
  background: var(--brand-soft); border: 1px solid #c7d2fe; border-radius: 999px; padding: 5px 12px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.install-btn:hover { background: #e0e7ff; transform: translateY(-1px); }
.install-btn[hidden] { display: none; }
/* iPhone / iPad install guide: panel + arrow pointing at Safari's toolbar */
.install-sheet { position: fixed; inset: 0; z-index: 50; }
.install-sheet[hidden] { display: none; }
@keyframes install-fade { from { opacity: 0; } }
@keyframes install-up { from { opacity: 0; transform: translateY(30px); } }
@keyframes install-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 12px); } }
@keyframes install-bounce-up { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(12px); } }
.install-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); animation: install-fade 0.25s ease both; }
.install-panel {
  position: absolute; left: 12px; right: 12px; bottom: 104px; max-width: 440px; margin: 0 auto;
  background: #fff; border-radius: 22px; padding: 20px 18px 16px; box-shadow: var(--shadow-lg);
  animation: install-up 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.install-help-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.install-app-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 28px; }
.install-app-row img { border-radius: 12px; box-shadow: var(--shadow-sm); }
.install-app-row strong { display: block; font-size: 1.1rem; }
.install-app-row span { font-size: 0.88rem; color: var(--muted); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; line-height: 1.5; }
.install-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 0.82rem; font-weight: 800;
}
.ios-btn { /* looks like Safari's own buttons */
  display: inline-flex; align-items: center; justify-content: center; vertical-align: -0.35em;
  min-width: 28px; height: 26px; padding: 0 5px; border-radius: 7px;
  background: #f1f5f9; border: 1px solid var(--border); color: #2563eb; font-weight: 800; font-size: 0.95rem;
}
.ios-btn .icon { width: 17px; height: 17px; }
.install-note { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.install-arrow {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: #fff; font-size: 60px; line-height: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  animation: install-bounce 1.1s ease-in-out infinite;
}
.install-arrow .icon { stroke-width: 2.6; }
/* iPad: Safari's Share button is at the top right */
.is-ipad .install-panel { top: 84px; bottom: auto; left: auto; right: 16px; width: 400px; }
.is-ipad .install-arrow { top: 12px; bottom: auto; left: auto; right: 54px; animation-name: install-bounce-up; }
@media (max-width: 400px) { .install-long { display: none; } } /* small phones: just "Installer" */

/* ---------- footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 32px 0 28px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .logo { font-size: 1.2rem; }
.footer-brand .logo-mark { width: 28px; height: 28px; font-size: 0.95rem; border-radius: 8px; box-shadow: none; }
.footer-brand p { margin: 8px 0 0; max-width: 340px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gradient);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79, 70, 229, 0.34); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.92rem; border-radius: 10px; }
.btn-large { padding: 0.95rem 1.7rem; font-size: 1.08rem; border-radius: 14px; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--brand-dark); background: var(--brand-soft); border-color: #c7d2fe; box-shadow: var(--shadow-sm); filter: none; }
.btn-ghost-light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
.btn.btn-danger { background: #dc2626; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25); } /* ".btn.btn-danger" wins over .btn */
.btn.btn-danger:hover { background: #b91c1c; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ---------- cards / flash ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }

.flash { border-radius: var(--radius-small); padding: 12px 16px; margin-bottom: 20px; border: 1px solid transparent; font-weight: 500; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-success { background: var(--success-bg); color: var(--success-text); border-color: #a7f3d0; }
.flash-error   { background: var(--error-bg);   color: var(--error-text);   border-color: #fecaca; }
.flash-info    { background: var(--info-bg);    color: var(--info-text);    border-color: #c7d2fe; }
.flash strong { color: inherit; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand);
  margin: 0 0 10px;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 26px; }
.section-head h2 { font-size: 1.6rem; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- landing page: hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, #6d28d9 0%, transparent 55%),
              radial-gradient(90% 80% at 0% 100%, #0e7490 0%, transparent 50%),
              linear-gradient(160deg, #1e1b4b 0%, #0f172a 100%);
  color: #cbd5e1;
  border-radius: 28px;
  padding: 36px 22px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-lg);
}
.hero::after { /* soft grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero h1 { color: #fff; font-size: 2.1rem; line-height: 1.12; letter-spacing: -0.035em; }
.hero h1 .highlight { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: #a5b4fc; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 5px 12px; text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
.hero strong { color: #fff; }
.hero a:not(.btn) { color: #c7d2fe; }
.lead { font-size: 1.08rem; max-width: 560px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hint { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.hero .hint { color: #94a3b8; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.92rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: #6ee7b7; }

.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-preview { position: relative; display: grid; gap: 12px; }
.preview-label { font-size: 0.78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.preview-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.96); color: var(--text);
  border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}
.preview-card:nth-child(3) { margin-left: 18px; }
.preview-card:nth-child(4) { margin-left: 36px; opacity: 0.92; }
.preview-body { flex: 1; min-width: 0; }
.preview-body strong { color: var(--ink); display: block; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-body span { font-size: 0.82rem; color: var(--muted); }

/* returning user */
.returning-profile {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 10px 16px; margin: 0 0 22px; color: #e2e8f0;
}
.returning-profile .icon { color: #a5b4fc; }

/* ---------- landing page: sections ---------- */
.steps, .types, .pricing, .privacy { margin-bottom: 56px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.step-list li { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
  background: var(--brand-soft); color: var(--brand); font-size: 1.35rem;
}
.step-number { position: absolute; top: 20px; right: 22px; font-size: 2rem; font-weight: 800; color: #e0e7ff; line-height: 1; }
.step-list p { margin: 0.35rem 0 0; color: var(--muted); }

.type-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-grid li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.type-grid li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.type-grid .icon { font-size: 1.5rem; margin-bottom: 8px; }
.type-grid strong { display: block; }
.type-grid span { font-size: 0.88rem; color: var(--muted); }
.t-emploi .icon { color: var(--brand); }
.t-stage .icon { color: var(--violet); }
.t-bourse .icon { color: var(--accent); }
.t-formation .icon { color: #ea580c; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 6px 14px; font-weight: 600; }

.pricing { display: grid; gap: 20px; align-items: center; padding: 28px 24px; }
.pricing h2 { font-size: 1.5rem; }
.pricing p { margin: 0; }
.price-highlight {
  text-align: center; border-radius: var(--radius); padding: 22px;
  background: var(--brand-soft); border: 1px solid #c7d2fe;
}
.price-highlight .big { display: block; font-size: 2.6rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; letter-spacing: -0.03em; }
.price-highlight .for { display: block; font-weight: 700; color: var(--ink); margin-top: 2px; }
.price-highlight .free { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--accent); background: #fff; border-radius: 999px; padding: 4px 12px; }

.privacy { display: flex; gap: 16px; align-items: flex-start; }
.privacy-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 1.5rem;
}
.privacy p { margin: 0; }

.cta-bottom {
  text-align: center; padding: 40px 22px; border-radius: 24px; margin-bottom: 8px;
  background: var(--gradient); color: #e0e7ff; box-shadow: var(--shadow-lg);
}
.cta-bottom h2 { color: #fff; font-size: 1.6rem; font-weight: 800; }
.cta-bottom p { margin: 0 auto 22px; max-width: 480px; }
.cta-bottom .btn { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25); }
.cta-bottom .btn:hover { color: var(--brand-dark); }

/* ---------- forms ---------- */
.form-page { max-width: 460px; margin: 8px auto 20px; padding: 28px 24px; }
.form-page-wide { max-width: 620px; }
.form-page > h1 { font-size: 1.6rem; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; color: var(--ink); margin-top: 12px; font-size: 0.95rem; }
.form input, .form select {
  font: inherit; color: var(--ink); padding: 0.7rem 0.85rem;
  border: 1px solid #d5d9e5; border-radius: var(--radius-small); background: #fff; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:hover, .form select:hover { border-color: #b8bfd3; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }
.form .btn { margin-top: 20px; }
.form-footer { margin-top: 18px; text-align: center; color: var(--muted); }
.forgot-link { text-align: right; }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius-small); background: var(--warn-bg); color: var(--warn-text); border: 1px solid #fde68a; font-weight: 500; }
.verify-bar strong { color: inherit; }
.verify-bar .link-button { color: var(--warn-text); text-decoration: underline; }
.verify-tips { padding-left: 1.2rem; margin: 14px 0 20px; }
.verify-tips li { margin-bottom: 4px; }
.field-hint { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
.options { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px 18px; margin: 18px 0 0; display: flex; flex-direction: column; gap: 6px; background: #fafbff; }
.options legend { font-weight: 700; color: var(--ink); padding: 0 8px; }
.label { font-weight: 600; color: var(--ink); margin-top: 12px; font-size: 0.95rem; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.form .checkbox {
  font-weight: 500; margin: 0; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid #d5d9e5; border-radius: 999px; padding: 6px 14px; background: #fff;
}
.form .checkbox:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.form .checkbox input { width: auto; accent-color: var(--brand); }
.form .consent { align-items: flex-start; margin-top: 14px; font-size: 0.92rem; border: 0; padding: 0; background: none; border-radius: 0; }
.form .consent:has(input:checked) { background: none; color: inherit; }
.form .consent input { margin-top: 4px; }

/* file input as a drop zone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 2px dashed #c7d2fe; border-radius: var(--radius); background: #f8f9ff;
  padding: 24px 16px; margin-top: 12px; transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.dropzone-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--brand); font-size: 1.5rem; box-shadow: var(--shadow-sm);
}
.dropzone label { margin: 4px 0 0; }
.form .dropzone input[type="file"] { border: 0; background: none; padding: 4px 0; max-width: 100%; text-align: center; color: var(--muted); font-size: 0.9rem; box-shadow: none; }
.form input[type="file"] { padding: 0.55rem; background: var(--bg); }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; color: var(--brand-dark); background: #fff;
  border: 1px solid #c7d2fe; border-radius: 10px; padding: 7px 14px; margin-right: 10px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--brand-soft); }

/* upload page: saved profile */
.saved-profile { border: 2px solid #c7d2fe; }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.card-title h1, .card-title h2 { margin: 0; }
.title-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px; background: var(--gradient); color: #fff; font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
}
.title-icon.soft { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.profile-summary {
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff); border: 1px solid #e0e7ff;
  border-radius: var(--radius-small); padding: 14px 16px; margin: 10px 0 4px;
}
.profile-summary strong { color: var(--brand-dark); font-size: 1.08rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }

/* ---------- account page ---------- */
.danger-zone { border-color: #fecaca; box-shadow: none; background: #fffafa; }
.danger-zone h2 { color: var(--error-text); font-size: 1.15rem; }
.danger-form { max-width: 400px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto 20px; padding: 28px 24px; }
.legal h2 { font-size: 1.15rem; margin-top: 28px; }
.legal li { margin-bottom: 6px; }
.contact-email { font-size: 1.2rem; font-weight: 700; }

/* ---------- profile page ---------- */
.lead-left { font-size: 1.05rem; margin-top: 0; }
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0 0 16px; }
.profile-grid dt { font-weight: 600; color: var(--muted); font-size: 0.88rem; margin-top: 12px; }
.profile-grid dd { margin: 0; color: var(--ink); }
.small-heading { font-size: 1rem; margin: 8px 0 10px; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.json { background: var(--ink); color: #e2e8f0; padding: 14px; border-radius: var(--radius-small); overflow-x: auto; font-size: 0.85rem; }

/* ---------- search progress ---------- */
.progress-card { text-align: center; max-width: 580px; margin: 24px auto; padding: 36px 26px; }
.progress-text { font-size: 1.08rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; display: inline-block; padding: 6px 16px; }
.radar {
  position: relative; width: 96px; height: 96px; margin: 4px auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gradient); color: #fff; font-size: 2.2rem;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}
.radar::before, .radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.5); animation: pulse 2.2s ease-out infinite;
}
.radar::after { animation-delay: 1.1s; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.progress-bar { height: 6px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; margin: 22px auto 20px; max-width: 360px; }
.progress-bar span { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--gradient); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.spinner {
  width: 44px; height: 44px; margin: 8px auto 16px; border-radius: 50%;
  border: 4px solid var(--brand-soft); border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .radar::before, .radar::after, .progress-bar span { animation: none; }
  .spinner { animation-duration: 3s; }
  .btn, .type-grid li, .search-link { transition: none; }
}

/* ---------- page heading ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-sub { margin: 6px 0 0; font-size: 0.95rem; }

/* ---------- search results ---------- */
.results-count { margin: 0 0 18px; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.summary-bar > span {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow-sm);
}
.summary-bar .icon { color: var(--brand); }
.summary-bar .is-locked .icon { color: #d97706; }
.notice { border-color: #fde68a; background: var(--warn-bg); box-shadow: none; }
.notice h2 { font-size: 1.1rem; color: var(--warn-text); }
.result-list { list-style: none; padding: 0; margin: 0; }
.result { transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.result:hover { border-color: #c7d2fe; box-shadow: 0 12px 30px rgba(30, 27, 75, 0.1); }
.result-head { display: flex; gap: 14px; align-items: flex-start; }
.org-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; font-weight: 800; font-size: 1rem; letter-spacing: 0.02em;
  background: var(--brand-soft); color: var(--brand-dark);
}
.av-1 { background: #f5f3ff; color: #6d28d9; }
.av-2 { background: #ecfdf5; color: #047857; }
.av-3 { background: #fff7ed; color: #c2410c; }
.av-4 { background: #ecfeff; color: #0e7490; }
.av-5 { background: #fdf2f8; color: #be185d; }
.result-heading { flex: 1; min-width: 0; }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 8px; padding: 3px 9px; background: var(--brand-soft); color: var(--brand-dark); }
.badge-stage { background: #f5f3ff; color: #5b21b6; }
.badge-bourse { background: #ecfdf5; color: #065f46; }
.badge-formation { background: #fff7ed; color: #9a3412; }
.score { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.score-mid { color: #0e7490; background: #ecfeff; }
.score-low { color: #475569; background: #f1f5f9; }
.result-title { font-size: 1.15rem; margin: 8px 0 4px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 0.93rem; }
.result-meta span { display: inline-flex; align-items: center; gap: 5px; }
.result-meta strong { color: var(--text); }
.why { margin: 16px 0; padding: 12px 14px; background: #f8fafc; border-left: 3px solid #a5b4fc; border-radius: 0 var(--radius-small) var(--radius-small) 0; font-size: 0.95rem; }
.why-label { font-weight: 700; color: var(--ink); }
.result-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-dates { display: flex; flex-direction: column; gap: 4px; }
.deadline, .posted { display: inline-flex; align-items: center; gap: 7px; font-size: 0.93rem; }
.posted .icon { color: var(--accent); }
.deadline .icon { color: #d97706; }
.source { margin: 12px 0 0; font-size: 0.82rem; display: flex; align-items: center; gap: 5px; }
.disclaimer { font-size: 0.85rem; margin-top: 8px; }

/* ---------- locked results ---------- */
.locked { position: relative; margin-bottom: 20px; }
.locked-preview { filter: blur(6px); opacity: 0.55; pointer-events: none; user-select: none; }
.locked-preview .fake { margin-bottom: 12px; }
.locked-cta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(94%, 470px); text-align: center; box-shadow: var(--shadow-lg); margin: 0; padding: 28px 24px;
  border: 1px solid #e0e7ff;
}
.lock-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px; margin-bottom: 12px;
  background: var(--gradient); color: #fff; font-size: 1.5rem; box-shadow: 0 10px 22px rgba(79, 70, 229, 0.35);
}
.locked-cta h2 { font-size: 1.25rem; }

/* ---------- points ---------- */
.wallet-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.wallet-box > div { border-radius: var(--radius-small); padding: 14px 16px; background: var(--brand-soft); border: 1px solid #e0e7ff; }
.wallet-box > div + div { background: var(--accent-soft); border-color: #d1fae5; }
.wallet-box span { display: block; font-size: 0.82rem; font-weight: 600; }
.wallet-box strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.wallet-line { margin: 0 0 14px; }
.packs { display: grid; gap: 12px; }
.form .pack {
  position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 16px 14px 46px; font-weight: 400; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form .pack:hover { border-color: #c7d2fe; }
.form .pack input { position: absolute; left: 16px; top: 18px; width: auto; accent-color: var(--brand); }
.form .pack:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); }
.pack-popular { border-color: #a5b4fc; }
.pack-tag { position: absolute; right: 12px; top: -11px; background: var(--gradient); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.pack-points { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.pack-price { font-weight: 700; color: var(--brand-dark); }
.pack-detail { font-size: 0.82rem; color: var(--muted); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.history li:last-child { border-bottom: 0; }
.history .plus { color: var(--success-text); font-weight: 700; }
.history .minus { color: var(--error-text); font-weight: 700; }

/* ---------- payment page ---------- */
.price { color: var(--brand-dark); }
.pay-code { border: 2px dashed #a5b4fc; border-radius: var(--radius); background: var(--brand-soft); padding: 16px; margin-bottom: 14px; text-align: center; }
.pay-code span { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.pay-code strong.mono { display: block; font-size: 1.7rem; letter-spacing: 0.08em; color: var(--brand-dark); margin: 2px 0 6px; }
.pay-code p { margin: 0; font-size: 0.92rem; }
.payment-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); border-radius: 6px; padding: 1px 8px; }
.step-heading { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 26px 0 12px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 0.85rem; font-weight: 800; }
.pay-options { display: grid; gap: 12px; }
.pay-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: #fafbff; }
.pay-option h3 { margin: 0 0 6px; }
.pay-option p { margin: 0 0 6px; }
.pay-details { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.pay-details dt { color: var(--muted); }
.pay-details dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- admin ---------- */
.admin-nav, .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.admin-nav a, .tabs a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 600; color: var(--text); }
.admin-nav a:hover, .tabs a:hover { border-color: #c7d2fe; color: var(--brand-dark); }
.admin-nav a.active, .tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.stat-label { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-sub { color: var(--muted); font-size: 0.8rem; }
.payment-head { margin-bottom: 8px; }
.payment-details { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0 0 12px; }
.payment-details dt { color: var(--muted); }
.payment-details dd { margin: 0; overflow-wrap: anywhere; }
.phone-action { display: inline-block; margin-left: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px; }
.receipt-thumb { display: block; max-width: 220px; max-height: 220px; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reject-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 240px; }
.reject-form input { flex: 1; min-width: 160px; font: inherit; padding: 0.55rem 0.7rem; border: 1px solid #d5d9e5; border-radius: var(--radius-small); }
.gift-form { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.gift-form input { width: 72px; font: inherit; padding: 4px 6px; border: 1px solid #d5d9e5; border-radius: 8px; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: #f8f9fc; font-weight: 700; color: var(--ink); white-space: nowrap; font-size: 0.85rem; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- dashboard: my searches ---------- */
.empty { text-align: center; padding: 40px 24px; }
.empty .title-icon { width: 60px; height: 60px; font-size: 1.6rem; border-radius: 18px; margin-bottom: 12px; }
.search-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.search-link {
  display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px;
  color: inherit; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.search-link:hover { color: inherit; border-color: #c7d2fe; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(30, 27, 75, 0.1); }
.search-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; font-size: 1.3rem;
  background: var(--brand-soft); color: var(--brand);
}
.search-icon.is-done { background: var(--accent-soft); color: var(--accent); }
.search-icon.is-failed { background: var(--error-bg); color: var(--error-text); }
.search-main { flex: 1; min-width: 0; }
.search-title { font-size: 1.05rem; margin: 0 0 2px; }
.search-meta { margin: 0; color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-main .chip-row { margin-top: 8px; }
.search-count { flex: none; text-align: right; }
.search-count strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.search-count span { font-size: 0.8rem; color: var(--muted); }
.search-arrow { flex: none; color: #94a3b8; font-size: 1.2rem; }
.search-link:hover .search-arrow { color: var(--brand); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--info-bg); color: var(--info-text); }
.status-done { background: var(--success-bg); color: var(--success-text); }
.status-failed { background: var(--error-bg); color: var(--error-text); }
.status-locked { background: #fef3c7; color: #92400e; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  h1 { font-size: 2.1rem; }
  .main { padding-top: 36px; }
  .site-header { position: sticky; top: 0; }
  .nav { order: 0; width: auto; margin: 0; padding-bottom: 0; }
  .hero { padding: 56px 48px; }
  .hero h1 { font-size: 3rem; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing { grid-template-columns: 1.4fr 1fr; padding: 32px; }
  .profile-grid { grid-template-columns: 220px 1fr; }
  .profile-grid dt, .profile-grid dd { margin-top: 12px; }
  .pay-options { grid-template-columns: 1fr 1fr; }
  .packs { grid-template-columns: repeat(3, 1fr); }
  .form .pack { padding-top: 44px; padding-left: 16px; }
  .form .pack input { top: 16px; }
  .form-page { padding: 34px 32px; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .footer-copy { width: 100%; }
  .search-link { padding: 20px 22px; }
  .card { padding: 24px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .hero h1 { font-size: 2.9rem; }
}
@media (max-width: 959px) {
  .hero-preview { display: none; }
}
@media (max-width: 719px) {
  .result-bottom .btn { width: 100%; }
}

/* ==========================================================================
   Motion: page transitions, entrance animations, scroll reveal.
   Everything here is decoration: the site works the same without it, and
   people who ask their device for less motion get none (see the end).
   ========================================================================== */

html { scroll-behavior: smooth; }

/* ---------- page transitions (Chrome, Edge, Safari; other browsers just change page) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; } /* the header stays still */
::view-transition-old(root) { animation: page-out 0.18s ease-in both; }
::view-transition-new(root) { animation: page-in 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- entrance: blocks rise softly when a page opens ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-head, .form-page, .progress-card, .empty, .legal, .summary-bar, .notice {
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* lists: one item after the other */
.search-list > li, .result-list > li, .packs > .pack, .stat-grid > .stat {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.search-list > li:nth-child(2), .result-list > li:nth-child(2), .packs > .pack:nth-child(2), .stat-grid > .stat:nth-child(2) { animation-delay: 0.06s; }
.search-list > li:nth-child(3), .result-list > li:nth-child(3), .packs > .pack:nth-child(3), .stat-grid > .stat:nth-child(3) { animation-delay: 0.12s; }
.search-list > li:nth-child(4), .result-list > li:nth-child(4), .stat-grid > .stat:nth-child(4) { animation-delay: 0.18s; }
.search-list > li:nth-child(5), .result-list > li:nth-child(5), .stat-grid > .stat:nth-child(5) { animation-delay: 0.24s; }
.search-list > li:nth-child(n+6), .result-list > li:nth-child(n+6) { animation-delay: 0.3s; }
.locked { animation: rise 0.6s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- home page hero ---------- */
.hero-grid > div:first-child > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: 0.16s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: 0.24s; }
.hero-grid > div:first-child > :nth-child(n+5) { animation-delay: 0.32s; }

@keyframes slide-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-preview { animation: slide-in 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.preview-card { animation: float 6s ease-in-out infinite; }
.preview-card:nth-child(3) { animation-delay: -2s; }
.preview-card:nth-child(4) { animation-delay: -4s; }

/* the highlighted words slowly shimmer */
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.hero h1 .highlight {
  background-image: linear-gradient(90deg, #a5b4fc, #67e8f9, #c4b5fd, #a5b4fc);
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

/* ---------- home page sections appear while scrolling (public/js/motion.js) ---------- */
/* Only hidden when the script runs ("js" class), so nothing is lost without it. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal .step-list > li, .js .reveal .type-grid > li {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease;
}
.js .reveal.is-visible .step-list > li, .js .reveal.is-visible .type-grid > li { opacity: 1; transform: none; }
.js .reveal.is-visible .step-list > li:nth-child(2), .js .reveal.is-visible .type-grid > li:nth-child(2) { transition-delay: 0.1s; }
.js .reveal.is-visible .step-list > li:nth-child(3), .js .reveal.is-visible .type-grid > li:nth-child(3) { transition-delay: 0.2s; }
.js .reveal.is-visible .type-grid > li:nth-child(4) { transition-delay: 0.3s; }
.js .reveal.is-visible .step-list > li:hover, .js .reveal.is-visible .type-grid > li:hover { transform: translateY(-3px); transition-delay: 0s; }

/* ---------- small touches ---------- */
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
.flash { animation: flash-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.btn:active { transform: translateY(0) scale(0.97); }
.step-list li { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.step-list li:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30, 27, 75, 0.1); }
.step-icon, .search-icon, .org-avatar { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.step-list li:hover .step-icon, .search-link:hover .search-icon, .result:hover .org-avatar { transform: scale(1.08) rotate(-3deg); }
.search-arrow { transition: transform 0.2s ease, color 0.2s ease; }
.search-link:hover .search-arrow { transform: translateX(4px); }
.points-badge { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.points-badge:hover { transform: translateY(-1px); }
.nav a, .nav .link-button { transition: background-color 0.15s ease, color 0.15s ease; }

/* ---------- less motion, when the person asked their device for it ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal .step-list > li, .js .reveal .type-grid > li { opacity: 1; transform: none; }
}
