/* Camera Air. Layout and interactions follow graphicalui.com, set in SF Pro. */
:root {
  --ink: #171717;
  --soft: #7e7e7a;
  --faint: rgba(23, 23, 23, 0.3);
  --wash: #f4f4f2;
  --wash-hover: #eaeae7;
  --wash-active: #e0e0dc;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.5, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: #fff;
  color: var(--ink);
  font: 400 20px/32px -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #0a84ff; outline-offset: 3px; }

h1, h2 { font-weight: 500; font-size: 48px; line-height: 64px; letter-spacing: -0.01em; text-align: center; text-wrap: balance; }

nav { position: absolute; top: 17px; right: 32px; display: flex; gap: 8px; }
nav a { padding: 0 20px; border-radius: 999px; line-height: 56px; font-weight: 600; color: var(--faint); text-decoration: none; transition: color 0.18s, background-color 0.18s; }
nav a:hover { color: var(--ink); background: var(--wash); }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; padding: 168px 12px 0; text-align: center; }
.appicon { width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45); transition: scale 0.35s var(--spring); }
.appicon:hover { scale: 1.08; }
.appicon img { width: 112px; height: 112px; border-radius: 25px; }
.name { margin-top: 20px; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }

/* Sized so the longest wording still fits: the headline never wraps on its own. */
.hero h1 { margin-top: 72px; font-size: min(48px, calc((100vw - 24px) / 25)); line-height: 1.38; white-space: nowrap; text-wrap: nowrap; }
.hero br.s { display: none; }
.nw { white-space: nowrap; }

.chip {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 0.2em; vertical-align: top;
  height: 1.25em; margin: 0.06em 0.04em; padding: 0 0.36em 0 0.12em;
  border-radius: 999px; background: var(--wash);
  font-weight: 500; letter-spacing: inherit; line-height: 1.25em; white-space: pre;
  transition: background-color 0.18s, scale 0.2s var(--ease);
}
.chip:hover { background: var(--wash-hover); }
.chip:active { background: var(--wash-active); scale: 0.97; }
.chip .icon { position: relative; flex: none; width: 1.04em; height: 1.04em; }
.chip .icon svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.16)); transform: rotate(-9deg); transition: transform 0.35s var(--spring); }
.chip:hover .icon svg { transform: rotate(4deg) scale(1.12); }
.chip .word { display: inline-block; }
.chip .word i { display: inline-block; font-style: normal; }
.chip .ghost { position: absolute; top: 0; pointer-events: none; }

/* ---------- sections ---------- */
section { padding: 0 24px; margin-top: 200px; }
section > h2 { max-width: 768px; margin: 0 auto 72px; }
.stage { margin: 0 auto; border-radius: 28px; overflow: hidden; isolation: isolate; }

/* before and after */
figure { margin: 0; }
figcaption, .note { margin: 20px auto 0; max-width: 46ch; color: var(--soft); font-size: 15px; line-height: 22px; text-align: center; text-wrap: balance; }
.compare { --p: 50%; position: relative; max-width: 960px; aspect-ratio: 3 / 2; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.5); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.compare .after { clip-path: inset(0 0 0 var(--p)); }
.tag { position: absolute; bottom: 16px; padding: 0 14px; border-radius: 999px; background: rgba(20, 20, 20, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font-size: 14px; font-weight: 500; line-height: 32px; pointer-events: none; transition: opacity 0.2s, translate 0.35s var(--ease); }
.tag.left { left: 16px; }
.tag.right { right: 16px; }
.tag.hide { opacity: 0; translate: 0 8px; }
.handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 44px; margin-left: -22px; outline: none; }
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); }
.knob { position: absolute; top: 50%; left: -4px; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32); transition: scale 0.35s var(--spring); }
.knob svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare:hover .knob { scale: 1.08; }
.compare.dragging .knob { scale: 1.2; }
.handle:focus-visible .knob { outline: 2px solid #0a84ff; outline-offset: 3px; }

/* dial */
.dial { max-width: 768px; background: #000; padding: 64px 48px 40px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }
.dial .panels { position: relative; max-width: 570px; margin: 0 auto; aspect-ratio: 1134 / 288; }
.dial .panels img { position: absolute; inset: 0; width: 100%; opacity: 0; scale: 0.96; filter: blur(6px); transition: opacity 0.2s, scale 0.4s var(--spring), filter 0.25s; }
.dial .panels img.on { opacity: 1; scale: 1; filter: none; }
.dial .rows { position: relative; max-width: 603px; margin: 24px auto 0; aspect-ratio: 1206 / 135; }
.dial .rows img { position: absolute; inset: 0; width: 100%; opacity: 0; transition: opacity 0.2s; }
.dial .rows img.on { opacity: 1; }
.seg { position: relative; display: flex; margin: 32px auto 0; width: max-content; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--wash); }
.seg .thumb { position: absolute; top: 4px; left: 0; height: 36px; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); transition: translate 0.3s var(--ease), width 0.3s var(--ease); }
.seg button { position: relative; padding: 0 18px; border-radius: 999px; font-size: 16px; line-height: 36px; font-weight: 500; color: var(--soft); transition: color 0.2s; }
.seg button:hover, .seg button[aria-selected="true"] { color: var(--ink); }

/* the balance */
.scale { position: relative; max-width: 960px; height: 390px; background: var(--wash); cursor: pointer; user-select: none; -webkit-user-select: none; }
.scale > * { position: absolute; left: 0; top: 0; }
.shadow { width: 220px; height: 12px; margin-left: -110px; border-radius: 999px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.11) 0%, rgba(0, 0, 0, 0) 72%); pointer-events: none; }
.fulcrum { width: 64px; height: 52px; margin-left: -32px; background: linear-gradient(180deg, #3c3c40 0%, #242427 100%); clip-path: path("M27 4 Q32 -1 37 4 L62 46 Q65 52 57 52 L7 52 Q-1 52 2 46 Z"); z-index: 1; }
.beam { height: 16px; transform-origin: 50% 50%; z-index: 2; }
.plank { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(180deg, #2d2d30 0%, #171719 100%); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.load, .weight { position: absolute; display: flex; align-items: center; gap: 12px; white-space: nowrap; transform-origin: 50% 100%; }
.load { right: calc(50% + var(--seat, 92px)); bottom: calc(100% + 1px); }
.load .label { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.weight { left: calc(50% + var(--seat, 92px)); opacity: 0; pointer-events: none; }
.weight .label { width: 146px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.load img, .weight img { flex: none; width: var(--app, 60px); height: var(--app, 60px); border-radius: 14px; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.24), 0 1px 3px rgba(0, 0, 0, 0.1); }
.load b, .weight b { font-size: 15px; line-height: 19px; font-weight: 600; letter-spacing: -0.01em; }
.load span, .weight span { color: var(--soft); font-size: 14px; line-height: 18px; font-variant-numeric: tabular-nums; }
@keyframes float { 50% { translate: 0 -7px; } }

/* get it */
.get { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 160px; }
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px 40px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 22px; font-weight: 500; text-decoration: none; transition: scale 0.2s var(--ease); }
a.pill:active { scale: 0.96; }
a.pill .label, a.pill .arrow { transition: translate 0.3s var(--ease), opacity 0.2s; }
a.pill .arrow { position: absolute; right: 22px; opacity: 0; translate: -8px 0; }
@media (hover: hover) {
  a.pill:hover .label { translate: -10px 0; }
  a.pill:hover .arrow { opacity: 1; translate: 0 0; }
}
.get p { margin-top: 20px; max-width: 34ch; color: var(--soft); font-size: 18px; line-height: 28px; text-wrap: balance; }

/* footer */
footer { margin-top: 160px; padding: 0 24px 40px; }
.credit { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 750px; margin: 0 auto; color: var(--soft); font-size: 18px; }

/* ---------- text pages ---------- */
.page { max-width: 688px; margin: 0 auto; padding: 128px 24px 0; }
.page .home { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.page .home img { width: 44px; height: 44px; border-radius: 10px; }
.page h1 { text-align: left; margin-top: 64px; }
.page h2 { text-align: left; font-size: 24px; line-height: 32px; margin: 48px 0 12px; }
.page p, .page li { color: #4a4a47; }
.page p + p { margin-top: 16px; }
.page ul { padding-left: 24px; }
.page .date { color: var(--soft); margin-top: 8px; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 27px; }
  h1, h2 { font-size: 28px; line-height: 38px; }
  nav { top: 4px; right: 8px; gap: 0; }
  nav a { padding: 0 14px; line-height: 44px; }
  .hero { padding-top: 104px; }
  .hero h1 { margin-top: 48px; font-size: min(32px, calc((100vw - 16px) / 15.6)); line-height: 1.5; }
  .hero br.s { display: inline; }
  .hero br.w { display: none; }
  section { margin-top: 120px; padding: 0 16px; }
  section > h2 { margin-bottom: 40px; }
  .compare { border-radius: 20px; }
  .tag { bottom: 10px; font-size: 12px; line-height: 26px; padding: 0 10px; }
  .tag.left { left: 10px; }
  .tag.right { right: 10px; }
  .knob { width: 44px; height: 44px; margin-top: -22px; left: 0; }
  .scale { height: 320px; }
  .shadow { width: 160px; height: 10px; margin-left: -80px; }
  .fulcrum { width: 48px; height: 40px; margin-left: -24px; clip-path: path("M20 3 Q24 -1 28 3 L46 35 Q49 40 42 40 L6 40 Q-1 40 2 35 Z"); }
  .beam { height: 12px; }
  .load, .weight { gap: 8px; }
  .load img, .weight img { border-radius: 10px; }
  .weight .label { width: 104px; }
  .load b { font-size: 13px; line-height: 17px; }
  .weight b { font-size: 12px; line-height: 16px; }
  .load span, .weight span { font-size: 12px; line-height: 16px; }
  .dial { padding: 32px 12px 24px; }
  .seg button { padding: 0 11px; font-size: 14px; }
  .get { margin-top: 104px; }
  footer { margin-top: 104px; }
  .credit { font-size: 15px; }
  .page { padding-top: 72px; }
}

@media (max-width: 440px) {
  .load, .weight { gap: 6px; }
  .weight .label { width: 98px; }
  .weight b { font-size: 11px; line-height: 15px; }
  .load span, .weight span { font-size: 11px; line-height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
