/*
 * App screen previews for the homepage device frames.
 *
 * Built in HTML and CSS from the app's own design (UI_SPEC.md §1–§12): same
 * colours, fonts, radii and layout as the ReviveMyGTM app, so the website
 * shows the app as it actually is. Decorative: each frame has a caption, and
 * the previews are hidden from screen readers.
 *
 * Sizing: the screen is a size container; 1em = 14px on a 375px-wide phone
 * (3.733cqw), so every value below is the app's px value / 14.
 */
.app-screen {
    --bg: #FFFFFF; --el: #F1F8E9; --text: #1B2211; --text2: #4A5240; --pri: #2E7D32;
    --hero1: #1B5E20; --hero2: #2E7D32; --line: #C5D4B8; --urgent: #BF360C; --card: #FFFFFF;
    --chip: #DCEDC8; --gold-border: #F9A825; --gold-bg: #F9EFD0; --gold-text: #8B6914;
    container-type: inline-size;
    position: relative;
    width: 100%;
    aspect-ratio: 750 / 1624;
    border-radius: 36px;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    text-align: left;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.gallery .app-screen, .steps-shot .app-screen { border-radius: 30px; }
.as { position: absolute; inset: 0; font-size: 14px; font-size: 3.733cqw; line-height: 1.4; display: flex; flex-direction: column; }
.as svg { width: 1.15em; height: 1.15em; flex: none; }
.as .disp { font-family: Manrope, "Plus Jakarta Sans", sans-serif; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.as .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.as .muted { color: var(--text2); }
.as .body { padding: 3.4em 1.14em 0; display: flex; flex-direction: column; gap: 1em; flex: 1; min-height: 0; }

/* Floating theme / info buttons (§5.2) */
.as .float { position: absolute; top: 3em; right: 0.72em; display: flex; gap: 0.43em; z-index: 3; }
.as .float span { width: 2.57em; height: 2.57em; border-radius: 0.86em; background: rgba(0,0,0,.25); color: #fff; display: grid; place-items: center; }
.as .float svg { width: 1.14em; height: 1.14em; }

/* Home hero (§7.1) */
.as .hero { background: linear-gradient(160deg, var(--hero1), var(--hero2)); color: #fff; padding: 3.2em 1.14em 1.43em; }
.as .brand { display: flex; align-items: center; gap: 0.86em; padding-right: 6em; }
.as .brand .chip { height: 3.14em; padding: 0.14em 0.43em; border-radius: 0.71em; background: #fff; display: grid; place-items: center; }
.as .brand .chip img { height: 2.57em; width: 2.57em; object-fit: contain; border-radius: 0; background: none; aspect-ratio: auto; }
.as .brand b { display: block; font-size: 1.29em; }
.as .brand small { display: block; font-size: 0.86em; opacity: .85; }
.as .hero h4 { font-size: 1.64em; margin: 0.7em 0 0.1em; color: #fff; }
.as .hero p { margin: 0; font-size: 0.93em; opacity: .85; }
.as .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.71em; margin-top: 1.14em; }
.as .action { border-radius: 1em; padding: 1em; min-height: 7.14em; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.15); }
.as .action.red { background: rgba(191,54,12,.9); }
.as .action svg { width: 1.43em; height: 1.43em; }
.as .action b { display: block; font-size: 1em; line-height: 1.3; margin-top: 0.57em; }
.as .action small { display: block; font-size: 0.79em; opacity: .85; margin-top: 0.14em; }
.as .ebar { margin-top: 0.71em; border-radius: 0.86em; padding: 0.86em 1em; background: rgba(0,0,0,.25); display: flex; align-items: center; gap: 0.71em; }
.as .ebar div { flex: 1; min-width: 0; }
.as .ebar b { display: block; font-size: 1em; }
.as .ebar small { display: block; font-size: 0.79em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards, panels, buttons (§4) */
.as .card { background: var(--card); border: 1px solid var(--line); border-radius: 1em; padding: 1em; display: flex; flex-direction: column; gap: 0.57em; }
.as .panel { background: var(--el); border: 1px solid var(--line); border-radius: 0.86em; padding: 0.86em; font-size: 0.86em; display: flex; gap: 0.6em; align-items: flex-start; }
.as .panel.gold { background: var(--gold-bg); border-color: var(--gold-border); }
.as .panel svg { color: var(--pri); margin-top: 0.1em; }
.as .panel.gold svg { color: var(--gold-text); }
.as .row { display: flex; justify-content: space-between; align-items: center; gap: 0.57em; }
.as .btn { font-size: 1em; line-height: 1.4; padding: 0 1em; border: 0; transition: none; transform: none; box-shadow: none; cursor: default; border-radius: 0.86em; min-height: 3.43em; display: flex; align-items: center; justify-content: center; gap: 0.57em; font-weight: 700; background: var(--pri); color: #fff; }
.as .btn.sec { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 600; min-height: 3.14em; }
.as .btn.small { min-height: 2.71em; font-size: 0.86em; padding: 0 0.86em; border-radius: 0.57em; display: inline-flex; }
.as .btn.tint { background: var(--el); color: var(--pri); border: 1px solid var(--line); }
.as .title { font-size: 1.57em; }
.as .sub { font-size: 0.86em; color: var(--text2); margin-top: 0.15em; }
.as .back { color: var(--pri); font-weight: 600; display: flex; align-items: center; gap: 0.43em; }
.as .field { border: 1px solid var(--line); border-radius: 0.86em; min-height: 3.14em; padding: 0 1em; display: flex; align-items: center; gap: 0.6em; color: var(--text2); background: var(--card); }
.as .field.filled { color: var(--text); }
.as .label { font-size: 0.86em; font-weight: 600; color: var(--text2); margin-bottom: 0.28em; }
.as .chips { display: flex; gap: 0.43em; overflow: hidden; }
.as .chips span { border: 1px solid var(--line); border-radius: 999px; padding: 0.43em 1em; font-size: 0.86em; font-weight: 600; white-space: nowrap; }
.as .chips span.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.as .badge { border-radius: 999px; padding: 0.14em 0.71em; font-size: 0.79em; font-weight: 700; white-space: nowrap; }
.as .b-ok { background: #E8F5E9; color: #1B5E20; }
.as .b-wait { background: #FFF8E1; color: #8B6914; }
.as .b-hand { background: #E3F2FD; color: #0D47A1; }
.as .meta { font-size: 0.86em; color: var(--text2); display: flex; gap: 0.86em; flex-wrap: wrap; }
.as .loc { font-size: 0.86em; color: var(--text2); display: flex; gap: 0.43em; align-items: flex-start; }
.as .loc svg { color: var(--pri); width: 1em; height: 1em; margin-top: 0.15em; }
.as .bar { border-top: 1px solid var(--line); padding-top: 0.57em; display: flex; justify-content: space-between; align-items: center; }
.as .del { font-size: 0.86em; color: var(--text2); display: flex; gap: 0.3em; align-items: center; }

/* Report flow (§8) */
.as .progress { display: flex; gap: 0.43em; }
.as .progress span { flex: 1; height: 0.43em; border-radius: 999px; background: var(--line); }
.as .progress span.on { background: var(--pri); }
.as .map { position: relative; height: 12.5em; border-radius: 1em; border: 1px solid var(--line); overflow: hidden;
    background:
        linear-gradient(115deg, transparent 47%, #fff 47%, #fff 51%, transparent 51%),
        linear-gradient(20deg, transparent 60%, #fff 60%, #fff 63%, transparent 63%),
        linear-gradient(170deg, transparent 30%, #FDF3C4 30%, #FDF3C4 34%, transparent 34%),
        radial-gradient(circle at 75% 25%, #CDE8C0 0 18%, transparent 19%),
        #E8EEE4; }
.as .map .zoom { position: absolute; top: 0.57em; left: 0.57em; width: 2em; border-radius: 0.3em; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); font-weight: 700; text-align: center; line-height: 2em; color: #333; }
.as .map .pin { position: absolute; left: 50%; top: 42%; width: 2em; height: 2em; margin: -2.4em 0 0 -1em; background: #2E7D32; border: 0.21em solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0.2em 0.7em rgba(0,0,0,.35); }
.as .map .me { position: absolute; left: 40%; top: 58%; width: 1em; height: 1em; border-radius: 50%; background: #1565C0; border: 0.14em solid #fff; }
.as .map .attr { position: absolute; right: 0; bottom: 0; font-size: 0.57em; background: rgba(255,255,255,.8); padding: 0.1em 0.4em; color: #444; }
.as .summary { background: var(--el); border: 1px solid var(--line); border-radius: 0.86em; padding: 1em; display: flex; flex-direction: column; gap: 0.57em; }
.as .summary small { display: block; font-size: 0.86em; color: var(--text2); }

/* Tab bar (§5.3) */
.as .tabs { margin-top: auto; border-top: 1px solid var(--line); background: rgba(255,255,255,.95); display: flex; padding: 0.57em 0 1.6em; }
.as .tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.14em; font-size: 0.79em; font-weight: 500; color: var(--text2); }
.as .tabs span.on { color: var(--pri); font-weight: 700; }
.as .tabs svg { width: 1.43em; height: 1.43em; }

/* Bottom sheet (§4.11, §12.1) */
.as .dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.as .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 1.43em 1.43em 0 0; overflow: hidden; }
.as .sheet .head { background: var(--urgent); color: #fff; padding: 0.71em 1.14em 0.86em; }
.as .sheet .grab { width: 2.86em; height: 0.43em; border-radius: 999px; background: rgba(255,255,255,.5); margin: 0 auto 0.57em; }
.as .sheet .head b { font-size: 1.36em; display: block; }
.as .sheet .head small { font-size: 0.86em; opacity: .9; display: block; }
.as .sheet .content { padding: 1.14em; display: flex; flex-direction: column; gap: 0.86em; padding-bottom: 2em; }
.as .call { border: 1px solid var(--line); border-radius: 1em; padding: 1em; display: flex; justify-content: space-between; align-items: center; gap: 0.6em; }
.as .call b { display: block; font-size: 1.07em; }
.as .call small { display: block; font-size: 0.86em; color: var(--text2); }
.as .pill { background: var(--urgent); color: #fff; border-radius: 0.86em; padding: 0.57em 0.86em; font-family: "JetBrains Mono", monospace; font-weight: 700; display: flex; gap: 0.4em; align-items: center; white-space: nowrap; }
.as .pill svg { width: 1em; height: 1em; }

@media (prefers-reduced-motion: reduce) { .app-screen * { animation: none !important; } }
