/* The site pages (/, /privacy, /terms, /security, 404, the Worker's error page), after base.css; the legal pages add legal.css. */
/* biome-ignore-all lint/suspicious/noDuplicateProperties: 100vh is the fallback for browsers without 100dvh */
/* biome-ignore-all lint/style/noDescendingSpecificity: the file is ordered by page, not by selector weight */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: var(--wordmark);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.brand img {
  width: var(--mark);
  height: var(--mark);
}

/* ---- Site pages: the landing, the legal pages and 404 ---- */
/* A tap acts at once, never waiting on a double-tap zoom; pinch zoom stays. */
html:has(.page-site) {
  scroll-padding-top: 96px;
  touch-action: manipulation;
}
.page-site {
  background: var(--paper);
}
.page-site :where(.doc, .faq) a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.name {
  color: var(--robin-ink);
  font-weight: 600;
}
.sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 12px;
}

/* Insets are (pill height - inner height) / 2: concentric ends. The two pills center as one pair. */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: min(100% - 32px, 1136px);
  pointer-events: none;
  translate: -50% 0;
}
.nav-logo,
.nav-pill {
  height: var(--nav-h);
  border-radius: var(--r-pill);
  box-shadow: var(--glass-edge), var(--sh-nav);
  pointer-events: auto;
  transition:
    background-color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}
.nav-logo {
  padding: 0 20px 0 12px;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  /* The sheet holds text over the hero's type, so it stays firm. */
  .nav.is-scrolled :is(.nav-logo, .nav-pill),
  .nav-links:popover-open {
    background: var(--glass-firm);
  }
}
.nav.is-scrolled :is(.nav-logo, .nav-pill) {
  box-shadow: var(--glass-edge), var(--sh-pill);
}
/* The list carries `popover` for the phone sheet; the UA's popover box (fixed, centered, bordered) is undone here. */
.nav-links {
  position: static;
  display: flex;
  gap: 4px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  color: inherit;
  list-style: none;
}
.nav-links:not(:popover-open) {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  background: var(--wash);
  color: var(--ink);
}
@media (hover: hover) {
  .nav-links a:hover {
    background: var(--wash);
  }
}
/* The same 16 px padding as the links, so Security's text to Waitlist's text is the links' own 36 px. */
.btn.waitlist {
  min-height: 44px;
  padding: 0 16px;
  background: var(--ink-2);
  color: var(--paper);
  font-size: 15px;
}
.nav-menu {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.nav-menu .menu-close,
.nav-links:popover-open ~ .nav-menu .menu-open {
  display: none;
}
.nav-links:popover-open ~ .nav-menu .menu-close {
  display: block;
}
/* Narrow nav up to 760: between 640 and 760 the two pills met. */
@media (max-width: 759.98px) {
  .nav {
    top: 10px;
    justify-content: space-between;
    width: calc(100% - 20px);
  }
  .nav-links:not(:popover-open) {
    display: none;
  }
  .nav-links:popover-open {
    position: fixed;
    inset: calc(var(--nav-h) + 20px) 10px auto;
    display: grid;
    gap: 0;
    width: auto;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 22px;
    box-shadow: var(--glass-edge), var(--sh-pill);
    transform-origin: 100% 0;
    transition:
      opacity 180ms var(--ease-out),
      transform 180ms var(--ease-out);
  }
  /* Laid out in the tap's next frame, then settles; closing is instant. */
  @starting-style {
    .nav-links:popover-open {
      opacity: 0;
      transform: translateY(-6px) scale(0.98);
    }
  }
  .nav-links:popover-open a {
    padding: 0 14px;
    border-radius: var(--r-field);
    font-size: 17px;
  }
  .nav-menu {
    display: grid;
  }
}

/* Equal padding centers the block in the whole first view; the stage starts below the fold. */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) var(--pad);
  text-align: center;
}
.hero h1 {
  /* One line at every width: the line is about 9.6em wide at this tracking, so the size follows the column. */
  font-size: min(56px, (100vw - 2 * var(--pad)) / 5);
  line-height: 1;
  letter-spacing: -0.05em;
}
@media (min-width: 640px) {
  .hero h1 {
    font-size: min(112px, (100vw - 2 * var(--pad)) / 10);
  }
}
/* Ink at rest, like the rest of the h1; an orange band sweeps through, rests, and sweeps again (design.md section 8). */
.sheen {
  /* background-clip paints only inside the box, and the tracking pulls it inside the last glyph's ink: net width 0. */
  margin-inline: -0.05em;
  padding-inline: 0.05em;
  color: var(--ink);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  @media (prefers-reduced-motion: no-preference) {
    .sheen {
      background:
        linear-gradient(
          100deg,
          transparent 32%,
          var(--robin-deep) 42%,
          var(--robin) 50%,
          var(--robin-deep) 58%,
          transparent 68%
        )
        100% 0 / 300% 100% no-repeat var(--ink);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: sheen 2.2s linear 0.3s infinite backwards;
    }
    .sheen.is-paused {
      animation-play-state: paused;
    }
  }
}
.lead {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--lead);
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.btn .arrow {
  margin-right: -4px;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) {
  .btn:hover .arrow {
    transform: translateX(2px);
  }
}
@media (min-width: 768px) {
  .lead {
    font-size: 24px;
  }
}

/* The tilt's fallback; site.js's spring outranks it. */
.tilt {
  width: min(100% - 2 * var(--pad), 1136px);
  margin: 0 auto;
  perspective: 2200px;
  perspective-origin: 50% 0;
}
/* The screenshot is painted on paper like the page, so only the frame says it is a picture; --g1 shows while it loads. */
.stage {
  overflow: hidden;
  border-radius: var(--r-stage);
  background: var(--g1);
  box-shadow: var(--sh-frame);
  transform-origin: 50% 0;
}
.stage img {
  display: block;
  width: 100%;
  height: auto;
}
/* The phone picture is its own device frame on a transparent ground: no frame, fill or shadow of the stage's. */
@media (max-width: 639.98px) {
  .stage {
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .stage img {
    aspect-ratio: 1155 / 2366;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage {
      animation: tilt linear both;
      animation-timeline: view();
      animation-range: entry;
    }
  }
}
@keyframes tilt {
  from {
    transform: rotateX(24deg) scale(0.9);
  }
}

/* Section heads share one size; text columns are 760, the grids, stage and doc cards the full 1136. */
:is(.features, .connect, .faq) > h2,
.doc h1 {
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
:is(.features, .connect, .faq) > h2 {
  text-align: center;
}
@media (min-width: 640px) {
  :is(.features, .connect, .faq) > h2,
  .doc h1 {
    font-size: 38px;
  }
}
@media (min-width: 768px) {
  :is(.features, .connect, .faq) > h2,
  .doc h1 {
    font-size: 54px;
  }
}
.how,
.features,
.connect,
.faq {
  width: min(100% - 2 * var(--pad), 1136px);
  margin: 0 auto;
  padding-top: var(--section);
}
/* Closer than a section gap: the steps explain the stage. */
.how {
  padding-top: 40px;
}
@media (min-width: 768px) {
  .how {
    padding-top: 56px;
  }
}
.connect,
.faq {
  max-width: 760px;
}
.faq {
  padding-bottom: var(--section);
}

/* base.css balances h1 and h2; site cards title in h3, so these balance too. */
h3 {
  text-wrap: balance;
}

/* The warm backdrop (design.md section 4): a drifting layer, mirrored per box; paper without color-mix. */
.frag,
.panel,
.close-panel {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}
.frag::before,
.panel::before,
.close-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -25%;
  background:
    radial-gradient(ellipse at 25% 25%, color-mix(in srgb, var(--robin-deep) 70%, transparent), transparent 58%),
    radial-gradient(ellipse at 80% 20%, var(--robin), transparent 62%),
    radial-gradient(ellipse at 70% 85%, color-mix(in srgb, var(--amber) 70%, var(--robin)), transparent 60%),
    radial-gradient(ellipse at 15% 80%, color-mix(in srgb, var(--rose) 70%, var(--robin-deep)), transparent 58%),
    color-mix(in srgb, var(--robin) 16%, var(--surface));
}
.step:nth-child(2) .frag::before {
  scale: -1 1;
}
.step:nth-child(3) .frag::before {
  scale: 1 -1;
}
.panel::before {
  scale: -1 -1;
}
@media (prefers-reduced-motion: no-preference) {
  .frag::before,
  .panel::before,
  .close-panel::before {
    animation: drift 40s ease-in-out infinite alternate;
  }
}
@keyframes drift {
  from {
    translate: -10% -6%;
  }
  to {
    translate: 10% 6%;
  }
}
/* Liquid glass: a clear fill, a rim lit from the top left, a shade below. Ink only: --muted fails 4.5:1 here. */
.frag .glass,
.group,
.close-card {
  position: relative;
  box-shadow:
    inset 0 -1px 3px rgba(0, 0, 0, 0.06),
    var(--sh-pill);
}
/* The close card keeps .glass's fill: on the clear one the logo's disc sank into the peach. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .frag .glass,
  .group {
    background: var(--glass-clear);
    -webkit-backdrop-filter: var(--glass-clear-filter);
    backdrop-filter: var(--glass-clear-filter);
  }
}
.frag .glass::after,
.group::after,
.close-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 40%, transparent 70%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* How It Works: white step cards, each a verb and a line over a still of that step. */
.steps,
.grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid {
  margin-top: 40px;
}
.step {
  padding: 24px 24px 12px;
  border-radius: var(--r-content);
  background: var(--surface);
}
.step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}
.step-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
}
.step h2 + p,
.cell p {
  margin-top: 6px;
  color: var(--ink-2);
}
.frag {
  display: grid;
  align-content: center;
  gap: 4px;
  margin: 0 -12px;
  padding: 20px 12px;
  border-radius: calc(var(--r-content) - 12px);
  user-select: none;
}
.step h2 + p {
  margin-bottom: 24px;
}
/* A row toggles its tick (site.js); its inset is the list's 8 plus its own 4. */
.frag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: calc(var(--r-field) - 8px);
  background: none;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
/* Off by weight, an empty tile and no tick; never by opacity or a lighter ink. */
.frag-row[aria-pressed="false"] {
  font-weight: 400;
}
.frag-row[aria-pressed="false"] .frag-tile {
  background: none;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.frag-row[aria-pressed="false"] .frag-tick {
  visibility: hidden;
}
.frag-row:active {
  background: var(--wash);
}
@media (hover: hover) {
  .frag-row:hover {
    background: var(--wash);
  }
}
.frag-tile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: var(--r-chip);
  background: var(--surface);
}
.frag-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A page shows whole on its tile, as rows.js draws it. */
.frag-tile .fit {
  object-fit: contain;
}
/* A copy of the viewer's pill (count, Present, Download). */
.frag-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  border-radius: var(--r-pill);
  justify-self: center;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.frag-count {
  padding: 0 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
/* Present and Download press like the viewer's and do nothing more. */
.frag-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--wash);
  cursor: pointer;
  transition: transform 150ms var(--ease-ui);
}
.frag-btn:active {
  transform: scale(0.97);
}
.frag-btn.ink {
  background: var(--ink);
  color: var(--paper);
}
.frag-tick {
  margin-left: auto;
}
.frag-qr {
  scale: 1;
}
.frag-qr-tile {
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 20px;
  border-radius: var(--r-field);
}
.frag-list {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: var(--r-field);
}

/* The grid sits on a white band, so the cells' paper reads as the one neutral fill. */
.features {
  padding-bottom: var(--section);
  margin-top: var(--section);
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .steps,
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* The cards share the list's rows (title, line, still), so a two-line line in one card moves every still
     down together, and every still is the tallest one's height, 12 above its card's bottom. */
  .step {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}
.cell {
  padding: 24px;
  border-radius: var(--r-content);
  background: var(--paper);
}
.cell h3 {
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.cell p {
  font-size: 16px;
}
.cell a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* After the cell rules: the same selectors, so order decides. */
@media (max-width: 639.98px) {
  .cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
  }
  .cell h3 {
    margin: 0;
  }
  .cell p {
    grid-column: 1 / -1;
  }
}

/* The page ends on the action it opened with: the mark over one Try the Demo, on a glass card over the warm backdrop. */
.close {
  width: min(100% - 2 * var(--pad), 1136px);
  margin: 0 auto;
  padding-bottom: var(--section);
}
.close-panel {
  display: grid;
  justify-items: center;
  padding: 56px var(--pad);
  border-radius: var(--r-stage);
}
.close-card {
  display: grid;
  justify-items: center;
  gap: 32px;
  padding: 40px 48px;
  border-radius: var(--r-content);
}
.close-card .hero-actions {
  margin-top: 0;
}
@media (max-width: 639.98px) {
  .close-panel {
    border-radius: 16px;
  }
}

.panel {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  padding: 12px;
  border-radius: var(--r-stage);
}
@media (min-width: 768px) {
  .panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.group {
  padding: 20px 20px 4px;
  border-radius: 16px;
  background: var(--glass-solid);
}
.group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.group :is(h2, h3) {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.011em;
}
.rows {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-block: 12px;
  font-weight: 600;
}
.rows li + li {
  box-shadow: 0 -1px 0 var(--hairline);
}
.status {
  flex: none;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 14px;
}
.status.on {
  background: var(--mint);
  color: var(--mint-ink);
}
.rows .yes,
.never {
  margin-left: auto;
}
.never {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
}

.faq h2 {
  margin-bottom: 40px;
}
.faq details {
  margin-top: 12px;
  padding: 0 24px;
  border-radius: var(--r-content);
  overflow: hidden;
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: rotate 300ms var(--ease-out);
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq summary:focus-visible {
  outline-offset: -2px;
  border-radius: var(--r-chip);
}
.faq details p {
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.faq-more {
  margin-top: 32px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
@supports (interpolate-size: allow-keywords) {
  .faq details {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition:
      block-size 380ms var(--ease-out),
      opacity 250ms ease,
      content-visibility 380ms allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

.footer {
  width: min(100% - 2 * var(--pad), 1136px);
  margin-inline: auto;
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  box-shadow: 0 -1px 0 var(--hairline);
  font-size: 15px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}
.footer-about p {
  max-width: 420px;
  margin-top: 12px;
  color: var(--muted);
}
.footer-about strong {
  color: var(--ink);
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a[aria-current="page"] {
  color: var(--ink);
}
@media (hover: hover) {
  .footer-links a:hover {
    color: var(--ink);
  }
}
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  box-shadow: inset 0 1px 0 var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

.doc {
  width: min(100% - 2 * var(--pad), 1136px);
  margin: 0 auto;
  padding: 0 0 var(--section);
}
.doc-hero {
  padding-top: 152px;
  text-align: center;
}
.doc-hero .btn {
  margin-top: 32px;
}
.doc .panel {
  margin-top: 48px;
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content {
    transition: none;
  }
}
/* Every --glass-firm and --glass-clear rule outranks base's reduced-transparency .glass, so each is restated here. */
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled :is(.nav-logo, .nav-pill),
  .nav-links:popover-open,
  .frag .glass,
  .group,
  .close-card {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
