/* Loupe landing page. Tokens and fonts live in base.css.
   Frame: the app's viewer. A floating pill of a nav, then a photo viewer window on the left
   with a round lens over the picture, and on the right the pitch and an inspector listing
   the four tests. Outside the lens the picture is as it was posted; under the lens it is
   magnified, greyed, and the part that does not belong is marked. Everything below sits on
   rounded cards. Flat colour only. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--sans); }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--bg); font-weight: 600; }
.skip:focus { left: 12px; }
:root { --pad: max(24px, calc((100vw - 1200px) / 2)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--mark); color: var(--mark-ink); font: 600 16px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color .15s ease-out, transform .15s ease-out; }
.btn:hover { background: #FF7BE2; }
.btn:active { transform: scale(.97); }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 34px; font-size: 18px; }
.note { font-size: 13px; color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--text-2); text-wrap: pretty; }
.again { padding: 12px 0; margin: -6px 0; border: 0; background: none; color: var(--text-2); font: 500 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.again:hover { color: var(--text); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--panel-2); font-size: 13px; font-weight: 500; color: var(--text-2); }

/* ---------- nav: a pill that floats ---------- */

.nav { position: sticky; top: 14px; z-index: 50; display: flex; align-items: center; gap: 30px; width: fit-content; max-width: calc(100% - 24px); height: 56px; margin: 14px auto 0; padding: 0 8px 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); transition: border-color .2s ease-out; }
.nav.is-stuck { border-color: rgba(255, 255, 255, .2); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.logo img { border-radius: 50%; background: var(--panel-2); }
.nav__links { display: flex; gap: 26px; font-size: 14px; color: var(--text-2); }
.nav__links a { display: inline-flex; align-items: center; min-height: 40px; }
.nav__links a:hover { color: var(--text); }

/* ---------- viewer on the left, pitch and inspector on the right ---------- */

.look { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 28px 56px; align-items: start; padding: 44px var(--pad) 0; }
.pitch { grid-column: 2; grid-row: 1; padding-top: 6px; }
.viewer { grid-column: 1; grid-row: 1 / 3; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); overflow: hidden; }
.inspect { grid-column: 2; grid-row: 2; }
h1 { margin-top: 18px; font-size: clamp(36px, 3.7vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.pitch .lede { margin-top: 16px; }
.pitch .actions { margin-top: 26px; }

.viewer__bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; font: 500 13px var(--mono); color: var(--text-2); }
.viewer__bar b { font-weight: 500; color: var(--text); }
.viewer__bar i { padding: 2px 8px; border-radius: 6px; background: var(--panel-2); font-style: normal; font-size: 12px; }
.viewer__bar span { margin-left: auto; color: var(--text-3); }
.photo { position: relative; aspect-ratio: 10 / 9; background: var(--panel-2); overflow: hidden; touch-action: pan-y; }
.photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
.look.is-done .photo { cursor: none; }
.tests:focus { outline: none; }
.lens { --d: 210px; position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0, 0, 0, .55); pointer-events: none; will-change: transform; }
.lens__in { position: absolute; left: 0; top: 0; }
.lens__in img { display: block; width: 100%; height: 100%; filter: grayscale(1) brightness(.55) contrast(1.15); }
.lens__in svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens .was { fill: none; stroke: var(--mark); stroke-width: 3; stroke-dasharray: 9 6; }
.lens .via { stroke: var(--mark); stroke-width: 2; stroke-dasharray: 4 5; }
.lens .is { fill: var(--mark); fill-opacity: .36; stroke: var(--mark); stroke-width: 3; }
.lens text { font: 600 15px var(--mono); fill: #fff; }

.inspect__h { font-size: 13px; font-weight: 500; color: var(--text-3); }
.tests { display: grid; gap: 6px; margin-top: 10px; }
.tests li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; background: var(--panel); }
.tests b { font-size: 15px; font-weight: 600; }
.tests span { font: 500 13px var(--mono); color: var(--text-2); }
.tests .is-found { border-color: var(--mark); }
.tests .is-found span { color: var(--mark); }
.tests .is-app { border: 1px dashed var(--line); background: none; }
.tests .is-app b { font-weight: 500; color: var(--text-2); }
.tests .is-app span { color: var(--text-3); }
.sheet { display: grid; gap: 14px; margin-top: 12px; padding: 18px 18px 16px; border-radius: 16px; background: var(--panel-2); visibility: hidden; }
.sheet p { font-size: 14px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.sheet p b { color: var(--text); font-weight: 600; }
.look.is-done .sheet { visibility: visible; animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

/* ---------- four ways a picture lies: four cards ---------- */

h2 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.06; letter-spacing: -.032em; font-weight: 600; text-wrap: balance; }
.lies { padding: 136px var(--pad) 0; }
.lies h2, .faq h2 { text-align: center; }
.discs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.discs li { padding: 28px 26px 30px; border-radius: 26px; background: var(--panel); }
.disc { position: relative; display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 26px; border: 3px solid var(--text); border-radius: 50%; }
.disc b { font: 500 23px var(--mono); letter-spacing: -.03em; }
.disc .sq { position: absolute; left: 24px; top: 28px; width: 30px; height: 30px; border-radius: 7px; background: var(--text-3); }
.disc .sq--mark { left: 46px; top: 42px; background: var(--mark); }
.disc .grid { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); box-shadow: -18px -18px var(--text-2), 0 -18px var(--text-2), 18px -18px var(--text-2), -18px 0 var(--text-2), 18px 0 var(--mark), -18px 18px var(--text-2), 0 18px var(--text-2), 18px 18px var(--text-2); }
.discs h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.discs p { margin-top: 6px; font-size: 16px; color: var(--text-2); text-wrap: pretty; }

/* ---------- video: one wide card ---------- */

.video { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin: 12px var(--pad) 0; padding: 56px; border-radius: 26px; background: var(--panel); }
.video__text .lede { margin-top: 14px; }
.reel__cut { width: fit-content; max-width: 39.1%; margin-left: 60.9%; padding: 0 0 12px 12px; border-left: 2px solid var(--mark); font-size: 14px; line-height: 1.35; color: var(--text-2); }
.reel__cut b { display: block; font: 500 14px var(--mono); color: var(--mark); }
.reel__bar { display: flex; gap: 2px; height: 56px; }
.reel__bar i { flex: 14 0 0; border-radius: 12px 0 0 12px; background: #343843; }
.reel__bar i:last-child { flex-grow: 9; border-radius: 0 12px 12px 0; border-left: 2px solid var(--mark); background: #2A2D36; }
.reel__ends { display: flex; justify-content: space-between; margin-top: 10px; font: 500 13px var(--mono); color: var(--text-3); }

/* ---------- questions: a stack of cards ---------- */

.faq { padding: 136px var(--pad) 0; }
.faq__list { display: grid; gap: 8px; max-width: 760px; margin: 40px auto 0; }
.faq details { border-radius: 18px; background: var(--panel); }
.faq summary { position: relative; padding: 20px 56px 20px 24px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 15px; font: 400 24px var(--mono); color: var(--text-3); transition: rotate .2s ease-out; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { max-width: 60ch; padding: 0 24px 24px; font-size: 16px; color: var(--text-2); text-wrap: pretty; }

/* ---------- closing card, with the lens ring behind it ---------- */

.final { position: relative; display: grid; justify-items: center; gap: 36px; margin: 136px var(--pad) 0; padding: 104px 24px 96px; border-radius: 36px; background: var(--panel); text-align: center; overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; translate: -50% -50%; border: 2px solid var(--panel-2); border-radius: 50%; }
.final > * { position: relative; }
.final h2 { font-size: clamp(48px, 7.2vw, 104px); line-height: .98; letter-spacing: -.045em; }
.final .actions { flex-direction: column; }

.foot { display: grid; justify-items: center; gap: 12px; padding: 40px var(--pad) 48px; text-align: center; font-size: 13px; color: var(--text-3); }
.foot p { max-width: 64ch; }

.js [data-reveal] { opacity: 0; translate: 0 20px; transition: opacity .7s ease-out, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav__links { display: none; }
  .look { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .pitch, .viewer, .inspect { grid-column: 1; grid-row: auto; }
  .photo { aspect-ratio: 4 / 3; }
  .lens { --d: 150px; }
  .viewer__bar span { display: none; }
  .discs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discs li { padding: 22px 18px 24px; }
  .video { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 24px; }
  .reel__cut { margin-left: 0; max-width: none; border-left: 0; padding-left: 0; }
  .lies, .faq { padding-top: 96px; }
  .final { margin-top: 96px; padding: 80px 20px 72px; border-radius: 28px; }
  .final::before { width: 420px; height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
  .look.is-done .sheet { animation: none; }
}

/* ---------- every screen size (added 2026-11-13) ---------- */
@media (min-width: 1600px) { :root { --pad: max(24px, calc((100vw - min(1200px + (100vw - 1600px) * 0.98, 1740px)) / 2)); } }
@media (min-width: 1600px) {
  h1 { font-size: clamp(54px, 21.6px + 2.025vw, 67.5px); }
  h2 { font-size: clamp(48px, 26.4px + 1.35vw, 57.6px); }
  .lede { font-size: clamp(19px, 13.3px + 0.3563vw, 21.85px); }
}
/* ---------- end every screen size ---------- */
