@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --tinta: #0B0D16;
  --superficie: #151827;
  --linha: #2C3148;
  --papel: #F3F1EC;
  --verde: #5BC46A;
  --turquesa: #4FB0C6;
  --azul: #4A8CF7;
  --indigo: #5B5FD6;
  --roxo: #A456D9;
  --suave: #A9ADC0;
  --suave-papel: #4C4F60;
  --u: 8px;
  --titulo: "Space Grotesk", ui-sans-serif, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tinta);
  color: var(--papel);
  font: 400 18px/1.55 var(--titulo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sprite { position: absolute; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 5; background: var(--papel); color: var(--tinta); padding: 8px 14px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.top img { height: 30px; width: auto; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--suave); }
.top nav a:hover { color: var(--papel); }
.top nav .pill { color: var(--papel); border: 1px solid var(--linha); padding: 7px 16px; border-radius: 10px; }
.top nav .pill:hover { border-color: var(--verde); }

/* Hero: o painel é maior que a coluna e encosta na borda, como um objeto sobre a mesa. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding-block: 40px 96px;
}
h1 {
  font-size: clamp(44px, 4.5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h1 span { color: var(--verde); }
.lead { margin-top: 28px; font-size: 20px; color: #D5D6DE; max-width: 30em; }
.hint, .hint-mobile { margin-top: 28px; color: var(--suave); font-size: 15px; }
.hint { display: flex; align-items: center; gap: 12px; }
.hint-mobile { display: none; }
.hint-key {
  width: 18px; height: 18px; border-radius: 5px; background: var(--verde);
  animation: chama 2.4s ease-in-out infinite;
}
@keyframes chama { 50% { transform: translateX(6px) scale(0.86); } }

.stage { position: relative; padding-bottom: 72px; }
.ipad {
  background: #05060B;
  border: 1px solid var(--linha);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 50px 90px -40px rgb(74 140 247 / 0.45), inset 0 0 0 5px #10121C;
}
.ipad-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 16px; }
.ipad-bar img { height: 22px; width: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--superficie); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 500;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }

.deck { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px); padding: 0 8px 8px; }

/* Mesmas proporções do DeckKey do app: raio 20%, bolinha 13%, X 22%. */
.key-wrap { position: relative; aspect-ratio: 1; container-type: inline-size; animation: entra 0.5s backwards cubic-bezier(0.2, 0.8, 0.2, 1); animation-delay: calc(var(--i) * 28ms); }
@keyframes entra { from { opacity: 0; transform: translateY(14px) scale(0.92); } }
.key {
  position: relative; width: 100%; height: 100%; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqw;
  border: 1px solid rgb(255 255 255 / 0.1); border-radius: 20cqw;
  background: var(--bg); color: var(--fg);
  font: 600 max(12cqw, 9px)/1.1 var(--titulo);
  cursor: pointer; overflow: hidden;
  transition: transform 0.14s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.key:hover { filter: brightness(1.08); }
.key:active { transform: scale(0.94); }
.key svg { width: 38cqw; height: 38cqw; }
.key svg, .big-glyph, .x svg, .key-close svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.key .veil { position: absolute; inset: 0; display: none; place-items: center; background: rgb(0 0 0 / 0.5); }
.key .veil svg { width: 44cqw; height: 44cqw; color: var(--verde); stroke-width: 2.6; }
.key.is-busy .veil, .key.is-done .veil { display: grid; }
.key.is-busy .veil svg { display: none; }
.key.is-busy .veil::after {
  content: ""; width: 30cqw; height: 30cqw; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.3); border-top-color: #fff;
  animation: gira 0.6s linear infinite;
}
.key.is-done { border: 2px solid var(--verde); }
@keyframes gira { to { transform: rotate(360deg); } }

.key-dot {
  position: absolute; left: 5cqw; top: 5cqw; width: max(13cqw, 9px); height: max(13cqw, 9px);
  background: var(--verde); border: 1.5px solid #fff; border-radius: 50%; pointer-events: none;
  animation: surge 0.2s ease-out;
}
.key-close {
  position: absolute; right: 0; top: 0; width: max(42cqw, 28px); height: max(42cqw, 28px);
  background: none; border: 0; padding: 3cqw; cursor: pointer; display: flex; justify-content: flex-end;
  color: #fff; animation: surge 0.2s ease-out;
}
.key-close span {
  width: max(24cqw, 17px); height: max(24cqw, 17px); display: grid; place-items: center;
  background: rgb(11 13 22 / 0.82); border: 1px solid rgb(255 255 255 / 0.7); border-radius: 50%;
}
.key-close svg { width: 60%; height: 60%; stroke-width: 3; }
@keyframes surge { from { opacity: 0; transform: scale(0.4); } }
.key-empty { aspect-ratio: 1; border: 1px solid var(--linha); border-radius: 20%; animation: entra 0.5s backwards; animation-delay: calc(var(--i) * 28ms); }

.mac {
  position: absolute; right: -14px; bottom: 0; width: min(330px, 62%);
  background: rgb(21 24 39 / 0.9); backdrop-filter: blur(14px);
  border: 1px solid var(--linha); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 24px 50px -20px #000;
}
.mac h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.mac h2::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FF5F57;
  box-shadow: 15px 0 #FEBC2E, 30px 0 #28C840; margin-right: 38px;
}
.mac ol { margin-top: 10px; min-height: 66px; font: 13px/22px var(--mono); color: #D5D6DE; }
.mac li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac li:last-child { color: var(--verde); }
.mac time { color: var(--suave); margin-right: 8px; }
.mac p { margin-top: 8px; font-size: 12px; line-height: 1.35; color: var(--suave); }

section h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }

.versus { padding-block: 72px 88px; border-top: 1px solid var(--linha); }
.versus-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; }
.versus-head p { color: #C9CAD4; }
.table-scroll { margin-top: 44px; overflow-x: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; }
th, td { padding: 18px 20px; text-align: left; font-weight: 400; border-top: 1px solid var(--linha); vertical-align: top; }
thead th, thead td { border-top: 0; font-size: 15px; font-weight: 600; color: var(--suave); }
tbody th { width: 34%; font-weight: 600; }
tbody td { color: #C9CAD4; }
table .ours { background: var(--superficie); color: var(--papel); font-weight: 500; }
thead .ours { color: var(--verde); border-radius: 14px 14px 0 0; }
tbody tr:last-child .ours { border-radius: 0 0 14px 14px; }
table .muted { color: var(--suave); font-weight: 400; }
sup { font-size: 0.7em; line-height: 0; color: var(--suave); }
.note { margin-top: 16px; font-size: 13px; color: var(--suave); }

.people { padding-bottom: 104px; }
.people h2 { max-width: 15em; }
.people-lead { margin-top: 20px; max-width: 36em; color: #C9CAD4; }
.people ul { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.people li { padding-top: 18px; border-top: 3px solid var(--azul); }
.people li:nth-child(1) { border-color: var(--verde); }
.people li:nth-child(2) { border-color: var(--turquesa); }
.people li:nth-child(4) { border-color: var(--roxo); }
.people h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.people li p { margin-top: 8px; font-size: 16px; color: #C9CAD4; }

/* A tecla gigante é a explicação: mesmas marcas do app, em tamanho de cartaz. */
.status {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center;
  padding-block: 72px;
  border-top: 1px solid var(--linha);
}
.big-key {
  position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; rotate: -4deg;
  background: var(--azul); border-radius: 20%; color: #fff; display: grid; place-items: center;
  box-shadow: 0 40px 80px -30px rgb(74 140 247 / 0.7);
}
.big-glyph { width: 46%; stroke-width: 1.4; }
.big-key .dot { position: absolute; left: 6%; top: 6%; width: 13%; aspect-ratio: 1; background: var(--verde); border: 4px solid #fff; border-radius: 50%; }
.big-key .x { position: absolute; right: 5%; top: 5%; width: 18%; aspect-ratio: 1; display: grid; place-items: center; background: var(--tinta); border: 2px solid rgb(255 255 255 / 0.7); border-radius: 50%; }
.big-key .x svg { width: 56%; stroke-width: 3; }
.status dl { margin-top: 36px; display: grid; gap: 28px; }
.status dt { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; }
.status dd { margin-top: 6px; color: #C9CAD4; max-width: 32em; }
.mark-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--verde); border: 2px solid #fff; }
.mark-x { width: 16px; height: 16px; position: relative; }
.mark-x::before, .mark-x::after { content: ""; position: absolute; left: 7px; top: -1px; width: 2.5px; height: 18px; background: var(--papel); border-radius: 2px; rotate: 45deg; }
.mark-x::after { rotate: -45deg; }

.kinds { padding-block: 40px 96px; }
.kinds h2 { color: var(--suave); }
.kinds ul { margin-top: 18px; }
.kinds li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: 12px; border-top: 1px solid var(--linha);
  font-size: clamp(34px, 4vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em;
}
.kinds small { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--suave); text-align: right; }

.setup { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; padding-bottom: 112px; }
.setup-copy p { margin-top: 20px; color: #C9CAD4; max-width: 30em; }
.size-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.size { background: var(--superficie); border: 1px solid var(--linha); border-radius: 16px; padding: 14px; }
.size-grid { display: grid; gap: 3px; aspect-ratio: 4 / 3; align-content: center; }
.size-grid i { aspect-ratio: 1; border-radius: 20%; }
.size b { display: block; margin-top: 10px; font-size: 22px; line-height: 1; }
.size b small { font-size: 13px; font-weight: 400; color: var(--suave); }
.sizes figcaption { margin-top: 14px; color: var(--suave); font-size: 15px; }

.paper { background: var(--papel); color: var(--tinta); padding-block: 112px; }
.paper-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.paper-lead { font-size: 22px; line-height: 1.4; font-weight: 500; }
.paper ul { margin-top: 28px; display: grid; gap: 18px; color: var(--suave-papel); }
.paper strong { color: var(--tinta); font-weight: 700; }
.fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid #CFCCC2; font-size: 15px; color: var(--suave-papel); }

.steps { padding-block: 112px 88px; }
.steps ol { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps span {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  font-size: 26px; font-weight: 700; color: var(--tinta); background: var(--verde);
}
.steps li:nth-child(2) span { background: var(--turquesa); }
.steps li:nth-child(3) span { background: var(--azul); color: #fff; }
.steps h3 { margin-top: 18px; font-size: 23px; letter-spacing: -0.015em; }
.steps p { margin-top: 6px; color: #C9CAD4; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; padding-block: 72px 112px; border-top: 1px solid var(--linha); }
details { border-bottom: 1px solid var(--linha); }
summary { cursor: pointer; padding-block: 18px; font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--verde); font-size: 24px; line-height: 1.2; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 20px; color: #C9CAD4; max-width: 38em; }

.launch {
  display: flex; align-items: center; gap: 44px;
  margin-bottom: 72px; padding: 48px;
  background: var(--superficie); border: 1px solid var(--linha); border-radius: 28px;
}
.launch p { margin-top: 10px; color: #C9CAD4; }
.launch-grid { flex: none; display: grid; grid-template-columns: repeat(3, 34px); gap: 8px; }
.launch-grid i { aspect-ratio: 1; border-radius: 25%; background: var(--azul); }
.launch-grid i:nth-child(1) { background: var(--verde); }
.launch-grid i:nth-child(2), .launch-grid i:nth-child(4) { background: var(--turquesa); }
.launch-grid i:nth-child(6), .launch-grid i:nth-child(8) { background: var(--indigo); }
.launch-grid i:nth-child(9) { background: var(--roxo); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 44px; font-size: 13px; color: var(--suave); }
.foot img { height: 22px; width: auto; }

@media (max-width: 960px) {
  .hero, .status, .setup, .paper-grid, .faq, .versus-head { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .versus-head { gap: 18px; }
  .people ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .hero { padding-bottom: 64px; }
  .hint { display: none; }
  .hint-mobile { display: block; }
  .big-key { width: min(72%, 340px); }
  .mac { position: static; width: auto; margin-top: 14px; }
  .stage { padding-bottom: 0; }
  .paper, .steps { padding-block: 72px; }
  .setup { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .top nav a:not(.pill) { display: none; }
  .ipad { padding: 10px; border-radius: 22px; }
  .deck { padding: 0 4px 4px; }
  .kinds li { flex-direction: column; gap: 2px; }
  .kinds small { text-align: left; }
  .steps ol, .people ul { grid-template-columns: minmax(0, 1fr); }
  /* No celular, cada linha vira rótulo em cima e as duas colunas embaixo: o MacDeck nunca fica fora da tela. */
  table { min-width: 0; display: block; }
  thead, tbody { display: block; }
  tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  thead td { display: none; }
  th, td { padding: 12px; font-size: 15px; }
  tbody th { grid-column: 1 / -1; width: auto; padding: 16px 0 8px; font-size: 16px; }
  tbody td { border-top: 0; }
  thead .ours { border-radius: 12px 12px 0 0; }
  tbody .ours { border-radius: 10px; }
  .size-row { gap: 10px; }
  .size { padding: 10px; }
  .size-grid { gap: 2px; }
  .launch { flex-direction: column; align-items: flex-start; padding: 28px; gap: 24px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
