:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --doge: #fdca5c;
  --sky: #77b5fe;
  --border: #e6e6e6;
  --max-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --text: #f0f6fc;
    --muted: #8b949e;
    --border: #30363d;
  }
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Ageo";
  src: url("/assets/fonts/Ageo-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--doge);
}

a:hover {
  color: var(--sky);
  text-decoration: none;
}

header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Ageo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--doge);
}

nav a:hover {
  color: var(--sky);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

.store-cta {
  margin: 1.5rem 0 0;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: 7.5rem;
  height: auto;
}

.phone-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.85rem;
  width: min(50rem, calc(100vw - 2rem));
  margin: 2rem 0 0;
  margin-left: 50%;
  translate: -50%;
}

.phone {
  margin: 0;
  width: min(11rem, calc(50% - 0.5rem));
  filter: drop-shadow(0 1rem 1.4rem rgba(0, 0, 0, 0.18));
}

.phone-expand {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1350 / 2760;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  container-type: inline-size;
  overflow: hidden;
}

.phone-expand:focus,
.phone-expand:focus-visible {
  outline: none;
}

/* Screen opening in assets/iphone-18-pro-black.png (1350×2760), inset 2px.
   Sized from the phone's width so the shot cannot use its own aspect ratio
   and run past the bezel on WebKit. */
.phone-screen {
  position: absolute;
  z-index: 0;
  left: calc(74 / 1350 * 100cqi);
  top: calc(71 / 1350 * 100cqi);
  width: calc(1202 / 1350 * 100cqi);
  height: calc(2618 / 1350 * 100cqi);
  overflow: hidden;
  border-radius: calc(170 / 1350 * 100cqi);
  pointer-events: none;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.phone-expand::after,
.lightbox-phone::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: url("/assets/iphone-18-pro-black.png") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

@media (min-width: 40rem) {
  .phone-strip {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .phone {
    width: min(11.25rem, 23%);
  }
}

@media (prefers-color-scheme: dark) {
  .phone {
    filter: drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.55));
  }
}

.lightbox {
  padding: 0.75rem;
  border: 0;
  background: transparent;
  color: #fff;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  grid-template-rows: 3.25rem minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: 0.5rem;
}

.lightbox::backdrop {
  background: rgba(10, 12, 16, 0.88);
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox-close-form {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
}

.lightbox-phone {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  width: min(100%, calc((100dvh - 2.25rem) * 1350 / 2760));
  aspect-ratio: 1350 / 2760;
  margin: 0;
  container-type: inline-size;
  overflow: hidden;
  filter: drop-shadow(0 1.25rem 2rem rgba(0, 0, 0, 0.45));
}

.lightbox-close,
.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close:focus,
.lightbox-close:focus-visible {
  outline: none;
}

.lightbox-nav:focus-visible {
  outline: 2px solid var(--doge);
  outline-offset: 3px;
}

.lightbox-close svg,
.lightbox-nav svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 2;
}

@media (max-width: 36rem) {
  .lightbox[open] {
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
    grid-template-rows: 3.25rem minmax(0, 1fr) 3.25rem;
  }

  .lightbox-phone {
    grid-row: 2;
    width: min(100%, calc((100dvh - 8.5rem) * 1350 / 2760));
  }

  .lightbox-prev {
    grid-column: 1;
    grid-row: 3;
  }

  .lightbox-next {
    grid-column: 3;
    grid-row: 3;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.features h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 36rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 0.75rem;
}

.contact-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer nav {
  margin-bottom: 0.75rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}
