/* InboxRoads marketing site layer: hero, product frames, email illustrations and motion.
   Hand-written on top of the Tailwind build (public/css/app.css). */
:root {
    --ir-night: #0b1020;
    --ir-night-2: #121a33;
    --ir-blue: #3358ff;
    --ir-blue-600: #1f3cf5;
    --ir-teal: #2dd4bf;
    --ir-amber: #f5b83d;
    --ir-ink: #121726;
    --ir-muted: #667391;
    --ir-line: #d5d9e2;
}

/* ---------- Hero ---------- */
.ir-hero { position: relative; overflow: hidden; background: var(--ir-night); color: #fff; isolation: isolate; }
.ir-hero__glow { position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(51, 88, 255, .38), transparent 60%),
        radial-gradient(40rem 26rem at 70% 95%, rgba(45, 212, 191, .18), transparent 65%),
        linear-gradient(180deg, #0b1020 0%, #0e1530 100%); }
.ir-hero__glow::after { content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 85%); }
.ir-hero__pill { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .25rem .85rem .25rem .25rem; font-size: .8rem; font-weight: 500;
    color: #dce6ff; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: background .2s; }
.ir-hero__pill:hover { background: rgba(255,255,255,.1); }
.ir-hero__pill span { border-radius: 999px; background: var(--ir-teal); color: var(--ir-night); font-weight: 700; font-size: .7rem; padding: .15rem .55rem; }
.ir-hero__title { margin-top: 1.75rem; font-size: clamp(3.1rem, 7.2vw, 5.6rem); line-height: .95; font-weight: 800; letter-spacing: -.045em; }
.ir-hero__title span { display: block; }
.ir-hero__title span:nth-child(2) { color: transparent; background: linear-gradient(90deg, #8eadff, var(--ir-teal)); -webkit-background-clip: text; background-clip: text; }
.ir-hero__lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.15rem; line-height: 1.75; color: #b0b8c9; }
.ir-hero__note { margin-top: 1.4rem; display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: #b0b8c9; }
.ir-hero__note svg { color: var(--ir-teal); margin-top: .1rem; }
.ir-hero__note strong { color: #fff; font-weight: 600; }
.ir-btn-ghost-dark { display: inline-flex; align-items: center; justify-content: center; border-radius: .75rem; padding: .8rem 1.4rem; font-weight: 600; font-size: 1rem;
    color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: background .2s, box-shadow .2s; }
.ir-btn-ghost-dark:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.ir-btn-ghost-dark:focus-visible, .ir-hero__pill:focus-visible { outline: 2px solid var(--ir-teal); outline-offset: 3px; }

.ir-hero__stage { position: relative; padding: 2.5rem 0 3.5rem; }
.ir-hero__flight { position: absolute; top: -1.75rem; left: 0; width: 100%; height: auto; z-index: 2; pointer-events: none; overflow: visible; }
.ir-hero__shot { position: relative; z-index: 1; transform: perspective(1800px) rotateY(-7deg) rotateX(3deg); transform-origin: left center;
    animation: ir-rise .9s cubic-bezier(.2,.8,.2,1) .1s both; }
.ir-hero__caption { position: absolute; right: .5rem; bottom: .6rem; font-size: .72rem; color: #667391; }

.ir-float { position: absolute; z-index: 3; border-radius: 1rem; background: #fff; color: var(--ir-ink);
    box-shadow: 0 24px 48px -18px rgba(5, 10, 40, .55), 0 0 0 1px rgba(15, 23, 42, .06); }
.ir-float--verify { left: -1.5rem; bottom: .5rem; width: 17.5rem; padding: .9rem 1rem; animation: ir-pop .6s cubic-bezier(.2,.8,.2,1) .7s both; }
.ir-float--sent { right: -.75rem; top: .75rem; display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem .75rem .75rem; animation: ir-pop .6s cubic-bezier(.2,.8,.2,1) 1.1s both; }
.ir-float__title { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: var(--ir-muted); margin-bottom: .5rem; }
.ir-float__title svg { color: var(--ir-blue); }
.ir-float ul { display: grid; gap: .45rem; }
.ir-float li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .78rem; }
.ir-float li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #434b61; }
.ir-float li:nth-child(1) .ir-chip { animation: ir-pop .4s ease 1.3s both; }
.ir-float li:nth-child(2) .ir-chip { animation: ir-pop .4s ease 1.7s both; }
.ir-float li:nth-child(3) .ir-chip { animation: ir-pop .4s ease 2.1s both; }
.ir-float__icon { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: .75rem; background: #ecfdf5; color: #059669; }
.ir-float--sent strong { display: block; font-size: .85rem; }
.ir-float--sent small { display: block; font-size: .75rem; color: var(--ir-muted); }

/* ---------- Chips ---------- */
.ir-chip { display: inline-flex; flex-shrink: 0; align-items: center; gap: .25rem; border-radius: 999px; padding: .15rem .55rem; font-size: .7rem; font-weight: 700; }
.ir-chip--valid { background: #d1fae5; color: #047857; }
.ir-chip--risky { background: #fef3c7; color: #b45309; }
.ir-chip--invalid { background: #ffe4e6; color: #be123c; }

/* ---------- Browser frame ---------- */
.ir-frame { margin: 0; overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 40px 80px -30px rgba(5, 10, 40, .55), 0 0 0 1px rgba(15, 23, 42, .08); }
.ir-frame__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: #f6f7f9; border-bottom: 1px solid #eceef2; }
.ir-frame__bar > span { height: .6rem; width: .6rem; border-radius: 999px; background: #d5d9e2; }
.ir-frame__bar > span:nth-child(1) { background: #ff6b6b; } .ir-frame__bar > span:nth-child(2) { background: #f5b83d; } .ir-frame__bar > span:nth-child(3) { background: #2dd4bf; }
.ir-frame__url { margin-left: .75rem; flex: 1; max-width: 18rem; border-radius: .4rem; background: #fff; padding: .15rem .6rem; font-size: .7rem; color: #8591ab; box-shadow: inset 0 0 0 1px #eceef2; }
.ir-frame img { display: block; width: 100%; height: auto; }
.ir-frame__caption { padding: .6rem 1rem; font-size: .75rem; color: var(--ir-muted); border-top: 1px solid #eceef2; }

/* ---------- Services ---------- */
.ir-service { display: grid; gap: 2.5rem; align-items: center; margin-top: 5rem; }
@media (min-width: 1024px) { .ir-service { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; margin-top: 7rem; } .ir-service--flip .ir-service__text { order: 2; } }
.ir-service.ir-service--first { margin-top: 0; }
.ir-service__label { margin-bottom: .75rem; display: inline-flex; border-radius: 999px; background: #eef3ff; color: var(--ir-blue-600); padding: .25rem .75rem; font-size: .8rem; font-weight: 600; }
.ir-service__art { position: relative; border-radius: 1.75rem; padding: clamp(1.25rem, 3vw, 2.5rem);
    background: radial-gradient(30rem 18rem at 80% 0%, rgba(51,88,255,.10), transparent 70%), radial-gradient(26rem 16rem at 0% 100%, rgba(45,212,191,.12), transparent 70%), #f6f7fb;
    box-shadow: inset 0 0 0 1px #eceef2; }

/* ---------- Illustrations ---------- */
.ir-art { position: relative; font-family: inherit; }
.ir-art svg { display: block; font-family: inherit; overflow: visible; }
.ir-dash { animation: ir-dash 1.2s linear infinite; }
.ir-mover { filter: drop-shadow(0 6px 10px rgba(31, 60, 245, .35)); }

/* verify */
.ir-verify { margin: 0 auto; max-width: 30rem; border-radius: 1.25rem; background: #fff; padding: 1.25rem; box-shadow: 0 20px 40px -24px rgba(5, 10, 40, .35), 0 0 0 1px #eceef2; }
.ir-verify__head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 600; color: #434b61; padding-bottom: .9rem; border-bottom: 1px solid #eceef2; }
.ir-verify__file { display: inline-flex; gap: .4rem; align-items: center; }
.ir-verify__count { color: var(--ir-blue-600); }
.ir-verify__list { display: grid; gap: .1rem; padding: .5rem 0; }
.ir-verify__list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem .25rem; font-size: .85rem; border-bottom: 1px dashed #eceef2; }
.ir-verify__list li:last-child { border-bottom: 0; }
.ir-verify__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2537; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.ir-verify__list .ir-chip { animation: ir-chip-cycle 7s ease infinite; animation-delay: calc(var(--i) * .55s); }
.ir-verify__bar { height: .4rem; border-radius: 999px; background: #eceef2; overflow: hidden; }
.ir-verify__bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ir-blue), var(--ir-teal)); transform-origin: left; animation: ir-progress 7s ease infinite; }

/* broadcast */
.ir-pulse { stroke-dasharray: 18 100; stroke-dashoffset: 118; animation: ir-pulse 3.2s ease-in-out infinite; animation-delay: var(--d); }
.ir-person { animation: ir-ping 3.2s ease infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.ir-badge { animation: ir-badge 3.2s ease infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.ir-broadcast__legend { display: flex; gap: 1.25rem; justify-content: flex-end; margin-top: .25rem; font-size: .78rem; color: var(--ir-muted); }
.ir-broadcast__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ir-broadcast__legend i { height: .6rem; width: .6rem; border-radius: 999px; display: inline-block; }

/* deliver */
.ir-deliver { display: grid; gap: 1.5rem; align-items: center; margin: 0 auto; max-width: 32rem; border-radius: 1.25rem; background: #fff; padding: 1.5rem; box-shadow: 0 20px 40px -24px rgba(5,10,40,.35), 0 0 0 1px #eceef2; }
@media (min-width: 520px) { .ir-deliver { grid-template-columns: 10rem 1fr; } }
.ir-deliver__ring { position: relative; width: 10rem; margin: 0 auto; }
.ir-deliver__ring p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ir-deliver__ring strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--ir-ink); line-height: 1; }
.ir-deliver__ring span { font-size: .75rem; color: var(--ir-muted); }
.ir-score { stroke-dashoffset: var(--full); animation: ir-score 1.6s cubic-bezier(.2,.8,.2,1) .3s forwards; }
.ir-deliver__checks { display: grid; gap: .65rem; }
.ir-deliver__checks li { display: grid; grid-template-columns: auto auto 1fr; gap: .6rem; align-items: center; font-size: .85rem; animation: ir-pop .5s ease both; animation-delay: calc(.4s + var(--i) * .25s); }
.ir-deliver__checks strong { color: var(--ir-ink); }
.ir-deliver__checks span:last-child { color: var(--ir-muted); text-align: right; }
.ir-tick { display: inline-flex; height: 1.4rem; width: 1.4rem; align-items: center; justify-content: center; border-radius: 999px; background: #d1fae5; color: #047857; }

/* ---------- Product tour ---------- */
.ir-tour { background: radial-gradient(50rem 24rem at 20% 0%, rgba(51,88,255,.25), transparent 65%), var(--ir-night); padding: 5rem 0 6rem; }
.ir-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border-radius: .9rem; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ir-tabs button { border-radius: .65rem; padding: .5rem .9rem; font-size: .85rem; font-weight: 600; color: #b0b8c9; transition: background .2s, color .2s; }
.ir-tabs button:hover { color: #fff; }
.ir-tabs button.is-active { background: #fff; color: var(--ir-ink); }
.ir-tabs button:focus-visible { outline: 2px solid var(--ir-teal); outline-offset: 2px; }

/* ---------- Page hero with art (inner pages) ---------- */
.ir-pagehero { position: relative; overflow: hidden; border-bottom: 1px solid #eceef2;
    background: radial-gradient(40rem 22rem at 90% 0%, rgba(51,88,255,.10), transparent 70%), radial-gradient(30rem 18rem at 100% 100%, rgba(45,212,191,.10), transparent 70%), #fff; }

/* ---------- Blog cover fallback ---------- */
.ir-cover { display: block; width: 100%; }

/* ---------- Keyframes ---------- */
@keyframes ir-rise { from { opacity: 0; transform: perspective(1800px) rotateY(-7deg) rotateX(3deg) translateY(28px); } to { opacity: 1; } }
@keyframes ir-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ir-dash { to { stroke-dashoffset: -28; } }
@keyframes ir-chip-cycle { 0%, 8% { opacity: 0; transform: scale(.8); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ir-progress { 0% { transform: scaleX(.04); } 70%, 100% { transform: scaleX(1); } }
@keyframes ir-pulse { 0% { stroke-dashoffset: 118; opacity: 0; } 10% { opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 70%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ir-ping { 0%, 40% { transform: none; } 50% { transform: scale(1.12); } 60%, 100% { transform: none; } }
@keyframes ir-badge { 0%, 45% { opacity: 0; transform: scale(.4); } 55%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ir-score { to { stroke-dashoffset: var(--off); } }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .ir-hero__shot { transform: none; animation-name: ir-pop; }
    .ir-float--verify { left: .5rem; bottom: -.5rem; width: 15.5rem; }
    .ir-float--sent { right: .5rem; top: 0; }
}
@media (max-width: 639px) {
    .ir-float--verify { display: none; }
    .ir-float--sent { position: relative; right: auto; top: auto; margin-top: 1rem; }
    .ir-hero__stage { padding-top: 1rem; }
    .ir-hero__caption { position: static; margin-top: .5rem; text-align: right; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ir-hero__shot, .ir-float, .ir-float .ir-chip, .ir-deliver__checks li { animation: none !important; }
    .ir-dash, .ir-pulse, .ir-person, .ir-badge, .ir-verify__list .ir-chip, .ir-verify__bar span { animation: none !important; }
    .ir-pulse { stroke-dashoffset: 0; stroke-dasharray: none; opacity: .5; }
    .ir-badge { opacity: 1; }
    .ir-score { animation: none; stroke-dashoffset: var(--off); }
    .ir-mover, .ir-hero__flight use { display: none; }
}
