/* Same language as the shared Eurathos menu (app-switcher/apps.css): system
   font, frosted glass, hairlines, blue accent and the gold mark. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --glass: rgba(250, 250, 252, .72);
  --card: rgba(255, 255, 255, .62);
  --hairline: rgba(0, 0, 0, .08);
  --gold: linear-gradient(160deg, #e9c45a, #b8860b);
  --danger: #d70015;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.45 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(0, 113, 227, .16), transparent 60%),
    radial-gradient(800px 600px at 110% 10%, rgba(233, 196, 90, .22), transparent 55%),
    linear-gradient(180deg, #f5f5f7, #e8e8ed);
  background-attachment: fixed;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--accent); }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px); background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 -.5px 0 var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.logo { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.account { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.who { color: var(--muted); }

main { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 5vw, 56px) clamp(16px, 4vw, 40px); }
.error { padding: 12px 16px; border-radius: 14px; background: rgba(215, 0, 21, .08); color: var(--danger); }

.primary, .ghost, .actions button {
  font: 600 15px/1 var(--font); border: 0; cursor: pointer; text-decoration: none;
}
.primary {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 980px;
  background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(0, 113, 227, .7);
}
.primary:hover { background: #0077ed; }
.ghost { padding: 7px 12px; border-radius: 980px; background: rgba(0, 0, 0, .05); color: var(--ink); font-size: 13px; }
:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }

.hero { max-width: 760px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin: 0 0 28px; }
.points { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.points li, .card {
  padding: 18px; border-radius: 22px; background: var(--card);
  box-shadow: inset 0 0 0 .5px var(--hairline), 0 18px 40px -24px rgba(15, 23, 42, .35);
}
.points strong { display: block; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: 14px; }

.stage { display: grid; grid-template-columns: minmax(0, auto) minmax(260px, 360px); gap: clamp(24px, 5vw, 64px); align-items: start; justify-content: center; }
.device { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  position: relative; height: min(78vh, 820px); aspect-ratio: 1080 / 2400; max-width: 92vw;
  border-radius: 46px; padding: 12px; background: #111114; overflow: hidden;
  box-shadow: inset 0 0 0 2px #2a2a30, 0 0 0 1px rgba(0, 0, 0, .2), 0 40px 80px -30px rgba(15, 23, 42, .55);
}
.phone:fullscreen { height: 100vh; border-radius: 0; padding: 0; margin: auto; }
#screen {
  display: block; width: 100%; height: 100%; border-radius: 34px; background: #000;
  touch-action: none; cursor: pointer; outline: none;
}
.phone:fullscreen #screen { border-radius: 0; object-fit: contain; }
.overlay {
  position: absolute; inset: 12px; border-radius: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 28px; text-align: center; color: #f5f5f7;
  background: radial-gradient(120% 70% at 50% 0%, rgba(0, 113, 227, .35), transparent 60%), #0b0b0e;
}
.overlay p { margin: 0; max-width: 260px; color: rgba(245, 245, 247, .82); }
.mark { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 40px rgba(233, 196, 90, .45); }
.overlay.busy .mark { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.86); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .overlay.busy .mark { animation: none; } }

.navbar {
  display: flex; gap: 6px; padding: 6px; border-radius: 980px; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 0 0 .5px var(--hairline), 0 10px 30px -16px rgba(15, 23, 42, .4);
}
.navbar button {
  width: 52px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 980px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.navbar button:hover { background: rgba(0, 0, 0, .06); }

.side h1 { font-size: 40px; letter-spacing: -.03em; margin: 4px 0 10px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.actions { display: grid; gap: 8px; margin: 22px 0; }
.actions button {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--card); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 .5px var(--hairline);
}
.actions button:hover { background: rgba(255, 255, 255, .9); }
.actions .danger { color: var(--danger); }
.card p { margin: 6px 0 0; }

@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; }
  .phone { height: auto; width: min(100%, 420px); }
}
