/* =============================================================
   Chicago Works — marketing site
   Plain CSS, no build step. Custom props + grid + flex.
   Design: Chicago sky-blue (#04AEDA) + Chicago star red (#E4002B)
   ============================================================= */

:root {
    --blue: #04AEDA;
    --blue-dark: #0384a8;
    --blue-deep: #0A2540;
    --red: #E4002B;
    --ink: #0E1726;
    --muted: #5A6B7D;
    --soft: #F4F8FB;
    --line: #E2EBF2;
    --white: #fff;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 40px -12px rgba(10, 37, 64, 0.18);
    --shadow-lg: 0 30px 80px -24px rgba(10, 37, 64, 0.35);
    --max: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.55;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* ===================== NAV ===================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}

.nav__brand:hover { color: var(--ink); }

.nav__star {
    width: 26px;
    height: 26px;
    padding: 3px;
    background: var(--blue);
    border-radius: 50%;
}

.nav__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 8px -2px rgba(10,37,64,.3);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}

.nav__links a {
    color: var(--ink);
    transition: color .2s var(--ease);
}

.nav__links a:hover { color: var(--blue); }

.nav__cta {
    background: var(--ink);
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .2s var(--ease), background .2s var(--ease);
}

.nav__cta:hover {
    background: var(--blue);
    transform: translateY(-1px);
}

.nav__menu-btn {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
}

.nav__menu-btn span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 10vw, 140px);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(4,174,218,.18), transparent 60%),
        radial-gradient(ellipse at 90% 30%, rgba(228,0,43,.10), transparent 50%),
        linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(4,174,218,.1);
    color: var(--blue-dark);
    border: 1px solid rgba(4,174,218,.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    margin-bottom: 20px;
}

.hero__eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(4,174,218,.25);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(4,174,218,.25); }
    50% { box-shadow: 0 0 0 7px rgba(4,174,218,.08); }
}

.hero__title {
    font-size: clamp(38px, 5.4vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 18px;
    color: var(--ink);
}

.hero__title-accent {
    background: linear-gradient(90deg, var(--blue), #0A5F78);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__sub {
    font-size: clamp(16px, 1.3vw, 19px);
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 520px;
}

.hero__stats {
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    margin-bottom: 32px;
}

.hero__stats > div {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.hero__stats strong {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.hero__stats span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hero__note {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* ===================== STORE BADGES =====================
   Apple's SVG badge has zero internal padding; Google Play's PNG ships with
   significant whitespace baked in. To make them read as the same visual size,
   the Google badge is taller and uses negative vertical margin to compensate. */
.appstore-badge { height: 56px; display: inline-block; }
.playstore-badge { height: 82px; display: inline-block; margin: -13px 0; }
.hero__cta a, .download__cta a { display: inline-flex; align-items: center; transition: transform .2s var(--ease); }
.hero__cta a:hover, .download__cta a:hover { transform: translateY(-2px); }

/* "Coming soon" wrapper for the Play badge while Android is in review.
   Dims the badge and overlays a small pill so users don't click a dead link. */
.coming-soon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: not-allowed;
}
.playstore-badge--soon {
    opacity: 0.55;
    filter: grayscale(0.4);
}
.coming-soon__pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px -2px rgba(228, 0, 43, 0.5);
    pointer-events: none;
    white-space: nowrap;
}

/* ===================== HERO DEVICE MOCKUP ===================== */
.hero__device {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__app-icon {
    position: absolute;
    top: -30px;
    right: 10%;
    width: 92px;
    height: 92px;
    border-radius: 22px;
    box-shadow: 0 20px 40px -10px rgba(4,40,80,.45),
                0 8px 20px -6px rgba(228,0,43,.25);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-8px) rotate(-4deg); }
}

.device-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(ellipse at center, rgba(4,174,218,.35), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

/* Hero phone mockup — uses the shared .phone / .phone__frame pattern */
.phone--hero {
    width: min(300px, 72vw);
    max-width: none;
    flex: 0 0 auto;
    margin: 0;
    position: relative;
    z-index: 1;
}

.phone--hero .phone__frame {
    border-radius: 42px;
    padding: 10px;
    margin-bottom: 0;
    box-shadow: var(--shadow-lg);
}

.phone--hero .phone__frame img { border-radius: 32px; }

.phone--hero .phone__notch {
    top: 0;
    width: 38%;
    max-width: 150px;
    height: 28px;
    border-radius: 0 0 18px 18px;
}

/* ===================== SECTIONS ===================== */
section { padding: clamp(60px, 9vw, 120px) 0; }

.section__title {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px;
}

.section__sub {
    text-align: center;
    font-size: 17px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 56px;
}

/* ===================== HOW ===================== */
.how { background: var(--white); }

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(4,174,218,.35);
}

.step__num {
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: white;
    font-weight: 800;
    font-size: 20px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step h3 { font-size: 22px; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* ===================== FEATURES ===================== */
.features { background: var(--soft); }

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature__icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    background: rgba(4,174,218,.1);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===================== SCREENSHOTS ===================== */
.screens {
    background: linear-gradient(180deg, var(--soft) 0%, #e9f1f7 100%);
    overflow: hidden;
}

.screens__showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(14px, 3vw, 40px);
    padding: 20px 0;
}

.phone {
    margin: 0;
    text-align: center;
    flex: 1 1 0;
    max-width: 280px;
    transition: transform .4s var(--ease);
}

.phone:hover { transform: translateY(-8px); }

.phone__frame {
    position: relative;
    aspect-ratio: 9/19.5;
    background: #0e1117;
    border-radius: 36px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 14px;
}

.phone__notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    max-width: 140px;
    height: 24px;
    background: #0e1117;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}

.phone__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}

/* Placeholder when an image fails to load */
.phone__frame img:not([src]),
.phone__frame img[src=""] {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.phone figcaption {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 4px;
}

/* Center phone popped forward for emphasis */
.phone--center {
    transform: scale(1.08);
    z-index: 2;
}

.phone--center:hover { transform: scale(1.08) translateY(-8px); }

.phone--center .phone__frame {
    box-shadow: 0 40px 80px -20px rgba(10, 37, 64, 0.4),
                0 0 0 1px rgba(4,174,218,.2);
}

/* ===================== REVIEWS ===================== */
.reviews { background: var(--soft); }

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 0;
    border: 1px solid var(--line);
}

.review .stars {
    color: #ffb400;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review p {
    font-size: 16px;
    color: var(--ink);
    margin: 0 0 14px;
    line-height: 1.55;
}

.review cite {
    font-style: normal;
    font-weight: 600;
    color: var(--muted);
    font-size: 14px;
}

/* ===================== PRESS ===================== */
.press { padding: 70px 0; background: white; }

.press__logos {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 50px);
    color: var(--muted);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    opacity: .7;
    font-family: Georgia, 'Times New Roman', serif;
}

/* ===================== DOWNLOAD CTA ===================== */
.download {
    background: linear-gradient(135deg, var(--blue-deep) 0%, #06304a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(4,174,218,.18), transparent 55%);
    z-index: 0;
}

.download__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.download h2 {
    font-size: clamp(26px, 3vw, 38px);
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.download p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 17px;
}

.download__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===================== FOOTER ===================== */
.footer {
    background: #0A1520;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer .nav__brand { color: white; }
.footer .nav__brand span { color: white; }

.footer__tag {
    margin: 16px 0 0;
    color: rgba(255,255,255,.55);
    max-width: 280px;
}

.footer h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 16px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: rgba(255,255,255,.7);
}

.footer a:hover { color: var(--blue); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px 0;
    font-size: 13px;
    color: rgba(255,255,255,.45);
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p { margin: 0; }

.footer__disclaimer { color: rgba(255,255,255,.35); }

/* ===================== PRIVACY PAGE ===================== */
.page {
    padding: 60px 0 100px;
    background: var(--white);
}

.page .container { max-width: 980px; }

.page h1 {
    font-size: clamp(32px, 4vw, 46px);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.page h2 {
    font-size: 22px;
    margin: 40px 0 12px;
}

.page p, .page li {
    color: var(--muted);
    line-height: 1.7;
}

.page ul { padding-left: 22px; }

.page__updated {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__device { order: -1; margin-bottom: 20px; }
    .device-frame { width: min(260px, 66vw); }

    .steps, .features__grid, .reviews__grid {
        grid-template-columns: 1fr;
    }

    .screens__showcase {
        flex-direction: column;
        align-items: center;
    }

    .phone { max-width: 300px; width: 100%; }
    .phone--center { transform: none; }
    .phone--center:hover { transform: translateY(-8px); }

    .footer__grid { grid-template-columns: 1fr 1fr; }

    .nav__links { display: none; }
    .nav__menu-btn { display: block; }

    .nav__links.open {
        display: flex;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 20px;
        background: white;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        gap: 18px;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .hero__stats { gap: 24px; }
    .hero__cta { width: 100%; justify-content: center; }
    .download__cta { justify-content: center; }
}

/* ===================== MOTION-REDUCE ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
