/* Mailflew showcase layer: the dark aurora hero, AI section, bento grids, marquee and motion.
   Loaded after site.css. Motion uses transform/opacity only and switches off for reduced motion. */

:root {
  --night: #071d49;
  --night-2: #0c2757;
  --night-card: rgb(255 255 255 / 5%);
  --night-line: rgb(255 255 255 / 10%);
  --night-ink: #ffffff;
  --night-ink-2: #c3d2ee;
  --violet: #1f6fd1;
  --indigo: #071d49;
  --cyan: #00bfa6;
  --pink: #bdf5ef;
  --glow: 0 10px 28px -12px rgb(7 29 73 / 55%);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-reveal: 900ms;
}

/* ── Scroll progress ───────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto; z-index: 40; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--violet), var(--cyan)); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; pointer-events: none; }

/* ── Header over the dark hero ─────────────────────────────────── */
.site-header.on-dark { background: rgb(7 29 73 / 60%); border-bottom-color: rgb(255 255 255 / 6%); }
.site-header.on-dark .logo span, .site-header.on-dark .nav a { color: var(--night-ink); }
.site-header.on-dark .nav a { color: rgb(244 244 244 / 74%); }
.site-header.on-dark .nav a:hover, .site-header.on-dark .nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 8%); }
.site-header.on-dark .menu-button { border-color: rgb(255 255 255 / 15%); background: rgb(255 255 255 / 6%); color: #fff; }

/* ── Buttons with glow and a light sweep ───────────────────────── */
.btn-glow { position: relative; overflow: hidden; background: var(--indigo); color: #fff; box-shadow: var(--glow); transition: transform 300ms var(--ease-out-expo), box-shadow 300ms var(--ease-out-expo); }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%); transform: translateX(-120%); transition: transform 900ms var(--ease-out-expo); }
.btn-glow:hover { transform: translateY(-2px); background: #0c2d6b; box-shadow: 0 0 0 1px rgb(31 111 209 / 50%), 0 16px 40px -14px rgb(0 191 166 / 70%); }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-ghost-light { border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 5%); color: var(--night-ink); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 10%); }
.btn .i { transition: transform 300ms var(--ease-out-expo); }
.btn:hover .i { transform: translateX(3px); }

/* ── The night (dark) sections and the aurora ──────────────────── */
.night { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--night-ink); }
.night .eyebrow, .eyebrow-pill { color: #7ce8d9; }
.night .lead, .night .body { color: var(--night-ink-2); }
.aurora { position: absolute; inset: -20%; z-index: -1; pointer-events: none; filter: blur(70px) saturate(1.2); opacity: 0.85; }
.aurora i { position: absolute; display: block; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: 0.55; mix-blend-mode: screen; }
.aurora i:nth-child(1) { left: 5%; top: 0; background: radial-gradient(circle, var(--indigo), transparent 62%); animation: drift-a 22s var(--ease) infinite alternate; }
.aurora i:nth-child(2) { right: 0; top: 10%; background: radial-gradient(circle, var(--violet), transparent 62%); animation: drift-b 26s var(--ease) infinite alternate; }
.aurora i:nth-child(3) { left: 30%; bottom: -10%; background: radial-gradient(circle, var(--cyan), transparent 60%); opacity: 0.32; animation: drift-c 30s var(--ease) infinite alternate; }
.aurora i:nth-child(4) { right: 20%; bottom: 0; background: radial-gradient(circle, var(--pink), transparent 60%); opacity: 0.22; animation: drift-a 34s var(--ease) infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-14vmax, 10vmax, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(8vmax, -12vmax, 0) scale(1.2); } }
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hx { padding: 120px 0 0; }
.hx-text { display: grid; justify-items: center; gap: 28px; text-align: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid rgb(124 232 217 / 25%); border-radius: 999px; background: rgb(31 111 209 / 14%); font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color 300ms var(--ease-out-expo), border-color 300ms var(--ease-out-expo); }
.eyebrow-pill:hover { border-color: rgb(124 232 217 / 50%); background: rgb(31 111 209 / 22%); }
.eyebrow-pill .tag { padding: 2px 8px; border-radius: 999px; background: var(--indigo); color: #fff; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.hx-title { max-width: 15ch; font: 400 clamp(46px, 7.4vw, 96px)/0.98 var(--serif); letter-spacing: -0.035em; text-wrap: balance; }
.shimmer { background: linear-gradient(100deg, #7ce8d9 0%, #dfdfe2 25%, #fefefe 50%, #bec0bf 75%, #7ce8d9 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hx-lead { max-width: 40rem; color: var(--night-ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.hx-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 8px; }
.stat { display: grid; gap: 2px; }
.stat strong { font: 400 34px/1 var(--serif); letter-spacing: -0.02em; }
.stat > span { color: var(--night-ink-2); font-size: 13px; }

/* The product window floats over the hero, with live cards around it. */
.stage { position: relative; margin: 72px auto -120px; max-width: 1120px; perspective: 1600px; }
.stage .window { transform: rotateX(var(--tilt, 0deg)) translateZ(0); transform-origin: 50% 0; transition: transform 120ms linear; box-shadow: 0 0 0 1px rgb(255 255 255 / 6%), 0 40px 120px -30px rgb(0 191 166 / 45%), 0 30px 60px -30px rgb(0 0 0 / 60%); }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: 290px; padding: 12px 14px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 14px; background: rgb(255 255 255 / 86%); box-shadow: 0 20px 50px -18px rgb(7 29 73 / 40%); backdrop-filter: blur(14px) saturate(1.4); color: var(--ink); font-size: 13px; line-height: 1.35; animation: bob 7s ease-in-out infinite; }
.float strong { display: block; font-size: 13px; }
.float small { color: var(--muted); font-size: 12px; }
.float .badge { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 10px; color: #fff; }
.badge.b-ai { background: var(--indigo); }
.badge.b-ok { background: #00897b; }
.badge.b-lock { background: #f2a541; }
.badge.b-undo { background: #1f6fd1; }
.float.f1 { left: -48px; top: 26%; }
.float.f2 { right: -44px; top: 12%; animation-delay: -2s; }
.float.f3 { right: -28px; bottom: 30%; animation-delay: -4s; }
.float.f4 { left: -24px; bottom: 16%; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hx + .after-stage { padding-top: 200px; }

/* ── Marquee of capabilities ───────────────────────────────────── */
.marquee { display: grid; gap: 14px; padding: 40px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 48s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill .i { color: var(--accent); }

/* ── Section headings ──────────────────────────────────────────── */
.kicker { display: grid; justify-items: center; gap: 16px; max-width: 820px; margin: 0 auto 64px; text-align: center; }
.kicker .h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.kicker .lead { margin: 0 auto; }
.grad-text { background: linear-gradient(100deg, #0c2d6b, #00bfa6 55%, #1f6fd1); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Bento grid and spotlight cards ────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.card { position: relative; display: grid; align-content: start; gap: 12px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  transition: transform 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo), border-color 500ms var(--ease-out-expo); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), rgb(0 191 166 / 10%), transparent 45%); transition: opacity 400ms var(--ease-out-expo); }
.card:hover { transform: translateY(-4px); border-color: rgb(0 191 166 / 28%); box-shadow: 0 30px 60px -30px rgb(7 29 73 / 30%); }
.card:hover::before { opacity: 1; }
.card h3 { font: 500 20px/1.25 var(--sans); letter-spacing: -0.01em; }
.card p { color: var(--ink-2); line-height: 1.55; }
.card .tagline { color: var(--accent-ink); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.ic { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: rgb(0 191 166 / 12%); color: var(--accent-ink); }
.ic .i { width: 22px; height: 22px; }
.night .card { border-color: var(--night-line); background: var(--night-card); }
.night .card::before { background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), rgb(31 111 209 / 20%), transparent 45%); }
.night .card:hover { border-color: rgb(124 232 217 / 30%); box-shadow: 0 30px 80px -30px rgb(0 191 166 / 50%); }
.night .card p { color: var(--night-ink-2); }
.night .card .tagline { color: #7ce8d9; }
.night .ic { background: rgb(31 111 209 / 22%); color: #e3faf6; }

/* App tiles */
.app-tile { min-height: 210px; }
.app-tile .ic { width: 52px; height: 52px; border-radius: 16px; color: #fff; }
.app-tile .ic .i { width: 26px; height: 26px; }
.ic.g-mail { background: #00bfa6; }
.ic.g-cal { background: #1f6fd1; }
.ic.g-chat { background: #1f6fd1; }
.ic.g-meet { background: #0c2d6b; }
.ic.g-drive { background: #f2a541; }
.ic.g-contacts { background: #5a6a8a; }

/* ── AI demos (inside dark cards) ──────────────────────────────── */
.demo { display: grid; gap: 10px; margin-top: 8px; padding: 16px; border: 1px solid var(--night-line); border-radius: 14px; background: rgb(0 0 0 / 25%); font-size: 14px; line-height: 1.6; }
.demo-label { display: flex; align-items: center; gap: 8px; color: #bec0bf; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.demo-label .i { width: 14px; height: 14px; color: #7ce8d9; }
.strike { color: #8f9693; text-decoration: line-through; text-decoration-color: rgb(229 115 105 / 75%); }
.typed { min-height: 4.8em; color: var(--night-ink); }
.typed::after, .ask-a::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: #7ce8d9; vertical-align: -0.15em; animation: caret 1s steps(1) infinite; }
.typed.done::after, .ask-a.done::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.sum-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sum-list li { display: flex; gap: 10px; align-items: flex-start; }
.sum-list li::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 9px; border-radius: 50%; background: #7ce8d9; }
.sum-list li.todo::before { width: 12px; height: 12px; margin-top: 6px; border: 1.5px solid #7ce8d9; border-radius: 4px; background: transparent; }
.reply-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reply-chip { padding: 8px 12px; border: 1px solid rgb(124 232 217 / 25%); border-radius: 12px; background: rgb(31 111 209 / 14%); color: var(--night-ink); font-size: 13px; }
.reply-chip b { display: block; color: #7ce8d9; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.prio { display: grid; gap: 6px; }
.prio-head { margin-top: 4px; color: #bec0bf; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.prio-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgb(255 255 255 / 4%); font-size: 13px; }
.prio-row .who { min-width: 0; flex: 1; overflow: hidden; color: var(--night-ink); text-overflow: ellipsis; white-space: nowrap; }
.chip-s { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.chip-s.reply { background: rgb(31 111 209 / 26%); color: #d6f7f2; }
.chip-s.action { background: rgb(234 88 12 / 22%); color: #fdba74; }
.ask-q { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgb(124 232 217 / 25%); border-radius: 999px; background: rgb(255 255 255 / 5%); color: var(--night-ink); font-size: 14px; }
.ask-q .i { color: #7ce8d9; }
.ask-a { min-height: 3.2em; color: var(--night-ink); }
.ask-a sup { color: #7ce8d9; }

/* ── Mail superpowers ──────────────────────────────────────────── */
.power { min-height: 230px; }
.power .mini { margin-top: auto; padding-top: 8px; }
.mini-toast { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 12px; background: var(--ink); color: #f4f4f4; font-size: 13px; }
.mini-toast .count { min-width: 24px; color: #7ce8d9; font-weight: 700; text-align: center; }
.mini-toast b { padding: 4px 10px; border-radius: 8px; background: rgb(255 255 255 / 10%); font-weight: 600; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.mini-chip.c1 { border-color: rgb(0 191 166 / 32%); color: #0c2d6b; }
.mini-chip.c2 { border-color: rgb(138 122 92 / 35%); color: #6b5d43; }
.mini-chip.c3 { border-color: rgb(0 137 123 / 32%); color: #00796b; }
.otp { display: flex; gap: 6px; }
.otp span { display: grid; width: 30px; height: 36px; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); font: 600 15px var(--mono); }
.receipt { display: inline-flex; align-items: center; gap: 6px; color: #00796b; font-size: 13px; font-weight: 600; }

/* ── Backup band ───────────────────────────────────────────────── */
.restore { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--night-line); border-radius: 18px; background: rgb(255 255 255 / 4%); }
.restore-top { display: flex; justify-content: space-between; gap: 12px; color: var(--night-ink); font-size: 14px; }
.restore-top span { color: var(--night-ink-2); }
.bar { height: 10px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 8%); }
.bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7ce8d9, #1f6fd1, #00bfa6); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; transition: transform 2400ms var(--ease-out-expo); }
.loc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.loc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--night-line); border-radius: 12px; background: rgb(0 0 0 / 20%); color: var(--night-ink-2); font-size: 13px; }
.loc.on { border-color: rgb(124 232 217 / 40%); color: #d6f7f2; }
.loc .i { width: 16px; height: 16px; }
.split-x { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ticks-light li { color: var(--night-ink-2); }
.ticks-light .i { color: #7ce8d9; }

/* ── Reveal on scroll ──────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.985); filter: blur(6px);
    transition: opacity var(--dur-reveal) var(--ease-out-expo), transform var(--dur-reveal) var(--ease-out-expo), filter var(--dur-reveal) var(--ease-out-expo);
    transition-delay: var(--delay, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
  .js .reveal-l { transform: translate3d(-36px, 0, 0); }
  .js .reveal-r { transform: translate3d(36px, 0, 0); }
  .js .hx .reveal { transition-duration: 1200ms; }
}

/* ── Closing call to action ───────────────────────────────────── */
.closing-x { padding: 140px 0; text-align: center; }
.closing-x .kicker { margin-bottom: 0; }
.closing-x .h2 { font-size: clamp(40px, 6vw, 76px); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .float.f1, .float.f4 { left: 8px; }
  .float.f2, .float.f3 { right: 8px; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 1; }
  .bento .span-6, .bento .wide-m { grid-column: span 2; }
  .split-x { grid-template-columns: 1fr; gap: 40px; }
  .float.f3, .float.f4 { display: none; }
  .hx { padding-top: 88px; }
  .stage { margin-bottom: -80px; }
  .hx + .after-stage { padding-top: 140px; }
  .site-header.on-dark.open { background: var(--night); }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .span-6, .bento .wide-m { grid-column: auto; }
  .float { display: none; }
  .stats { gap: 16px 28px; }
  .card { padding: 22px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer { animation: none; }
  .marquee-track { animation: none; }
  .bar i { --fill: 1; }
}

/* The hero window sits on the floating stage, not the old hero margins. */
.stage .hero-preview { margin: 0; }
.night .feature-text .h2 { color: var(--night-ink); }

/* Inner pages: a compact dark header, left-aligned. */
.hx-compact { padding: 120px 0 88px; }
.hx-left { justify-items: start; text-align: left; }
.hx-left .hx-title { max-width: 18ch; font-size: clamp(42px, 6vw, 76px); }

/* The dark hero runs up behind the (see-through) header. */
.hx { margin-top: -64px; padding-top: calc(120px + 64px); }
.hx-compact { padding-top: calc(120px + 64px); }
@media (max-width: 900px) { .hx { padding-top: calc(88px + 64px); } }

/* Product mock-ups keep their own (light) colours inside dark sections. */
.night .window, .night .panel { color: var(--ink); }

.nowrap { white-space: nowrap; }

/* Section links glide rather than jump */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Contact us on the night background, with the form as a bright card */
/* A dark section at the very top runs up under the sticky header, so the two blend into one block
   instead of leaving a pale band above the hero. */
.night-top.page-head { margin-top: -64px; padding-top: calc(96px + 64px); }
.night-top.section { margin-top: -64px; padding-top: calc(96px + 64px); }
.contact-x { margin-top: -64px; padding: calc(96px + 64px) 0 112px; }
.contact-x .display { color: var(--night-ink); }
.contact-x .form { color: var(--ink); border-color: transparent; box-shadow: 0 40px 120px -40px rgb(0 191 166 / 50%), 0 0 0 1px rgb(255 255 255 / 8%); }
.contact-x .sent { padding: 32px; border-radius: 16px; background: var(--card); color: var(--ink); }

/* Tracker protection: a newsletter being checked, with what was removed */
.scan { position: relative; display: grid; gap: 14px; overflow: hidden; padding: 22px; border: 1px solid var(--night-line); border-radius: 18px; background: rgb(255 255 255 / 4%); }
.scan-beam { position: absolute; inset: 0 0 auto; height: 140px; background: linear-gradient(180deg, transparent, rgb(124 232 217 / 12%) 70%, rgb(124 232 217 / 32%) 98%, transparent); pointer-events: none; animation: scan-sweep 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes scan-sweep { from { transform: translateY(-140px); } to { transform: translateY(520px); } }
.scan-head { display: flex; align-items: center; gap: 12px; }
.scan-avatar { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 50%; background: #1f6fd1; color: #fff; font-size: 13px; font-weight: 700; }
.scan-mail { display: grid; min-width: 0; flex: 1; gap: 2px; }
.scan-mail strong { color: var(--night-ink); font-size: 14px; }
.scan-mail small { overflow: hidden; color: var(--night-ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.scan-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgb(124 232 217 / 14%); color: #d6f7f2; font-size: 12px; font-weight: 600; }
.scan-live::before { width: 7px; height: 7px; border-radius: 50%; background: #7ce8d9; box-shadow: 0 0 0 0 rgb(124 232 217 / 60%); content: ""; animation: scan-pulse 2s ease-out infinite; }
@keyframes scan-pulse { 70% { box-shadow: 0 0 0 7px rgb(124 232 217 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(124 232 217 / 0%); } }
.scan-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scan-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--night-line); border-radius: 12px; background: rgb(0 0 0 / 22%); font-size: 13px; }
.scan-list .kind { color: var(--night-ink-2); font-weight: 600; }
.scan-list code { overflow: hidden; color: var(--night-ink); font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.scan-list .hit code { color: var(--night-ink-2); text-decoration: line-through; text-decoration-color: rgb(248 113 113 / 85%); }
.scan-list s { color: var(--night-ink-2); text-decoration-color: rgb(251 191 36 / 85%); }
.scan-list .verdict { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.scan-list .hit .verdict { background: rgb(248 113 113 / 14%); color: #fca5a5; }
.scan-list .clean .verdict { background: rgb(251 191 36 / 14%); color: #fde68a; }
.scan-list .safe .verdict { background: rgb(124 232 217 / 16%); color: #d6f7f2; }
.scan-shield { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgb(124 232 217 / 35%); border-radius: 12px; background: rgb(31 111 209 / 14%); color: #d6f7f2; font-size: 14px; }
.scan-shield .i { width: 20px; height: 20px; flex: none; }
.scan-shield strong { color: #fefefe; }
@media (max-width: 560px) {
  .scan { padding: 16px; }
  .scan-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .scan-list .kind { grid-column: 1 / -1; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-beam { display: none; }
  .scan-live::before { animation: none; }
}

/* Migration: old platforms flowing into a mailbox being imported */
.move { display: grid; grid-template-columns: 168px 56px minmax(0, 1fr); align-items: center; }
.move-sources { display: grid; gap: 10px; }
.src { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 12px 30px -22px rgb(7 29 73 / 40%); }
.src > span { display: grid; min-width: 0; }
.src strong { color: var(--ink); font-size: 13px; }
.src small { color: var(--muted); font-size: 12px; }
.src-ic { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 9px; color: #fff; font-size: 13px; font-weight: 800; }
.src-ic.s1 { background: #f2a541; }
.src-ic.s2 { background: #1f6fd1; }
.src-ic.s3 { background: #00bfa6; }
.src-ic.s4 { background: #1f6fd1; }
.move-flow { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.move-flow i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: move-dot 2.4s linear infinite; }
.move-flow i:nth-child(2) { animation-delay: -0.8s; }
.move-flow i:nth-child(3) { animation-delay: -1.6s; }
@keyframes move-dot { 0% { opacity: 0; transform: translateX(-4px); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(40px); } }
@keyframes move-dot-down { 0% { opacity: 0; transform: translateY(-4px); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(32px); } }
.move-card { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 40px 80px -44px rgb(7 29 73 / 40%); }
.move-head { display: flex; align-items: center; gap: 10px; }
.move-logo { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 11px; background: var(--raised); }
.move-who { display: grid; min-width: 0; flex: 1; }
.move-who strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.move-who small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.move-pct { color: var(--ink); font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.move .bar { background: var(--raised); }
.move-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.move-stats span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--raised); color: var(--muted); font-size: 12px; }
.move-stats strong { color: var(--ink); font-size: 19px; font-variant-numeric: tabular-nums; }
.move-map { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.move-map li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.move-map .i { color: var(--muted); }
.move-map .from { padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--ink-2); }
.move-map .to { padding: 3px 10px; border-radius: 999px; background: rgb(0 137 123 / 12%); color: #00796b; font-weight: 600; }
.move-map .to.keep { background: rgb(0 191 166 / 12%); color: #0c2d6b; }
.move-foot { display: flex; align-items: center; gap: 8px; color: #00796b; font-size: 13px; font-weight: 600; }
@media (max-width: 900px) {
  #migrate .feature-text { order: -1; }
  .move { grid-template-columns: 1fr; }
  .move-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move-flow { width: 2px; height: 36px; margin: 6px auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .move-flow i { top: 0; left: -3px; animation-name: move-dot-down; }
}
@media (prefers-reduced-motion: reduce) { .move-flow i { animation: none; opacity: 0.6; } .move-flow i:nth-child(n+2) { display: none; } }

/* ── How an inner page ends ────────────────────────────────────────────────
   Its own subject and one way to get in touch. Nothing else: the footer below
   already carries every link, and the big dark band stays on the home page. */
.page-end { padding: 72px 0; border-top: 1px solid var(--line); }
.end-cta { display: grid; gap: 16px; justify-items: start; }
.end-title { max-width: 20ch; font: 400 36px/1.15 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.end-cta p { max-width: 34rem; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
@media (max-width: 900px) {
  .page-end { padding: 56px 0; }
  .end-title { font-size: 28px; }
}

/* ── Phones ── */
.menu-button .i-close { display: none; }
.site-header.open .menu-button .i-open { display: none; }
.site-header.open .menu-button .i-close { display: block; }
a.card { color: inherit; text-decoration: none; }
.ic.g-ai { background: #00bfa6; }
@media (max-width: 900px) {
  /* The open menu matches the header it drops from: dark over dark pages, light elsewhere. */
  .site-header.open .nav { max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: 0 28px 40px -24px rgb(0 0 0 / 45%); }
  .site-header.on-dark.open .nav { background: var(--night); border-bottom-color: rgb(255 255 255 / 8%); }
  .site-header.open .nav a { padding: 0 12px; border-radius: 10px; }
  /* Hero: the product window ends inside the hero (softly faded) instead of being cut off above a gap. */
  .stage { margin-bottom: 0; }
  .stage .window { max-height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
  .hx { padding-bottom: 32px; }
  .hx + .after-stage { padding-top: 56px; }
}
@media (max-width: 700px) {
  /* Comparison: one card per row, each answer labelled, instead of a table cut off at the edge. */
  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--card); }
  .compare tbody th { width: auto; padding: 14px 16px 8px; border-top: 0; color: var(--ink); font-weight: 600; }
  .compare td { padding: 10px 16px; border-top: 1px solid var(--line); }
  .compare td::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
  .compare td:nth-of-type(1)::before { content: "Mailflew"; color: var(--accent-ink); }
  .compare td:nth-of-type(2)::before { content: "Google Workspace"; }
  .compare td:nth-of-type(3)::before { content: "Microsoft 365"; }
}

/* Contact form: required note, phone with dial code, inline errors */
.form-required { margin: 0; color: var(--muted); font-size: 13px; }
.phone-row { display: flex; align-items: stretch; }
.phone-row .dial { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 10px 0 0 10px; background: var(--raised); color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-row .input { min-width: 0; flex: 1; border-radius: 0 10px 10px 0; }
.field-hint { color: var(--muted); font-size: 12px; }
.field-error { min-height: 0; color: #b42318; font-size: 12.5px; font-style: normal; font-weight: 600; }
.field-error:empty { display: none; }
.invalid .input, .invalid .dial { border-color: #e5484d; }
.invalid .input:focus { box-shadow: 0 0 0 3px rgb(229 72 77 / 18%); }
fieldset.invalid .checks .check { border-color: #f3b7b4; }
