/* Deckrama's page (~/Developer/app/deckrama), short on purpose: the top with the live deck, three steps, six things
   it does, a few questions. The identity of 2026-11-16: the "Elétrico" gradient (violet, blue, pink) on the top and on
   the closing line only; the rest is the deck's own graphite, with the yellow of the lit key for the one thing to
   press. Quicksand everywhere: one rounded line, like the drawn name.
   Paths are relative, so the page also opens on the local nginx (/fly/deckrama.app/).
   Contrast (WCAG) noted against the surface each color sits on. */

/* Quicksand variable (weight 300-700), Latin only. */
@font-face {
  font-family: "Quicksand";
  src: url("fonts/quicksand.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #141413;      /* the deck's graphite */
  --ground-deep: #0A0A09;
  --tile: #1F1F1D;
  --tile-2: #2B2B28;
  --hair: rgb(255 255 255 / .1);
  --text: #F4F4F0;        /* 16.9:1 on the ground */
  --text-2: #B9B9B1;      /* 9.1:1 on the ground, 8:1 on a tile */
  --key: #FFD60A;         /* the lit key; graphite on it, 12.9:1 */
  --key-press: #FFE34D;
  --violet: #5B2BFF;
  --blue: #2F6BFF;
  --pink: #FF4FA3;
  --eletrico: linear-gradient(135deg, var(--violet) 0%, var(--blue) 48%, var(--pink) 100%);
  --font: "Quicksand", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1080px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(52px, 6vw, 76px);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 500 16.5px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--key); outline-offset: 3px; border-radius: 6px; }

.in { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -999px; top: 8px; padding: 10px 16px; border-radius: 10px; background: var(--key); color: var(--ground); font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

/* The lit key: the period of the name and of the title. */
.key {
  display: inline-block;
  width: .26em;
  height: .26em;
  margin-left: .08em;
  border-radius: 28%;
  background: var(--key);
  transform: rotate(-7deg);
  box-shadow: 0 0 .5em rgb(255 214 10 / .55);
}

/* --- Buttons --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  background: var(--key);
  color: var(--ground);
  font: 700 16.5px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s var(--ease);
}
.button:hover { background: var(--key-press); }
.button:active { transform: scale(.97); }
.button-quiet { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); }
.button-quiet:hover { background: rgb(255 255 255 / .24); }
.button-small { min-height: 38px; padding: 0 15px; border-radius: 12px; font-size: 15px; }

/* --- Top: the gradient, the title and the live deck side by side --- */

.top { position: relative; background: var(--eletrico); }
/* A light from above, as on the icon. */
.top::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgb(255 255 255 / .2), transparent 70%); pointer-events: none; }
.top > * { position: relative; }

.nav-in { display: flex; align-items: center; min-height: 68px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img:first-child { width: 34px; height: 34px; border-radius: 22.37%; margin-right: 10px; }
.brand img:last-child { height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; }
.nav-links a { margin-left: 24px; font-size: 15.5px; font-weight: 600; text-decoration: none; color: #fff; }
.nav-links a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: clamp(28px, 4vw, 56px); padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(36px, 5vw, 60px); }
.hero h1 { font-size: clamp(34px, 4.5vw, 54px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; color: #fff; }
.hero-lead { max-width: 30em; margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.45; color: #fff; }
.hero-actions { margin-top: 24px; }
/* Nothing to download yet: a label, not a button. It becomes the download button at launch. */
.soon-tag { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 15px; background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); color: #fff; font-weight: 700; font-size: 16.5px; line-height: 1; }
.soon-tag-small { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 15px; margin-left: 24px; }
.hero-note { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: rgb(255 255 255 / .9); }

/* The live deck: the real deck web inside a tablet. Lying down on wide screens, standing up on phones. */
.device {
  position: relative;
  padding: clamp(7px, .9vw, 11px);
  border-radius: clamp(20px, 2.4vw, 30px);
  background: #050505;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 30px 60px -18px rgb(20 0 80 / .7);
}
.device-screen { position: relative; overflow: hidden; border-radius: clamp(13px, 1.6vw, 20px); background: var(--ground-deep); padding-top: 75%; }
.device-screen > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.device-screen img { object-fit: cover; }
/* site.js draws the deck at a tablet's size and scales it to the frame. */
.device-screen iframe { max-width: none; transform-origin: 0 0; }
/* Touch screens: the deck waits for a tap before taking touches, so a drag over it still scrolls the page (site.js). */
.device-guard { display: flex; align-items: flex-end; justify-content: center; padding: 0 0 16px; background: none; cursor: pointer; }
.device-guard[hidden] { display: none; }
.device-guard span { padding: 10px 16px; border-radius: 13px; background: var(--key); color: var(--ground); font: 700 15px/1 var(--font); box-shadow: 0 8px 24px rgb(0 0 0 / .5); }

.scenes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.scene-tabs { display: flex; padding: 3px; border-radius: 14px; background: rgb(10 10 9 / .45); }
.scene-tabs button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 11px; background: none; color: #fff; font: 600 14.5px/1 var(--font); cursor: pointer; }
.scene-tabs button:hover { background: rgb(255 255 255 / .14); }
.scene-tabs button[aria-selected="true"] { background: var(--key); color: var(--ground); }
.scene-note { flex: 1 1 220px; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: #fff; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .nav-links a { display: none; }
}
@media (max-width: 560px) {
  .device { max-width: 340px; margin: 0 auto; }
  .device-screen { padding-top: 160%; }
  .device-screen img { display: none; }
  .scenes { justify-content: center; text-align: center; }
}

/* --- Sections --- */

.section { padding-top: var(--section); }
.section h2 { font-size: clamp(24px, 2.8vw, 31px); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }

/* Three steps: a real sequence, so they are numbered. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 28px; margin-top: 22px; counter-reset: step; }
.steps li { position: relative; padding-left: 52px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tile-2);
  font-weight: 700;
  font-size: 17px;
}
.steps li:last-child::before { background: var(--key); color: var(--ground); transform: rotate(-7deg); }
.steps h3 { font-size: 17.5px; font-weight: 700; line-height: 1.25; }
.steps p { margin-top: 3px; font-size: 15.5px; color: var(--text-2); }

/* What it does: six small tiles, each with its square in the button's color, as on the deck. */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin-top: 22px; }
.cell { display: flex; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--tile); }
.cell-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 14px; border-radius: 13px; background: rgb(255 255 255 / .1); }
/* The glyph is a mask, so it takes the tile's color; each <i> names its own picture in the page. */
.cell-icon i {
  display: block;
  width: 25px;
  height: 25px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.cell h3 { font-size: 17.5px; font-weight: 700; line-height: 1.25; }
.cell p { margin-top: 3px; font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
.tint-yellow .cell-icon { background: var(--key); color: var(--ground); }
.tint-blue .cell-icon { background: rgb(47 107 255 / .26); color: #8FB1FF; }
.tint-pink .cell-icon { background: rgb(255 79 163 / .22); color: #FF8FC4; }
.tint-violet .cell-icon { background: rgb(123 86 255 / .3); color: #B7A2FF; }
.tint-green .cell-icon { background: rgb(48 209 88 / .2); color: #6FE08C; }
.tint-red .cell-icon { background: rgb(255 69 58 / .2); color: #FF8A82; }
/* Everything it has: closed until asked for. One line per item, with the deck's own icon; what is coming says so. */
.all { margin-top: 12px; border-radius: 22px; background: var(--tile); }
.all summary { display: flex; align-items: center; min-height: 56px; padding: 0 20px; font-size: 17.5px; font-weight: 700; cursor: pointer; list-style: none; border-radius: 22px; }
.all summary::-webkit-details-marker { display: none; }
.all summary:hover { background: var(--tile-2); }
.all summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-left: auto; border-right: 2.5px solid var(--text-2); border-bottom: 2.5px solid var(--text-2); transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease); }
.all[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.all h3 { margin: 18px 20px 0; font-size: 15px; font-weight: 700; color: var(--text-2); }
.all summary + h3 { margin-top: 6px; }
.all-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 16px; padding: 8px 20px 0; }
.all-list:last-child { padding-bottom: 20px; }
.all-list li { display: flex; align-items: center; min-height: 34px; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.all-list i { flex: none; width: 21px; height: 21px; margin-right: 10px; background: var(--text); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.all-soon li { color: var(--text-2); }
.all-soon i { background: var(--text-2); }
.all-list em { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 7px; background: rgb(255 214 10 / .16); color: var(--key); font-size: 12px; font-weight: 700; font-style: normal; white-space: nowrap; }

/* Questions. */
.faq { max-width: 720px; margin-top: 14px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; padding: 15px 0; font-size: 17.5px; font-weight: 700; line-height: 1.25; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-left: auto; border-right: 2.5px solid var(--text-2); border-bottom: 2.5px solid var(--text-2); transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease); }
.faq summary span { padding-right: 20px; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 30px 16px 0; font-size: 16px; color: var(--text-2); }
.faq a { color: var(--text); text-underline-offset: 3px; }

/* The closing line: the packaging again, in one row. The download button goes here at launch. */
.closing { margin-top: var(--section); }
.closing-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: clamp(22px, 3vw, 30px) clamp(22px, 3.4vw, 36px); border-radius: 26px; background: var(--eletrico); }
.closing-in img { flex: none; width: 56px; height: 56px; border-radius: 22.37%; box-shadow: 0 10px 24px rgb(20 0 80 / .45); }
.closing h2 { flex: 1 1 280px; font-size: clamp(20px, 2.3vw, 25px); font-weight: 700; line-height: 1.2; color: #fff; }

/* --- Footer --- */

.footer { margin-top: clamp(40px, 5vw, 56px); padding: 28px 0 40px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--text-2); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.footer-brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; color: var(--text); }
.footer-brand span { margin-right: 10px; }
.footer-brand svg { width: 124px; height: auto; color: var(--text); }
.footer-links, .footer-languages { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a, .footer-languages a { text-underline-offset: 3px; }
.footer-links a:hover, .footer-languages a:hover { color: var(--text); }
.footer-languages a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
.footer p { flex: 1 1 100%; max-width: 74em; font-size: 13px; line-height: 1.5; }

/* --- The plain pages: privacy, support, terms --- */

.plain-nav { border-bottom: 1px solid var(--hair); }
.legal { max-width: calc(700px + 2 * var(--pad)); margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--pad) 0; }
.legal h1 { font-size: clamp(28px, 3.8vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.legal .updated { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.legal .intro { margin-top: 22px; font-size: 18px; }
.legal h2 { margin-top: 36px; font-size: 21px; font-weight: 700; line-height: 1.2; }
.legal p, .legal ul, .legal ol { margin-top: 12px; color: #D9D9D2; }  /* 12:1 */
.legal ul, .legal ol { padding-left: 22px; }
.legal ul { list-style: disc; }
.legal li + li { margin-top: 7px; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 700; }
.legal code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--tile-2); }
.contact { margin-top: 22px; padding: 22px 24px; border-radius: 22px; background: var(--tile); }
.contact p:first-child { margin-top: 0; }
.contact .button { margin-top: 16px; }
.contact a.button { color: var(--ground); }

/* One moment on load: the key at the end of the title is pressed and lights up. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .key { animation: light 1s .5s var(--ease) both; }
  @keyframes light {
    0% { background: rgb(255 255 255 / .28); box-shadow: none; transform: rotate(0) scale(1); }
    35% { background: rgb(255 255 255 / .28); box-shadow: none; transform: rotate(0) scale(.82); }
    100% { background: var(--key); box-shadow: 0 0 .5em rgb(255 214 10 / .55); transform: rotate(-7deg) scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .faq summary::after, .all summary::after { transition: none; }
}
