/* The public website at eventelk.app. Same palette and typeface as the app (public/styles.css). */
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/rubik.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #021431;
  --blue: #015dfa;
  --blue-hi: #1f6bff;
  --cream: #fcf5eb;
  --antler: #fce7c8;
  --sun: #fcd349;
  --blush: #f2a373;
  --mint: #3ddc97;

  --bg-deep: #020a1c;
  --bg: #04102a;
  --panel: #0a1b3d;
  --panel-2: #10254f;
  --line: rgba(151, 180, 255, 0.16);
  --line-2: rgba(151, 180, 255, 0.3);
  --field-line: #5f74a1; /* form field outlines: 3.6:1 on cards, where WCAG 1.4.11 needs 3:1 */

  --text: #fbf6ee;
  --muted: #a3b3d1;
  --faint: #8497bd; /* fine print: still 4.5:1 where the blue light is at its brightest behind it */
  --active: #7db0ff;

  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  /* Two surfaces, both see-through so the page's light shows in them: a raised one (cards, stages) and a
     well sunk into it (where a picture or a detail sits). */
  --glass: linear-gradient(180deg, rgba(22, 46, 96, 0.5), rgba(10, 27, 61, 0.44));
  --well: rgba(2, 10, 28, 0.42);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 48px rgba(1, 6, 20, 0.45);
  --lift: 0 30px 70px rgba(1, 6, 20, 0.6);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-deep);
}
body {
  margin: 0;
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; /* 17px, and grows with the browser's own text size setting */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--active);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p {
  margin: 0;
}
figure {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--active);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 780px;
}
.wrap.mid {
  max-width: 960px;
}
.center {
  text-align: center;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- the light the page stands in
   One set of lights for the whole page, fixed behind everything: a blue key light, a warm fill and a pale
   rim light, as round soft glows. No section has a background of its own, so there is no edge where one
   ends and the next begins; cards and stages are see-through and take the light that is behind them.
   Where the browser can tie an animation to scrolling, the lights cross slowly from side to side as the
   page scrolls (further down; no script). With "reduce motion", or in a browser that cannot, they stand
   where they start. A little grain over them keeps such soft light from showing as bands. */

.lights {
  position: fixed;
  inset: 0;
  height: 100vh; /* on a phone this is the tall window, so the lights do not shift as the address bar hides */
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.lights i {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
}
.lights i:nth-child(1) {
  width: 84vmax;
  height: 84vmax;
  margin: -42vmax 0 0 -42vmax;
  background: radial-gradient(closest-side, rgba(1, 93, 250, 0.3), rgba(1, 93, 250, 0.11) 52%, transparent);
  translate: 34vw -36vh;
}
.lights i:nth-child(2) {
  width: 66vmax;
  height: 66vmax;
  margin: -33vmax 0 0 -33vmax;
  background: radial-gradient(closest-side, rgba(252, 211, 73, 0.085), rgba(242, 163, 115, 0.035) 55%, transparent);
  translate: -44vw 44vh;
}
.lights i:nth-child(3) {
  width: 58vmax;
  height: 58vmax;
  margin: -29vmax 0 0 -29vmax;
  background: radial-gradient(closest-side, rgba(125, 176, 255, 0.1), transparent);
  translate: -46vw -34vh;
}
.lights b {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print {
  .lights {
    display: none;
  }
}

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 10, 28, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 40px;
  height: 40px;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: 12px;
}
.nav a,
.quiet-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}
.nav a:hover,
.quiet-link:hover {
  color: var(--text);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.mobile-nav {
  display: none;
  margin-left: auto;
  position: relative;
}
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav summary span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-panel {
  position: absolute;
  right: 0;
  top: 54px;
  min-width: 250px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.mobile-panel a {
  color: var(--text);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 500;
}
.mobile-panel a:hover {
  background: var(--panel-2);
}
.mobile-panel .btn-primary {
  margin-top: 6px;
}
.mobile-panel .btn-primary:hover {
  background: var(--blue-hi);
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-primary {
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 24px rgba(1, 93, 250, 0.35);
}
.btn-primary:hover {
  background: var(--blue-hi);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(16, 37, 79, 0.35);
}
.btn-ghost:hover {
  border-color: var(--active);
}
.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1.05rem;
  border-radius: 14px;
}
.btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn-icon {
  transform: translateX(3px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.cta-row.center {
  justify-content: center;
}

/* ------------------------------------------------------------- type helpers */

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 62ch;
  text-wrap: pretty;
}
.center .lead,
.section-head .lead {
  margin-left: auto;
  margin-right: auto;
}
.fine {
  color: var(--faint);
  font-size: 0.9rem;
  margin-top: 18px;
}
.accent {
  display: block;
  background: linear-gradient(92deg, var(--sun), var(--blush) 70%, #ff8f8f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------- frames for the pictures
   Real screens and print-outs, in frames drawn here. Every size is a share of the frame's own width, so a
   frame can be any size and keeps its proportions. */

/* A phone held upright: the screen picture is 780 x 1688. */
.phone {
  border-radius: 13.5% / 6.5%;
  background: linear-gradient(160deg, #22355f, #0a1530);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    var(--lift);
}
.phone img {
  width: 93.2%;
  margin: 3.4%;
  border-radius: 11.4% / 5.3%;
}
/* The same phone on its side: 1688 x 780. */
.phone.wide {
  border-radius: 6.4% / 13.3%;
}
.phone.wide img {
  width: 96.8%;
  margin: 1.6%;
  border-radius: 5.3% / 11.4%;
}
/* A browser window, for the computer at the counter. */
.browser {
  border-radius: 14px;
  overflow: hidden;
  background: #0b1a3a;
  box-shadow:
    0 0 0 1px var(--line-2),
    var(--lift);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #0e1f45;
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b3f6e;
}
.browser-bar span {
  flex: 0 1 230px;
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 9px;
  background: #07132e;
  color: var(--faint);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.browser img {
  width: 100%;
}
/* A printed sheet. */
.paper {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(1, 6, 20, 0.55);
}
.paper img {
  width: 100%;
}
/* A receipt: thermal paper, cut with a saw-tooth edge at the head and the foot (the shadow follows
   the teeth). The paper is a shade warmer than white and curls a little darker to one side; the
   print takes the paper's tone and is a soft black, as a receipt printer's is. */
.receipt {
  filter: drop-shadow(0 20px 34px rgba(1, 6, 20, 0.55));
}
.receipt-paper {
  --tooth: 10px;
  background: linear-gradient(98deg, #fffefb 0%, #fdfbf5 58%, #efebe2 100%);
  padding: 9% 5% 10%;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x;
}
.receipt-paper img {
  width: 100%;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

/* ------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  /* For the pictures' drift as the hero scrolls away (further down). Measured from the window's own top
     edge, not from the room kept free for the menu bar, so that nothing has moved before any scrolling. */
  view-timeline-name: --hero;
  view-timeline-inset: 0px;
}
/* A faint grid behind the pictures, fading out towards the words and well before the hero's foot. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(151, 180, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(151, 180, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 56% at 80% 46%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 56% at 80% 46%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 40px;
  align-items: center;
}
.hero h1 {
  /* Sized so the longest typed phrase (about 10 em with its caret) stays on one line beside the pictures. */
  font-size: clamp(2.3rem, 5.1vw, 3.8rem);
  font-weight: 800;
}
.hero .lead {
  font-size: 1.2rem;
  max-width: 52ch;
}
.hero-title .line {
  display: block;
}
.typed-line {
  white-space: nowrap;
}
.hero-title .caret {
  display: none;
}
.hero-title.typing .caret {
  display: inline-block;
  width: 0.08em;
  height: 0.8em;
  margin-left: 0.07em;
  vertical-align: -0.03em;
  border-radius: 2px;
  background: var(--sun);
  animation: caret-blink 1.1s steps(1) infinite;
}
.hero-title.busy .caret {
  animation: none;
}
@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}
/* The phone, the sheet it printed and the receipt for the same order. */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  aspect-ratio: 1 / 1.13;
}
.hero-art > * {
  position: absolute;
}
.hero-sheet {
  right: 0;
  top: 1.5%;
  width: 58%;
  rotate: 5deg;
}
.hero-phone {
  left: 1%;
  top: 5.5%;
  width: 50%;
  rotate: -4deg;
  z-index: 2;
}
.hero-receipt {
  right: 3.5%;
  bottom: 0.5%;
  width: 33%;
  rotate: 4deg;
  z-index: 3;
}
@media (prefers-reduced-motion: no-preference) {
  /* The three pieces arrive one after another, once, each settling into its tilt. At rest they float a
     little, each at its own pace. (Three properties, so the three movements never fight: the tilt is
     `rotate`, the float is `transform`, and the drift on scrolling, below, is `translate`.) */
  .hero-sheet {
    animation:
      arrive-sheet 0.9s var(--ease) 0.05s both,
      float 7s ease-in-out 1.2s infinite alternate;
  }
  .hero-phone {
    animation:
      arrive-phone 0.9s var(--ease) 0.16s both,
      float 8.5s ease-in-out 1.2s infinite alternate;
  }
  .hero-receipt {
    animation:
      arrive-receipt 0.9s var(--ease) 0.3s both,
      float 6s ease-in-out 1.2s infinite alternate;
  }
  @keyframes arrive-sheet {
    from {
      opacity: 0;
      scale: 0.94;
      rotate: 11deg;
    }
  }
  @keyframes arrive-phone {
    from {
      opacity: 0;
      scale: 0.94;
      rotate: -10deg;
    }
  }
  @keyframes arrive-receipt {
    from {
      opacity: 0;
      scale: 0.9;
      rotate: 12deg;
    }
  }
  @keyframes float {
    to {
      transform: translateY(-9px);
    }
  }
  /* As the hero scrolls away, the nearer a piece is, the faster it goes: a little depth. */
  @supports (animation-timeline: view()) {
    .hero-sheet {
      animation:
        arrive-sheet 0.9s var(--ease) 0.05s both,
        float 7s ease-in-out 1.2s infinite alternate,
        leave-far linear both;
    }
    .hero-phone {
      animation:
        arrive-phone 0.9s var(--ease) 0.16s both,
        float 8.5s ease-in-out 1.2s infinite alternate,
        leave-mid linear both;
    }
    .hero-receipt {
      animation:
        arrive-receipt 0.9s var(--ease) 0.3s both,
        float 6s ease-in-out 1.2s infinite alternate,
        leave-near linear both;
    }
    .hero-art > * {
      animation-timeline: auto, auto, --hero;
      animation-range: normal, normal, exit 0% exit 100%;
    }
    @keyframes leave-far {
      to {
        translate: 0 34px;
      }
    }
    @keyframes leave-mid {
      to {
        translate: 0 -16px;
      }
    }
    @keyframes leave-near {
      to {
        translate: 0 -72px;
      }
    }
  }
}

/* ------------------------------------------------------------- sections */

.section {
  padding: 84px 0;
}
.section.tight {
  padding-top: 24px;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2,
.closing h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
}
.page-hero {
  padding: 80px 0 48px;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
}

/* ------------------------------------------------------------- cards */

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
}

/* Parts of real screens, cut out. */
.cut {
  border-radius: 18px;
}

/* ------------------------------------------------------------- how it works: four steps, each beside its picture */

.how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 44px;
}
.how-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}
.how-row:nth-child(even) .how-copy {
  order: 2;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}
.how-copy h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 800;
  margin: 18px 0 12px;
}
.how-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 48ch;
  text-wrap: pretty;
}
.ticks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.15);
  color: var(--mint);
  stroke-width: 3;
}
/* The way a photo travels: phone, EventElk, computer, printer. */
.route {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
}
.route li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.route span {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(16, 37, 79, 0.5);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
}
.route-arrow {
  width: 16px;
  height: 16px;
  color: var(--faint);
}
/* The stage a picture stands on. Everything on it is placed and sized in shares of the stage. */
.how-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(85% 75% at 78% 0%, rgba(1, 93, 250, 0.2), transparent 62%), var(--glass);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  view-timeline-name: --stage; /* for the picture's rise as the stage comes into view (further down) */
}
.stage-take .phone {
  position: absolute;
}
.stage-upright {
  left: 5.5%;
  top: 14%;
  width: 25%;
  rotate: -3deg;
}
.stage-sideways {
  right: 4.5%;
  top: 31%;
  width: 62%;
  rotate: 2deg;
  z-index: 2;
}
.stage-print .browser {
  width: 88%;
}
.stage-hand .stage-sheet {
  position: absolute;
  left: -7%;
  right: 4%;
  top: 11%;
  rotate: -2deg;
}
.stage-hand .stage-receipt {
  position: absolute;
  right: 7%;
  top: 37%;
  width: 33%;
  rotate: 4deg;
  z-index: 2;
}
.stage-scan .phone {
  position: absolute;
  width: 36%;
}
.stage-guest-a {
  left: 11%;
  top: 17%;
  rotate: -4deg;
}
.stage-guest-b {
  left: 53%;
  top: 8%;
  rotate: 3deg;
  z-index: 2;
}

/* ------------------------------------------------------------- if something goes wrong */

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.trouble {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  view-timeline-name: --trouble; /* for the screen's rise as the card comes into view (further down) */
}
/* The top of a staff phone's screen, as it looks at that moment: the strip, and what is under it. */
.trouble-shot {
  height: 306px;
  padding: 30px 30px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: radial-gradient(80% 90% at 50% 0%, rgba(1, 93, 250, 0.16), transparent 70%), linear-gradient(180deg, var(--well), transparent);
  /* The screen does not end at a line: it fades out into the card. */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 76px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 76px), transparent);
}
/* This one ends with its two buttons, which are the point of it: only the last few pixels fade. */
.trouble-check .trouble-shot {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
}
.screen {
  width: min(390px, 100%);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #04102a, #030b1f);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--line-2),
    0 20px 50px rgba(1, 6, 20, 0.5);
}
.screen .strip-cut {
  width: 100%;
}
.screen .cut {
  width: calc(100% - 28px);
  margin: 14px 14px 0;
}
.screen .cut + .cut {
  margin-top: 12px;
}
.screen .cut.plain {
  border-radius: 0;
  margin-top: 18px;
}
.trouble-copy {
  padding: 24px 30px 30px;
}

/* ------------------------------------------------------------- what it does */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.feat {
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feat p {
  max-width: 62ch;
}
.feat-design {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}
.feat-design .feat-copy {
  flex: 0 0 34%;
}
.feat-design .feat-art {
  flex: 1;
  margin: 0;
  padding: 0;
}
.feat-queue,
.feat-hardware {
  grid-column: span 4;
}
.feat-contacts,
.feat-reprint {
  grid-column: span 2;
}
.feat-art {
  margin-top: auto;
  padding-top: 26px;
}
/* Your own designs: mark the photo areas, print the test page, nudge. */
.design-art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.art-box {
  height: 214px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--well);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 16px;
}
.art-box.phone-top {
  padding: 16px 16px 0;
  place-items: start center;
}
.art-box.phone-top img {
  width: min(100%, 210px);
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 1px var(--line-2);
}
.art-box .paper {
  display: block;
  height: 100%;
  aspect-ratio: 760 / 984;
  box-shadow: 0 10px 30px rgba(1, 6, 20, 0.5);
}
.art-box .paper img {
  height: 100%;
}
.art-box .cut {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
}
.design-art figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.reprint-art .cut {
  width: 100%;
  border-radius: 14px;
}
/* A contact list: the spreadsheet, as a spreadsheet looks. */
.mini-sheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fbf6ee;
  color: #1b2742;
  font-size: 0.73rem;
  line-height: 1.3;
  border-radius: 12px;
  overflow: hidden;
}
.mini-sheet th {
  text-align: left;
  font-weight: 700;
  font-size: 0.74rem;
  background: #e8e0d0;
  padding: 8px 7px;
  vertical-align: bottom;
}
.mini-sheet th:last-child {
  width: 6.6em; /* "Wants news" over "and offers" */
}
.mini-sheet td {
  height: 2.6em;
  padding: 0 7px;
  border-top: 1px solid #ddd4c2;
  white-space: nowrap;
}

.mini-sheet th + th,
.mini-sheet td + td {
  border-left: 1px solid #ddd4c2;
}
/* Several phones, one queue: the same queue on the computer and on a phone. */
.queue-art {
  position: relative;
  height: 300px;
  margin: 26px -28px -28px;
  padding: 0;
  overflow: hidden;
}
.queue-art .browser {
  position: absolute;
  left: 28px;
  top: 6px;
  width: 73%;
}
.queue-art .phone {
  position: absolute;
  right: 5%;
  top: 30px;
  width: 22%;
  z-index: 2;
}
/* No special hardware: the four things a photo line needs, most of which you already have. */
.kit {
  list-style: none;
  margin: auto 0 0;
  padding: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kit li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--well);
}
.kit-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(125, 176, 255, 0.12);
  color: var(--active);
}
.kit strong {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}
.kit small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

/* ------------------------------------------------------------- why not a photo booth app: side by side */

.compare {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass);
  box-shadow: var(--shadow);
}
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.25fr);
}
.compare-row > * {
  padding: 19px 24px;
  border-top: 1px solid var(--line);
}
.compare-head > * {
  border-top: 0;
  padding-block: 17px;
  font-weight: 700;
}
.compare .what {
  font-weight: 600;
}
.compare .them {
  color: var(--muted);
}
.compare .us {
  background: rgba(1, 93, 250, 0.14);
  border-left: 1px solid rgba(125, 176, 255, 0.28);
  font-weight: 500;
}
.compare-head .us {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.compare-head .us img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, #4a90ff 0%, var(--blue) 60%, #0143bd 100%);
}

/* ------------------------------------------------------------- FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 22px;
  transition: border-color 0.15s var(--ease);
}
.faq details[open] {
  border-color: var(--line-2);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 28px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--active);
}
.faq summary::after {
  content: '+' / ''; /* drawn, not read out with the question */
  position: absolute;
  right: 0;
  top: 13px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--active);
}
.faq details[open] summary::after {
  content: '−' / '';
}
.faq details p {
  color: var(--muted);
  padding-bottom: 20px;
}

/* ------------------------------------------------------------- closing call to action */

.closing {
  text-align: center;
}
.closing-inner {
  max-width: 820px;
}
.closing-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
}

/* ------------------------------------------------------------- contact form */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid > * {
  min-width: 0; /* the select's longest option must not widen the column past a 320 px screen */
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.optional {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.85rem;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}
.form textarea {
  resize: vertical;
  min-height: 150px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--active);
  box-shadow: 0 0 0 3px rgba(125, 176, 255, 0.25);
}
.form [aria-invalid='true'] {
  border-color: #ff6b6b;
}
.field-error {
  color: #ff8f8f;
  font-weight: 500;
  font-size: 0.9rem;
}
.field-error::before {
  content: '!' / '';
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff8f8f;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85em;
}
.form-notice {
  background: rgba(252, 211, 73, 0.12);
  border: 1px solid rgba(252, 211, 73, 0.4);
  color: var(--antler);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.form button {
  align-self: flex-start;
}
.trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- prose (privacy) */

.prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 40px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  color: var(--muted);
  margin-bottom: 14px;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--antler);
}

/* ------------------------------------------------------------- footer */

/* A hairline that fades out towards both ends, and the page's own light behind. */
.site-footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent) 1;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 30ch;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--text);
}
.footer-base {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- from the builder (as on BadgeBadger) */

.builder {
  position: relative;
  padding: 36px 30px 26px;
}
.builder-label {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--active);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.builder h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.builder blockquote {
  margin: 0;
}
.builder blockquote p {
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.6;
}
.builder blockquote strong {
  color: var(--active);
  font-weight: 600;
}
.builder-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 22px;
}
.builder-who {
  display: flex;
  align-items: center;
  gap: 14px;
}
.builder-who img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-2);
}
.builder-who p {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.builder-name {
  color: var(--text);
  font-weight: 700;
}
.builder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.builder-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.builder-links a:hover {
  text-decoration: underline;
}
.link-icon {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------- the cookie question (European time zones only) */

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.cookie-bar p {
  flex: 1 1 240px;
  color: var(--muted);
  font-size: 0.95rem;
}
.cookie-bar div {
  display: flex;
  gap: 10px;
}
.cookie-bar button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(16, 37, 79, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
}
.cookie-bar button:hover {
  border-color: var(--active);
}

/* ------------------------------------------------------------- what moves as the page scrolls
   All of it is tied to the scrolling itself (no script, nothing running on its own), only where the
   browser can do that, and never with "reduce motion". Elsewhere everything is simply there.
   - Parts of the page rise into place as they come into view, the second of a pair a moment later.
   - Inside a stage or a card, the picture rises a little further than its frame: some depth.
   - The way a photo travels (Phone, EventElk, Computer or laptop, Printer) lights up step by step.
   - The page's lights cross slowly from side to side, and end in the middle, behind the last call.
   - The menu bar is clear at the very top of a page, so the light runs up behind it without a line, and
     takes its tint and its hairline over the first 120 px of scrolling.
   Besides scrolling: a question's answer slides open and shut, where the browser can animate that. */

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .faq details {
      interpolate-size: allow-keywords;
    }
    .faq details::details-content {
      block-size: 0;
      overflow-y: clip;
      transition:
        block-size 0.3s var(--ease),
        content-visibility 0.3s allow-discrete;
    }
    .faq details[open]::details-content {
      block-size: auto;
    }
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      /* Done once the top 180 px are in view, however tall the part is (the first line is for a browser
         that does not take a length here). */
      animation-range: entry 0% entry 45%;
      animation-range: entry 0px entry 180px;
    }
    .how-stage.reveal,
    .trouble.reveal:nth-child(even),
    .feat-contacts.reveal,
    .feat-hardware.reveal {
      animation-range: entry 10% entry 60%;
      animation-range: entry 70px entry 250px;
    }
    @keyframes reveal {
      from {
        opacity: 0;
        translate: 0 28px;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }

    .how-stage > *,
    .trouble-shot .screen {
      animation: rise linear both;
      animation-timeline: --stage;
      animation-range: entry 0% cover 45%;
    }
    .trouble-shot .screen {
      animation-timeline: --trouble;
    }
    @keyframes rise {
      from {
        translate: 0 30px;
      }
      to {
        translate: 0 0;
      }
    }

    .route span,
    .route-arrow {
      animation: lit linear both;
      animation-timeline: view();
    }
    .route-arrow {
      animation-name: lit-arrow;
    }
    .route li:nth-child(1) span {
      animation-range: cover 16% cover 24%;
    }
    .route li:nth-child(2) .route-arrow {
      animation-range: cover 20% cover 27%;
    }
    .route li:nth-child(2) span {
      animation-range: cover 23% cover 31%;
    }
    .route li:nth-child(3) .route-arrow {
      animation-range: cover 27% cover 34%;
    }
    .route li:nth-child(3) span {
      animation-range: cover 30% cover 38%;
    }
    .route li:nth-child(4) .route-arrow {
      animation-range: cover 34% cover 41%;
    }
    .route li:nth-child(4) span {
      animation-range: cover 37% cover 45%;
    }
    @keyframes lit {
      to {
        border-color: rgba(125, 176, 255, 0.8);
        background-color: rgba(1, 93, 250, 0.26);
      }
    }
    @keyframes lit-arrow {
      to {
        color: var(--active);
      }
    }
  }

  @supports (animation-timeline: scroll()) {
    .site-header {
      animation: header-in linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 120px;
    }
    @keyframes header-in {
      from {
        background-color: rgba(2, 10, 28, 0);
        border-bottom-color: transparent;
        /* the frosting too: it deepens the color of the light behind it, which showed as a band */
        -webkit-backdrop-filter: saturate(1) blur(0px);
        backdrop-filter: saturate(1) blur(0px);
      }
    }
    .lights i {
      animation: linear both;
      animation-timeline: scroll(root block);
    }
    .lights i:nth-child(1) {
      animation-name: light-key;
    }
    .lights i:nth-child(2) {
      animation-name: light-fill;
    }
    .lights i:nth-child(3) {
      animation-name: light-rim;
    }
    @keyframes light-key {
      0% {
        translate: 34vw -36vh;
      }
      20% {
        translate: -30vw -14vh;
      }
      40% {
        translate: 32vw 0vh;
      }
      60% {
        translate: -28vw -10vh;
      }
      80% {
        translate: 30vw 4vh;
      }
      100% {
        translate: 0vw -8vh;
      }
    }
    @keyframes light-fill {
      0% {
        translate: -44vw 44vh;
      }
      20% {
        translate: 40vw 38vh;
      }
      40% {
        translate: -40vw 30vh;
      }
      60% {
        translate: 38vw 40vh;
      }
      80% {
        translate: -42vw 34vh;
      }
      100% {
        translate: -36vw -30vh;
      }
    }
    @keyframes light-rim {
      0% {
        translate: -46vw -34vh;
      }
      50% {
        translate: 44vw -40vh;
      }
      100% {
        translate: 40vw -24vh;
      }
    }
  }
}
@media print {
  .reveal,
  .how-stage > *,
  .trouble-shot .screen,
  .hero-art > *,
  .site-header {
    animation: none;
  }
}

/* ------------------------------------------------------------- smaller screens */

@media (max-width: 1080px) {
  .nav,
  .header-actions {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero h1 {
    /* the full width of the phone, still fitting the longest phrase on one line */
    font-size: min(calc((100vw - 32px) / 10.15), 3.6rem);
  }
  .hero-art {
    margin: 0 auto;
    max-width: 480px;
  }
  .how-row {
    gap: 40px;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feat-design,
  .feat-queue,
  .feat-hardware {
    grid-column: span 2;
  }
  .feat-reprint,
  .feat-contacts {
    grid-column: span 1;
  }
  .feat-design {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .feat-design .feat-copy {
    flex: none;
  }
  .feat-design .feat-art {
    padding-top: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  /* Each step: the words, then its picture. */
  .how {
    gap: 56px;
  }
  .how-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .how-row:nth-child(even) .how-copy {
    order: 0;
  }
  .trouble-grid {
    grid-template-columns: 1fr;
  }
  .kit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  body {
    font-size: 1rem;
  }
  .site-footer nav {
    gap: 0;
  }
  .site-footer nav a,
  .builder-links a {
    padding: 9px 0; /* 44 px tall to tap */
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 44px 0 60px;
  }
  .hero .lead {
    font-size: 1.1rem;
  }
  .section {
    padding: 68px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .page-hero {
    padding: 56px 0 32px;
  }
  .form-grid,
  .bento,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feat-design,
  .feat-queue,
  .feat-hardware,
  .feat-reprint,
  .feat-contacts {
    grid-column: auto;
  }
  .cta-row .btn {
    flex: 1 1 auto;
  }
  .how-stage {
    border-radius: var(--r-lg);
  }
  .trouble-shot {
    height: 268px;
    padding: 22px 18px 0;
  }
  .trouble-copy {
    padding: 20px 22px 24px;
  }
  .feat {
    padding: 22px;
  }
  /* Three small pictures side by side do not fit: the phone screen takes the first row. */
  .design-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design-art figure:first-child {
    grid-column: span 2;
  }
  .art-box {
    height: 190px;
  }
  .queue-art {
    height: 230px;
    margin: 22px -22px -22px;
  }
  .queue-art .browser {
    left: 22px;
    width: 76%;
  }
  .queue-art .phone {
    width: 25%;
    right: 4%;
  }
  /* Side by side becomes one block per row: the question, then each answer under its own name. */
  .compare-head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 20px 20px;
    border-top: 1px solid var(--line);
  }
  .compare-head + .compare-row {
    border-top: 0;
  }
  .compare-row > * {
    padding: 0;
    border: 0;
  }
  .compare .what {
    font-size: 1.08rem;
    font-weight: 700;
  }
  .compare .them::before,
  .compare .us::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
  }
  .compare .us {
    background: none;
    border-left: 3px solid var(--blue);
    padding-left: 12px;
  }
  .compare .us::before {
    color: var(--active);
  }
}
