/* =========================================================
   Zip-E landing v3 — light, clean marketplace style
   ========================================================= */
:root {
  --ink: #1F2022;
  --ink-2: #4B5563;
  --muted: #6B7280;
  --line: #E5E7EB;
  --gray: #F7F7F7;
  --navy: #031C3D;
  --navy-2: #072A55;
  --blue: #2563EB;
  --blue-soft: #EAF2FF;
  --yellow: #F5C518;
  --green: #16A34A;
  --green-soft: #E8F8EE;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: 'Figtree', 'Avenir', Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1140px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: .95rem; padding: .7rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 8px 20px rgba(3, 28, 61, .2); }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-soft:hover { background: #DCE9FF; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; font-weight: 600; color: var(--blue); }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); }
.header-row { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 38px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .93rem; color: var(--ink-2); }
.header-nav a:not(.btn):hover { color: var(--ink); }
.header-nav .login { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 24px 1.2rem; display: none; }
  .header-nav.open { display: flex; }
  .header-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .header-nav .btn { margin-top: .8rem; border: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.type-wrap { white-space: nowrap; color: var(--blue); }
.caret { display: inline-block; width: 3px; height: .9em; background: var(--blue); margin-left: 3px; vertical-align: -.08em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero-sub { margin-top: 1.1rem; font-size: 1.12rem; color: var(--ink-2); max-width: 540px; }

.ai-box { margin-top: 2rem; display: flex; align-items: center; gap: .9rem; max-width: 560px; padding: .6rem .6rem .6rem .7rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(17, 24, 39, .08); transition: box-shadow .2s, border-color .2s; }
.ai-box:hover { border-color: #C7D2FE; box-shadow: 0 14px 34px rgba(37, 99, 235, .14); }
.ai-box-icon { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--blue-soft); overflow: hidden; display: grid; place-items: center; }
.ai-box-icon img { width: 46px; height: 46px; object-fit: cover; }
.ai-box-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ai-box-label { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-box-hint { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.hero-note { margin-top: .9rem; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }

.hero-badges { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 1.6rem; justify-content: start; }
.hero-badges li { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; line-height: 1.2; }
.hero-badges i { grid-row: span 2; font-size: 1.35rem; color: var(--blue); }
.hero-badges b { font-size: 1rem; }
.hero-badges span { font-size: .8rem; color: var(--muted); }

/* ---------- Phone ---------- */
.hero-device { position: relative; display: grid; place-items: center; padding: 20px 0; }
.device-bg { position: absolute; inset: -10% -40% -10% 10%; background: #E8F4FA; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); z-index: -1; border-radius: 0; }
.phone { position: relative; width: 340px; height: 640px; background: #fff; border-radius: 48px; padding: 12px; border: 1px solid #DADDE3; box-shadow: 0 0 0 6px #fff, 0 0 0 7px #E2E5EA, 0 30px 60px rgba(17, 24, 39, .14); display: flex; flex-direction: column; overflow: hidden; }
.phone-status { background: #000; color: #fff; border-radius: 38px 38px 0 0; height: 52px; padding: 16px 26px 0; display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; flex-shrink: 0; }
.status-icons { display: flex; gap: .3rem; font-size: .8rem; }
.sheet { position: relative; flex: 1; min-height: 0; margin-top: -14px; overflow: hidden; background: #fff; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: 0 -1px 0 #ECEEF1; }
.phone-status { position: relative; }
.phone-status::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 12px; height: 8px; border-radius: 8px 8px 0 0; background: #D9DCE1; }
.sheet-handle { width: 36px; height: 4px; border-radius: 4px; background: #D1D5DB; margin: 8px auto 4px; }
.sheet-head { display: flex; align-items: center; gap: .6rem; padding: .4rem 1rem .7rem; border-bottom: 1px solid #F0F1F3; }
.sheet-head img { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); object-fit: cover; }
.sheet-head div { flex: 1; line-height: 1.2; }
.sheet-head b { font-size: .88rem; display: block; }
.sheet-head small { font-size: .7rem; color: var(--green); display: flex; align-items: center; gap: .3rem; }
.sheet-head small i { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
.sheet-close { font-size: 1rem; color: #111; }

/* Chat: fixed-size window; new messages push older ones up (like a real chat) */
.chat { flex: 1; min-height: 0; overflow: hidden; position: relative; background: #FAFBFC; }
.chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: linear-gradient(#FAFBFC, rgba(250, 251, 252, 0)); z-index: 2; }
.chat-inner { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .85rem; display: flex; flex-direction: column; gap: .5rem; transition: opacity .5s; }
.chat-inner.fade { opacity: 0; }
.m { display: none; font-size: .78rem; }
.m.show { display: flex; animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.m-user, .m-bot { max-width: 84%; padding: .55rem .8rem; border-radius: 16px; }
.m-user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.m-bot { align-self: flex-start; background: #fff; border: 1px solid #ECEEF1; border-bottom-left-radius: 4px; }
.typing { align-self: flex-start; gap: 4px; background: #fff; border: 1px solid #ECEEF1; padding: .6rem .75rem; border-radius: 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9CA3AF; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chips { flex-wrap: wrap; gap: .3rem; }
.chips span { font-size: .7rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; border: 1px solid #D1D5DB; background: #fff; transition: background .25s, border-color .25s, transform .25s; }
.chips span.on { background: var(--yellow); border-color: var(--yellow); color: var(--navy); transform: scale(1.05); }
.finding { align-items: center; gap: .5rem; color: var(--muted); font-size: .74rem; padding: .2rem .2rem; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #D1D5DB; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pro { align-items: center; gap: .55rem; background: #fff; border: 1px solid #ECEEF1; border-radius: 14px; padding: .5rem .6rem; }
.pro > div { flex: 1; line-height: 1.3; }
.pro b { display: block; font-size: .8rem; }
.pro small { font-size: .67rem; color: var(--muted); }
.pro small i { color: #F59E0B; }
.pro small em { font-style: normal; color: var(--green); }
.av { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: #E3F2FD; color: #1565C0; }
.av2 { background: #F3E5F5; color: #6A1B9A; }
.view { font-size: .67rem; font-weight: 600; background: var(--navy); color: #fff; padding: .25rem .6rem; border-radius: 8px; }
.draft { flex-direction: column; gap: .15rem; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 16px; padding: .8rem; transition: background .5s; }
.draft-top { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); display: flex; gap: .35rem; align-items: center; }
.draft small { color: rgba(255, 255, 255, .72); font-size: .7rem; }
.draft-btn { margin-top: .45rem; align-self: flex-start; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .7rem; padding: .35rem .8rem; border-radius: 8px; transition: transform .15s; }
.draft-btn.press { transform: scale(.92); }
.sent { align-items: center; gap: .65rem; background: var(--green-soft); border: 1px solid #BBE7CB; color: #14532D; border-radius: 16px; padding: .75rem .8rem; }
.sent b { display: block; font-size: .85rem; color: var(--green); }
.sent small { font-size: .7rem; color: #166534; }
.sent-icon { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.sent.show .sent-icon { animation: tick .6s var(--ease); }
@keyframes tick { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.chat-input { flex-shrink: 0; margin: .6rem .8rem .5rem; padding: .55rem .6rem .55rem .9rem; border: 1px solid #E5E7EB; border-radius: 999px; display: flex; justify-content: space-between; align-items: center; color: #9CA3AF; font-size: .8rem; }
.chat-input i { color: var(--navy); font-size: 1.3rem; }
.home-bar { flex-shrink: 0; width: 120px; height: 5px; border-radius: 5px; background: #111; margin: 4px auto 2px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-gray { background: var(--gray); }
.h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.lead { margin-top: .8rem; font-size: 1.08rem; color: var(--ink-2); max-width: 680px; }
.eyebrow { font-size: .8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }

/* Category tabs */
.cat-tabs { margin-top: 2.4rem; display: flex; gap: .5rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .9rem 1.2rem 1rem; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; font: inherit; font-size: .9rem; color: var(--ink-2); transition: color .2s, border-color .2s; }
.cat-tab i { font-size: 1.6rem; color: var(--ink); }
.cat-tab:hover { color: var(--ink); }
.cat-tab.is-active { color: var(--ink); font-weight: 600; border-color: var(--blue); }
.cat-tab.is-active i { color: var(--blue); }
.cat-panels { margin-top: 1.6rem; }
.cat-panel { display: none; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-panel.is-active { display: grid; animation: pop .4s var(--ease); }
.panel-card { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.panel-card:hover { border-color: #C7D2FE; box-shadow: 0 8px 22px rgba(17, 24, 39, .06); }
.panel-card i { font-size: 1.3rem; color: var(--blue); width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; flex-shrink: 0; }
.panel-card b { font-weight: 600; font-size: .95rem; }

/* Services */
.svc-grid { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.svc { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 24, 39, .08); }
.svc-art { height: 150px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 10%, white); }
.svc-art i { font-size: 3.2rem; color: var(--c); }
.svc-body { padding: 1.2rem 1.2rem 1.4rem; }
.svc h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: .4rem; }
.svc p { font-size: .9rem; color: var(--ink-2); }

/* AI */
.ai-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
.ai-art { position: relative; aspect-ratio: 1; border-radius: 32px; background: radial-gradient(circle at 50% 45%, #FFFFFF, var(--blue-soft) 60%); display: grid; place-items: center; }
.ai-art img { width: 62%; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.ai-bubble { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem; font-size: .85rem; font-weight: 600; box-shadow: 0 10px 24px rgba(17, 24, 39, .08); }
.b1 { top: 14%; left: -4%; animation: float 6s ease-in-out infinite reverse; }
.b2 { bottom: 14%; right: -4%; color: var(--green); animation: float 7s ease-in-out infinite; }
.ai-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.3rem; }
.ai-list li { display: flex; gap: 1rem; }
.ai-list li > span { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; }
.ai-list b { font-size: 1.02rem; }
.ai-list p { color: var(--ink-2); font-size: .94rem; }

/* Why */
.why-grid { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2rem; }
.why i { font-size: 1.7rem; color: var(--blue); }
.why h3 { font-size: 1.12rem; font-weight: 600; margin: .8rem 0 .4rem; }
.why p { color: var(--ink-2); font-size: .95rem; }

/* How */
.how-grid { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.how { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.how-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 1.2rem; }
.how h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .45rem; }
.how p { color: var(--ink-2); font-size: .95rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.faq-grid .btn { margin-top: 1.2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; overflow: hidden; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after { content: "\F282"; font-family: 'bootstrap-icons'; flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: var(--ink-2); background: var(--gray); transition: transform .35s var(--ease), background .25s, color .25s; }
.faq summary:hover::after { background: var(--blue-soft); color: var(--blue); }
.faq details.is-open summary::after { transform: rotate(180deg); background: var(--navy); color: #fff; }
.faq details p { color: var(--ink-2); margin-top: .7rem; font-size: .97rem; }
/* answer slides and fades in while the panel grows (height animated in js/main.js) */
.faq details.is-open p { animation: faqIn .45s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* App CTA */
.app-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; background: var(--blue-soft); border-radius: 28px; padding: 3rem 3.5rem; overflow: hidden; }
.app-robot { width: 220px; animation: float 5s ease-in-out infinite; }
.stores { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.store { display: inline-flex; align-items: center; gap: .6rem; background: #000; color: #fff; padding: .55rem 1.1rem; border-radius: 12px; transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store i { font-size: 1.6rem; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; }
.store small { font-size: .62rem; font-weight: 400; opacity: .8; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .92rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 280px; }
.footer h4 { color: var(--ink); font-size: .95rem; margin: 0 0 .9rem; }
.footer-grid a { display: block; margin-bottom: .5rem; }
.footer a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .85rem; }
.social { display: flex; gap: 1.1rem; font-size: 1.1rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { margin-top: 1rem; }
  .device-bg { inset: 8% -20% -6% -20%; clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%); }
  .svc-grid, .cat-panel { grid-template-columns: repeat(2, 1fr); }
  .ai-grid, .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ai-art { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .hero-badges { grid-template-columns: repeat(2, auto); gap: 1.1rem 1.6rem; }
  .ai-box .btn { padding: .65rem .9rem; }
  .ai-box .btn i { display: none; }
  .ai-box { gap: .6rem; }
  .ai-box-icon { flex-basis: 40px; height: 40px; }
  .ai-box-label { font-size: .86rem; }
  .phone { width: 310px; height: 600px; }
  .svc-grid, .cat-panel, .why-grid, .how-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .app-cta { grid-template-columns: 1fr; padding: 2.2rem 1.6rem; text-align: left; }
  .app-robot { width: 150px; }
  .b1 { left: 2%; } .b2 { right: 2%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Next screen: request accepted + live tracking ---------- */
.sheet-handle, .sheet-head, .chat, .chat-input { transition: transform .55s var(--ease), opacity .55s; }
.sheet.tracking .sheet-handle, .sheet.tracking .sheet-head, .sheet.tracking .chat, .sheet.tracking .chat-input { transform: translateX(-30%); opacity: 0; }
.track { position: absolute; inset: 0; z-index: 3; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease); }
.sheet.tracking .track { transform: none; }
.track-top { display: flex; align-items: center; gap: .5rem; padding: .9rem 1rem .6rem; }
.track-top b { flex: 1; font-size: .9rem; }
.track-top > i { font-size: .95rem; }
.accepted { display: flex; align-items: center; gap: .6rem; margin: 0 .8rem .6rem; background: var(--green-soft); border: 1px solid #BBE7CB; border-radius: 14px; padding: .6rem .7rem; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s var(--ease); }
.accepted b { display: block; font-size: .82rem; color: var(--green); }
.accepted small { font-size: .68rem; color: #166534; line-height: 1.3; display: block; }
.accepted .sent-icon { flex-basis: 30px; height: 30px; font-size: .95rem; }
.sheet.tracking .accepted { opacity: 1; transform: none; transition-delay: .45s; }
.sheet.tracking .accepted .sent-icon { animation: tick .6s var(--ease) .5s both; }
.track-map { position: relative; flex: 1; min-height: 0; margin: 0 .8rem; border-radius: 16px; overflow: hidden; border: 1px solid #ECEEF1; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.route-bg { fill: none; stroke: #BFD4FB; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.route { fill: none; stroke: #2563EB; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.route-bg, .route { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.track.drawn .route-bg, .track.drawn .route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.45, 0, .2, 1); }
.pin-pro text { font: 700 8.5px 'Figtree', sans-serif; fill: #2563EB; }
.pin-pro { filter: drop-shadow(0 2px 3px rgba(17, 24, 39, .3)); }
.pin-home .pulse { fill: rgba(3, 28, 61, .18); transform-box: fill-box; transform-origin: center; animation: pinPulse 1.6s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.track-card { margin: .6rem .8rem .7rem; padding: .7rem .8rem; border: 1px solid #ECEEF1; border-radius: 16px; box-shadow: 0 6px 16px rgba(17, 24, 39, .06); }
.track-pro { display: flex; align-items: center; gap: .55rem; }
.track-pro > div { flex: 1; line-height: 1.25; }
.track-pro b { display: block; font-size: .82rem; }
.track-pro small { font-size: .68rem; color: var(--muted); }
.track-pro small i { color: #F59E0B; }
.round { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: var(--blue-soft); color: var(--blue); }
.round.green { background: var(--green); color: #fff; }
.eta-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: .6rem; }
.eta-row small { font-size: .68rem; color: var(--muted); display: block; }
.eta-row b { font-size: 1.05rem; color: var(--green); }
.eta-bar { margin-top: .45rem; height: 5px; border-radius: 5px; background: #EEF2F6; overflow: hidden; }
.eta-bar i { display: block; height: 100%; width: 100%; background: var(--green); border-radius: 5px; transform: scaleX(var(--p, 0)); transform-origin: left; }
.live { display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); background: var(--green-soft); padding: .2rem .45rem; border-radius: 999px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: caret 1s steps(1) infinite; }

/* =========================================================
   Photo hero: real photos slowly zoom + crossfade behind the text
   ========================================================= */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; padding: 0; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; color: #fff; background: #0B1A2E; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease; will-change: opacity, transform; }
.slide.is-active { opacity: 1; animation: kenburns 8s linear forwards; }
.slide.is-leaving { opacity: 0; transform: scale(1.15) translate(-1.5%, -1%); }   /* holds the zoomed end frame while fading out */
.slide:nth-child(even).is-active { animation-name: kenburns2; }
.slide:nth-child(even).is-leaving { transform: scale(1.15) translate(1.5%, 1%); }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.15) translate(-1.5%, -1%); } }
@keyframes kenburns2 { from { transform: scale(1.04); } to { transform: scale(1.15) translate(1.5%, 1%); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(3, 16, 35, .86) 0%, rgba(3, 16, 35, .62) 42%, rgba(3, 16, 35, .18) 100%),
  linear-gradient(0deg, rgba(3, 16, 35, .55) 0%, transparent 35%); }
.hero-inner { padding: 96px 0 36px; }
.hero-copy { max-width: 640px; }
.hero-photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-photo .type-wrap { color: var(--yellow); }
.hero-photo .caret { background: var(--yellow); }
.hero-photo .hero-sub { color: rgba(255, 255, 255, .86); }
.hero-photo .hero-note { color: rgba(255, 255, 255, .78); }
.hero-photo .hero-badges i { color: var(--yellow); }
.hero-photo .hero-badges b { color: #fff; }
.hero-photo .hero-badges span { color: rgba(255, 255, 255, .72); }
.hero-photo .ai-box { color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); border-color: transparent; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 28px; }
.slide-caption { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(6, 14, 28, .62); font-size: .82rem; transition: opacity .4s; }
.slide-caption.swap { opacity: 0; }
.cap-cat { color: var(--yellow); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.slide-dots { display: flex; gap: .4rem; }
.slide-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; overflow: hidden; }
.slide-dots button i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.slide-dots button.is-active i { animation: dotFill var(--slide-ms, 7000ms) linear forwards; }
.slide-dots button.done i { transform: scaleX(1); }
@keyframes dotFill { to { transform: scaleX(1); } }

/* =========================================================
   Demo section: the phone animation, synced with 3 steps
   ========================================================= */
.demo { background: linear-gradient(180deg, #fff 0%, #F4F8FC 100%); overflow: hidden; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.demo-grid > * { min-width: 0; }
.demo-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.demo-steps li { display: flex; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid transparent; opacity: .55; transition: opacity .4s, background .4s, border-color .4s, box-shadow .4s; }
.demo-steps li.is-active { opacity: 1; background: #fff; border-color: var(--line); box-shadow: 0 10px 26px rgba(17, 24, 39, .07); }
.demo-steps li > span { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #E5E7EB; color: var(--ink-2); transition: background .4s, color .4s; }
.demo-steps li.is-active > span { background: var(--navy); color: #fff; }
.demo-steps li[data-stage="track"].is-active > span { background: var(--green); }
.demo-steps b { font-size: 1.02rem; }
.demo-steps p { color: var(--ink-2); font-size: .93rem; margin-top: .15rem; }

@media (max-width: 1000px) {
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-photo { min-height: calc(100svh - 72px); }
  .hero-inner { padding: 56px 0 28px; }
  .hero-shade { background: linear-gradient(180deg, rgba(3, 16, 35, .78), rgba(3, 16, 35, .7)); }
  .hero-meta { padding-bottom: 20px; }
  .slide-caption { font-size: .74rem; min-width: 0; white-space: nowrap; }
  .cap-text { overflow: hidden; text-overflow: ellipsis; }
  .slide-dots { flex-shrink: 0; }
  .slide-dots button { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-active { transform: none; }
}

/* =========================================================
   Intro: lightning only — grows small → large (outline draws), strikes
   (fills yellow + flash), then zooms past large → out and fades into the page.
   Steps are switched on by js/main.js: .grow → .strike → .out
   ========================================================= */
html { scrollbar-gutter: stable; }   /* no page re-layout when the scrollbar returns after the intro */
body.intro-on { overflow: hidden; }
body.intro-on .slide.is-active { animation-play-state: paused; }
.intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0A2A55 0%, #031C3D 60%, #020F22 100%);
  animation: introSafety 0s linear 6s forwards; /* safety net if the script never runs */
}
@keyframes introSafety { to { visibility: hidden; opacity: 0; } }
.intro.out { opacity: 0; transition: opacity .28s ease-in .08s; }

.intro-bolt-wrap {
  position: relative; width: clamp(72px, 9vw, 120px);
  opacity: 0; transform: scale(.2);
  will-change: transform, opacity;   /* own GPU layer: zooming scales a ready-made picture */
  transition: transform .9s cubic-bezier(.2, .8, .25, 1), opacity .35s ease;
}
.intro.grow .intro-bolt-wrap { opacity: 1; transform: scale(1); }
.intro.strike .intro-bolt-wrap { animation: strikeJolt .3s ease-out; }
.intro.out .intro-bolt-wrap {
  transform: scale(5); opacity: 0;
  transition: transform .4s cubic-bezier(.55, 0, .45, 1), opacity .3s ease-in .05s;
}
@keyframes strikeJolt { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-5deg); } 70% { transform: scale(.96) rotate(2deg); } 100% { transform: scale(1); } }

.intro-bolt { display: block; width: 100%; height: auto; overflow: visible; }
.intro-bolt path {
  fill: transparent; stroke: var(--yellow); stroke-width: 2.2; stroke-linejoin: round;
  stroke-dasharray: 330; stroke-dashoffset: 330;
  transition: stroke-dashoffset .85s ease-in-out;
}
.intro.grow .intro-bolt path { stroke-dashoffset: 0; }
.intro.strike .intro-bolt path { fill: var(--yellow); transition: fill .12s ease-out; }

/* glow behind the bolt: a plain radial gradient (cheap) instead of blur filters (expensive when zoomed) */
.intro-bolt-wrap::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 260%; height: 200%; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 197, 24, .55), rgba(245, 197, 24, .18) 55%, rgba(245, 197, 24, 0));
  opacity: .35; transition: opacity .15s ease-out;
}
.intro.strike .intro-bolt-wrap::before { opacity: 1; }

.intro-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .95) 0%, rgba(255, 229, 138, .6) 25%, transparent 65%); }
.intro-flash.go { animation: flash .42s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .intro { display: none; } body.intro-on { overflow: auto; } }
