:root {
  --bg: #000000;
  --card: #0b0b0d;
  --ink: #f5f5f7;
  --muted: #9a9aa3;
  --line: rgba(255, 255, 255, 0.08);
  --violet: #2a2a2f;
  --violet-deep: #000000;
  --night: #0a0a0b;
  --island: #000;
  --green: #34c759;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --notch-h: 34px;
  --spring: cubic-bezier(0.32, 1.25, 0.45, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Barra superior (vidrio) ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.top.scrolled {
  background: rgba(242, 242, 246, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(29, 27, 38, 0.08);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; }
.brand img { width: 24px; height: 24px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; }
.top nav a { text-decoration: none; opacity: 0.8; }
.top nav a:hover { opacity: 1; }
.top .nav-cta {
  opacity: 1; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.top.scrolled .nav-cta { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- La isla (medidas idénticas a la app, en puntos) ---------- */

.island-zone {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 0 24px 24px;
  cursor: pointer;
  transition: transform .55s var(--spring), opacity .35s ease;
}
/* Fuera de la portada: se sube y desaparece, como al guardar la isla. */
.island-zone.tucked { transform: translateX(-50%) translateY(-110%) scale(.85); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .island-zone { transition: opacity .2s ease; } .island-zone.tucked { transform: translateX(-50%); } }
.island-zone:focus-visible { outline: none; }
.island-zone:focus-visible .island { outline: 2px solid #fff; outline-offset: 3px; }

.island {
  /* El notch de una MacBook mide 180 × 32 pt. */
  --notch: 180px;
  --nh: 32px;
  --w: var(--notch);
  --h: var(--nh);
  --r: 10px;
  position: relative;
  width: var(--w);
  height: var(--h);
  max-width: calc(100vw - 16px);
  background: #000;
  color: #fff;
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--body);
  text-align: left;
  transition: width .5s var(--spring), height .5s var(--spring), border-radius .5s var(--spring), box-shadow .4s ease, background .3s ease;
}
/* Orejas cóncavas del notch */
.island-zone::before, .island-zone::after, .mb-island::before, .mb-island::after {
  content: ""; position: absolute; top: 0; width: 10px; height: 10px;
  background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px);
}
.island-zone::before, .mb-island::before { left: 14px; }
.island-zone::after, .mb-island::after { right: 14px; transform: scaleX(-1); }

/* Tamaños de cada estado, igual que IslandLayout.swift */
.island[data-mode="live"]   { --w: calc(var(--notch) + 60px);  --r: 13px; }
.island[data-mode="volume"] { --w: calc(var(--notch) + 157px); --r: 13px; }
.island[data-mode="battery"] { --w: calc(var(--notch) + 157px); --r: 13px; }
.island[data-mode="device"] { --w: calc(var(--notch) + 104px); --r: 13px; }
.island[data-mode="device-detail"] { --w: calc(var(--notch) + 157px); --h: calc(var(--nh) + 84px); --r: 24px; }
.island[data-mode="agent"]  { --w: calc(var(--notch) + 120px); --r: 13px; }
.island[data-mode="alert"]  { --w: calc(var(--notch) + 190px); --r: 13px; }
.island[data-mode="ask"]    { --w: calc(var(--notch) + 190px); --r: 13px; }
.island[data-mode="expanded"] {
  --w: 343px; --h: calc(var(--nh) + 140px); --r: 24px;
  cursor: default;
  /* Negro sólido, igual que el notch de la Mac */
  background: #000;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.island-content { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.island[data-mode="live"] .live,
.island[data-mode="volume"] .volume,
.island[data-mode="battery"] .battery,
.island[data-mode="device"] .device,
.island[data-mode="device-detail"] .device-detail,
.island[data-mode="agent"] .agent,
.island[data-mode="alert"] .alert,
.island[data-mode="ask"] .ask,
.island[data-mode="expanded"] .expanded {
  opacity: 1; pointer-events: auto; transition: opacity .28s ease .12s;
}

/* Lados del notch: el centro (lo que tapa el notch físico) queda vacío. */
.wings { display: flex; height: var(--nh); }
.wing {
  width: calc((var(--w) - var(--notch)) / 2);
  display: flex; align-items: center; gap: 7px;
  padding: 0 6px 0 12px; flex: none;
}
.wings > .wing:first-child { margin-right: auto; }
.wing.right { justify-content: flex-end; padding: 0 12px 0 6px; }
.island b { font-weight: 600; font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.island b.small { font-size: 11px; }
.t-green { color: #34c759; }
.t-claude { color: #e08a5f; }
.t-claude-fill { fill: #e08a5f; filter: drop-shadow(0 0 4px rgba(224,138,95,.7)); }
.t-green-fill { fill: #34c759; }
.ico { width: 15px; height: 15px; fill: #fff; flex: none; filter: drop-shadow(0 0 3px rgba(255,255,255,.35)); }

/* Entradas con rebote, como popIn() en la app */
.island[data-mode] .island-content .pop { animation: none; }
.island[data-mode="device"] .device .pop,
.island[data-mode="alert"] .alert .pop,
.island[data-mode="ask"] .ask .pop,
.island[data-mode="volume"] .volume .pop,
.island[data-mode="battery"] .battery .pop { animation: popIn .5s var(--spring) both .1s; }
.island[data-mode="device"] .spin3d { animation: popIn .5s var(--spring) both .1s, turn .8s var(--spring) both .1s; }
@keyframes popIn { from { opacity: 0; transform: scale(.55); filter: blur(6px); } }
@keyframes turn { from { transform: perspective(60px) rotateY(-55deg) scale(.6); } }

/* Medidas de Canopy: portada de 20 pt a 6 pt de la orilla, ecualizador de 17 × 11. */
.live .wing { padding: 0 2px 0 6px; }
.live .wing.right { padding: 0 6px 0 2px; }
.live .mini-art { width: 20px; height: 20px; border-radius: 5px; background: conic-gradient(from 200deg at 30% 70%, #ff5fa2, #6b4eff, #22d3ee, #ff5fa2); }
.bars { display: inline-flex; align-items: center; gap: 1.6px; height: 11px; }
.bars i { width: 2px; height: 100%; border-radius: 2px; background: #ff7ab8; animation: eq .9s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-duration: .6s; }
.bars i:nth-child(3) { animation-duration: .75s; }
.bars i:nth-child(4) { animation-duration: 1s; }
.bars i:nth-child(5) { animation-duration: .68s; }
/* La del centro es la más alta, las de las orillas las más bajas. */
.bars i:nth-child(1), .bars i:nth-child(5) { height: 55%; }
.bars i:nth-child(2), .bars i:nth-child(4) { height: 85%; }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

.vol-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.vol-fill { display: block; height: 100%; width: 62%; background: #fff; border-radius: 3px; transition: width .15s ease; }
.vol-num { width: 22px; text-align: right; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }

.device-detail .detail-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; }
.detail-name { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.detail-name strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-name span { font-size: 10.5px; opacity: .5; }
.fill-ring {
  --v: 50; --p: 0;
  position: relative; flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: conic-gradient(#34c759 calc(var(--p) * 1%), rgba(255,255,255,.14) 0);
  margin-bottom: 12px;
}
.island[data-mode="device-detail"] .fill-ring { animation: fill 1s var(--ease) forwards .2s; }
.island[data-mode="device-detail"] .fill-ring:nth-of-type(2) { animation-delay: .3s; }
.island[data-mode="device-detail"] .fill-ring:nth-of-type(3) { animation-delay: .4s; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes fill { to { --p: var(--v); } }
.fill-ring::before { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: #000; }
.fill-ring b { position: relative; font-size: 10px !important; }
.fill-ring em { position: absolute; top: 36px; font-style: normal; font-size: 9px; opacity: .55; white-space: nowrap; }

.sparkle { fill: #d97856; filter: drop-shadow(0 0 4px rgba(217,120,86,.8)); animation: sparkle 2.4s linear infinite; }
@keyframes sparkle { to { transform: rotate(360deg); } }
.agent-time { opacity: .85; white-space: nowrap; }

/* Isla abierta = CompactPlayer de la app (medidas de Canopy: 343 × 172) */
.expanded { padding: 19px 18px 16px; }
.ex-page { height: 100%; display: flex; flex-direction: column; }
.ex-page[hidden] { display: none; }
.cp-top { display: flex; align-items: flex-start; gap: 16px; }
.art {
  flex: none; width: 56px; height: 56px; border-radius: 12px;
  background: radial-gradient(circle at 70% 28%, #ffd36b 0 13%, transparent 14%), linear-gradient(160deg, #2b1a7a 0%, #6b4eff 45%, #ff5fa2 100%);
  box-shadow: 0 2px 8px rgba(255, 95, 162, .35);
}
.cp-text { display: flex; flex-direction: column; gap: 1px; padding-top: 21px; min-width: 0; margin-right: auto; }
.cp-text strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cp-text span { font-size: 12px; font-weight: 500; opacity: .45; white-space: nowrap; }
.bars.eq { height: 12px; margin-top: 20px; }
.bars.eq i { width: 2px; }
.cp-progress { display: flex; align-items: center; gap: 11px; margin-top: auto; font-size: 9.5px; font-weight: 600; opacity: .5; font-variant-numeric: tabular-nums; }
.cp-progress .bar { flex: 1; height: 5.5px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; opacity: 1; cursor: grab; transition: height .2s var(--spring); }
.cp-progress .bar:hover { height: 8px; }
.progress-fill { display: block; height: 100%; width: 23%; background: #fff; }
/* Cinco botones de 42 pt repartidos parejo, como en la app */
.cp-controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 6px 2px 0; }
.cp-controls > svg { flex: 0 0 42px; height: 26px; fill: #fff; color: #fff; }
.cp-controls > svg.dim { height: 22px; opacity: .45; }
.cp-controls > svg.big { height: 28px; }
.cp-controls > svg.out { height: 26px; opacity: .45; }
.timer-page { gap: 10px; padding-top: 14px; }
.tp-label { font-size: 12px; font-weight: 600; opacity: .7; }
.tp-presets { display: flex; gap: 7px; }
.tp-presets button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0;
  border: 0; border-radius: 12px; background: rgba(255,255,255,.09); color: #fff;
  font: 600 17px/1 -apple-system, var(--body); cursor: pointer;
}
.tp-presets small { font-size: 9.5px; font-weight: 500; opacity: .6; }
.page-dots { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 5px; }
.page-dots button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.25); cursor: pointer; transition: width .3s var(--spring), background .2s; }
.page-dots button.on { width: 12px; background: rgba(255,255,255,.85); }

/* ---------- Portada ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero-sky {
  position: absolute;
  inset: -4% 0 0;
  z-index: -1;
  background: url("assets/graphite.svg") center bottom / cover no-repeat;
}
.hero-inner { max-width: 880px; padding: 120px 24px 30vh; }
.hero-logo {
  display: block; margin: 0 auto 18px; width: 120px; height: 120px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.08));
}
.platform {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 22px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.platform svg { width: 14px; height: 14px; fill: currentColor; }
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(52px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 32em; margin: 26px auto 0; color: rgba(255, 255, 255, 0.86); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; scroll-margin-top: 100px; }
.fine { font-size: 13.5px; margin: 16px 0 0; color: rgba(255, 255, 255, 0.7); }
.hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 30px 0 0; font-family: var(--display); font-weight: 500; font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.hint svg { width: 18px; height: 26px; transform: scaleX(-1) rotate(10deg); flex: none; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 26px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn.light { background: #fff; color: var(--night); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.btn.light:hover { background: #e9e9ee; }
.btn.glass {
  color: #fff; background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn.glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #3a3a40; }
.btn.outline { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: .75; }

/* ---------- Secciones ---------- */

main { overflow: clip; }
section { scroll-margin-top: 60px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section-head h2, .showcase-text h2, .final h2 {
  margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(36px, 5.4vw, 64px);
}
.section-head p { margin: 16px auto 0; color: var(--muted); font-size: 19px; max-width: 34em; }
.section-head.light p { color: rgba(255, 255, 255, 0.78); }

/* MacBook */
.showcase { padding: 110px 24px 120px; text-align: center; }
.macbook { width: min(980px, 100%); margin: 0 auto; }
.mb-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px 22px 0 0;
  border: 12px solid #0d0d10;
  border-bottom-width: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1.5px #3a3a40, 0 50px 90px -40px rgba(0, 0, 0, 0.55);
}
.mb-wall { position: absolute; inset: 0; background: url("assets/graphite.svg") center 60% / cover no-repeat; }
.mb-menubar {
  position: absolute; inset: 0 0 auto; height: 22px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  font-size: 11px; color: #fff;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 14px; }
.mb-left svg { width: 12px; height: 12px; fill: #fff; }
.mb-left b { font-weight: 700; }
.mb-island {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) scale(0.62);
  transform-origin: top center;
  padding: 0 24px;
}
.mb-island::before { left: 14px; }
.mb-island::after { right: 14px; transform: scaleX(-1); }
.mb-window {
  position: absolute; left: 9%; bottom: 12%; width: 38%; height: 44%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.mb-lights { position: absolute; top: 10px; left: 12px; display: flex; gap: 6px; }
.mb-lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.mb-lights i:nth-child(2) { background: #febc2e; }
.mb-lights i:nth-child(3) { background: #28c840; }
.mb-base {
  position: relative; height: 16px; margin: 0 -4.5%;
  background: linear-gradient(#e4e4ea, #b9b9c2);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 30px -16px rgba(29, 27, 38, 0.4);
}
.mb-base span { position: absolute; top: 0; left: 50%; width: 14%; height: 7px; transform: translateX(-50%); background: #a4a4ad; border-radius: 0 0 8px 8px; }
.showcase-text { max-width: 640px; margin: 72px auto 0; }
.showcase-text p { margin: 18px auto 0; color: var(--muted); font-size: 19px; }

/* Funciones */
.features { padding: 40px 0 130px; }
.bento {
  max-width: 1120px; margin: 56px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 30px 28px 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 330px;
}
.card.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; padding-bottom: 30px; }
.card.wide .card-text { flex: 1; }
.card.wide .card-visual { flex: 1.2; padding: 0; }
.card h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card-visual { flex: 1; display: grid; place-items: center; padding: 28px 0; }
.card-visual.stack { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.pro {
  font-family: var(--body); font-size: 11.5px; font-weight: 600;
  color: #111; background: linear-gradient(#ffffff, #b9b9c1); padding: 2px 9px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.mock { background: var(--island); color: #fff; }
.mock-player {
  width: 100%; max-width: 440px; border-radius: 0 0 30px 30px; padding: 26px 22px 22px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}
.mock-player .art { width: 92px; height: 92px; border-radius: 16px; }
.mock-lines { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mock-lines em { font-style: normal; font-size: 13px; opacity: 0.35; }
.mock-lines em:last-child { opacity: 0.5; }
.mock-lines strong { font-family: var(--display); font-size: 21px; line-height: 1.15; color: #ffa3cf; }
.mock-tray { border-radius: 0 0 28px 28px; padding: 24px 26px; display: flex; gap: 14px; align-items: center; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6); }

.pill {
  white-space: nowrap;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 18px; border-radius: 28px;
  background: var(--island); color: #fff; font-size: 14px; font-weight: 600;
  width: min(300px, 100%);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.6);
}
.pill .pods { width: 32px; height: 22px; fill: #fff; flex: none; filter: drop-shadow(0 0 4px rgba(255,255,255,.3)); }
/* AirPods como Canopy: el ícono gira al entrar, el anillo y la barra se llenan. */
.pods-img { width: 34px; height: 28px; object-fit: contain; flex: none; filter: drop-shadow(0 0 5px rgba(255,255,255,.28)); }
.pring {
  --p: 0; margin-left: auto; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: conic-gradient(#34c759 calc(var(--p) * 1%), rgba(255,255,255,.14) 0);
  -webkit-mask: radial-gradient(circle, transparent 8px, #000 8.5px); mask: radial-gradient(circle, transparent 8px, #000 8.5px);
}
.pods-demo .pill-bar i { width: 0; background: #34c759; transition: width 1.1s var(--ease) .45s; }
.play .pods-demo .pill-bar i { width: calc(var(--v) * 1%); }
.play .pods-demo .pring { animation: fill 1.1s var(--ease) forwards .35s; }
.play .pods-demo .pill { animation: podIn .6s var(--spring) both; }
.play .pods-demo .pill:nth-child(2) { animation-delay: .12s; }
.play .pods-demo .pods-img { animation: podTurn .8s var(--spring) both .15s; }
@keyframes podTurn { from { opacity: 0; transform: perspective(80px) rotateY(-60deg) scale(.6); } }
@keyframes podIn { from { opacity: 0; transform: translateY(10px) scale(.94); } }
@media (prefers-reduced-motion: reduce) {
  .pods-demo .pill-bar i { width: calc(var(--v) * 1%); transition: none; }
  .pods-demo .pring { --p: var(--v); animation: none !important; }
}
/* Reproductor compacto de la app, del mismo tamaño que la isla abierta. */
.mock-cp {
  width: 343px; max-width: 100%; height: 140px; box-sizing: border-box;
  display: flex; flex-direction: column; padding: 19px 18px 16px; border-radius: 24px; text-align: left;
}
.pill .ring { margin-left: auto; }
.ring.sm { width: 28px; height: 28px; }
.pill-bar { margin-left: auto; width: 60px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.pill-bar.wide { width: 120px; }
.pill-bar i { display: block; height: 100%; background: #fff; }
.pill-bar.low i { background: #ff6b5a; }
.pill-num { font-variant-numeric: tabular-nums; font-size: 13px; opacity: 0.85; }
.pill-label { color: var(--green); }
.ico-bolt { width: 16px; height: 16px; fill: var(--green); flex: none; }
.ico-vol { width: 18px; height: 18px; fill: #fff; flex: none; }
.batt { position: relative; margin-left: auto; width: 30px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.45); padding: 2px; }
.batt::after { content: ""; position: absolute; right: -4px; top: 4px; width: 2px; height: 6px; border-radius: 1px; background: rgba(255, 255, 255, 0.45); }
.batt i { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.weather-chip {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(150deg, #0d0d0f, #34343a);
  color: #fff; border-radius: 22px; padding: 18px 22px;
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.7);
}
.weather-chip svg { width: 44px; height: 44px; flex: none; }
.weather-chip strong { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.weather-chip span { font-size: 13px; opacity: 0.85; }

.screens { display: flex; align-items: flex-end; gap: 16px; }
.scr {
  position: relative; display: block; width: 96px; aspect-ratio: 16 / 10;
  border-radius: 8px; border: 3px solid #1a1a1f; overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 211, 107, .55) 0 10%, transparent 30%),
    linear-gradient(155deg, #1b1240 0%, #4a2fbf 45%, #c2418f 100%);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255,255,255,.06);
}
.scr.big { width: 156px; border-radius: 9px 9px 4px 4px; }
/* Base de la MacBook y pie del monitor */
.screens .scr.big { overflow: visible; }
.screens .scr.big::before { content: ""; position: absolute; left: -14px; right: -14px; bottom: -9px; height: 6px; border-radius: 0 0 8px 8px; background: linear-gradient(#3a3a40, #1c1c20); }
.scr.mon { margin-bottom: 12px; overflow: visible; }
.scr.mon::before { content: ""; position: absolute; left: 50%; bottom: -14px; width: 16px; height: 12px; transform: translateX(-50%); background: #26262b; }
.scr.mon::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 40px; height: 3px; transform: translateX(-50%); border-radius: 2px; background: #2e2e34; }
/* La isla de cada pantalla: pegada al notch en la MacBook, flotante en el monitor. */
.scr-isl {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34%; height: 11%; min-height: 9px; background: #000; border-radius: 0 0 5px 5px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 3px; box-sizing: border-box;
}
.scr-isl.float { top: 6%; width: 44%; height: 10%; min-height: 7px; border-radius: 6px; }
.scr-isl b { width: 6px; height: 6px; border-radius: 1.5px; background: linear-gradient(135deg, #ff5fa2, #6b4eff); opacity: 0; }
.scr-isl em { width: 7px; height: 4px; background: repeating-linear-gradient(90deg, #ff7ab8 0 1px, transparent 1px 2px); opacity: 0; }

/* Más funciones */
.more { padding: 20px 0 130px; }
.more-grid {
  max-width: 1120px; margin: 56px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tile {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card);
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px;
}
.tile h3 { margin: 10px 0 0; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.mini {
  align-self: center; display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; min-width: 190px; max-width: 100%;
  background: var(--island); color: #fff; border-radius: 0 0 16px 16px;
  font-size: 12.5px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.7);
}
.mini.floating { border-radius: 17px; min-width: 120px; height: 30px; margin-top: 4px; }
.mini b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-gap { flex: 1; }
.t-orange { color: #ff9f0a; }
.t-red { color: #ff6b5a; }
.t-purple { color: #877dff; }
.i-moon { width: 14px; height: 14px; fill: #877dff; flex: none; }
.ring-o { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid #ff9f0a; border-right-color: rgba(255,255,255,.18); }
.dot-o { width: 7px; height: 7px; border-radius: 50%; background: #ff9f0a; box-shadow: 0 0 8px #ff9f0a; }
.i-cal { width: 15px; height: 15px; fill: #ff6b5a; }
.i-mic { width: 15px; height: 15px; fill: #ff9f0a; color: #ff9f0a; }
.i-sun { width: 16px; height: 16px; fill: #ffd35a; color: #ffd35a; }
.i-lock { width: 15px; height: 15px; fill: #fff; color: #fff; }
.mini-bar { width: 48px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: #fff; }
.batt-mini { position: relative; width: 24px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.45); padding: 2px; }
.batt-mini i { display: block; height: 100%; background: #ff6b5a; border-radius: 1.5px; }
.swipe { display: flex; gap: 4px; }
.swipe i { width: 6px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.85); animation: swipe 1.8s ease-in-out infinite; }
.swipe i:nth-child(2) { animation-delay: .08s; }
@keyframes swipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
.dots-mini { display: flex; gap: 4px; }
.dots-mini i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
.dots-mini i.on { width: 12px; background: #fff; }
.mini .mini-art { width: 20px; height: 20px; }

/* Callada */
.quiet { padding: 40px 0 140px; }
.quiet-list {
  list-style: none; max-width: 1080px; margin: 56px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.quiet-list li { text-align: center; }
.quiet-list svg { width: 34px; height: 34px; color: var(--ink); }
.quiet-list h3 { margin: 14px 0 0; font-size: 21px; font-weight: 700; }
.quiet-list p { margin: 8px auto 0; color: var(--muted); font-size: 15.5px; max-width: 26em; }

/* Precio */
.pricing { position: relative; padding: 130px 24px 140px; color: #fff; isolation: isolate; overflow: hidden; }
.pricing-sky { position: absolute; inset: 0; z-index: -1; background: url("assets/graphite.svg") center 40% / cover no-repeat; }
.pricing-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45)); }
.plans { max-width: 820px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  border-radius: 30px; padding: 30px 28px 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.plan.featured { background: rgba(0, 0, 0, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { margin: 0; font-size: 22px; }
.plan-price { margin: 18px 0 0; font-family: var(--display); font-weight: 800; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-left: 6px; opacity: 0.65; }
.plan-note { margin: 8px 0 20px; font-size: 14.5px; opacity: 0.7; }
.plan-regular { margin-left: 12px; font-family: var(--body); font-size: 18px; font-weight: 600; letter-spacing: 0; opacity: .45; }
.launch-tag {
  display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #0a0a0a;
  background: linear-gradient(135deg, #ffe29a, #ffb86b);
  box-shadow: 0 0 18px rgba(255, 190, 110, .35);
}
.launch-mini { margin-left: 4px; font-size: .75em; font-weight: 600; opacity: .65; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; font-size: 15px; flex: 1; }
.plan li { padding: 9px 0 9px 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px;
  border-left: 2px solid #d9d9df; border-bottom: 2px solid #d9d9df; transform: rotate(-45deg);
}

/* Preguntas */
.faq { padding: 120px 24px 80px; }
.faq-list { max-width: 760px; margin: 44px auto 0; }
details { background: var(--card); border-radius: 20px; margin-bottom: 10px; box-shadow: var(--shadow-card); }
summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 26px; position: relative;
  font-family: var(--display); font-weight: 500; font-size: 19px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { margin: 0; padding: 0 26px 22px; color: var(--muted); max-width: 40em; }

.final { padding: 60px 24px 120px; text-align: center; }
.final img { margin: 0 auto 26px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35)); }
.final .cta { margin-top: 30px; }

/* Pie como Canopy: banda oscura, marca y enlaces a la izquierda, frase a la derecha */
.site-foot { background: #0e0c0c; border-top: 1px solid var(--line); }
.foot-inner {
  max-width: 1080px; margin: 0 auto; padding: 34px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.foot-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: #fff; }
.foot-links .foot-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.foot-made { margin: 0; font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--muted); }

/* Páginas de texto: privacidad, reembolsos, novedades */
.doc { max-width: 680px; margin: 0 auto; padding: 40px 24px 90px; }
.doc-eyebrow { margin: 0; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.doc h1 { margin: 12px 0 8px; font-size: clamp(38px, 6vw, 56px); letter-spacing: -0.03em; line-height: 1.02; }
.doc h2 { margin: 36px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.doc h2 span { margin-left: 10px; font: 500 14px var(--body); color: var(--muted); }
.doc p, .doc li { color: #c9c9cf; }
.doc li { margin: 6px 0; }
.doc a { color: #fff; }
.doc-date { color: var(--muted) !important; font-size: 14px; }
.release + .release { border-top: 1px solid var(--line); margin-top: 28px; }

/* Aparición de las tarjetas (una sola vez) */
.reveal { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  .more-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
  .quiet-list { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero-logo { width: 88px; height: 88px; }
  .top nav { display: none; }
  .brand span { display: none; }
  .hero-inner { padding: 110px 18px 22vh; }
  .hint { display: none; }
  .bento { grid-template-columns: 1fr; padding: 0 16px; }
  .more-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .card.wide { grid-column: auto; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .card.wide .card-visual { padding: 24px 0 28px; }
  .card { min-height: 0; }
  .mock-player .art { width: 64px; height: 64px; }
  .mock-lines strong { font-size: 17px; }
  .plans { grid-template-columns: 1fr; }
  .mb-screen { border-width: 6px; border-bottom-width: 10px; border-radius: 12px 12px 0 0; }
  .mb-menubar { height: 14px; font-size: 7px; }
  .mb-left span, .mb-right { display: none; }
  .mb-island { transform: translateX(-50%) scale(0.42); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- Tema oscuro (estilo Notchly) ---------- */

body {
  background:
    radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.3px) 0 0 / 24px 24px,
    var(--bg);
  color-scheme: dark;
}
.top.scrolled {
  background: rgba(0, 0, 0, 0.62);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.top.scrolled .nav-cta { background: #fff; color: #000; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.3px) 0 0 / 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 30%, #a6a6ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card, .tile, details { background: linear-gradient(180deg, #0f0f12, #08080a); }
.card h3, .tile h3 { color: var(--ink); }
.btn.dark { background: #fff; color: #000; }
.btn.dark:hover { background: #e4e4ea; }
.btn.outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.btn.outline:hover { background: #fff; color: #000; }
summary::after { border-color: var(--ink); }
.mock, .pill, .mini, .mock-player, .mock-tray { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.mb-screen { box-shadow: 0 0 0 1.5px #2a2a30, 0 60px 120px -40px rgba(255, 255, 255, 0.07); }
.mb-base { background: linear-gradient(#3a3a40, #1f1f24); }
.mb-base span { background: #141418; }
.mb-window { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 40px -14px rgba(0, 0, 0, 0.8); }
.weather-chip { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
footer { border-top-color: var(--line); }
.final img { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.1)); }

/* Miniaturas de archivos (tarjeta Bandeja) */
.thumb { width: 46px; height: 56px; border-radius: 6px; display: block; flex: none; }
.t1 { background: linear-gradient(#fff 0 22%, #ff6b6b 22% 30%, #f4f4f6 30%); }
.t2 { background: radial-gradient(circle at 50% 45%, #6b4eff 0 28%, #fff 29%); border-radius: 8px; width: 52px; height: 52px; }
.t3 { background: linear-gradient(135deg, #3b82f6, #22d3ee); }

/* ---------- Agentes de IA ---------- */

.agents { padding: 20px 24px 130px; }
.agents-card {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border-radius: 34px; background: #050506;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -60px rgba(0, 0, 0, 1);
}
.agents-visual {
  padding: 0 34px 34px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 120, 86, 0.16), transparent 60%),
    linear-gradient(180deg, #121216, #0a0a0c);
}
.agents-screen { position: relative; padding-top: 70px; }
.agents-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  padding: 0 24px;
}
.term {
  border-radius: 16px; overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font: 500 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace;
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: rgba(255, 255, 255, 0.45); font-size: 11.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.term-bar .mb-lights { position: static; }
.term-body { padding: 18px 18px 24px; min-height: 150px; }
.term-body p { margin: 0 0 10px; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s var(--ease); }
.term-body p.show { opacity: 1; transform: none; }
.term-body .prompt { color: #d97856; margin-right: 6px; }
.term-body .dim { color: rgba(255, 255, 255, 0.5); }
.term-body .ok { color: #34c759; }
.spinner { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #d97856; animation: sparkle .8s linear infinite; vertical-align: -1px; }
.agents-text { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.agents-text h2 { margin: 14px 0 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(34px, 4.4vw, 54px); }
.agents-text > p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.new-tag {
  align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #000; background: linear-gradient(#fff, #b9b9c1);
}
.agent-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.agent-list li {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.agent-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.fine-dark { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) {
  .agents-card { grid-template-columns: 1fr; }
  .agents-text { padding: 36px 28px 40px; }
}
@media (max-width: 700px) {
  .agents { padding: 20px 16px 90px; }
  .agents-visual { padding: 0 16px 20px; }
}

/* ---------- Página de descarga (como la de Canopy) ---------- */

.dl-page { min-height: 100svh; display: flex; flex-direction: column; }
.dl-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; }
.dl-back { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.dl-back:hover { color: var(--ink); }
.dl-main { flex: 1; display: grid; place-items: center; padding: 20px 24px 80px; text-align: center; }
.dl-stage { display: flex; flex-direction: column; align-items: center; transition: opacity .28s ease, transform .28s var(--ease); }
.dl-stage[hidden] { display: none; }
/* Las dos pantallas comparten el mismo lugar, centradas. */
.dl-main > .dl-stage { grid-area: 1 / 1; }
.dl-stage.leaving { opacity: 0; transform: translateY(-10px); }
.dl-stage#stageInstall { opacity: 0; transform: translateY(14px); }
.dl-stage#stageInstall.entering { opacity: 1; transform: none; }
.dl-icon {
  width: 132px; height: 132px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .8)) drop-shadow(0 0 70px rgba(255, 255, 255, .1));
  animation: dl-float 4s ease-in-out infinite;
}
@keyframes dl-float { 50% { transform: translateY(-6px); } }
.dl-title {
  margin: 22px 0 0; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(56px, 9vw, 96px);
  background: linear-gradient(180deg, #fff 30%, #a6a6ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dl-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.dl-actions .btn svg { width: 17px; height: 17px; fill: currentColor; margin-right: 8px; }
.dl-key { color: var(--ink); font-size: 16px; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .4); }
.dl-meta { margin: 30px 0 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
#stageInstall .dl-meta { margin: 0; }
.dl-headline { margin: 18px 0 0; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-size: clamp(54px, 8.5vw, 92px); }
.dl-headline em { font-style: italic; font-weight: 800; background: linear-gradient(180deg, #fff, #9c9ca6); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.dl-sub { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.dl-steps {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 210px); position: relative;
}
.dl-steps::before { content: ""; position: absolute; top: 13px; left: 105px; right: 105px; height: 1px; background: var(--line); }
.dl-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 10px; }
.dl-num {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 600 10.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted);
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); margin-bottom: 12px;
}
.entering .dl-num { animation: dl-pop .5s var(--spring) both; }
.entering li:nth-child(2) .dl-num { animation-delay: .12s; }
.entering li:nth-child(3) .dl-num { animation-delay: .24s; }
@keyframes dl-pop { from { transform: scale(.4); opacity: 0; } }
.dl-steps strong { font-size: 16px; font-weight: 600; }
.dl-steps span:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

@media (max-width: 700px) {
  .dl-steps { grid-template-columns: 1fr; gap: 26px; }
  .dl-steps::before { display: none; }
  .dl-top { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-stage#stageInstall { opacity: 1; transform: none; }
}

/* ---------- Animaciones de las tarjetas ----------
   .play: se repiten cada vez que la tarjeta aparece al bajar o subir.
   .in: las que siempre corren porque así funcionan en la app (temporizador, micrófono). */
@keyframes growW { from { width: 0; } }
@keyframes boltPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 50% { transform: scale(1.25); filter: drop-shadow(0 0 6px #34c759); } }
@keyframes waves { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-34px) scale(.7) rotate(-8deg); } }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes islGrow { 0%, 30% { width: 22%; } 100% { width: 46%; } }
@keyframes islGrowF { 0%, 30% { width: 26%; } 100% { width: 56%; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes sunGlow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes cloudDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes swing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-18deg); } 60% { transform: rotate(8deg); } }
@keyframes bounceIn { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes breathe { 0%, 100% { min-width: 120px; } 50% { min-width: 150px; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); box-shadow: 0 0 8px currentColor; } 50% { transform: scale(1.35); box-shadow: 0 0 14px currentColor; } }

.card.play .batt i { animation: growW 1.2s var(--ease) both .35s; }
.card.play .ico-bolt { animation: boltPulse .9s ease-in-out 2 .2s; }
/* El volumen sube a saltitos, como al picar la tecla */
.card.play .pill-bar.vol i { animation: growW 1.1s steps(10, end) both .35s; }
.card.play .ico-vol path:last-child { animation: waves 1.2s ease-in-out 3 .3s; }
.card.play .thumb { animation: dropIn .7s var(--spring) both; }
.card.play .thumb.t1 { animation-delay: .2s; } .card.play .thumb.t2 { animation-delay: .35s; } .card.play .thumb.t3 { animation-delay: .5s; }
.card.play .scr { animation: screenIn .7s var(--spring) both .15s; }
.card.play .scr.mon { animation-delay: .3s; }
.card.play .scr-isl { animation: islGrow 1.4s var(--spring) both .7s; }
.card.play .scr-isl.float { animation-name: islGrowF; animation-delay: .9s; }
.card.play .scr-isl b, .card.play .scr-isl em { animation: fadeIn .3s ease forwards 1.5s; }
.card.play .weather-chip svg circle { transform-origin: 8px 9px; animation: sunGlow 1.6s ease-in-out 2 .4s; }
.card.play .weather-chip svg path { animation: cloudDrift 1.6s ease-in-out 2 .4s; }
.tile.in .ring-o { animation: spin 1.6s linear infinite; }
.tile.in .dot-o { color: #ff9f0a; animation: pulseDot 1.4s ease-in-out infinite; }
.tile.play .mini-bar i { animation: growW 1s var(--ease) both .3s; }
.tile.play .i-sun { animation: spin 1.4s var(--ease) both .2s; }
.tile.play .i-cal { animation: bounceIn .6s var(--spring) both .25s; }
.tile.play .i-lock { animation: bounceIn .6s var(--spring) both .25s; }
.tile.play .mini .mini-art { animation: bounceIn .6s var(--spring) both .45s; }
.tile.play .i-moon { transform-origin: 50% 50%; animation: swing 1.4s ease-in-out both .3s; }
.tile.play .batt-mini i, .tile.play .t-red { animation: blink 1.2s ease-in-out 3 .3s; }
.tile.play .mini.floating { animation: breathe 1.3s var(--spring) 2 .4s; }
@media (prefers-reduced-motion: reduce) {
  .scr-isl b, .scr-isl em { opacity: 1; }
}

/* Terminal de la demo: la línea donde Claude pide permiso */
.term-body .ask-line { color: #e08a5f; }

.doc-lead { font-size: 19px; color: #e6e6ea !important; }
.doc-sec { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 6px; }
.doc-sec h2 { margin-top: 30px; }

.center-doc { text-align: center; }
.center-doc .doc-steps { display: inline-block; text-align: left; margin: 10px auto 0; }
.doc-icon { display: block; margin: 0 auto 18px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
.doc-actions { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.recover { display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; flex-wrap: wrap; justify-content: center; }
.recover input {
  flex: 1 1 240px; min-height: 48px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 16px;
  color: #fff; background: #111114; border: 1px solid #2c2c31; outline: none;
}
.recover input:focus { border-color: #8a8a92; }
.recover-msg { min-height: 1.5em; color: #c9c9cf; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Recuperar licencia, como Canopy */
.recover-page { padding-top: 12vh; min-height: 62vh; }
.recover-title { font-size: clamp(48px, 9vw, 96px) !important; line-height: .95 !important; letter-spacing: -0.045em !important; }
.recover-title em { font-style: italic; }
.recover-page .recover button { min-height: 52px; padding: 0 30px; }
.recover-page .recover input { min-height: 52px; }
.recover-help { margin-top: 36px; color: var(--muted); font-size: 15px; }
.recover-help a { color: #fff; text-underline-offset: 4px; }
.mono-back { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace !important; letter-spacing: .2em; }
.hero-recover { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.4); }
.recover-msg { max-width: 460px; margin-left: auto; margin-right: auto; }
.recover-msg.error { color: #ff7a6b; }
.recover-msg.ok { color: #34c759; }

.gift { display: grid; gap: 10px; max-width: 420px; margin: 26px auto 0; text-align: left; }
.gift input[type=email], .gift input[type=text], .gift input[type=password], .gift input[type=number] {
  min-height: 48px; padding: 0 18px; border-radius: 14px; font: inherit; font-size: 16px; color: #fff;
  background: #111114; border: 1px solid #2c2c31; outline: none;
}
.gift input:focus { border-color: #8a8a92; }
.gift-row { display: flex; align-items: center; gap: 10px; color: #c9c9cf; font-size: 15px; }
.gift-row input[type=number] { width: 80px; min-height: 40px; padding: 0 12px; }
.gift .btn { margin-top: 6px; justify-content: center; }
.gift-key { font: 600 20px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: #fff;
  background: #000; border: 1px solid #2c2c31; border-radius: 14px; padding: 16px; max-width: 420px; margin: 8px auto 0; user-select: all; }

/* Íconos de Apple (SF Symbols) como máscara: toman el color del texto. */
.sym { display: inline-block; flex: none; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--s) center / contain no-repeat; mask: var(--s) center / contain no-repeat; color: #fff; }
.island .wing .sym { filter: drop-shadow(0 0 3px rgba(255,255,255,.3)); }
.t-green-sym { color: #34c759; filter: drop-shadow(0 0 4px rgba(52,199,89,.6)) !important; }
.t-claude-sym { color: #e08a5f; filter: drop-shadow(0 0 4px rgba(224,138,95,.7)) !important; }
.sparkle-sym { color: #d97856; width: 14px; height: 14px; filter: drop-shadow(0 0 4px rgba(217,120,86,.8)) !important; animation: sparkle 2.4s linear infinite; }
.battery .wing { padding: 0 4px 0 10px; gap: 4px; }
.battery .wing.right { padding: 0 10px 0 4px; gap: 5px; }
.battery .sym { width: 12px; height: 12px; }
.battery b { font-size: 11px !important; }
.batt-hud { position: relative; width: 22px; height: 11px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.2px rgba(52,199,89,.9); padding: 2px; box-sizing: border-box; }
.batt-hud::after { content: ""; position: absolute; right: -3px; top: 3.5px; width: 1.5px; height: 4px; border-radius: 1px; background: rgba(52,199,89,.9); }
.batt-hud i { display: block; height: 100%; width: 0; border-radius: 1.5px; background: #34c759; }
.island[data-mode="battery"] .batt-hud i { animation: battFill 1s var(--ease) forwards .25s; }
@keyframes battFill { to { width: 78%; } }
/* Portada de ejemplo */
.cover { background: url(assets/cover.jpg) center / cover !important; box-shadow: 0 2px 10px rgba(255, 95, 162, .35); }
/* Controles: SF Symbols del mismo tamaño que la app */
.cp-controls > .sym.c { width: 42px; height: 20px; }
.cp-controls > .sym.dim { height: 18px; opacity: .45; }
.cp-controls > .sym.big { height: 27px; }
.cp-controls > .sym.out { height: 20px; opacity: .45; }
.pill .sym.ico-bolt { width: 18px; height: 22px; color: #34c759; filter: drop-shadow(0 0 6px rgba(52,199,89,.5)); }
.pill .sym.ico-vol { width: 24px; height: 20px; color: #fff; }
.card.play .sym.ico-vol { animation: waves 1.2s ease-in-out 3 .3s; }

/* 0.3.3: menú de salidas, No molestar «Sí / No» y aviso de salida */
.mock-cp { position: relative; overflow: visible; }
.out-menu {
  position: absolute; right: -8px; top: calc(100% - 6px); z-index: 2;
  display: flex; flex-direction: column; padding: 5px; border-radius: 14px; min-width: 190px;
  background: rgba(28, 28, 30, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 18px 34px -12px rgba(0,0,0,.8);
  opacity: 0; transform: scale(.85); transform-origin: 85% 0;
}
.out-menu span { display: flex; align-items: center; gap: 9px; height: 27px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72); white-space: nowrap; }
.out-menu span.on { color: #fff; background: rgba(255,255,255,.12); }
.out-menu .sym { width: 16px; height: 13px; }
.card.wide .card-visual { padding-bottom: 92px; }
.card.play .out-menu { animation: menuPop 4.8s var(--spring) both 1.2s; }
@keyframes menuPop {
  0% { opacity: 0; transform: scale(.85); }
  8%, 82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.92); }
}
.cp-controls > .sym.out { transition: opacity .2s; }
.mini.dnd { position: relative; min-width: 0; width: 150px; overflow: hidden; }
.dnd-on, .dnd-off { position: absolute; inset: 0 13px; display: flex; align-items: center; }
.dnd-on b, .dnd-on .i-moon { color: #6b6bff; fill: #6b6bff; }
.dnd-off b { color: #8c8c8c; } .dnd-off .i-moon { fill: #8c8c8c; }
.dnd b { font-weight: 700; }
.dnd-off { opacity: 0; }
.tile.in .dnd-on { animation: dndOn 5s ease-in-out infinite; }
.tile.in .dnd-off { animation: dndOff 5s ease-in-out infinite; }
@keyframes dndOn { 0%, 42% { opacity: 1; filter: blur(0); transform: scale(1); } 50%, 92% { opacity: 0; filter: blur(4px); transform: scale(.7); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes dndOff { 0%, 42% { opacity: 0; filter: blur(4px); transform: scale(.7); } 50%, 92% { opacity: 1; filter: blur(0); transform: scale(1); } 100% { opacity: 0; filter: blur(4px); transform: scale(.7); } }
.mini.out-hud { min-width: 230px; }
.mini.out-hud .sym { width: 19px; height: 15px; }
.mini.out-hud b { font-weight: 700; }
.tile.play .out-hud .sym, .tile.play .out-hud b { animation: bounceIn .6s var(--spring) both .3s; }
.tile.play .out-hud b { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .out-menu { opacity: 1; transform: none; animation: none !important; }
  .dnd-on, .dnd-off { animation: none !important; }
}
@media (max-width: 440px) {
  .card.wide .mock-cp { zoom: .84; }
  .out-menu { right: 0; }
}

/* 0.3.4: volumen y brillo solo con la barra, como Canopy */
.pill-bar.wider { width: 150px; }
.mini-bar.long { width: 84px; }
.vol-num { display: none; }
