/* ForgotTheDongle landing page.
   Palette: a light sky blue, black + white from the app icon, the red of the laser dot, a cool desk grey. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --accent: #BDE0FE;
  --black: #000;
  --white: #fff;
  --laser: #E5251B;
  --desk: #E9EDF0;
  --slate: #46525C;
  --line: #C9D1D7;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 1.0625rem/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, .brand { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-size: 1.3125rem; line-height: 1.2; font-weight: 700; }
p { margin: 0; max-width: 62ch; }

a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */

.hero { background: var(--accent); padding-block: clamp(20px, 3vw, 32px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; margin-bottom: clamp(36px, 7vw, 84px); }
.brand img { border-radius: 8px; display: block; }

.lede { font-size: 1.25rem; line-height: 1.45; margin-top: 24px; max-width: 46ch; }

.downloads { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dl {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 13.5rem; padding: 14px 20px 15px;
  background: var(--black); color: var(--white);
  border: 2px solid var(--black); border-radius: 14px;
  text-decoration: none;
}
.dl-name { font-family: var(--display); font-size: 1.125rem; font-weight: 700; }
.dl-note { font-size: 0.875rem; opacity: 0.75; }
.dl:hover { background: var(--white); color: var(--black); }
.dl.is-here { box-shadow: 0 0 0 4px var(--accent), 0 0 0 6px var(--black); }
.dl[aria-disabled="true"] { background: transparent; color: var(--black); border-style: dashed; cursor: default; }
.dl[aria-disabled="true"] .dl-note { opacity: 1; }

.both { margin-top: 20px; font-size: 0.9375rem; }

/* ---------- hero scene: monitor, desk, phone ---------- */

.scene { --s: min(100%, 420px); width: var(--s); margin-inline: auto; position: relative; }
.monitor {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--white); border: 5px solid var(--black); border-radius: 16px;
}
.cursor { position: absolute; left: 50%; top: 50%; margin: -4px 0 0 -6px; will-change: transform; }
.laser {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--laser); box-shadow: 0 0 0 5px rgba(229, 37, 27, 0.22), 0 0 18px 6px rgba(229, 37, 27, 0.35);
  will-change: transform;
}
.scene[data-view="laser"] .cursor, .scene[data-view="mouse"] .laser { display: none; }
/* held in the hand and turned, not slid over the desk */
.scene[data-view="laser"] .phone { transform-origin: 50% 85%; }
.scene-toggle { display: flex; width: fit-content; margin: 10px auto 0; padding: 3px; border: 2px solid var(--black); border-radius: 99px; }
.scene-toggle button {
  font: 600 0.875rem/1 var(--body); color: var(--black); background: transparent;
  border: 0; border-radius: 99px; padding: 8px 14px; cursor: pointer;
}
.scene-toggle button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.stand { width: 22%; height: 26px; margin-inline: auto; background: var(--black); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.desk {
  height: 224px; margin-top: -1px; border-top: 5px solid var(--black);
  display: grid; place-items: center;
}
.phone {
  width: 84px; height: 168px; border-radius: 20px;
  background: var(--black); border: 5px solid var(--black);
  display: grid; overflow: hidden;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.16);
  will-change: transform;
}
.phone span { background: #2B2B2B; border-radius: 14px; }
.tilt-start {
  display: block; margin: 14px auto 0; padding: 11px 18px;
  font: 600 0.9375rem/1 var(--body); color: var(--white); background: var(--black);
  border: 0; border-radius: 99px; cursor: pointer;
}
.tilt-hint { margin-top: 12px; font-size: 0.875rem; text-align: center; max-width: none; }
.tilt-start[hidden], .tilt-hint[hidden] { display: none; }
.scene-hint { display: none; margin-top: 12px; font-size: 0.875rem; text-align: center; max-width: none; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .scene-hint { display: block; }
}

/* ---------- sections ---------- */

main > section { padding-block: clamp(56px, 8vw, 104px); }
main h2 { margin-bottom: clamp(28px, 4vw, 48px); }

.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.mode-grid article { border-top: 5px solid var(--black); padding-top: 18px; }
.mode-grid small { font: 600 0.8125rem/1 var(--body); padding: 3px 8px 4px; margin-left: 6px; vertical-align: 0.15em; border: 2px solid var(--black); border-radius: 99px; }
.mode-grid p { margin-top: 10px; color: var(--slate); }

.band { background: var(--desk); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 80px); }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-content: start; }
.steps li::before {
  content: counter(step); grid-row: 1 / span 9;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); border: 3px solid var(--black);
  font: 800 1.25rem/1 var(--display);
}
.steps h3 { grid-column: 2; padding-top: 9px; }
.steps p { grid-column: 2; margin-top: 8px; color: var(--slate); }
.steps strong, .steps em { color: var(--black); font-style: normal; font-weight: 600; }

.help details { border-top: 1px solid var(--line); max-width: 760px; }
.help details:last-child { border-bottom: 1px solid var(--line); }
.help summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-size: 1.1875rem; font-weight: 600; list-style-position: inside; }
.help details p { padding: 0 0 20px; color: var(--slate); }

main > .privacy-note { padding-top: 0; }
.privacy-note h2 { margin-bottom: 16px; }
.privacy-note p { color: var(--slate); }
.privacy-note a { color: var(--black); font-weight: 600; }

footer.wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 40px; border-top: 5px solid var(--black); font-size: 0.9375rem; }
footer p { font-family: var(--display); font-weight: 700; }
footer nav { display: flex; gap: 24px; }
footer .credits { flex-basis: 100%; max-width: none; font: 400 0.875rem/1.5 var(--body); color: var(--slate); }

/* ---------- text pages (privacy) ---------- */

.doc-head { background: var(--accent); padding-block: clamp(20px, 3vw, 32px) clamp(36px, 5vw, 56px); }
.doc-head .brand { margin-bottom: clamp(28px, 5vw, 56px); }
.doc-head .brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.doc-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.doc { padding-block: clamp(36px, 5vw, 64px); }
.doc h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.doc p, .doc ul { max-width: 66ch; color: var(--slate); margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc .updated { color: var(--black); font-weight: 600; }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .scene { --s: min(100%, 340px); }
  .desk { height: 176px; }
  .phone { width: 64px; height: 128px; border-radius: 16px; }
  .mode-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .dl { flex: 1 1 100%; }
  .downloads li { flex: 1 1 100%; display: flex; }
}
