/* astra ✦ landing page.
   Palette and type scale mirror apps/mobile/src/constants/theme.ts: roughly
   80% black, 15% photography, 5% light. Blue is a moment of energy, never a
   wash. Headlines are lowercase; the type does not transform them. */

:root {
  --bg: #000000;
  --surface: #0a0a0b;
  --surface-raised: #141416;
  --border: #1f1f23;
  --text: #f4f3ef;
  --text-secondary: #b8bac1;
  --text-muted: #5e6068;
  --accent: #5868ff;
  --accent-text: #ffffff;
  --accent-soft: rgba(88, 104, 255, 0.16);
  --font-display: 'Spline Sans', Inter, ui-sans-serif, system-ui, sans-serif;
  --gutter: 24px;
  --measure: 62rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* `display` on .event-fields, form and the like would otherwise beat the
   browser's own [hidden] rule, so the JS toggles would do nothing. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* A faint film grain over everything. Cheap, static, no image request. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.8px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -1.6px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 16px;
  background: var(--surface-raised);
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ chrome */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 5;
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.4px;
  text-decoration: none;
}

.star {
  color: var(--accent);
}

.topnav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.topnav a {
  text-decoration: none;
}

.topnav a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------- blocks */

.hero,
.band,
.footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  padding-top: clamp(56px, 10vw, 112px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

.band {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.lede {
  max-width: 34rem;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-secondary);
}

.trust {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.note {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.note.strong {
  color: var(--text-secondary);
}

.note a {
  color: var(--text-secondary);
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.8125rem;
}

/* -------------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.steps li {
  background: var(--surface);
  padding: 28px 24px;
}

.num {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 14px;
}

.steps h3,
.card h3 {
  margin-bottom: 10px;
}

.steps p,
.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ---------------------------------------------- how it works: the drawings */

/* Drawn rather than photographed. The page already draws its own artwork —
   the film boxes are CSS, the app's canister is plain views — so these need
   no asset pipeline, stay sharp at any size, and take their colour from the
   card. Decorative: every one is aria-hidden, and the step text says the
   same thing in words. */
.step-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  overflow: visible;
}

/* The drawing leads, so it moves a beat before its own card's text. */
.steps.anim .step-icon {
  animation: icon-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes icon-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps.anim .step-icon {
    animation: none;
  }
}

@media (max-width: 520px) {
  .step-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
  }
}

/* ------------------------------------------------- how it works: the switch */

/* Two tracks for one engine: a roll with the people you're out with, and an
   event a host runs. The page used to describe only the second. */
.switch {
  display: inline-flex;
  gap: 2px;
  margin-top: 32px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.switch [role='tab'] {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.switch [role='tab']:hover {
  color: var(--text);
}

/* Selected turns warm white, never the accent: theme.ts reserves blue for
   one action per screen and that budget is spent on the CTA. */
.switch [role='tab'][aria-selected='true'] {
  background: var(--text);
  color: var(--bg);
}

.steps[role='tabpanel'] {
  margin-top: 20px;
}

/* ---------------------------------------------- how it works: the entrance */

/* The cards are visible by default; steps.js adds `.anim` to opt into the
   entrance, so the page never needs JavaScript to run in order to show its
   own content and reduced motion simply never opts in. `--i` comes from
   build-pages.py and staggers the four.

   This is a keyframe animation rather than a from-class plus a to-class on
   purpose. The two-class version needed requestAnimationFrame to reach the
   visible state, and rAF does not fire while a tab is unpainted or
   throttled — so a switch made off-screen left the cards stuck at zero
   opacity. An animation with `backwards` fill holds the from-state only for
   its own delay and always lands on the element's real styles, so the worst
   case here is no animation rather than no content. */
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.steps.anim li {
  animation: step-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  .steps.anim li {
    animation: none;
  }

  .switch [role='tab'] {
    transition: none;
  }
}

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

.cards {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* -------------------------------------------------------------------- split */

.band-split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.band-split p {
  color: var(--text-secondary);
  max-width: 34rem;
}

.band-split .btn {
  margin-top: 28px;
}

/* ------------------------------------------------------------------ pricing */

.price-blocks {
  display: grid;
  gap: 40px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.price-block h3 {
  font-size: 0.6875rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  vertical-align: top;
}

.price-table th {
  color: var(--text);
  padding-right: 16px;
}

.price-table td {
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.price-block:last-child .price-table td {
  white-space: normal;
  max-width: 22rem;
}

.price-table em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Persona pages set data-emphasis on #pricing to lift their own tier,
   rather than shipping a second pricing table. */
#pricing[data-emphasis=''] tr[data-tier] th,
#pricing:not([data-emphasis]) tr[data-tier] th {
  color: var(--text);
}

#pricing[data-emphasis] tr[data-tier] th,
#pricing[data-emphasis] tr[data-tier] td {
  color: var(--text-muted);
}

#pricing[data-emphasis='250'] tr[data-tier='250'] th,
#pricing[data-emphasis='250'] tr[data-tier='250'] td,
#pricing[data-emphasis='nocap'] tr[data-tier='nocap'] th,
#pricing[data-emphasis='nocap'] tr[data-tier='nocap'] td,
#pricing[data-emphasis='25'] tr[data-tier='25'] th,
#pricing[data-emphasis='25'] tr[data-tier='25'] td,
#pricing[data-emphasis='50'] tr[data-tier='50'] th,
#pricing[data-emphasis='50'] tr[data-tier='50'] td {
  color: var(--text);
}

#pricing[data-emphasis='250'] tr[data-tier='250'],
#pricing[data-emphasis='nocap'] tr[data-tier='nocap'],
#pricing[data-emphasis='25'] tr[data-tier='25'],
#pricing[data-emphasis='50'] tr[data-tier='50'] {
  box-shadow: inset 2px 0 0 var(--accent);
}

/* ---------------------------------------------------------------------- faq */

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 44rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  padding: 18px 32px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 1rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.faq details[open] summary::after {
  content: '–';
  color: var(--accent);
}

.faq details p {
  padding: 0 32px 20px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer nav {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer nav a {
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--text);
}

.footer .note {
  margin: 0 0 0 auto;
}


/* ------------------------------------------------------------ hero (photo) */

.hero-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(82vh, 860px);
  width: 100%;
  align-items: center;
}

/* The measure is capped and centred inside the left half. Aligning it to the
   page container instead looks fine at 1280 and falls apart wide: the inset
   grows with the viewport, pinning the copy to the seam behind dead black. */
.hero-photo .copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(28px, 5vw, 72px);
}

.hero-photo .copy-inner {
  width: 100%;
  max-width: 30rem;
}

.hero-photo h1 {
  font-size: clamp(2.25rem, 3.4vw, 3.25rem);
}

.shot {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background: var(--surface);
  margin: 0; /* <figure> carries a 1em/40px UA margin that breaks the bleed */
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%; /* a tall crop: hold the faces, don't centre them out */
}

/* the house `flash` look, so the hero reads as an astra frame: grain 0.3,
   vignette 0.45, plus a falloff that melts the left edge into the copy panel */
.shot .grain,
.shot .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shot .grain {
  opacity: 0.17;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px),
    radial-gradient(rgba(0, 0, 0, 0.5) 0.5px, transparent 0.5px);
  background-size: 2px 2px, 3px 3px;
  background-position: 0 0, 1px 1px;
}

.shot .vignette {
  background: radial-gradient(75% 75% at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.55), transparent 22%);
}

.shot figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 0.625rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(244, 243, 239, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ------------------------------------------------------------ store badges */

/* Apple's and Google's own artwork, unmodified, from their marketing
   resources. Google's PNG carries roughly 9% transparent padding baked in, so
   it needs more height than Apple's SVG to look the same size. */
.stores {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 30px;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
}

.badge-apple {
  height: 44px;
  width: auto;
  display: block;
}

.badge-google {
  height: 54px;
  width: auto;
  display: block;
  margin: -5px -6px;
}

/* The label sits above the artwork rather than across it: Apple and Google
   both forbid obscuring or modifying their badges. */
.stores-flag {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 11px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

/* Inline "coming soon" for anything the price list names that has not
   shipped. Quieter than the hero's store flag: it qualifies a line rather
   than announcing one, and a price list that hides the difference between
   what exists and what is planned is the kind of thing that generates
   refunds in week one. */
.soon {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 7px;
  white-space: nowrap;
  vertical-align: 1px;
}

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

.section-lede {
  margin-top: 18px;
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------- shelf */

/* Sixteen cartons, packed the way film sits on a shop shelf: almost no gap,
   every one a different colour, each one shouting its speed. Colours and ink
   come from the app's own stocks, so the shelf and the film wall agree. */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 5px;
  margin-top: 36px;
}

.film-box {
  /* the stock's ink arrives as a custom property, not an inline `color`, so
     the hover state can override it in the cascade */
  color: var(--ink);
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 3.8;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.14s ease;
}

.film-box:hover {
  transform: translateY(-3px);
  z-index: 1;
}

/* paper tooth, so a flat hex does not read as a screen colour */
.film-box::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(0, 0, 0, 0.055) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* The photo frame is positioned, so static text would paint underneath it.
   Lift the type into the same stacking level, above the frame. */
.fb-brand,
.fb-name,
.fb-foot,
.fb-fine {
  position: relative;
  z-index: 1;
}

.fb-brand {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  opacity: 0.85;
}

.fb-star {
  opacity: 0.6;
}

.fb-name {
  margin-top: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.fb-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.fb-iso {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
}

.fb-exp {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  opacity: 0.75;
}

.fb-fine {
  margin-top: 7px;
  font-size: 0.5rem;
  letter-spacing: 0.3px;
  opacity: 0.6;
}

/* the colour bar every carton has along its foot */
.fb-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--band);
  opacity: 0.9;
}

@media (max-width: 520px) {
  .shelf {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------- the shelf, on hover */

/* The night itself, developed through this stock. Hidden until someone
   reaches for the box; the <img> inside is created on first interaction. */
.fb-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  /* The stock's tint uses mix-blend-mode. Without isolation it blends with
     the carton colour behind it as well as the photograph — a `screen`
     stock like polaroid then washes the whole frame out to flat cream. */
  isolation: isolate;
  background: #000;
}

.film-box.showing .fb-photo {
  opacity: 1;
}

.fb-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* comes up out of the dark, the way the reveal strip does, but fast */
  transform: scale(1.06);
  transition: transform 3.2s ease-out;
}

.film-box.showing .fb-photo img {
  transform: scale(1);
}

.fb-photo i {
  position: absolute;
  inset: 0;
}

.fb-grain {
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px),
    radial-gradient(rgba(0, 0, 0, 0.5) 0.5px, transparent 0.5px);
  background-size: 2px 2px, 3px 3px;
  background-position: 0 0, 1px 1px;
}

/* keeps the name and the speed readable over any photograph */
/* Two bands rather than a wash: the type needs cover at the top and the
   foot, the middle of the photograph does not. */
.fb-scrim {
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.74) 30%,
      transparent 54%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.5) 20%, transparent 40%);
}

/* a light stock over a bright frame is the worst case; the shadow costs
   nothing and rescues it */
.film-box.showing .fb-brand,
.film-box.showing .fb-name,
.film-box.showing .fb-foot,
.film-box.showing .fb-fine {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* the type is set in the stock's ink, which may be near-black — over a
   photograph it has to go light */
.film-box.showing {
  color: #f4f3ef;
}

.film-box.showing .fb-brand,
.film-box.showing .fb-fine {
  opacity: 0.9;
}

.film-box.showing .fb-band {
  opacity: 0;
}

.film-box[tabindex]:focus-visible,
.film-box.blank:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ----------------------------------------- the hero's rotating occasion */

/* Left inline on purpose. Forcing it onto its own line strands "for your" as
   a line of its own, and it is not needed: measured across every word in the
   list, at 375px and up, the headline keeps one height and never overflows —
   the phrase is short enough that no word changes the line count. The word
   growing in place after "your" is also the effect itself. */

/* the caret, only once type.js has taken over */
/* The rotating word gets a line to itself.
 *
 * It used to sit inline after "your", so every few seconds a longer word
 * wrapped the headline onto an extra line and the entire page below it
 * jumped. A character cap tried to hold that off, which only narrowed the
 * widths where it broke. On its own line the word cannot change how the
 * static text above it wraps, at any width or any length.
 *
 * min-height holds the line box open while the word is empty — the script
 * erases to "" between occasions, and without this the line collapses and
 * the page jumps exactly once per cycle, which is the bug this fixes. */
.rot {
  display: block;
  min-height: 1em;
  min-height: 1lh;
}

.rot.typing::after {
  content: '';
  display: inline-block;
  width: 0.055em;
  height: 0.78em;
  margin-left: 0.055em;
  vertical-align: -0.04em;
  background: currentColor;
  animation: caret 1.05s steps(1) infinite;
}

@keyframes caret {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rot.typing::after {
    animation: none;
    opacity: 1;
  }
}

/* ------------------------------------------------ the unprinted carton */

/* The last box on the shelf. Kraft board with nothing printed on it but the
   brand: every other carton names a night we thought of, this one is the
   one we did not. It is the only box that is a link, and the only one that
   never reveals a photograph — nobody has shot this night yet. */
.film-box.blank {
  --ink: #2b251b;
  --band: #9d8c6d;
  background: #c4b596;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(47, 42, 34, 0.28);
}

.film-box.blank:hover {
  background: #d0c2a6;
}

.film-box.blank .fb-brand {
  opacity: 0.55;
}

/* the ruled line where the stock name would have been printed */
.fb-rule {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  height: 1px;
  opacity: 0.5;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 5px,
    transparent 5px 9px
  );
}

/* stands in for the ISO, which an unexposed roll does not have yet */
.fb-write {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.2px;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .fb-photo,
  .fb-photo img {
    transition: none;
  }

  .film-box.showing .fb-photo img {
    transform: none;
  }
}

/* -------------------------------------------------------------------- prose */

.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
}

.prose h1 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  line-height: 1.1;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  margin-top: 52px;
}

.prose h3 {
  margin-top: 34px;
}

.prose p {
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.prose h1 + p {
  font-size: 1.0625rem;
  color: var(--text);
}

/* "**flash.** direct flash, a little grain" — a term and its gloss */
.prose p.def {
  margin-top: 8px;
}

.prose p.def strong {
  color: var(--text);
}

.prose ul {
  margin-top: 16px;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.prose li {
  margin-top: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-muted);
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0 4px;
}

/* ------------------------------------------------------------------- narrow */

@media (max-width: 860px) {
  .hero-photo {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-photo .copy {
    padding: 40px 24px;
    justify-content: flex-start;
  }

  .hero-photo .copy-inner {
    max-width: none;
  }

  .shot {
    height: 54vh;
  }
}

@media (max-width: 720px) {
  .topnav {
    display: none;
  }

  .topbar {
    gap: 14px;
  }

  .signin {
    margin-left: auto;
  }

  .badge-apple {
    height: 40px;
  }

  .badge-google {
    height: 49px;
  }

  .footer .note {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .frame.developed {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
