:root {
  --bg: #f4f5fa; --surface: #ffffff; --text: #14181f; --muted: #5b6270; --hairline: rgba(20,24,31,.1); --brand: #1f4fb8;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  /* panel colours, set per content by body[data-theme] */
  --a: #3b5792; --b: #1e2b50;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1118; --surface: #1a1f2b; --text: #f3f5fa; --muted: #9aa3b5; --hairline: rgba(255,255,255,.12); --brand: #7fa2f0; }
}
body[data-theme="blue"]   { --a: #3b5792; --b: #1e2b50; }
body[data-theme="pink"]   { --a: #ac185a; --b: #861340; }
body[data-theme="green"]  { --a: #2f6b4d; --b: #173f2d; }
body[data-theme="purple"] { --a: #6a47a3; --b: #3b2466; }
body[data-theme="red"]    { --a: #ce3626; --b: #801f17; }
body[data-theme="teal"]   { --a: #2f7f86; --b: #1a4a52; }
body[data-theme="slate"]  { --a: #5a6fa8; --b: #34437a; }

* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--hairline); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.navr .btn { white-space: nowrap; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; min-height: 50px; border-radius: 999px; font-weight: 600; font-size: 16px; background: var(--text); color: var(--bg); transition: transform .2s; }
.btn:hover { transform: scale(1.03); }
.btn.small { padding: 9px 18px; min-height: 0; font-size: 14px; }

.cpanel.wip .availability { font-weight: 600; opacity: .9; }
main { padding-top: 20px; padding-bottom: 56px; }
.cpanel { position: relative; overflow: hidden; border-radius: 40px; color: #fff; min-height: 520px; padding: 56px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; background: linear-gradient(150deg, var(--a), var(--b)); }
.ctext { position: relative; z-index: 1; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; opacity: .75; margin-bottom: 14px; }
h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; margin-bottom: 18px; overflow-wrap: anywhere; }
.description { font-size: 19px; opacity: .88; margin-bottom: 28px; max-width: 420px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cpanel .btn.primary { background: #fff; color: var(--b); }
.cpanel .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.actions [hidden] { display: none; }
.availability, .hint { font-size: 14px; opacity: .78; margin-top: 18px; max-width: 420px; }
.hint { font-size: 13px; margin-top: 8px; }

.cart { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 320px; }
.cart img { display: block; max-width: 100%; max-height: 430px; object-fit: contain; }
.cart img.tile { width: min(360px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 36px; transform: rotate(3deg); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); }
.cart img.app-icon { width: 180px; height: 180px; border-radius: 40px; box-shadow: 0 24px 50px -22px rgba(0,0,0,.5); }

footer { padding: 24px 0 56px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--hairline); }
footer .wrap { display: flex; justify-content: center; gap: 14px; }
footer a { text-underline-offset: 3px; text-decoration: underline; }

@media (max-width: 820px) {
  .cpanel { grid-template-columns: 1fr; padding: 36px 24px; gap: 24px; min-height: 0; }
  .cart { min-height: 0; order: -1; }
  .cart img { max-height: 260px; }
  .cart img.tile { width: min(240px, 70%); }
  .cart img.app-icon { width: 120px; height: 120px; border-radius: 28px; }
}
