/* Fonts served from this site, not from Google: no visitor's address goes to a third party. Latin subsets,
   SIL Open Font License (assets/fonts/LICENSE-*.txt). */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4.woff2") format("woff2");
}

/* One column of graphite plates on a dark ground: the page is built from the app's own materials. */
:root {
  --ground: #111012;
  --ground-deep: #0B0A0B;
  --plate-top: #303034;
  --plate-mid: #222226;
  --plate-bottom: #19191C;
  --edge: #0A0A0B;
  --brass: #C99A4C;
  --brass-light: #EAC37A;
  --amber: #FFB257;
  --sage: #A9E0B2;
  --cream: #E9E4D6;
  --body: #C9C4B8;
  --engrave: #A8A49A;
  --engrave-dim: #77746B;
  --desk: #D5D5D5;
  --serif: "Source Serif 4", Iowan Old Style, Palatino, Georgia, serif;
  --label: "IBM Plex Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--ground);
  color: var(--body);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

.label {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--engrave);
}

h1, h2, h3 { font-family: var(--serif); color: var(--cream); margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }

p { margin: 0; max-width: 62ch; }

a { color: var(--brass-light); }

/* The hero: the panel hangs from its notch into the top of the page. */
.hero {
  padding-top: 0;
  background: radial-gradient(120% 90% at 50% 0%, #1B1A1E 0%, var(--ground) 55%, var(--ground-deep) 100%);
  padding-block: 0 clamp(48px, 7vw, 88px);
  border-bottom: 1px solid #000;
}

/* The top of a MacBook screen: the notch at rest, the pointer arrives, the tuner drops down, the pointer
   leaves and it closes. The panel is the real capture throughout; at rest it is clipped to the black middle
   of its top edge, which is what the notch looks like. Proportions of the 1472 × 485 capture (2×): the
   notch is 370 × 64 px, the screen 560 px tall. */
.screen {
  position: relative;
  width: min(100%, 980px);
  aspect-ratio: 1472 / 560;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background:
    radial-gradient(80% 120% at 85% 110%, rgba(201, 154, 76, 0.28), transparent 60%),
    linear-gradient(165deg, #6B4A3A 0%, #3B2A25 55%, #1E1A1C 100%);
  box-shadow: 0 0 0 1px #000, 0 30px 60px rgba(0, 0, 0, 0.5);
}

.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 11.4%;
  display: flex;
  align-items: center;
  gap: 2.2%;
  padding-inline: 2.4%;
  background: rgba(20, 16, 16, 0.35);
}

.menubar span {
  width: 4%;
  height: 22%;
  border-radius: 99px;
  background: rgba(233, 228, 214, 0.45);
}

.menubar span:first-child { width: 1.6%; height: 34%; }
.menubar .menubar-right { margin-left: auto; }

.screen-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
  clip-path: inset(0 0 0 0 round 0);
}

.pointer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate(54%, 42%);
}

.pointer svg {
  display: block;
  width: clamp(11px, 1.6%, 16px);
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

@media (prefers-reduced-motion: no-preference) {
  .screen-panel { animation: notch-open 8s cubic-bezier(0.32, 0.72, 0, 1) infinite; }
  .pointer { animation: pointer-path 8s ease-in-out infinite; }
}

/* At rest the clip is the notch: 37.4 % in from each side, 86.8 % up from the bottom. */
@keyframes notch-open {
  0%, 30% { clip-path: inset(0 37.4% 86.8% 37.4% round 0 0 14px 14px); }
  40%, 76% { clip-path: inset(0 0 0 0 round 0 0 0 0); }
  86%, 100% { clip-path: inset(0 37.4% 86.8% 37.4% round 0 0 14px 14px); }
}

@keyframes pointer-path {
  0%, 10% { transform: translate(78%, 74%); opacity: 1; }
  29%, 33% { transform: translate(51%, 4%); }
  48%, 70% { transform: translate(55%, 46%); }
  84% { transform: translate(84%, 102%); opacity: 1; }
  85% { transform: translate(84%, 102%); opacity: 0; }
  86%, 94% { transform: translate(78%, 74%); opacity: 0; }
  100% { transform: translate(78%, 74%); opacity: 1; }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
  margin-top: clamp(32px, 5vw, 56px);
}

.hero-text p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

.quiet {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--engrave-dim);
}

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }

.stack { display: flex; flex-direction: column; gap: 22px; }

.shot {
  margin-top: clamp(28px, 4vw, 44px);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.55));
}

.shot img { width: 100%; }

/* A plate: brushed graphite with a screw in each corner, like the app's faceplates. */
.plate {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, var(--plate-top), var(--plate-mid) 55%, var(--plate-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.45);
  padding: clamp(26px, 4vw, 42px);
}

.plate::before, .plate::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8C8C8C, #4A4A4A 60%, #292929);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plate::before { left: 13px; }
.plate::after { right: 13px; }

/* The desk band: the collapsed notch is black, so it needs a bright screen behind it. */
.desk {
  background: var(--desk);
  color: #3A3832;
}

.desk h2 { color: #17161A; }

.desk p { color: #46443E; }

.desk .label { color: #6A675F; }

.ears {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 30px);
  margin-top: clamp(28px, 4vw, 44px);
}

.ear {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(14px, 2.5vw, 34px);
  align-items: center;
}

.ear img { width: 100%; }

.ear p { color: #46443E; font-size: 1rem; }

.ear strong { color: #17161A; font-weight: 600; }

/* Engraved keys */
.keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding: 0; list-style: none; }

.keys li {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(to bottom, #3A3A3F, #232326 60%, #18181A);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.keys b { color: var(--amber); font-family: var(--serif); font-weight: 600; letter-spacing: 0; }

.amber { color: var(--amber); }
.sage { color: var(--sage); }

footer {
  border-top: 1px solid #000;
  background: var(--ground-deep);
  padding-block: clamp(40px, 6vw, 64px);
}

footer .wrap { display: flex; flex-direction: column; gap: 14px; }

footer p { font-size: 1rem; }

@media (max-width: 640px) {
  .ear { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The text pages: privacy, support. One column, the app's plate for the title. */
.page-head {
  border-bottom: 1px solid #000;
  background: var(--ground-deep);
  padding-block: 22px;
}

.page-head .wrap { display: flex; align-items: center; gap: 12px; }
.page-head a { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.page-head img { width: 32px; height: 32px; }

.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 22px; }
.doc ul { margin: 0; padding-left: 1.2em; max-width: 62ch; }
.doc li + li { margin-top: 8px; }
.doc kbd { font-family: var(--label); font-weight: 600; color: var(--amber); }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
