/* Landing page (index.html): two phone mockups — Citizen / Officer. */
:root {
  --citizen-a: #ffffff; --citizen-b: #fff6ea; --citizen-ink: #0b2a55; --citizen-ink-d: #071c3d;
  --officer-a: #ffffff; --officer-b: #edf2fa; --officer-ink: #0b2a55; --officer-ink-d: #071c3d;
  --phone-ink: #0e1a2b; --phone-muted: #5b6b82; --bezel: #1a2233;
}

main.landing { display: flex; flex-direction: column; align-items: center; padding: 26px 20px 32px; }
.hero { text-align: center; margin-bottom: 22px; }
.hero h2 { font-family: var(--f-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--navy-800); }
.hero p { color: var(--ink-2); margin-top: 4px; }

.screens { display: flex; justify-content: center; gap: 90px; width: 100%; max-width: 1000px; }
.phone {
  aspect-ratio: 9 / 18.5; height: min(560px, calc(100vh - 330px)); min-height: 440px;
  border: 10px solid var(--bezel); border-radius: 38px; overflow: hidden; position: relative;
  box-shadow: 0 22px 44px rgba(7,28,61,.18), 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease; flex-shrink: 0;
}
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 88px; height: 16px; background: var(--bezel); border-radius: 10px; z-index: 5; }
.phone:hover { transform: translateY(-5px); box-shadow: 0 28px 52px rgba(7,28,61,.26); }
.phone.citizen { background: linear-gradient(170deg, var(--citizen-a) 40%, var(--citizen-b)); }
.phone.officer { background: linear-gradient(170deg, var(--officer-a) 40%, var(--officer-b)); }
.phone.citizen::after, .phone.officer::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #FF9933 0 33.34%, #ffffff 33.34% 66.67%, #138808 66.67%); }
.screen { height: 100%; display: flex; flex-direction: column; padding: 32px 18px 20px; color: var(--phone-ink); cursor: pointer; user-select: none; overflow-y: auto; }

.app-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-emblem { height: 34px; width: auto; flex-shrink: 0; }
.app-top b { display: block; font-family: var(--f-serif); font-size: .8rem; line-height: 1.3; color: var(--navy-800); }
.app-top small { display: block; font-size: .64rem; color: var(--phone-muted); }
.app-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 4px; width: 100%; }
.portal-ico { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px auto; overflow: hidden; position: relative; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.portal-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.citizen .portal-ico { background: #fff; border: 2px solid rgba(255,153,51,.35); box-shadow: 0 10px 24px rgba(224,102,0,.22); }
.officer .portal-ico { background: #fff; border: 2px solid rgba(11,42,85,.3); box-shadow: 0 10px 24px rgba(11,42,85,.24); }
.phone:hover .portal-ico { transform: scale(1.08) translateY(-2px); }
.citizen:hover .portal-ico { box-shadow: 0 14px 30px rgba(224,102,0,.32); }
.officer:hover .portal-ico { box-shadow: 0 14px 30px rgba(11,42,85,.32); }
.portal-title { font-family: var(--f-serif); font-weight: 700; font-size: 1.1rem; letter-spacing: .3px; line-height: 1.3; margin-bottom: 8px; color: var(--navy-800); text-align: center; }
.benefit { font-size: .8rem; line-height: 1.55; min-height: 62px; margin-bottom: 14px; color: var(--ink-2); text-align: center; }
.benefit::after { content: '▌'; opacity: .5; animation: caret 1s steps(2) infinite; }
.benefit.done::after { content: ''; }
@keyframes caret { 50% { opacity: 0; } }
.cta { width: 100%; max-width: 210px; margin: 0 auto; border: none; border-radius: 10px; padding: 11px 16px; font-weight: 700; font-size: .86rem; color: #fff; transition: transform .15s, background .15s; }
.citizen .cta { background: var(--saffron); } .citizen .cta:hover { background: var(--saffron-600); }
.officer .cta { background: var(--officer-ink); } .officer .cta:hover { background: var(--officer-ink-d); }
.cta:active { transform: scale(.97); }
.cta.pulse { animation: ctaPulse 1.8s infinite ease-in-out; }
.cta:hover, .cta:focus { animation: none; }
@keyframes ctaPulse { 50% { transform: scale(1.03); box-shadow: 0 6px 18px rgba(7,28,61,.25); } }
.foot-note { font-size: .66rem; color: var(--phone-muted); margin-top: 10px; }
.mini-list { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 12px; }
.mini-list span { display: inline-flex; align-items: center; gap: 4px; font-size: .62rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-radius: 10px; padding: 2px 8px; }

/* reveal sequence */
.app-top, .portal-ico, .portal-title, .cta, .mini-list { opacity: 0; transform: translateY(10px); transition: opacity .4s cubic-bezier(.25,1,.5,1), transform .4s cubic-bezier(.25,1,.5,1); }
.portal-ico { transform: scale(.6); transition-timing-function: cubic-bezier(.34,1.56,.64,1); }
.reveal { opacity: 1 !important; transform: none !important; }

.mobile-nav { display: none; }
.mobile-lang { display: none; }

@media (max-width: 767px) {
  .gov-strip, .masthead, .mainnav, .tricolor, .hero, .site-foot { display: none !important; }
  body { overflow: hidden; position: fixed; inset: 0; }
  main.landing { padding: 0; height: 100dvh; overflow: hidden; align-items: stretch; }
  .screens { width: 200vw; max-width: none; gap: 0; height: 100%; justify-content: flex-start; transition: transform .3s cubic-bezier(.25,1,.5,1); }
  .phone { width: 100vw; height: 100%; min-height: 0; aspect-ratio: auto; border: none; border-radius: 0; box-shadow: none; }
  .phone::before { display: none; }
  .phone:hover { transform: none; box-shadow: none; }
  .phone.citizen::after, .phone.officer::after { top: 0; bottom: auto; height: 4px; }
  .screen { padding: calc(env(safe-area-inset-top, 0px) + 22px) 22px 150px; }
  .app-top { padding-right: 104px; }
  .mini-emblem { height: 42px; }
  .app-top b { font-size: .92rem; }
  .app-top small { font-size: .72rem; }
  .portal-ico { width: 82px; height: 82px; border-radius: 22px; }
  .portal-title { font-size: 1.35rem; }
  .benefit { font-size: .95rem; }
  .cta { max-width: 280px; padding: 13px 18px; font-size: .95rem; }
  .mobile-lang {
    display: inline-flex; position: fixed; top: calc(env(safe-area-inset-top, 0px) + 20px); right: 14px; z-index: 120;
    background: var(--navy-800); border-color: var(--navy-800);
  }
  .mobile-nav {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 4px; gap: 4px; z-index: 120; box-shadow: var(--shadow-2);
  }
  .mobile-nav button { border: none; background: none; padding: 10px 26px; border-radius: 28px; font-weight: 700; color: var(--ink-2); }
  .mobile-nav button.active.c { background: var(--saffron); color: #fff; }
  .mobile-nav button.active.o { background: var(--navy-800); color: #fff; }
  .fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-top, .portal-ico, .portal-title, .cta, .mini-list { opacity: 1; transform: none; transition: none; }
  .cta.pulse, .benefit::after { animation: none; }
  .screens { transition: none !important; }
}
