/* islo. — website
   The page is styled as a Mac display: a menu bar along the top and a live
   notch at its centre that behaves like the app. */

:root {
  --bg: #050507;
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.64);
  --faint: rgba(235, 235, 245, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --card: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));

  --accent: #458cff;
  --accent-rgb: 69, 140, 255;
  --tone: 0.22;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;

  --spring: cubic-bezier(0.3, 1.32, 0.42, 1);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --menubar: 34px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #fff 0%, var(--accent) 55%, #fff 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------------------------------------------------------------- Menu bar */

.menubar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--menubar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(14, 14, 18, 0.58);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.menubar-side { display: flex; align-items: center; gap: 18px; }
.menubar-side.right { gap: 12px; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 6px; }

.menu-links { display: flex; gap: 16px; }
.menu-links a { color: var(--muted); transition: color 0.2s; }
.menu-links a:hover { color: var(--text); }

.lang {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.lang button {
  border: 0;
  background: transparent;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: #000; }

.menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  transition: filter 0.2s;
}
.menu-cta:hover { filter: brightness(1.12); }
.menu-cta svg { width: 13px; height: 13px; }

.menu-clock { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

/* --------------------------------------------------------------- Site notch */

.site-notch {
  --w: 186px;
  --h: 32px;
  --r: 11px;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  width: min(var(--w), calc(100vw - 24px));
  height: var(--h);
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 var(--r) var(--r);
  cursor: pointer;
  transition:
    width 0.62s var(--spring),
    height 0.62s var(--spring),
    border-radius 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

/* Concave fillets where the notch meets the top edge, like the hardware. */
.site-notch::before,
.site-notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 9px;
  pointer-events: none;
}
.site-notch::before { left: -9px; background: radial-gradient(circle at 0 100%, transparent 8.5px, #000 9px); }
.site-notch::after { right: -9px; background: radial-gradient(circle at 100% 100%, transparent 8.5px, #000 9px); }

.site-notch[data-state="music"] { --w: 292px; }
.site-notch[data-state="volume"] { --w: 420px; }
.site-notch[data-state="theme"],
.site-notch[data-state="ready"] { --w: 404px; }
.site-notch[data-state="countdown"],
.site-notch[data-state="privacy"],
.site-notch[data-state="agentwork"],
.site-notch[data-state="download"] { --w: 292px; }
.site-notch[data-state="timesup"],
.site-notch[data-state="charging"] { --w: 404px; }
.site-notch[data-state="meeting"],
.site-notch[data-state="airpods"],
.site-notch[data-state="agentdone"],
.site-notch[data-state="downloaded"] { --w: 500px; }
.site-notch[data-state="agent"] { --w: 480px; --h: 126px; --r: 26px; }
.site-notch[data-state="notification"] { --w: 470px; --h: 84px; --r: 22px; }
.site-notch[data-state="screenshot"] { --w: 480px; --h: 128px; --r: 26px; }
.site-notch[data-state="drop"] { --w: 312px; --h: 140px; --r: 26px; }
.site-notch[data-state="dash"] { --w: 600px; --h: 236px; --r: 28px; cursor: default; }

/* The halo from the app's Command Echo: light outside the silhouette. */
.site-notch[data-state="volume"],
.site-notch[data-state="theme"],
.site-notch[data-state="ready"],
.site-notch[data-state="timesup"],
.site-notch[data-state="meeting"],
.site-notch[data-state="charging"],
.site-notch[data-state="airpods"],
.site-notch[data-state="notification"],
.site-notch[data-state="drop"],
.site-notch[data-state="screenshot"],
.site-notch[data-state="agent"],
.site-notch[data-state="agentdone"],
.site-notch[data-state="downloaded"] {
  box-shadow:
    0 2px 6px rgba(255, 255, 255, 0.55),
    0 6px 26px rgba(255, 255, 255, 0.32),
    0 0 46px rgba(var(--accent-rgb), 0.22);
}

.notch-lens {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3b66, #0b1020 60%);
  box-shadow: 0 0 0 1.5px #070910;
  opacity: 0.85;
}

.nl {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  color: #fff;
}

.site-notch[data-state="music"] .nl-wings,
.site-notch[data-state="volume"] .nl-volume,
.site-notch[data-state="notification"] .nl-notification,
.site-notch[data-state="drop"] .nl-drop,
.site-notch[data-state="theme"] .nl-theme,
.site-notch[data-state="ready"] .nl-ready,
.site-notch[data-state="countdown"] .nl-countdown,
.site-notch[data-state="timesup"] .nl-timesup,
.site-notch[data-state="meeting"] .nl-meeting,
.site-notch[data-state="charging"] .nl-charging,
.site-notch[data-state="airpods"] .nl-airpods,
.site-notch[data-state="privacy"] .nl-privacy,
.site-notch[data-state="screenshot"] .nl-screenshot,
.site-notch[data-state="download"] .nl-download,
.site-notch[data-state="downloaded"] .nl-downloaded,
.site-notch[data-state="agentwork"] .nl-agentwork,
.site-notch[data-state="agent"] .nl-agent,
.site-notch[data-state="agentdone"] .nl-agentdone,
.site-notch[data-state="dash"] .nl-dash {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.16s;
}

/* Wings: artwork on the left, playback wave on the right. */
.nl-wings { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }

.mini-art {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 220, 160, 0.95), transparent 45%),
    linear-gradient(135deg, #ff6a88, #7b5cff 60%, #1b1f3b);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}
.mini-art.big { width: 46px; height: 46px; border-radius: 12px; }

.wave { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; }
.wave i {
  width: 2.6px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 0.9s ease-in-out infinite;
  transform-origin: center;
}
.wave i:nth-child(2) { animation-delay: -0.3s; }
.wave i:nth-child(3) { animation-delay: -0.55s; }
.wave i:nth-child(4) { animation-delay: -0.15s; }
.wave.paused i { animation-play-state: paused; transform: scaleY(0.3); }

@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* Single-row HUDs: icon left, value right, camera in between. */
.nl-volume,
.nl-theme,
.nl-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.nl-icon { width: 17px; height: 17px; }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); }

/* Live states: wings for a running timer or the camera/microphone, and
   single-band HUDs for alerts — content in the wings, camera in between. */
.nl-countdown,
.nl-privacy,
.nl-agentwork,
.nl-download { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.cd-ring { position: relative; width: 21px; height: 21px; flex: none; }
.cd-ring > svg:first-child { width: 100%; height: 100%; transform: rotate(-90deg); }
.cd-bg, .cd-fg { fill: none; stroke-width: 2.6; }
.cd-bg { stroke: rgba(255, 255, 255, 0.16); }
.cd-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 56.55; transition: stroke-dashoffset 0.9s linear; }
.cd-ico { position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; color: var(--accent); }
.cd-time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.nl-timesup,
.nl-meeting,
.nl-charging,
.nl-airpods,
.nl-agentdone,
.nl-downloaded {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nl-lead { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nl-detail { font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.58); white-space: nowrap; }
.ring-bell { color: var(--accent); transform-origin: 50% 0; }
.site-notch[data-state="timesup"] .ring-bell { animation: ring-bell 0.9s ease-in-out 0.25s 2; }
@keyframes ring-bell {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70% { transform: rotate(16deg); }
  20%, 40%, 60%, 80% { transform: rotate(-16deg); }
}

.cal-ico { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: #ad6bff; color: #fff; flex: none; }
.cal-ico svg { width: 12px; height: 12px; }
.two { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.two b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two small { font-size: 9.5px; font-weight: 500; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.join {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 13px;
  border-radius: 999px;
  background: #34c759;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.battery {
  position: relative;
  width: 27px;
  height: 13px;
  padding: 1.7px;
  border: 1.3px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  flex: none;
}
.battery::after { content: ""; position: absolute; right: -4.5px; top: 3px; width: 2px; height: 4.5px; border-radius: 1px; background: rgba(255, 255, 255, 0.6); }
.battery i { display: block; width: 64%; height: 100%; border-radius: 1.6px; background: #34c759; }
.site-notch[data-state="charging"] .battery i { animation: fill-battery 1.2s var(--ease) 0.2s both; }
@keyframes fill-battery { from { width: 4%; } to { width: 64%; } }
.battery .bolt {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  color: #fff;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.7));
  animation: bolt 0.55s ease-in-out infinite alternate;
}
@keyframes bolt { from { transform: scale(0.86); } to { transform: scale(1.18); } }

.levels { display: flex; gap: 10px; font-size: 11px; }
.levels i { font-style: normal; font-size: 9px; color: rgba(255, 255, 255, 0.5); margin-right: 3px; }

.pdots { display: flex; gap: 4px; }
.pdots i { width: 8px; height: 8px; border-radius: 50%; }
.pdots .cam { background: #34c759; box-shadow: 0 0 6px rgba(52, 199, 89, 0.85); }
.pdots .mic { background: #ff9f0a; box-shadow: 0 0 6px rgba(255, 159, 10, 0.85); }
.pname { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* Notification: a band beside the camera, the message underneath. */
.nl-notification { padding: 0 22px; display: flex; flex-direction: column; }
.nl-band { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.nl-app { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.nl-time { font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.nl-notification strong { font-size: 13px; margin-top: 4px; }
.nl-body { font-size: 12px; color: rgba(255, 255, 255, 0.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: #fff;
  flex: none;
}
.app-dot svg { width: 64%; height: 64%; }
.app-messages { background: linear-gradient(#5ff777, #13c13a); }
.app-mail { background: linear-gradient(#3fb4ff, #1677ff); }
.app-cal { background: #fff; color: #ff3b30; }

/* Drop zone under the camera. */
.nl-drop { padding: 32px 10px 10px; }
.drop-zone {
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.drop-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.62); }
.drop-title svg { width: 15px; height: 15px; }
.drop-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.drop-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 600;
}
.drop-tile svg { width: 16px; height: 16px; }
.site-notch[data-state="drop"] .drop-tile:first-child { animation: tile-pulse 1.6s ease-in-out infinite 0.6s; }

@keyframes tile-pulse {
  0%, 100% { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
  50% { background: rgba(var(--accent-rgb), 0.28); border-color: rgba(var(--accent-rgb), 0.9); border-style: solid; }
}

/* Downloads: a green ring in the wings, then a "Downloaded" band. */
.dl-ring .cd-fg { stroke: #34c759; transition: stroke-dashoffset 0.09s linear; }
.dl-ring .cd-ico { width: 9px; height: 9px; color: #34c759; }
.dl-done { width: 18px; height: 18px; color: #34c759; flex: none; }
.site-notch[data-state="downloaded"] .dl-done { animation: pop-in 0.5s var(--spring) 0.2s both; }
@keyframes pop-in { from { transform: scale(0.5); opacity: 0; } }
.dl-actions { display: flex; gap: 6px; flex: none; }
.dl-open,
.dl-show {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.dl-open { background: #fff; color: #000; }
.dl-show { padding: 0 11px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* Screenshot: a thumbnail under the notch with four small actions. */
.nl-screenshot { padding: 0 18px; display: flex; flex-direction: column; }
.shot-ico { width: 14px; height: 14px; color: var(--accent); }
.nl-screenshot .nl-time { font-size: 9.5px; font-weight: 500; }
.shot-body { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.shot-thumb { width: 116px; height: 72px; flex: none; border-radius: 11px; }
.site-notch[data-state="screenshot"] .shot-thumb { animation: shot-in 0.55s var(--spring) 0.12s both; }
@keyframes shot-in { from { transform: translateY(-8px) scale(0.84); opacity: 0; } }
.shot-side { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.shot-name { font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-actions { display: flex; gap: 6px; }
.sp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.sp svg { width: 10px; height: 10px; flex: none; }
.sp-danger { color: #ff736b; }

/* An invented screenshot: a window on a wallpaper, with a menu bar. */
.shot-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 224, 170, 0.9), transparent 36%),
    linear-gradient(135deg, #3d6cf0, #7b5cff 52%, #ff6a88);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
}
.shot-art::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 22%;
  width: 58%;
  height: 62%;
  border-radius: 4px;
  background: linear-gradient(#e3e7f1 0 18%, #fbfcff 18%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.shot-art::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7%;
  min-height: 3px;
  background: rgba(255, 255, 255, 0.35);
}

/* Compact dashboard, revealed from the top. */
.nl-dash { padding: 0 22px 18px; display: flex; flex-direction: column; }
.nd-top { height: 38px; display: flex; align-items: center; justify-content: space-between; }
.nd-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
}
.nd-pill svg { width: 12px; height: 12px; }
.nd-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.nd-close svg { width: 12px; height: 12px; }
.nd-body { flex: 1; display: grid; grid-template-columns: 1fr 170px; gap: 12px; margin-top: 8px; }
.nd-card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
}
.nd-media { display: flex; align-items: center; gap: 12px; }
.nd-track { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.nd-track strong { font-size: 14px; color: #fff; }
.nd-status { display: flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.11em; color: var(--accent); }
.nd-weather { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: #fff; }
.nd-weather svg { width: 13px; height: 13px; }
.nd-weather small { font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.nd-progress { margin-top: 8px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.nd-progress i { display: block; height: 100%; width: 40%; background: #fff; border-radius: 3px; animation: progress 9s linear infinite; }
@keyframes progress { from { width: 18%; } to { width: 92%; } }
.nd-play {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  flex: none;
}
.nd-play svg { width: 15px; height: 15px; }
.nd-day { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.nd-day strong { font-size: 22px; color: #fff; }
.eyebrow-red { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: #ff5a52; }

/* -------------------------------------------------------------------- Hero */

main { position: relative; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 90px;
  overflow: hidden;
  isolation: isolate;
}

.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; filter: blur(80px); opacity: 0.85; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 52vw; height: 52vw; left: 6%; top: 18%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), transparent 62%); }
.aurora span:nth-child(2) { width: 44vw; height: 44vw; right: 4%; top: 10%; background: radial-gradient(circle, rgba(255, 96, 140, 0.32), transparent 62%); animation-duration: 23s; }
.aurora span:nth-child(3) { width: 38vw; height: 38vw; left: 34%; top: 46%; background: radial-gradient(circle, rgba(255, 170, 90, 0.22), transparent 62%); animation-duration: 27s; }

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0, transparent 0, var(--bg) 78%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }

h1 {
  margin: 0;
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(52px, 9.2vw, 132px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.055em;
}
h1 em { letter-spacing: -0.02em; }

.lead {
  max-width: 600px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 10px 40px -10px rgba(var(--accent-rgb), 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(var(--accent-rgb), 0.95); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn.big { padding: 17px 28px; font-size: 17px; }

.hero-meta { margin: 18px 0 0; font-size: 13px; color: var(--faint); }

.look-up {
  margin-top: 64px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.look-up:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.7); }
.look-arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; color: var(--accent); font-weight: 700; }
@keyframes nudge { 50% { transform: translateY(-5px); } }

/* --------------------------------------------------------- Section shared */

section { position: relative; padding: 120px 24px; }

.section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.section-head p:not(.eyebrow) { margin: 20px auto 0; max-width: 620px; color: var(--muted); font-size: 18px; }
h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Showcase */

.device {
  max-width: 1140px;
  margin: 64px auto 0;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(180deg, #1c1c22, #0b0b0e);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 70px 140px -50px rgba(var(--accent-rgb), 0.45),
    0 40px 90px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.device-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 23px;
  overflow: hidden;
  background: #000;
}

.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 18% 105%, rgba(var(--accent-rgb), 0.75), transparent 60%),
    radial-gradient(70% 60% at 88% 95%, rgba(255, 128, 92, 0.5), transparent 62%),
    radial-gradient(60% 50% at 60% 60%, rgba(140, 90, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #0b0d16, #05060b 70%);
  transition: background 0.6s;
}

.screen-menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 3.6%;
  min-height: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.2%;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.screen-menubar span { display: flex; align-items: center; gap: 10px; }
.screen-menubar i { width: 34px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.screen-menubar b { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); }
.screen-menubar .sm-right b { width: auto; height: auto; background: none; font-size: clamp(6px, 0.9vw, 11px); color: rgba(255, 255, 255, 0.75); font-weight: 600; white-space: nowrap; }

/* The open notch, drawn at the app's real size and scaled to fit. */
.dash-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 780px;
  height: 244px;
  transform: translateX(-50%) scale(var(--s, 1));
  transform-origin: top center;
}

.dash {
  position: relative;
  width: 780px;
  height: 244px;
  border-radius: 0 0 28px 28px;
  background: #000;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  font-size: 11px;
}
.dash::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), var(--tone)), rgba(var(--accent-rgb), calc(var(--tone) * 0.35)) 45%, transparent 80%);
  -webkit-mask: linear-gradient(180deg, transparent 0 12%, #000 38%);
  mask: linear-gradient(180deg, transparent 0 12%, #000 38%);
  pointer-events: none;
  transition: background 0.4s;
}
.dash::before {
  content: "";
  position: absolute;
  top: 0;
  left: -14px;
  right: -14px;
  height: 14px;
  background:
    radial-gradient(circle at 0 100%, transparent 13.5px, #000 14px) left / 14px 14px no-repeat,
    radial-gradient(circle at 100% 100%, transparent 13.5px, #000 14px) right / 14px 14px no-repeat;
}

.d-nav {
  position: relative;
  z-index: 2;
  height: 40px;
  display: grid;
  grid-template-columns: 1fr 185px 1fr;
  align-items: center;
}
.d-tabs { justify-self: end; display: flex; align-items: center; gap: 4px; padding-right: 12px; }
.d-housing { height: 100%; }
.d-actions { justify-self: start; display: flex; gap: 8px; padding-left: 12px; }

.d-tab {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 27px;
  min-width: 27px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), color 0.2s;
}
.d-tab svg { width: 13px; height: 13px; flex: none; }
.d-tab span { max-width: 0; margin-left: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.25s; }
.d-tab em { margin-left: 4px; font-family: var(--sans); font-style: normal; font-size: 9px; font-weight: 700; color: var(--accent); background: none; -webkit-background-clip: border-box; background-clip: border-box; padding: 0; }
.d-tab:hover { color: #fff; }
.d-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.16); color: #fff; padding: 0 10px; }
.d-tab[aria-selected="true"] span { max-width: 110px; margin-left: 5px; opacity: 1; }
/* Like the app: when the selected tab's name doesn't fit, icons only. */
.d-tabs.icons-only .d-tab[aria-selected="true"] { padding: 0 7px; }
.d-tabs.icons-only .d-tab[aria-selected="true"] span { max-width: 0; margin-left: 0; opacity: 0; }

.d-round, .mini-round, .t-round {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.8);
}
.d-round svg, .mini-round svg { width: 12px; height: 12px; }
.mini-round.solid { background: #fff; color: #000; }

.d-pane {
  position: absolute;
  z-index: 1;
  inset: 48px 26px 16px;
  display: none;
}
.dash[data-tab="home"] [data-pane="home"],
.dash[data-tab="agents"] [data-pane="agents"],
.dash[data-tab="notifications"] [data-pane="notifications"],
.dash[data-tab="calendar"] [data-pane="calendar"],
.dash[data-tab="timer"] [data-pane="timer"],
.dash[data-tab="shelf"] [data-pane="shelf"],
.dash[data-tab="clipboard"] [data-pane="clipboard"],
.dash[data-tab="shortcuts"] [data-pane="shortcuts"] { display: block; animation: pane-in 0.45s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }

.d-row { display: flex; gap: 14px; height: 100%; }
.d-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  padding: 14px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.d-grow { flex: 1; min-width: 0; }
.d-side { width: 238px; gap: 6px; }
.d-summary { width: 180px; }
.d-selected { width: 230px; }

/* Home: the song card */
.art {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 224, 170, 0.95), transparent 42%),
    linear-gradient(135deg, #ff6a88, #7b5cff 60%, #161a35);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}
.art.lg { width: 68px; height: 68px; border-radius: 15px; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2), 0 6px 16px rgba(0, 0, 0, 0.45); }

/* A soft wash of the album art behind the card. */
.d-media::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 106, 136, 0.55), transparent 48%),
    radial-gradient(circle at 72% 72%, rgba(123, 92, 255, 0.5), transparent 52%);
  filter: blur(34px);
  opacity: 0.5;
  pointer-events: none;
}
.d-media > * { position: relative; }

.m-head { display: flex; align-items: center; gap: 14px; height: 68px; flex: none; }
.m-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-status { display: flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.11em; color: var(--accent); }
.wave.tiny { height: 9px; gap: 1.5px; }
.wave.tiny i { width: 1.8px; }
.m-meta strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-meta > span { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.58); }
.m-badges { align-self: flex-start; display: flex; gap: 6px; }
.q-btn {
  width: 30px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.q-btn svg { width: 11px; height: 11px; }
.q-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.src-cap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9.5px;
  font-weight: 600;
}
.src-cap svg { width: 9px; height: 9px; }

.m-middle { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.thin { position: relative; display: block; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.thin i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: 3px; background: rgba(255, 255, 255, 0.92); transition: width 1s linear; }
.scrub-times { display: flex; justify-content: space-between; margin-top: 5px; font-size: 9.5px; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }

.m-lyrics { display: none; flex-direction: column; gap: 3px; height: 38px; overflow: hidden; }
.m-lyrics b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-lyrics small { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, 0.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-lyrics.swap b { animation: lyric-in 0.35s var(--ease); }
.m-lyrics.swap small { animation: lyric-fade 0.35s var(--ease); }
@keyframes lyric-in { from { transform: translateY(12px); opacity: 0; } }
@keyframes lyric-fade { from { opacity: 0; } }
.d-media.show-lyrics .m-progress { display: none; }
.d-media.show-lyrics .m-lyrics { display: flex; }

.m-controls { display: flex; align-items: center; gap: 8px; height: 34px; flex: none; }
.m-controls svg { width: 13px; height: 13px; color: rgba(255, 255, 255, 0.88); }
.m-controls .c-mode { width: 11px; height: 11px; margin: 0 4px; color: rgba(255, 255, 255, 0.62); }
.m-controls .c-mode.on { color: var(--accent); }
.m-controls .c-skip { margin: 0 3px; }
.c-play { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; flex: none; }
.c-play svg { width: 13px; height: 13px; color: #000; }
.m-flex { flex: 1; }
.out-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  flex: none;
}
.out-btn:hover { background: rgba(255, 255, 255, 0.16); }
.out-btn svg { width: 12px; height: 12px; }
.m-controls .c-vol { width: 11px; height: 11px; color: rgba(255, 255, 255, 0.6); }
.thin.vol { width: 100px; flex: none; }

.m-outputs { display: none; align-items: center; gap: 6px; height: 34px; flex: none; }
.d-media.show-outputs .m-controls { display: none; }
.d-media.show-outputs .m-outputs { display: flex; animation: pane-in 0.3s var(--ease); }
.out-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.out-chip svg { width: 11px; height: 11px; flex: none; }
.out-chip.on { background: rgba(var(--accent-rgb), 0.16); border-color: rgba(var(--accent-rgb), 0.55); color: var(--accent); }
.out-chip.on::after { content: "✓"; font-size: 9px; }
.out-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  flex: none;
}
.out-close svg { width: 11px; height: 11px; }

/* Home: the day, the weather, and the next events */
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.wx { display: inline-flex; align-items: center; gap: 4px; }
.wx svg { width: 13px; height: 13px; }
.wx b { font-size: 11px; font-variant-numeric: tabular-nums; }
.wx small { font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.side-head { display: flex; align-items: baseline; justify-content: space-between; }
.side-head strong { font-size: 20px; }
.side-head span { font-size: 13px; color: rgba(255, 255, 255, 0.58); font-weight: 600; font-variant-numeric: tabular-nums; }
.ev {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 39px;
  min-width: 0;
  padding: 0 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
}
.ev-bar { width: 3.5px; height: 25px; border-radius: 3px; background: var(--c); flex: none; }
.ev-purple { --c: #ad6bff; }
.ev-orange { --c: #ff9433; }
.ev > div { flex: 1; min-width: 0; }
.ev b { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev small { display: block; font-size: 8px; color: rgba(255, 255, 255, 0.48); white-space: nowrap; }
.ev .join { height: 20px; padding: 0 9px; font-size: 9px; }
.ev-chev { width: 9px; height: 9px; color: rgba(255, 255, 255, 0.3); flex: none; }
.summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 39px;
  padding: 0 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
}
.summary b { display: block; font-size: 10px; }
.summary small { display: block; font-size: 8px; color: rgba(255, 255, 255, 0.5); }
.s-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--accent-rgb), 0.16); color: var(--accent); flex: none; }
.s-icon svg { width: 12px; height: 12px; }
.s-label { font-size: 9px; color: rgba(255, 255, 255, 0.42); }

/* Notifications, shelf, clipboard */
.sum-head { display: flex; align-items: flex-start; justify-content: space-between; }
.sum-head small, .d-summary > small.muted, .d-selected small { font-size: 10px; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.big-num { margin-top: auto; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.muted { color: rgba(255, 255, 255, 0.55); font-size: 10px; }
.muted.strong { color: rgba(255, 255, 255, 0.65); font-weight: 500; }
.hairline { height: 0.5px; background: rgba(255, 255, 255, 0.12); margin: 8px 0; }

.chips { display: flex; gap: 6px; flex-wrap: nowrap; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.chip.on { background: #fff; border-color: #fff; color: #000; }
.chip.accent { background: rgba(var(--accent-rgb), 0.16); border-color: transparent; color: var(--accent); }

.list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.row .app-dot { width: 30px; height: 30px; border-radius: 8px; }
.row b { display: block; font-size: 11px; }
.row b i { font-style: normal; font-weight: 400; font-size: 9px; color: rgba(255, 255, 255, 0.4); margin-left: 4px; }
.row span { font-size: 10px; color: rgba(255, 255, 255, 0.72); }

.day-num { font-size: 50px; font-weight: 700; line-height: 1; margin-top: 4px; letter-spacing: -0.03em; }
.cal-time { margin-top: auto; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.85); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.week span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.week span b { font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.week span.today { background: var(--accent); color: #fff; }
.week span.today b { color: #fff; }
.summary-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }

.ring { position: relative; width: 126px; height: 126px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgba(255, 255, 255, 0.08); }
.ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 326;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6));
  transition: stroke-dashoffset 0.5s linear;
}

/* Timer: a watch dial; in Timer mode it turns like a kitchen timer. */
.timer2 { flex-direction: row; align-items: center; gap: 20px; }
.dial { position: relative; width: 138px; height: 138px; flex: none; touch-action: none; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.ticks line { stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; stroke-linecap: round; }
.ticks line.major { stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; }
.dial-bg, .dial-fg { fill: none; stroke-width: 9; }
.dial-bg { stroke: rgba(255, 255, 255, 0.08); }
.dial-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.55));
  transition: stroke-dashoffset 0.3s linear;
}
.dial-head { fill: #fff; transition: opacity 0.2s; }
.dial-label { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; pointer-events: none; }
.dial-label strong { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dial-label small { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.dial-label small i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.timer2.running .dial-label small i { background: var(--accent); }
.dial-hint { display: none; font-size: 8.5px; font-weight: 500; color: rgba(255, 255, 255, 0.35); }
.timer2[data-mode="timer"]:not(.running) .dial-hint { display: block; }
.timer2[data-mode="timer"]:not(.running) .dial { cursor: grab; }
.timer2[data-mode="timer"]:not(.running) .dial:active { cursor: grabbing; }

.t-side { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); align-self: flex-start; }
.seg button { border: 0; background: transparent; padding: 5px 13px; border-radius: 999px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.65); cursor: pointer; transition: background 0.25s var(--ease), color 0.2s; }
.seg button.on { background: #fff; color: #000; }
.t-edit { display: flex; align-items: center; gap: 8px; }
.timer2[data-mode="timer"] .t-edit-pomo,
.timer2[data-mode="pomodoro"] .t-edit-timer { display: none; }
.t-lbl { font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.t-lbl + .stepper { margin-right: 4px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.stepper button { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); cursor: pointer; }
.stepper button svg { width: 9.5px; height: 9.5px; }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper b { min-width: 50px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.presets { display: flex; gap: 5px; }
.presets button { min-width: 34px; height: 24px; padding: 0 4px; border-radius: 999px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.7); font-size: 10px; font-weight: 600; cursor: pointer; }
.presets button.on { background: rgba(var(--accent-rgb), 0.16); border-color: rgba(var(--accent-rgb), 0.6); color: var(--accent); }
.timer2.running .stepper,
.timer2.running .presets { opacity: 0.45; pointer-events: none; }
.timer-controls { display: flex; align-items: center; gap: 10px; }
.t-play { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #000; cursor: pointer; }
.t-play svg { width: 16px; height: 16px; }
.t-round { width: 32px; height: 32px; padding: 0; border: 0; cursor: pointer; }
.t-round svg { width: 13px; height: 13px; }
.timer2[data-mode="timer"] .js-timer-skip { display: none; }

.today-card { width: 200px; flex: none; }
.today-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.today-num { margin-top: 2px; font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sessions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.sessions i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s; }
.sessions i.on { background: var(--accent); }
.today-card .js-sessions { margin-top: 5px; }
.info-rows { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.info-row { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.55); }
.info-row[hidden] { display: none; }
.info-row b { margin-left: auto; color: #fff; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ir-ico { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--accent-rgb), 0.13); color: var(--accent); flex: none; }
.ir-ico svg { width: 9px; height: 9px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); min-width: 0; }
.tile b { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { font-size: 8px; color: rgba(255, 255, 255, 0.45); }
.thumb {
  height: 52px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.t-photo { background: radial-gradient(circle at 30% 30%, #ffe08a, transparent 40%), linear-gradient(160deg, #5bd18b, #1f6f45 60%, #0e3a26); }
.t-pdf { background: linear-gradient(135deg, #ffd3c4, #f5a28e); color: #a33a24; }
.t-wave { background: radial-gradient(120% 80% at 50% 120%, #b8d4ff, transparent 60%), linear-gradient(180deg, #2a3e66, #0c1730); }
.t-md { background: linear-gradient(135deg, #eef1f7, #c7cfdf); color: #2b3448; }

.sel-text { font-size: 15px; margin-top: 10px; word-break: break-all; }
.d-selected .muted { margin-top: auto; }
.clips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.clip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 66px;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid transparent;
}
.clip.selected { border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.clip small { position: absolute; top: 9px; right: 9px; font-size: 8px; color: rgba(255, 255, 255, 0.4); }
.clip b { margin-top: auto; font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, 0.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.clip-icon svg { width: 10px; height: 10px; }

/* Shortcuts: coloured tiles that run with one click, and an Edit tile. */
.sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sc-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 56px;
  padding: 0 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.sc-tile:hover,
.sc-tile.running { background: rgba(255, 255, 255, 0.12); }
.sc-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sc-tile b {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-ico {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2)), var(--tint, #5e5ce6);
  color: #fff;
}
.sc-ico > * { grid-area: 1 / 1; }
.sc-ico svg { width: 12px; height: 12px; transition: opacity 0.2s, transform 0.25s var(--spring); }
.sc-spin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sc-ico .sc-check { opacity: 0; transform: scale(0.6); }
.sc-tile.running .sc-bolt,
.sc-tile.done .sc-bolt { opacity: 0; transform: scale(0.6); }
.sc-tile.running .sc-spin { opacity: 1; }
.sc-tile.done .sc-check { opacity: 1; transform: none; }
.sc-edit { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); cursor: default; }
.sc-edit .sc-ico { background: none; border: 1px dashed rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.7); }
.sc-edit b { color: rgba(255, 255, 255, 0.7); }

.tab-caption {
  max-width: 620px;
  margin: 34px auto 0;
  min-height: 3.2em;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

/* ----------------------------------------------------------------- Moments */

.moment-grid {
  max-width: 1140px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.moment, .b-card, .step, .wn-card, details {
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}

.moment { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.moment p { margin: 0; color: var(--muted); font-size: 15px; }
.mini-stage {
  position: relative;
  height: 170px;
  margin-bottom: 8px;
  border-radius: 20px;
  background:
    radial-gradient(90% 90% at 50% 120%, rgba(var(--accent-rgb), 0.35), transparent 70%),
    #0b0c12;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.mini-notch {
  position: relative;
  height: 32px;
  margin-top: 0;
  background: #000;
  border-radius: 0 0 14px 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5), 0 6px 22px rgba(255, 255, 255, 0.28);
}
.mini-notch svg { width: 15px; height: 15px; }
.mn-volume { width: 78%; animation: breathe 3.2s var(--ease) infinite; font-variant-numeric: tabular-nums; }
@keyframes breathe { 0%, 100% { width: 46%; box-shadow: none; } 18%, 82% { width: 78%; box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5), 0 6px 22px rgba(255, 255, 255, 0.28); } }
.mn-volume svg, .mn-volume .mn-pct { animation: fade-hud 3.2s infinite; }
@keyframes fade-hud { 0%, 12%, 88%, 100% { opacity: 0; } 22%, 78% { opacity: 1; } }

.mn-notif {
  width: 84%;
  height: 74px;
  border-radius: 0 0 22px 22px;
  justify-content: flex-start;
  gap: 10px;
  padding: 28px 16px 0;
  animation: drop-in 4s var(--ease) infinite;
}
.mn-notif .app-dot { width: 26px; height: 26px; border-radius: 7px; }
.mn-notif b { display: block; font-size: 12px; }
.mn-notif small { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.62); }
@keyframes drop-in {
  0%, 8% { height: 32px; width: 46%; opacity: 1; }
  20%, 80% { height: 74px; width: 84%; }
  92%, 100% { height: 32px; width: 46%; }
}
.mn-notif > * { animation: fade-hud 4s infinite; }

.mn-drop {
  width: 70%;
  height: 112px;
  border-radius: 0 0 24px 24px;
  padding: 34px 12px 12px;
  gap: 8px;
  align-items: stretch;
}
.mn-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
}
.mn-tile:first-child { animation: tile-pulse 2.6s infinite 0.8s; }
.floating-file {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 30px;
  height: 38px;
  margin-left: -50px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #dfe5f2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: carry 2.6s var(--ease) infinite;
}
.floating-file::after { content: ""; position: absolute; inset: 9px 6px auto; height: 14px; background: repeating-linear-gradient(180deg, #b5bfd6 0 2px, transparent 2px 5px); }
@keyframes carry {
  0% { transform: translate(-40px, 30px) rotate(-8deg); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translate(0, -46px) rotate(4deg) scale(0.86); opacity: 1; }
  80%, 100% { transform: translate(0, -56px) scale(0.5); opacity: 0; }
}

.mn-meet {
  width: 86%;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 600;
  animation: breathe-wide 4.4s var(--ease) infinite;
}
.mn-meet > div { flex: 1; min-width: 0; }
.mn-meet b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-meet small { display: block; font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.mn-meet .join { height: 20px; padding: 0 10px; font-size: 10px; }
.mn-meet > * { animation: fade-hud 4.4s infinite; }
@keyframes breathe-wide {
  0%, 100% { width: 46%; box-shadow: none; }
  15%, 85% { width: 86%; box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5), 0 6px 22px rgba(255, 255, 255, 0.28); }
}

.mn-devices { width: 74%; padding: 0; }
.mn-a,
.mn-b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.mn-a { animation: swap-a 6s infinite; }
.mn-b { animation: swap-b 6s infinite; }
.mn-a .battery i { animation: fill-battery 1.2s var(--ease) infinite alternate; }
.mn-levels { display: flex; gap: 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
@keyframes swap-a { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swap-b { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }

.mn-privacy { width: 52%; box-shadow: none; }

.mn-shot {
  width: 86%;
  height: 104px;
  border-radius: 0 0 22px 22px;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 11px;
  padding: 34px 12px 0;
  font-weight: 600;
  animation: shot-drop 4.4s var(--ease) infinite;
}
@keyframes shot-drop {
  0%, 8% { height: 32px; width: 46%; }
  20%, 80% { height: 104px; width: 86%; }
  92%, 100% { height: 32px; width: 46%; }
}
.mn-shot > * { animation: fade-hud 4.4s infinite; }
.mn-thumb { width: 92px; height: 58px; flex: none; border-radius: 9px; }
.mn-shot-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 1px; }
.mn-shot-side small { line-height: 1.3; }
.mn-shot-side small { font-size: 10px; color: rgba(255, 255, 255, 0.62); }
.mn-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.mn-pills i { padding: 2px 8px; line-height: 1.5; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 9.5px; font-style: normal; white-space: nowrap; }
.mn-pills .danger { color: #ff736b; }

.mn-dl { width: 56%; padding: 0; box-shadow: none; transition: width 0.5s var(--ease), box-shadow 0.4s; }
.mn-dl.done { width: 86%; box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5), 0 6px 22px rgba(255, 255, 255, 0.28); }
.mn-dl .mn-a,
.mn-dl .mn-b { animation: none; transition: opacity 0.3s; }
.mn-dl .mn-b { opacity: 0; }
.mn-dl.done .mn-a { opacity: 0; }
.mn-dl.done .mn-b { opacity: 1; transition-delay: 0.2s; }
.mn-dl .cd-ico { width: 9px; height: 9px; }
.mn-dl .mn-pct { font-variant-numeric: tabular-nums; }
.mn-dl-lead { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.mn-dl .dl-done { width: 16px; height: 16px; }
.mn-dl .dl-open { height: 20px; padding: 0 10px; font-size: 10px; }

.mn-sc {
  width: 86%;
  height: 118px;
  border-radius: 0 0 24px 24px;
  padding: 36px 10px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-items: stretch;
  box-shadow: none;
}
.mn-sc-tile { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 8px; border-radius: 11px; background: rgba(255, 255, 255, 0.07); font-size: 10px; }
.mn-sc-tile b { font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-sc-tile i {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2)), var(--tint, #5e5ce6);
}
.mn-sc .mn-sc-tile svg { width: 11px; height: 11px; grid-area: 1 / 1; }
.mn-sc-tile.edit { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
.mn-sc-tile.edit i { background: none; border: 1px dashed rgba(255, 255, 255, 0.3); }
.mn-sc-tile:first-child { animation: sc-run 3.4s infinite; }
.mn-sc-tile:first-child .b { animation: sc-bolt 3.4s infinite; }
.mn-sc-tile:first-child .c { opacity: 0; animation: sc-check 3.4s infinite; }
@keyframes sc-run { 0%, 22%, 82%, 100% { background: rgba(255, 255, 255, 0.07); } 30%, 74% { background: rgba(255, 255, 255, 0.15); } }
@keyframes sc-bolt { 0%, 26%, 84%, 100% { opacity: 1; transform: none; } 34%, 78% { opacity: 0; transform: scale(0.6); } }
@keyframes sc-check { 0%, 34%, 78%, 100% { opacity: 0; transform: scale(0.6); } 42%, 72% { opacity: 1; transform: none; } }

.play-in-notch {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.play-in-notch:hover { background: rgba(var(--accent-rgb), 0.2); }

/* ------------------------------------------------------------------ Themes */

.themes {
  max-width: 1188px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.themes-copy h2 { font-size: clamp(38px, 4.6vw, 64px); }
.themes-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 20px 0 30px; }

.picker { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--c);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c), 0 0 22px var(--c); }
.swatch[aria-checked="true"]::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.swatch.light[aria-checked="true"]::after { color: #000; }

.tones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.tone {
  padding: 8px 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.tone i {
  display: block;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), var(--o)), rgba(var(--accent-rgb), calc(var(--o) * 0.35)) 50%, #000), #000;
}
.tone[aria-checked="true"] { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent); }

.theme-preview { display: flex; justify-content: center; }
.tp-notch {
  position: relative;
  width: min(100%, 520px);
  border-radius: 0 0 30px 30px;
  background: #000;
  padding: 0 22px 20px;
  box-shadow: 0 50px 100px -30px rgba(var(--accent-rgb), 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.tp-notch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), var(--tone)), rgba(var(--accent-rgb), calc(var(--tone) * 0.35)) 45%, transparent 80%);
  -webkit-mask: linear-gradient(180deg, transparent 0 18%, #000 50%);
  mask: linear-gradient(180deg, transparent 0 18%, #000 50%);
  pointer-events: none;
  transition: background 0.4s;
}
.tp-band { position: relative; z-index: 1; height: 46px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.5); }
.tp-ico svg { width: 14px; height: 14px; }
.tp-body { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 150px; gap: 12px; }
.tp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 0.5px solid rgba(255, 255, 255, 0.07);
}
.tp-card div { flex: 1; min-width: 0; }
.tp-card b { display: block; font-size: 15px; }
.tp-card small { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.ring-card { position: relative; justify-content: center; }
.ring-card svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring-card .ring-bg, .ring-card .ring-fg { stroke-width: 9; }
.ring-card .ring-fg { stroke-dasharray: 289; }
.ring-card strong { position: absolute; font-size: 19px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Features */

.bento {
  max-width: 1140px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.b-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.b-card p { margin: 0; color: var(--muted); font-size: 15px; }
.b-wide { grid-column: span 2; }
.b-visual {
  height: 150px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: #0b0c12;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.wings-visual { background: radial-gradient(70% 90% at 50% 0, rgba(var(--accent-rgb), 0.25), transparent 70%), #0b0c12; place-items: start center; }
.housing { display: flex; align-items: center; gap: 0; height: 34px; padding: 0 14px; background: #000; border-radius: 0 0 14px 14px; }
.housing .gap { width: 150px; }
.wave.accent i { background: var(--accent); }
.lyric-lines { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lyric-lines b { font-size: 18px; letter-spacing: -0.01em; }
.lyric-lines small { font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.weather-visual { background: radial-gradient(70% 90% at 30% 10%, rgba(255, 204, 51, 0.2), transparent 70%), #0b0c12; }
.wx-big { display: flex; align-items: center; gap: 12px; }
.wx-big svg { width: 58px; height: 58px; filter: drop-shadow(0 6px 18px rgba(255, 204, 51, 0.35)); }
.wx-big strong { display: block; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.wx-big small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.keys-visual { display: flex; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(70% 90% at 50% 100%, rgba(var(--accent-rgb), 0.22), transparent 70%), #0b0c12; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(#2a2b31, #17181c);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 0 #0a0a0c, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  animation: key-press 2.6s ease-in-out infinite;
}
kbd.wide { min-width: 150px; font-size: 16px; animation-delay: 0.06s; }
@keyframes key-press {
  0%, 68%, 100% { transform: translateY(0); box-shadow: 0 4px 0 #0a0a0c, inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  74%, 86% { transform: translateY(3px); box-shadow: 0 1px 0 #0a0a0c, 0 0 22px rgba(var(--accent-rgb), 0.55); }
}
.ring.small { width: 104px; height: 104px; }
.ring.small svg { transform: rotate(-90deg); }
.ring.small strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.ring.small .ring-fg { stroke-dasharray: 289; animation: ring-run 6s linear infinite; }
@keyframes ring-run { from { stroke-dashoffset: 289; } to { stroke-dashoffset: 0; } }
.clip-visual { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 20px; place-items: initial; }
.clip-visual span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.clip-visual span:first-child { border: 1.5px solid var(--accent); }
.clip-visual svg { width: 13px; height: 13px; color: var(--accent); }
.icon-visual svg { width: 54px; height: 54px; color: var(--accent); filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.7)); }
.shape-visual { background: radial-gradient(70% 90% at 50% 0, rgba(255, 255, 255, 0.08), transparent 70%), #0b0c12; place-items: start center; }
.shape-visual svg { width: min(90%, 420px); margin-top: 0; overflow: visible; }
.shape-path { fill: #000; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 6px 18px rgba(var(--accent-rgb), 0.45)); }
.b-card.visible .shape-path { animation: draw 2.4s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* -------------------------------------------------------------- What's new */

.whatsnew { padding-top: 40px; padding-bottom: 40px; }
.wn-card {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
  background:
    radial-gradient(60% 120% at 0 0, rgba(var(--accent-rgb), 0.18), transparent 70%),
    var(--card);
}
.wn-head { display: flex; flex-direction: column; gap: 18px; }
.wn-version {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(110px, 14vw, 190px);
  line-height: 0.8;
  background: linear-gradient(180deg, #fff, rgba(var(--accent-rgb), 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wn-list li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.wn-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9); transform: translateY(-2px); }
.wn-link { grid-column: 2; color: var(--accent); font-weight: 600; }
.wn-body { display: flex; flex-direction: column; gap: 14px; }
.wn-sub { margin: 18px 0 0; font-size: 12px; color: var(--faint); }
.wn-prev { gap: 9px; }
.wn-prev li { font-size: 14.5px; color: var(--muted); }
.wn-prev li::before { width: 6px; height: 6px; background: rgba(var(--accent-rgb), 0.5); box-shadow: none; }

/* ----------------------------------------------------------------- Install */

.steps {
  max-width: 1140px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step p { margin: 0; color: var(--muted); }
.step-link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.step-link:hover { text-decoration: underline; }
.step-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.cta {
  max-width: 820px;
  margin: 110px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta img { border-radius: 22px; box-shadow: 0 30px 80px -10px rgba(var(--accent-rgb), 0.6); }

/* --------------------------------------------------------------------- FAQ */

.faq { padding-top: 40px; }
.faq-list { max-width: 820px; margin: 24px auto 0; display: grid; gap: 12px; }
details { padding: 0 24px; border-radius: 20px; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }

/* ------------------------------------------------------------------ Footer */

.footer {
  padding: 70px 24px 60px;
  text-align: center;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.footer-brand img { border-radius: 8px; }
.footer p { margin: 10px 0 0; }
.footer a:hover { color: var(--text); }

/* -------------------------------------------------------------- Responsive */

@media (max-width: 980px) {
  .moment-grid, .bento, .steps { grid-template-columns: 1fr 1fr; }
  /* Two columns leave the last card alone; let it take the row. */
  .bento .b-card:last-child,
  .moment-grid .moment:last-child { grid-column: span 2; }
  .themes { grid-template-columns: 1fr; }
  .wn-card { grid-template-columns: 1fr; }
  .wn-link { grid-column: 1; }
}

@media (max-width: 820px) {
  .menu-links { display: none; }
  section { padding: 90px 18px; }
}

@media (max-width: 640px) {
  .moment-grid, .bento, .steps { grid-template-columns: 1fr; }
  .b-wide,
  .bento .b-card:last-child,
  .moment-grid .moment:last-child { grid-column: auto; }
  .moment-wide { flex-direction: column; align-items: stretch; gap: 10px; }
  .moment-wide .mini-stage { width: auto; }
  .menu-clock { display: none; }
  .hero { padding-top: 130px; }
  .tones { grid-template-columns: repeat(2, 1fr); }
  .tp-body { grid-template-columns: 1fr; }
  .ring-card { display: none; }
  .wn-card { padding: 28px; }
  .site-notch[data-state="dash"] { --h: 220px; }
  .nd-body { grid-template-columns: 1fr; }
  .nd-day { display: none; }
  .nl-body { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
}

/* On a phone the menu bar is narrow: icons only, and a smaller notch so it
   never covers the brand or the download button while resting. */
@media (max-width: 640px) {
  .brand span,
  .menu-cta span { display: none; }
  .menu-cta { padding: 6px 8px; }
  .menubar-side.right { gap: 8px; }
  /* Only the language you can switch to, so the wings never cover it. */
  .lang button[aria-pressed="true"] { display: none; }
  .site-notch { --w: 118px; --h: 28px; }
  .site-notch[data-state="music"] { --w: 176px; }
  .site-notch[data-state="volume"],
  .site-notch[data-state="theme"],
  .site-notch[data-state="ready"] { --w: 252px; }
  .site-notch[data-state="notification"] { --w: 346px; }
  .site-notch[data-state="drop"] { --w: 286px; }
  .site-notch[data-state="dash"] { --w: 360px; --h: 214px; }
  .site-notch[data-state="countdown"],
  .site-notch[data-state="privacy"],
  .site-notch[data-state="agentwork"],
  .site-notch[data-state="download"] { --w: 176px; }
  .site-notch[data-state="timesup"],
  .site-notch[data-state="charging"] { --w: 252px; }
  .site-notch[data-state="meeting"],
  .site-notch[data-state="airpods"],
  .site-notch[data-state="agentdone"],
  .site-notch[data-state="downloaded"] { --w: 340px; }
  .site-notch[data-state="agent"] { --w: 346px; --h: 122px; --r: 22px; }
  .nl-agent { padding: 0 12px; }
  .nl-agent .ag-term { display: none; }
  .nl-agentwork, .nl-agentdone { padding: 0 12px; }
  .site-notch[data-state="screenshot"] { --w: 346px; --h: 104px; --r: 22px; }
  .nl-timesup .nl-detail { display: none; }
  .nl-timesup, .nl-meeting, .nl-charging, .nl-airpods, .nl-downloaded { padding: 0 12px; font-size: 12px; }
  .nl-countdown, .nl-privacy, .nl-download { padding: 0 12px; }
  .nl-screenshot { padding: 0 12px; }
  .nl-screenshot .nl-band { height: 28px; }
  .shot-body { gap: 10px; margin-top: 4px; }
  .shot-thumb { width: 84px; height: 54px; border-radius: 9px; }
  .shot-side { gap: 7px; }
  .shot-actions { gap: 5px; }
  .sp { padding: 0 8px; height: 22px; }
  .sp svg { display: none; }
  .levels { gap: 6px; font-size: 10px; }
  .notch-lens { top: 10px; }
  .nl-wings, .nl-volume, .nl-theme, .nl-ready { padding: 0 12px; font-size: 12px; }
}

@media (max-width: 420px) {
  .badge-more { display: none; }
}

@media (max-width: 360px) {
  .shot-thumb { width: 64px; height: 44px; }
  .sp { padding: 0 6px; font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------- First-launch guide card */

.launch-sheet {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(380px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border-radius: 24px;
  background: rgba(16, 16, 20, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px -20px rgba(var(--accent-rgb), 0.45);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.launch-sheet.open { opacity: 1; transform: none; }
.launch-sheet[hidden] { display: none; }
.ls-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  cursor: pointer;
}
.ls-close:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.ls-close svg { width: 12px; height: 12px; }
.ls-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.launch-sheet h3 {
  margin: 6px 0 14px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.ls-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ls-steps li { display: flex; align-items: flex-start; gap: 11px; }
.ls-steps span {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.ls-steps p { margin: 1px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ls-steps b { color: var(--text); font-weight: 600; }
.ls-open { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }
.ls-note { margin: 12px 0 0; font-size: 12px; color: var(--faint); text-align: center; }
@media (max-width: 520px) {
  .launch-sheet { right: 16px; left: 16px; bottom: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-sheet { transition: opacity 0.2s; transform: none; }
}

/* ---------------------------------------------------------------- Agents */

.ag-spark { width: 16px; height: 16px; color: var(--accent); animation: ag-pulse 1.5s ease-in-out infinite; }
@keyframes ag-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.nl-agent { padding: 0 18px; display: flex; flex-direction: column; }
.ag-lock { width: 13px; height: 13px; color: #ff9f0a; }
.ag-cmd {
  display: block;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-cmd b { font-family: var(--sans); font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.6); margin-right: 5px; }
.ag-buttons { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ag-buttons .dl-open,
.ag-deny,
.ag-term { height: 23px; padding: 0 13px; display: inline-flex; align-items: center; border: 0; border-radius: 12px; font: inherit; font-size: 10.5px; font-weight: 700; cursor: default; }
.ag-deny { background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 600; }
.ag-term { padding: 0 8px; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
button.dl-open, button.ag-deny { cursor: pointer; }
.ag-done { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #30d158; color: #000; flex: none; }
.ag-done svg { width: 10px; height: 10px; }
.site-notch[data-state="agentdone"] .ag-done { animation: pop-in 0.5s var(--spring) 0.2s both; }

/* Home's side card: one line for the day, what matters now, four actions. */
.side-line { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.side-line strong { font-size: 12px; }
.side-line .js-time { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.side-line .wx { margin-left: auto; align-self: center; }
.now-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--accent-rgb), 0.16); color: var(--accent); flex: none; }
.now-ico svg { width: 12px; height: 12px; }
.now-ico.wait { background: rgba(255, 159, 10, 0.16); color: #ff9f0a; }
.qa-row { display: flex; gap: 6px; margin-top: auto; }
.qa { flex: 1; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.075); color: rgba(255, 255, 255, 0.8); }
.qa svg { width: 12px; height: 12px; }

/* The Agents tab */
.ag-wait { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 10px; font-weight: 600; color: #ff9f0a; }
.ag-wait i { width: 6px; height: 6px; border-radius: 50%; background: #ff9f0a; }
.ag-wait[hidden], .ag-perm[hidden], .d-tab em[hidden] { display: none; }
.ag-list { display: flex; flex-direction: column; gap: 6px; }
.ag-perm { padding: 9px 10px 10px; border-radius: 12px; background: rgba(255, 159, 10, 0.1); box-shadow: inset 0 0 0 0.8px rgba(255, 159, 10, 0.35); }
.ag-perm-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 10.5px; }
.ag-perm-head svg { width: 11px; height: 11px; color: #ff9f0a; }
.ag-perm .ag-cmd { background: none; padding: 0; }
.ag-row b i { font-style: normal; font-weight: 500; font-size: 9px; color: rgba(255, 255, 255, 0.4); margin-left: 4px; }

/* The Agents card among the moments */
.moment-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 30px; }
.moment-wide .mini-stage { flex: none; width: 52%; height: 190px; margin-bottom: 0; }
.moment-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.moment-copy .eyebrow { margin: 0; }
.mini-notch.mn-agent { width: 82%; height: auto; align-self: flex-start; display: block; padding: 0 14px 12px; border-radius: 0 0 20px 20px; font-weight: 600; }
.mn-agent-head { height: 32px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.mn-agent-head > span { display: flex; align-items: center; gap: 6px; }
.mn-agent-head svg { width: 12px; height: 12px; color: #ff9f0a; }
.mn-agent-head small { font-size: 9.5px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.mn-agent .dl-open { animation: ag-press 3.2s ease-in-out infinite; }
@keyframes ag-press { 0%, 62%, 100% { transform: scale(1); } 70% { transform: scale(0.9); } 78% { transform: scale(1.04); } }

/* Narrow screens: these come last so they win over the rules above. */
@media (max-width: 640px) {
  .moment-wide { flex-direction: column; align-items: stretch; gap: 10px; }
  .moment-wide .mini-stage { width: auto; height: 170px; margin-bottom: 8px; }
  .mini-notch.mn-agent { width: 88%; }
  .nl-agent { padding: 0 12px; }
}
