/* Portal home (/) and the extra app pages (The Car Cleaner, The Kitchen Cleaner). Loaded after style.css; keep the ?v=N in the HTML in sync. */

/* ---------- portal ---------- */
.portal-hero { text-align: center; padding: 20px 0 36px; }
.portal-hero h1 { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.05; margin: 0 0 12px; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 26, 92, 0.35), 0 10px 24px rgba(0, 26, 92, 0.35); }
.portal-hero p { margin: 0 auto; max-width: 40ch; font-size: clamp(17px, 2.4vw, 21px); color: #e6effb; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; padding: 8px 0 72px; }
.app-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 26px 26px 24px; border-radius: 32px; color: #fff; text-decoration: none; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), var(--shadow);
  transition: transform 0.14s ease;
}
.app-card:hover { transform: translateY(-3px); }
.app-card.boy { background: linear-gradient(160deg, #0a7efb 0%, #0048c9 100%); }
.app-card.car { background: linear-gradient(160deg, #ffb52e 0%, #ff6a00 100%); color: #3b1a05; border-color: #fff4d1; }
.app-card .app-icon { width: 104px; height: 104px; border-radius: 22.4%; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); margin-bottom: 8px; }
.app-card h2 { margin: 0; font-size: clamp(26px, 3.6vw, 34px); font-weight: 900; line-height: 1.05; }
.app-card p { margin: 0; font-weight: 800; font-size: 17px; max-width: 30ch; }
.app-card.boy p { color: #e6effb; }
.app-card.car p { color: #5a2a08; }
.app-card.kitchen { background: linear-gradient(160deg, #ff8ccc 0%, #e0338c 100%); color: #4a0d33; border-color: #ffe6f3; }
.app-card.kitchen p { color: #5e1844; }
.pill { display: inline-block; margin: 6px 0 4px; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 900; letter-spacing: 0.4px; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.55); }
.app-card.car .pill { background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.9); color: #7a2a00; }
.app-card .go { margin-top: 12px; padding: 10px 20px; border-radius: 999px; font-weight: 900; font-size: 16px; background: #fff; color: var(--ink); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.app-card.car .go { color: #7a2a00; }
.app-card.kitchen .pill { background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.9); color: #8a1f5e; }
.app-card.kitchen .go { color: #8a1f5e; }
.app-card .deco { position: absolute; right: -10px; bottom: -14px; font-size: 120px; line-height: 1; opacity: 0.18; pointer-events: none; }

.portal-note { text-align: center; padding: 0 0 64px; color: #cfe0fb; font-size: 15px; }
.portal-note a { color: #fff; }

@media (max-width: 760px) {
  .apps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* ---------- The Car Cleaner page (sunset orange, from the app icon) ---------- */
body.theme-car {
  --blue-400: #ff9d1f;
  --blue-500: #ff8412;
  --blue-600: #f06a0c;
  --blue-900: #b84407;
  --red-500: #e63946;
  --red-300: #ff5a66;
  --ink: #3b1a05;
  --foam: #fff6e0;
  --shadow: 0 2px 4px rgba(90, 30, 0, 0.28), 0 14px 32px rgba(90, 30, 0, 0.32);
  background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-500) 35%, var(--blue-600) 70%, var(--blue-900) 100%);
  background-attachment: fixed;
}
body.theme-car .hero h1, body.theme-car .strip h2, body.theme-car .screens h2, body.theme-car .portal-hero h1 { text-shadow: 0 3px 0 rgba(120, 40, 0, 0.4), 0 10px 24px rgba(120, 40, 0, 0.35); }
body.theme-car .hero p.lead, body.theme-car .strip p, body.theme-car footer, body.theme-car .note { color: #fff1d6; }
body.theme-car .card p { color: #6b3a14; }
body.theme-car .doc p, body.theme-car .doc li { color: #5a2a08; }
body.theme-car .nav a.btn-sm { background: #1b9e92; }
body.theme-car .nav a.btn-sm:hover { background: #22b8aa; }
body.theme-car .brand img { border-color: #fff4d1; }
.hero .app-hero-icon { width: clamp(150px, 26vw, 220px); height: auto; aspect-ratio: 1; border-radius: 22.4%; border: 5px solid #fff4d1; box-shadow: 0 6px 12px rgba(90, 30, 0, 0.35), 0 24px 48px rgba(90, 30, 0, 0.4); margin: 4px 0 22px; }
.soon-badge { display: inline-block; padding: 14px 28px; border-radius: 999px; background: #ffe066; color: #3b1a05; font-weight: 900; font-size: 22px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), var(--shadow); }
body.theme-car .region { background: rgba(255, 224, 102, 0.22); border-color: #ffe066; }
body.theme-car .region strong { color: #ffe066; }

.lineup { padding: 0 0 72px; text-align: center; }
.lineup h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; text-shadow: 0 3px 0 rgba(120, 40, 0, 0.4); }
.lineup > p { margin: 0 auto 24px; max-width: 46ch; color: #fff1d6; }
.cars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.cars li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px 14px; border-radius: 22px; background: var(--foam); color: var(--ink); box-shadow: inset 0 2px 0 #fff, var(--shadow); font-weight: 900; font-size: 15px; line-height: 1.2; }
.cars li .e { font-size: 34px; line-height: 1.1; }
.cars li small { font-weight: 800; font-size: 12px; color: #8a5a2a; }
@media (max-width: 900px) { .cars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .cars { grid-template-columns: repeat(2, 1fr); } }

/* ---------- The Kitchen Cleaner page (candy pink, from the app icon) ---------- */
body.theme-kitchen {
  --blue-400: #ff9ccf;
  --blue-500: #ff4da6;
  --blue-600: #e0338c;
  --blue-900: #8a1f5e;
  --red-500: #7b4bd6;
  --red-300: #9a72ee;
  --ink: #3a1d4d;
  --foam: #fff0f8;
  --shadow: 0 2px 4px rgba(90, 10, 60, 0.28), 0 14px 32px rgba(90, 10, 60, 0.32);
  background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-500) 35%, var(--blue-600) 70%, var(--blue-900) 100%);
  background-attachment: fixed;
}
body.theme-kitchen .hero h1, body.theme-kitchen .strip h2, body.theme-kitchen .screens h2, body.theme-kitchen .lineup h2 { text-shadow: 0 3px 0 rgba(110, 10, 70, 0.4), 0 10px 24px rgba(110, 10, 70, 0.35); }
body.theme-kitchen .hero p.lead, body.theme-kitchen .strip p, body.theme-kitchen footer, body.theme-kitchen .note, body.theme-kitchen .lineup > p { color: #ffe6f3; }
body.theme-kitchen .card p { color: #6b2a55; }
body.theme-kitchen .doc p, body.theme-kitchen .doc li { color: #5e1844; }
body.theme-kitchen .nav a.btn-sm { background: #7b4bd6; }
body.theme-kitchen .nav a.btn-sm:hover { background: #9266e8; }
body.theme-kitchen .brand img { border-color: #ffe6f3; }
body.theme-kitchen .hero .app-hero-icon { border-color: #ffe6f3; box-shadow: 0 6px 12px rgba(90, 10, 60, 0.35), 0 24px 48px rgba(90, 10, 60, 0.4); }
body.theme-kitchen .cars li small { color: #8a4a72; }
.cars li img { width: 84px; height: 84px; border-radius: 20px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22); margin-bottom: 6px; }
