/* Car & Play demo screens, modelled on the app (Theme.swift: accent #00D46A, background #1A1A1A, cards #2A2A2A).
   Portrait screens are drawn at the phone's size; Car Mode is drawn at 852×393 points and scaled to fit. */

:root { --cp: #00D46A; --cp-dark: #04140B; --cp-card: #222426; --cp-card2: #2A2C2F; }

/* ---------- Hero layout: room for the phone in landscape ---------- */
.hero-demo .wrap { grid-template-columns: minmax(0, 1fr) 600px; gap: 56px; }
.hero-phone { width: 100%; }
.phone-stage { position: relative; width: 100%; height: 720px; display: grid; place-items: center; }
.hero-phone .demo-seg, .demo-hint, .demo-note { width: 340px; }
@media (max-width: 1120px) {
  .hero-demo .wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-demo .lead { margin-inline: auto; }
  .hero-demo .store-row, .hero-demo .micro { justify-content: center; }
}
@media (max-width: 900px) { .phone-stage { height: auto; min-height: 300px; } }

/* ---------- Phone in landscape (Car Mode) ---------- */
.iphone { transition: none; }
.iphone.land {
  --lw: min(600px, calc(100vw - 32px));
  width: var(--lw); max-width: none; aspect-ratio: auto; height: calc((var(--lw) - 24px) * 393 / 852 + 24px);
  border-radius: calc(66px * var(--k, .676) + 12px);
}
.iphone.land .iscreen { border-radius: calc(66px * var(--k, .676)); }
.iphone.land .btn-side.action { left: 15%; top: -3px; width: 4.5%; height: 4px; }
.iphone.land .btn-side.vol-up { left: 23%; top: -3px; width: 8%; height: 4px; }
.iphone.land .btn-side.vol-down { left: 33%; top: -3px; width: 8%; height: 4px; }
.iphone.land .btn-side.power { right: auto; left: 27%; top: auto; bottom: -3px; width: 13%; height: 4px; }
.iphone.turn-in { animation: turnIn .7s cubic-bezier(.2,.8,.2,1); }
.iphone.turn-out { animation: turnOut .7s cubic-bezier(.2,.8,.2,1); }
@keyframes turnIn { from { transform: rotate(90deg) scale(.82); } }
@keyframes turnOut { from { transform: rotate(-90deg) scale(.82); } }
.lroot { position: absolute; left: 0; top: 0; width: 852px; height: 393px; transform-origin: 0 0; transform: scale(var(--k, .676)); }

/* the side button can be pressed in the Parking demo */
.btn-side.power { cursor: pointer; pointer-events: auto; z-index: 2; }
.btn-side.power:hover { filter: brightness(1.6); }

/* ---------- Shared bits ---------- */
.psign { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #fff; display: grid; place-items: center; color: #006B3D; font-weight: 900; font-size: 27px; line-height: 1; box-shadow: inset 0 0 0 2.5px #fff, inset 0 0 0 5px #006B3D, inset 0 0 0 6.5px #fff; position: relative; }
.psign.sm { width: 22px; height: 22px; border-radius: 5px; font-size: 14px; box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 3px #006B3D, inset 0 0 0 4px #fff; }
.psign .car { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--cp); color: #000; display: grid; place-items: center; box-shadow: 0 0 0 2px #1d1f21; }
.psign .car svg { width: 11px; height: 11px; }
.gpill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--cp); color: #000; font-weight: 700; font-size: 14px; transition: transform .12s, opacity .2s; }
.gpill:active { transform: scale(.96); }
.gpill svg { width: 15px; height: 15px; }
.glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); }
.xbtn { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.xbtn svg { width: 13px; height: 13px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .25s ease; }

/* ---------- Portrait: Overview ---------- */
.ov { position: absolute; inset: 0; padding-top: 54px; background: #121314; display: flex; flex-direction: column; }
.ov .scroll { padding: 0 12px 96px; }
.ov-title { text-align: center; font-size: 17px; font-weight: 700; margin: 4px 0 12px; }
.hero-card { position: relative; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.08); }
.hero-card img { width: 100%; height: 176px; object-fit: cover; object-position: 50% 100%; }
/* the title sits on the dark phone mount at the bottom of the photo, not on the phone screen */
.hero-card .txt { padding: 10px 14px 14px; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.8) 26px, #000 46px); margin-top: -38px; position: relative; }
.hero-card b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.hero-card small { display: block; color: rgba(255,255,255,.65); font-size: 12.5px; margin: 1px 0 11px; }
.startbtn { width: 100%; height: 44px; border-radius: 22px; background: var(--cp); color: #000; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 22px -8px rgba(0,212,106,.7); }
.startbtn svg { width: 18px; height: 18px; }
.pcard { margin-top: 12px; border-radius: 22px; padding: 14px; background: #1C1E20; border: 1px solid rgba(255,255,255,.08); }
.pcard .row { display: flex; align-items: center; gap: 8px; }
.pcard .psign { width: 36px; height: 36px; font-size: 22px; }
.pcard .gpill { height: 32px; padding: 0 10px; font-size: 13px; gap: 4px; }
.pcard .xbtn { width: 24px; height: 24px; }
.pcard .tx { flex: 1; min-width: 0; }
.pcard .tx b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; }
/* the address may take two lines rather than being cut off */
.pcard .tx span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; line-height: 1.3; color: rgba(255,255,255,.7); overflow: hidden; }
.pcard .tx small { display: block; font-size: 11px; color: rgba(255,255,255,.45); }
.trow { margin-top: 12px; display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 12px; border-radius: 13px; font-size: 14px; font-weight: 600; text-align: start; }
.trow .chev { margin-inline-start: auto; width: 7px; height: 7px; border-right: 2px solid rgba(255,255,255,.4); border-top: 2px solid rgba(255,255,255,.4); transform: rotate(45deg); }
.trow svg { width: 17px; height: 17px; }
.trun { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.trun .ic { color: var(--cp); }
.trun .ic svg { width: 22px; height: 22px; display: block; }
.trun .tx { flex: 1; }
.trun .tx b { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.trun .tx small { display: block; font-size: 11px; color: rgba(255,255,255,.55); }
.trun .up { color: orange; font-size: 15px; font-weight: 800; }
.trun .gpill { height: 30px; padding: 0 10px; font-size: 13px; }
.trun .stop { height: 30px; padding: 0 11px; border-radius: 15px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.1); }
.savecard { margin-top: 12px; display: flex; align-items: center; gap: 12px; border-radius: 22px; padding: 14px; background: #1C1E20; border: 1px solid rgba(255,255,255,.08); }
.savecard .tx { flex: 1; }
.savecard b { display: block; font-size: 15px; font-weight: 700; }
.savecard small { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.mini-list { margin-top: 12px; display: grid; gap: 8px; }
.mini { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: #1C1E20; border: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.mini i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.mini i svg { width: 16px; height: 16px; }
.mini b { font-weight: 600; flex: 1; }
.mini small { color: rgba(255,255,255,.5); font-size: 12px; }

/* tab bar (Main, My Car, Speedometer, Settings) */
.ptabs { position: absolute; z-index: 20; left: 14px; right: 14px; bottom: 24px; height: 52px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border-radius: 26px;
  background: rgba(36,38,40,.82); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ptabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 22px; color: #D9D9DE; font-size: 9.5px; font-weight: 600; }
.ptabs button svg { width: 19px; height: 19px; }
.ptabs button[aria-current="page"] { color: var(--cp); background: rgba(255,255,255,.08); }

/* splash between Main and Car Mode */
.splash { position: absolute; inset: 0; z-index: 70; background: #000; display: grid; place-items: center; text-align: center; animation: fadeIn .2s ease; }
.splash .c { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--cp); display: grid; place-items: center; color: #fff; box-shadow: 0 0 40px rgba(0,212,106,.5), 0 0 0 14px rgba(0,212,106,.12), 0 0 0 30px rgba(0,212,106,.06); animation: pop .5s cubic-bezier(.2,.9,.3,1.3); }
.splash .c svg { width: 30px; height: 30px; }
.splash b { display: block; font-size: 22px; font-weight: 800; }
.splash small { color: #8e8e93; font-size: 13px; }

/* bottom sheet (parking timer picker) */
.bsheet { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; animation: fadeIn .2s ease; }
.bsheet .card { width: 100%; background: #1C1E20; border-radius: 28px 28px 0 0; padding: 8px 16px 30px; animation: slideUp .3s cubic-bezier(.2,.9,.3,1); }
.grab { width: 34px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); margin: 0 auto 10px; }
.bsheet .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bsheet .hd b { font-size: 16px; }
.bsheet .hd button { color: var(--cp); font-size: 15px; }
.bsheet p { margin: 0 0 12px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.65); }
.durs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.durs button { height: 44px; padding: 0 4px; border-radius: 13px; font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; white-space: nowrap; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.durs button:active { background: rgba(0,212,106,.25); }

/* Dynamic Island with the parking Live Activity */
.island { transition: width .5s cubic-bezier(.2,.9,.3,1.1), height .4s; }
.island.live { width: 74%; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 6px; }
.island .la { display: none; }
.island.live .la { display: contents; }
.island .la b { color: #fff; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.island.live.up .la b { color: #FFB21A; }
.iscreen.locked .sb { opacity: 0; }
.iscreen.locked .island { z-index: 65; }
.iscreen.locked .island.live { width: 34%; padding: 0; }
.iscreen.locked .island.live .la { display: none; }

/* Lock Screen */
.lock { position: absolute; inset: 0; z-index: 60; background: radial-gradient(120% 80% at 20% 15%, #2F7F86 0%, transparent 60%), radial-gradient(110% 70% at 90% 60%, #1D3E9C 0%, transparent 60%), linear-gradient(160deg, #6FB7B0, #1A2C66 70%); animation: fadeIn .25s ease; cursor: pointer; }
.lock .date { position: absolute; top: 64px; width: 100%; text-align: center; font-size: 17px; font-weight: 600; color: rgba(255,255,255,.85); }
.lock .time { position: absolute; top: 80px; width: 100%; text-align: center; font-size: 86px; font-weight: 700; letter-spacing: -.02em; color: rgba(235,245,255,.92); line-height: 1.1; }
.lock .la-card { position: absolute; left: 10px; right: 10px; bottom: 64px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: rgba(13,18,28,.94); animation: slideUp .45s cubic-bezier(.2,.9,.3,1); }
.lock .la-card .tx { flex: 1; min-width: 0; }
.lock .la-card small { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 600; }
.lock .la-card b { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lock .la-card .bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.14); margin: 6px 0 4px; overflow: hidden; }
.lock .la-card .bar i { display: block; height: 100%; background: var(--cp); border-radius: inherit; }
.lock .la-card em { font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.55); }
.lock .hint { position: absolute; bottom: 26px; width: 100%; text-align: center; font-size: 11px; color: rgba(255,255,255,.7); }

/* ---------- Maps (walking back to the car) ---------- */
.map { position: absolute; inset: 0; overflow: hidden; background: #2E3249; }
.map-inner { position: absolute; left: 0; top: 0; width: 900px; height: 1100px; transition: transform 1.1s cubic-bezier(.45,.05,.25,1); will-change: transform; }
.map-inner > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.me { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #1AA8F9; border: 3px solid #fff; box-shadow: 0 0 0 12px rgba(26,168,249,.18); }
.carpin { position: absolute; transform: translate(-50%, -50%); }
.carpin.hl .psign { animation: pinPop .5s ease; box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 3px #006B3D, inset 0 0 0 4px #fff, 0 0 0 5px rgba(0,212,106,.35); }
@keyframes pinPop { 50% { transform: scale(1.2); } }

/* ---------- Car Mode (landscape, 852×393) ---------- */
.cm { position: absolute; inset: 0; display: flex; flex-direction: row; padding-top: 0; background: #000; color: #fff; font-size: 15px; }
.cm .side { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 20px 0 22px; gap: 11px; background: #111213; }
.cm .side .appic { width: 54px; height: 54px; }
.cm .side .appic[aria-current="true"]::after { inset: -4px; border-radius: 16px; }
.cm .clock { font-size: 15px; font-weight: 700; }
.cm .batt { width: 26px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.5); padding: 1.5px; margin: -6px 0 6px; }
.cm .batt i { display: block; height: 100%; width: 80%; background: #fff; border-radius: 2px; }
.appic { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; position: relative; transition: transform .12s; }
.appic:active { transform: scale(.93); }
.appic svg { width: 30px; height: 30px; }
/* The app's real icons (Maps, Music, Phone, Weather, Messages), same shape as in iOS. */
.appic.ic-img { border-radius: 22.37%; background: none; }
.appic.ic-img img { width: 100%; height: 100%; display: block; border-radius: inherit; -webkit-user-drag: none; user-select: none; }
.appic.ic-img[aria-current="true"]::after { border-radius: 19px; }
.appic[aria-current="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 19px; border: 2.5px solid var(--cp); box-shadow: 0 0 12px rgba(0,212,106,.5); }
.ic-maps { background: linear-gradient(135deg, #5FD06B 0 45%, #F4F4F4 45% 58%, #3D8BFF 58%); color: #fff; }
.ic-maps svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.ic-music { background: linear-gradient(180deg, #FF5E7A, #F1304C); color: #fff; }
.ic-phone { background: linear-gradient(180deg, #5BF16E, #20C43A); color: #fff; }
.cm .round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.cm .round[aria-current="true"] { background: rgba(255,255,255,.24); color: #fff; }
.cm .round svg { width: 20px; height: 20px; }
.cm .side .spacer { flex: 1; }
.cm .main { flex: 1; min-width: 0; position: relative; padding: 14px 36px 24px 0; display: flex; gap: 10px; }

/* home: map + right column */
.cm .mappanel { position: relative; flex: 1; min-width: 0; border-radius: 22px; overflow: hidden; background: #2E3249; }
.cm .rcol { width: 232px; flex: none; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.cm .rcard { border-radius: 20px; background: #1A1C1E; border: 1px solid rgba(255,255,255,.07); padding: 12px; }
.cm .rcard h6 { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.cm .rcard h6 svg { width: 14px; height: 14px; color: var(--cp); }
.np { display: flex; align-items: center; gap: 10px; }
.art { width: 44px; height: 44px; flex: none; border-radius: 10px; background: radial-gradient(circle at 30% 25%, #FFB347, transparent 55%), radial-gradient(circle at 75% 80%, #FF3D7F, transparent 60%), linear-gradient(135deg, #5B2BFF, #1B0E4A); }
.np .tx { flex: 1; min-width: 0; }
.np b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np small { display: block; font-size: 11.5px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playmini { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; flex: none; }
.playmini svg { width: 15px; height: 15px; }
.recent { display: grid; gap: 7px; }
.recent div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.recent i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: #2C2F33; }
.recent small { margin-inline-start: auto; color: rgba(255,255,255,.45); font-size: 11px; }
.weather { background: linear-gradient(160deg, #4F9DF6, #2E6BD6) !important; border: 0 !important; }
.weather .w1 { display: flex; justify-content: space-between; align-items: flex-start; }
.weather b { font-size: 30px; font-weight: 600; line-height: 1; }
.weather small { display: block; font-size: 11.5px; opacity: .85; margin-top: 4px; }
.weather svg { width: 30px; height: 30px; }
.searchbar { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 14px; background: rgba(28,30,36,.9); color: rgba(255,255,255,.55); font-size: 14px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.searchbar svg { width: 16px; height: 16px; }
.searchbar.filled { color: #fff; }
.chips { position: absolute; z-index: 3; top: 56px; left: 10px; display: flex; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 14px; background: rgba(28,30,36,.9); text-align: start; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chip svg { width: 16px; height: 16px; color: #3D8BFF; }
.chip b { display: block; font-size: 13px; }
.chip small { display: block; font-size: 10.5px; color: rgba(255,255,255,.55); }
.routecard { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(28,30,36,.94); animation: slideUp .35s cubic-bezier(.2,.9,.3,1); }
.routecard .tx { flex: 1; min-width: 0; }
.routecard b { display: block; font-size: 16px; }
.routecard small { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); }
.gobtn { height: 40px; padding: 0 18px; border-radius: 20px; background: #3D8BFF; color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.gobtn svg { width: 16px; height: 16px; }
.cm .map-inner { transition: transform .9s cubic-bezier(.45,.05,.25,1); }
.cm .route { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dest { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #FF453A; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.carrow { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #3D8BFF; border: 3px solid #fff; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 10px rgba(61,139,255,.2); }
.carrow svg { width: 15px; height: 15px; }
.banner { position: absolute; z-index: 4; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: rgba(28,30,36,.95); animation: slideDown .35s cubic-bezier(.2,.9,.3,1); }
.banner .turn { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #2F7CF6; color: #fff; }
.banner .turn svg { width: 26px; height: 26px; }
.banner b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.banner span { display: block; font-size: 13.5px; color: rgba(255,255,255,.8); }
.banner .end { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 50%; background: #FF453A; color: #fff; display: grid; place-items: center; }
.banner .end svg { width: 14px; height: 14px; }
.stats { position: absolute; z-index: 4; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.stats div { padding: 7px 10px; border-radius: 12px; background: rgba(28,30,36,.95); text-align: center; min-width: 64px; }
.stats b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.stats small { display: block; font-size: 10px; color: rgba(255,255,255,.55); }
.stats .eta b { color: #4FA3FF; }
.speedo { position: absolute; z-index: 4; left: 10px; bottom: 10px; width: 64px; height: 64px; border-radius: 50%; background: rgba(28,30,36,.95); display: grid; place-content: center; text-align: center; }
.speedo b { font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.speedo small { font-size: 9px; color: rgba(255,255,255,.55); }
@keyframes slideDown { from { transform: translateY(-120%); } }

/* music */
.music { flex: 1; display: flex; gap: 10px; }
.nowcard { width: 300px; flex: none; border-radius: 22px; background: linear-gradient(160deg, #2B1A55, #121014); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; text-align: center; }
.nowcard .art { width: 132px; height: 132px; border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.nowcard b { margin-top: 14px; font-size: 18px; }
.nowcard small { color: rgba(255,255,255,.6); font-size: 13px; }
.prog { width: 100%; height: 4px; border-radius: 3px; background: rgba(255,255,255,.15); margin: 12px 0 4px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.ctrls { display: flex; align-items: center; gap: 26px; margin-top: 8px; }
.ctrls button svg { width: 24px; height: 24px; }
.ctrls .big { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.ctrls .big svg { width: 24px; height: 24px; }
.queue { flex: 1; border-radius: 22px; background: #141516; border: 1px solid rgba(255,255,255,.06); padding: 14px; overflow: hidden; }
.queue h6 { margin: 0 0 8px; font-size: 13px; color: rgba(255,255,255,.6); }
.song { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: start; }
.song.on { background: rgba(255,255,255,.07); }
.song .art { width: 36px; height: 36px; border-radius: 8px; }
.song b { display: block; font-size: 13.5px; }
.song small { display: block; font-size: 11.5px; color: rgba(255,255,255,.5); }
.song .eq { margin-inline-start: auto; color: var(--cp); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.paused .eq i { animation-play-state: paused; }

/* phone */
/* no card behind the list, so it keeps its own distance from the sidebar */
.phone { flex: 1; display: flex; gap: 16px; padding-left: 14px; }
.plist { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ptabs2 { display: flex; gap: 8px; margin-bottom: 8px; }
.ptabs2 button { height: 40px; padding: 0 16px; border-radius: 20px; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.ptabs2 button[aria-pressed="true"] { background: var(--cp); color: #000; }
.contact { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.contact .tx { flex: 1; }
.contact b { display: block; font-size: 14px; }
.contact small { display: block; font-size: 11.5px; color: rgba(255,255,255,.5); }
.callsq { width: 36px; height: 36px; border-radius: 10px; background: var(--cp); color: #000; display: grid; place-items: center; }
.callsq svg { width: 16px; height: 16px; }
.pad { width: 270px; flex: none; display: flex; flex-direction: column; gap: 7px; }
.numfield { height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: 19px; font-weight: 600; letter-spacing: .04em; color: #fff; }
.numfield.ph { color: rgba(255,255,255,.35); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keys button { height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 20px; font-weight: 500; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.keys button small { font-size: 8px; color: rgba(255,255,255,.5); letter-spacing: .1em; margin-top: 2px; }
.keys button:active { background: rgba(255,255,255,.22); }
.keys .call { background: var(--cp); color: #000; }
.keys .call svg { width: 20px; height: 20px; }
.callscreen { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 40%, #13351F, #050605 70%); animation: fadeIn .25s ease; }
.callscreen .av { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; background: #2C3A33; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.callscreen b { display: block; font-size: 24px; }
.callscreen small { color: rgba(255,255,255,.6); font-size: 13px; }
.callscreen .endcall { margin: 22px auto 0; width: 60px; height: 60px; border-radius: 50%; background: #FF453A; color: #fff; display: grid; place-items: center; }
.callscreen .endcall svg { width: 26px; height: 26px; transform: rotate(135deg); }

/* apps menu */
.apps { flex: 1; display: grid; grid-template-columns: repeat(4, 86px); justify-content: center; align-content: center; gap: 18px 34px; }
.apps button { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.85); }
.apps .appic { width: 66px; height: 66px; border-radius: 17px; }
.apps .appic svg { width: 32px; height: 32px; }
.ic-radio { background: linear-gradient(180deg, #FF6B5E, #E0403A); color: #fff; }
.ic-video { background: #fff; color: #FF0000; }
.apps .ic-video svg { width: 50px; height: 50px; }
.ic-weather { background: linear-gradient(180deg, #5AB8FF, #2E7BE0); color: #fff; }
.ic-msg { background: linear-gradient(180deg, #5BF16E, #20C43A); color: #fff; }
.ic-cal { background: #fff; color: #FF3B30; flex-direction: column; }
.ic-cal small { font-size: 9px; font-weight: 700; color: #FF3B30; margin-top: 4px; }
.ic-cal b { font-size: 26px; color: #111; line-height: 1; margin-top: -2px; font-weight: 400; }
.ic-exit { background: #3A3B3E; color: #fff; }

/* radio */
.radio { flex: 1; display: flex; gap: 10px; }
.rplayer { width: 250px; flex: none; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 16px; }
.st-art { width: 96px; height: 96px; border-radius: 22px; display: grid; place-items: center; font-weight: 900; font-size: 30px; color: #fff; }
.rplayer b { font-size: 17px; }
.rplayer small { display: block; color: rgba(255,255,255,.55); font-size: 12.5px; }
.rplay { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.rplay svg { width: 24px; height: 24px; }
.rlist { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.rtabs { display: flex; gap: 8px; margin-bottom: 2px; }
.rtabs span { height: 34px; padding: 0 14px; border-radius: 17px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.1); }
.rtabs span.on { background: #fff; color: #000; }
.station { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); text-align: start; width: 100%; }
.station .st-art { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
.station b { display: block; font-size: 14px; }
.station small { display: block; font-size: 11.5px; color: rgba(255,255,255,.5); }
.station.on b { color: var(--cp); }
.station .eq { margin-inline-start: auto; color: var(--cp); }

/* video (parked) */
.video { flex: 1; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 22px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.video .yt { width: 76px; height: 76px; border-radius: 22.37%; background: #fff; color: #FF0000; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.45); margin-bottom: 14px; }
.video .yt svg { width: 56px; height: 56px; }
.video h5 { margin: 0; font-size: 21px; font-weight: 800; }
.video p { margin: 6px 0 18px; font-size: 13.5px; color: rgba(255,255,255,.6); max-width: 380px; }
.video .vbtns { display: flex; gap: 10px; justify-content: center; }
.video .vbtns button { height: 40px; padding: 0 16px; border-radius: 20px; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.1); }
.video .vbtns button:first-child { background: var(--cp); color: #000; }
.video .note { margin: 18px 0 0; font-size: 12px; color: rgba(255,255,255,.45); }

/* landscape toast sits higher and narrower */
.cm ~ .toast { top: 14px; width: 50%; }

@media (prefers-reduced-motion: reduce) {
  .iphone.turn-in, .iphone.turn-out, .eq i, .spin { animation: none; }
  .cm .map-inner, .map-inner { transition: none; }
}
/* right-to-left */
html[dir="rtl"] .trow .chev { transform: rotate(-135deg); }

/* landscape: no status bar, the island sits on the left edge, toasts are narrower */
.iphone.land .sb { display: none; }
.iphone.land .island { top: 50%; left: calc(12px * var(--k, .676)); transform: translateY(-50%); width: calc(30px * var(--k, .676)); height: calc(118px * var(--k, .676)); border-radius: 99px; }
.iphone.land .home-ind { bottom: 5px; width: 26%; height: 4px; }
.iphone.land .toast { top: 38%; width: 52%; }
.cm { padding-left: 52px; }
/* Sideways, the stage is only as tall as the phone, so the caption sits right under it. */
.phone-stage:has(.iphone.land) { height: auto; min-height: 0; padding-block: 20px; }
