/* Light · sharp · International typographic style, monochrome */
:root {
  --bg: #fafbfc;
  --fg: #0d0d0d;
  --muted: #6a6f78;
  --line: #0d0d0d;
  --rule: 4px;
  --hair: #dfe2e7;
  --accent: #0d0d0d;
  --logo: #0d0d0d;
  --text: #333333;
}
:root[data-theme="dark"] {
  --bg: #0e0f11;
  --fg: #ececec;
  --muted: #8d9199;
  --line: #50545c;
  --rule: 3px;
  --hair: #2a2d33;
  --accent: #ececec;
  --logo: #ececec;
  --text: #c4c6cb;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  transition: background-color .25s, color .25s;
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 68rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }

header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--rule) solid var(--line);
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: .85;
  font-weight: 800;
  letter-spacing: -.055em;
}
/* A pre-rendered PNG used as a mask, not inline SVG: with GPU rasterization Chrome
   draws vector paths with coarse MSAA and the curves come out stair-stepped.
   logo.png is undelalune.svg rendered at 312px (3x), so the theme still sets the colour */
.logo {
  width: clamp(56px, 9vw, 104px); aspect-ratio: 1; display: block;
  background: var(--logo);
  --logo-shape: url("logo.png");
  -webkit-mask: var(--logo-shape) center / contain no-repeat;
  mask: var(--logo-shape) center / contain no-repeat;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  position: relative;
  gap: 2rem;
  padding: 1.25rem 0 4rem;
  font-size: .95rem;
}
.intro p { grid-column: 2; grid-row: 1; margin: 0; max-width: 28rem; font-size: 1.35rem; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.intro p small { display: block; margin-top: .35rem; font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.intro > span { color: var(--muted); }

.theme-switch {
  position: absolute; top: 1.25rem; right: 0;
  display: flex; gap: .4rem;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 .75rem/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.theme-switch i { font-style: normal; font-weight: 400; }
.theme-switch span { padding-bottom: .3rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.theme-switch:hover span { color: var(--fg); }
:root[data-theme="light"] .theme-switch [data-t="light"],
:root[data-theme="dark"] .theme-switch [data-t="dark"] { color: var(--fg); border-color: var(--fg); }
.theme-switch:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

section {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: .9rem;
}
section + section { margin-top: 3.5rem; }
h2 {
  margin: 0;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h2 b { color: var(--muted); font-weight: 700; margin-right: .5rem; }

.item {
  display: grid;
  grid-template-columns: 56px 1fr 11rem;
  gap: 1.5rem;
  padding: 0 0 1.75rem;
}
.item + .item { border-top: 1px solid var(--hair); padding-top: 1.75rem; }
.icon { width: 56px; height: 56px; display: block; border-radius: 22%; }
/* Soft shadow so light tiles don't dissolve into the page */
.icon:not(.bare) { box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 2px 5px rgba(0, 0, 0, .12); }
.item h3 { margin: 0 0 .4rem; font-size: 1.5rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.item h3 small { display: block; margin-top: .35rem; font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.item p { margin: 0; color: var(--text); max-width: 36rem; }
.links { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; }
.links a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: .3rem; }
.links a::after { content: " ›"; }
.links a.primary { font-weight: 700; color: var(--accent); border-color: var(--accent); }
.links a:hover { color: var(--muted); border-color: var(--muted); }
.links .soon { color: var(--muted); border-bottom: 1px dashed var(--hair); padding-bottom: .3rem; cursor: default; }

footer {
  margin-top: 5rem;
  padding-top: .9rem;
  border-top: var(--rule) solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; font-weight: 500;
}
footer a { color: var(--fg); }
footer a:hover { color: var(--muted); }

/* Raw Eye is transparent and needs a light tile on a dark page */
[data-theme="dark"] .icon.tile { background: var(--fg); padding: 4px; }
[data-theme="dark"] .links a.primary { border-color: var(--line); }

@media (prefers-reduced-motion: reduce) {
  body, .theme-switch span { transition: none; }
}

@media (max-width: 52rem) {
  .intro, section { grid-template-columns: 1fr; gap: 1rem; }
  .intro { grid-template-columns: 1fr auto; }
  .intro p { grid-column: 1 / -1; grid-row: 2; }
  .theme-switch { position: static; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
  .item { grid-template-columns: 48px 1fr; }
  .icon { width: 48px; height: 48px; }
  .links { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: .5rem 1.25rem; }
  .links a, .links .soon { border: 0; padding: 0; }
}

.item h3 a { color: inherit; text-decoration: none; }
.item h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }

/* App pages */
.brand {
  color: var(--fg); text-decoration: none;
  font-size: clamp(2rem, 6vw, 3.5rem); line-height: .85; font-weight: 800; letter-spacing: -.055em;
}
.app header .logo { width: clamp(40px, 5vw, 56px); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0 0; }
.bar .theme-switch { position: static; }
.crumb { font-size: .8rem; font-weight: 500; color: var(--muted); }
.crumb a { color: var(--fg); text-decoration: none; }
.crumb a:hover { color: var(--muted); }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 2.5rem 0 4rem; border: 0; }
.hero-title { display: flex; align-items: center; gap: 1rem; }
.app h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .9; letter-spacing: -.05em; }
.platform { margin: .75rem 0 0; font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.lead { margin: 1.25rem 0 .75rem; font-size: 1.35rem; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.hero-text > p:not([class]) { margin: 0 0 1.5rem; color: var(--text); max-width: 32rem; }
.store { max-width: 16rem; }

.video {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border-radius: 4px;
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; }
.video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(13, 13, 13, .8);
  transition: background-color .2s;
}
.video::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; margin: -12px 0 0 -7px;
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
}
.video:hover::after, .video:focus-visible::after { background: #0d0d0d; }
.video:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.video.playing::before, .video.playing::after { display: none; }

.app section > div, .app section > dl { min-width: 0; }
.shots { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.section-head { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.shots-nav { display: flex; gap: .5rem; }
.shots-nav[hidden] { display: none; }
.shots-nav button {
  width: 2.25rem; height: 2.25rem; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 0; background: none; color: var(--fg);
  font: 500 1.25rem/1 Inter, system-ui, sans-serif;
  transition: background-color .2s, color .2s, border-color .2s;
}
.shots-nav button:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.shots-nav button:disabled { cursor: default; color: var(--hair); border-color: var(--hair); }
.shots-nav button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.shots img { flex: none; width: 220px; height: auto; scroll-snap-align: start; border-radius: 6px; cursor: zoom-in; }
.shots img:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(8, 9, 11, .94); color: #ececec; overflow: hidden;
}
.viewer:focus { outline: none; }
.viewer::backdrop { background: rgba(8, 9, 11, .94); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
html.viewing { overflow: hidden; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-size: .85rem; font-weight: 500; }
.viewer-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 4.5rem; touch-action: pan-y pinch-zoom; }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.viewer-cap { margin: 0; padding: 1rem 1.25rem 1.25rem; text-align: center; font-size: .85rem; color: #a9acb2; }
.viewer button {
  width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer;
  border: 1px solid #50545c; border-radius: 0; background: rgba(8, 9, 11, .6); color: #ececec;
  font: 500 1.4rem/1 Inter, system-ui, sans-serif; transition: background-color .2s, color .2s, border-color .2s;
}
.viewer button:hover:not(:disabled) { background: #ececec; color: #0d0d0d; }
.viewer button:disabled { cursor: default; color: #3a3d43; border-color: #2a2d33; }
.viewer button:focus-visible { outline: 2px solid #ececec; outline-offset: 3px; }
.viewer-stage button { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-stage [data-dir="-1"] { left: 1rem; }
.viewer-stage [data-dir="1"] { right: 1rem; }
.note { margin: .75rem 0 0; font-size: .8rem; color: var(--muted); max-width: 40rem; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; margin: 0; }
.features dt { font-weight: 700; letter-spacing: -.01em; }
.features dd { margin: .25rem 0 0; color: var(--text); }

.faq details { border-bottom: 1px solid var(--hair); padding: .75rem 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.faq details p { margin: .5rem 0 0; color: var(--text); max-width: 40rem; }

footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 0 3rem; }
  .features { grid-template-columns: 1fr; }
  .shots img { width: 180px; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: center; }
  .viewer-stage { padding: 0 1rem; }
  .viewer-stage button { display: none; }
}
.notice { margin: 0 0 .75rem; color: var(--text); max-width: 40rem; }
.watch { margin: .6rem 0 0; font-size: .8rem; }
.watch a { color: var(--muted); }
.watch a:hover { color: var(--fg); }
