/* Brand tokens from docs/BRAND.md. Nothing here invents a colour. */
:root {
  --ink: #0B0B0C;
  --ink-raised: #141416;
  --ink-sunken: #060607;
  --amber: #E8A54B;
  --amber-deep: #C77F2A;
  --paper: #F2EEE7;
  --paper-muted: #9A968E;
  --sealed: #5C6472;
  --danger: #C2503F;
  --hairline: rgba(242, 238, 231, 0.10);
  --display: "Fraunces", ui-serif, Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  /* Everything inside the phone is sized in em, so one number scales the whole
     composition without re-tuning a single screen. */
  --phone-unit: 0.94rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 70% at 50% 18%, rgba(232, 165, 75, 0.16) 0%, rgba(232, 165, 75, 0.04) 42%, transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-sunken) 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

.offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sprockets {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: min(100svh, 38rem);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 28%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 28%, transparent 100%);
}

.sprockets span {
  width: 10px;
  background-image: linear-gradient(
    180deg,
    rgba(242, 238, 231, 0.04) 0 16px,
    transparent 16px 40px
  );
  background-size: 10px 40px;
  border-radius: 3px;
}

.stage {
  position: relative;
  min-height: 100svh;
  max-width: 34rem;
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.75rem max(2.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
}

.mark {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--amber);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: rise 0.5s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.125rem, 9vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper-muted);
}

/* The waitlist. The one amber on the first viewport is Notify me. */
.notify {
  width: 100%;
  max-width: 23rem;
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notify-row {
  display: flex;
  gap: 0.5rem;
}

.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--ink-raised);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--paper);
  font: inherit;
  font-size: 0.9375rem;
}

.notify input[type="email"]::placeholder { color: var(--paper-muted); }

.notify input[type="email"]:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(232, 165, 75, 0.55);
}

.btn-notify {
  flex: none;
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border: 0;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: var(--ink-sunken);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-notify:disabled { opacity: 0.6; cursor: default; }

.notify-note,
.notify-status {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--paper-muted);
}

.notify-status.is-done { color: var(--paper); }
.notify-status.is-wrong { color: var(--danger); }

/* One phone, four screens. */
.switcher {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}

.step {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
}

.step svg { width: 1.35rem; height: 1.35rem; }

.step:hover { color: var(--paper); }

.step:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 2px;
}

.phone {
  margin: 0;
  flex: none;
  font-size: var(--phone-unit);
  width: 13.5em;
}

.bezel {
  position: relative;
  border-radius: 1.85em;
  padding: 0.55em;
  background: #1a1a1c;
  box-shadow:
    0 0 0 1px rgba(242, 238, 231, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.island {
  position: absolute;
  top: 0.85em;
  left: 50%;
  width: 4.1em;
  height: 0.72em;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  z-index: 2;
}

.screens {
  position: relative;
  height: 27.5em;
  border-radius: 1.35em;
  overflow: hidden;
  background: var(--ink);
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease-out;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* 80ms of white, on entering the camera. */
.flash {
  position: absolute;
  inset: 0.55em;
  border-radius: 1.35em;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.flash.is-firing { animation: shutter 0.24s linear; }

@keyframes shutter {
  0%, 33% { opacity: 0.9; }
  100% { opacity: 0; }
}

.screen-create {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2.4em 1em 1.15em;
  text-align: left;
  background-image:
    radial-gradient(90% 50% at 50% 0%, rgba(232, 165, 75, 0.14) 0%, transparent 70%);
}

.create-progress {
  display: flex;
  gap: 0.25em;
  margin-bottom: 1.15em;
}

.create-progress i {
  flex: 1;
  height: 2px;
  background: var(--hairline);
}

.create-progress i:first-child {
  background: var(--amber);
}

.create-eyebrow {
  margin: 0;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.create-title {
  margin: 0.35em 0 1.1em;
  font-family: var(--display);
  font-size: 1.15em;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.create-field {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding: 0.55em 0.65em 0.5em;
  border-radius: 0.7em;
  background: var(--ink-raised);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.create-field span {
  font-size: 0.48em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.create-field strong {
  font-size: 0.82em;
  font-weight: 500;
}

.create-pills {
  display: flex;
  margin-top: 0.7em;
  border-radius: 0.7em;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.create-pills span {
  flex: 1;
  padding: 0.42em 0;
  font-size: 0.52em;
  text-align: center;
  color: var(--paper-muted);
}

.create-pills .on {
  color: var(--paper);
  background: var(--ink-raised);
}

.create-cta {
  margin-top: auto;
  text-align: center;
}

.btn-amber {
  display: block;
  padding: 0.55em 0.5em;
  border-radius: 0.7em;
  font-size: 0.68em;
  font-weight: 600;
  color: var(--ink-sunken);
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
}

.screen-camera {
  background: var(--ink-sunken);
}

.viewfinder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 62% 38%, rgba(232, 165, 75, 0.55) 0%, transparent 52%),
    radial-gradient(40% 30% at 30% 70%, rgba(92, 100, 114, 0.35) 0%, transparent 70%),
    linear-gradient(160deg, #3a2a18 0%, #16110c 48%, #24180f 100%);
}

.viewfinder::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cam-top,
.cam-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}

.cam-top {
  top: 1.7em;
  justify-content: space-between;
  padding: 0 0.7em;
}

.cam-chip,
.cam-time {
  width: 1.55em;
  height: 1.55em;
  border-radius: 999px;
  background: rgba(6, 6, 7, 0.55);
  color: var(--paper);
  font-size: 0.72em;
  line-height: 1.55em;
}

.cam-time {
  width: auto;
  padding: 0 0.55em;
  font-variant-numeric: tabular-nums;
  font-size: 0.58em;
  font-weight: 500;
}

.cam-chip {
  position: relative;
}

.cam-close::before,
.cam-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.72em;
  height: 1px;
  background: var(--paper);
}

.cam-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.cam-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.cam-bolt::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0.62em;
  width: 0.28em;
  height: 0.72em;
  background: var(--paper);
  clip-path: polygon(55% 0, 100% 0, 48% 48%, 90% 48%, 0 100%, 38% 52%, 8% 52%);
}

.cam-bottom {
  bottom: 0;
  flex-direction: column;
  padding: 2.4em 0.7em 1.05em;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 6, 7, 0.82) 42%, var(--ink-sunken) 100%);
}

.shutter {
  width: 3.15em;
  height: 3.15em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  box-shadow:
    0 0 0 3px var(--ink-sunken),
    0 0 0 5px var(--amber);
}

.screen-camera.is-active .shutter { animation: press 0.28s ease-out; }

@keyframes press {
  0% { transform: scale(0.92); }
  100% { transform: none; }
}

.shutter span {
  font-variant-numeric: tabular-nums;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--ink-sunken);
}

.cam-look {
  margin: 0 0 0.5em;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}

.cam-frames {
  margin: 0.55em 0 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.62em;
  color: var(--paper);
}

.cam-note {
  margin: 0.2em 0 0;
  font-size: 0.55em;
  color: var(--paper-muted);
}

.screen-sealed {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.4em 0.7em 0;
}

.ring {
  position: relative;
  width: 5.6em;
  height: 5.6em;
  margin-top: 0.35em;
}

.ring svg {
  width: 100%;
  height: 100%;
}

/* The ring is redrawn on arrival, which is how time passing reads in the app. */
.screen-sealed.is-active .ring-arc { animation: wind 1.1s cubic-bezier(0.2, 0, 0.2, 1) both; }

@keyframes wind {
  from { stroke-dashoffset: 327; }
  to { stroke-dashoffset: 107; }
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
}

.ring-label strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.82em;
  font-weight: 600;
}

.ring-label span {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.sealed-title {
  margin: 0.85em 0 0;
  font-family: var(--display);
  font-size: 0.82em;
  letter-spacing: -0.02em;
}

.sealed-note {
  margin: 0.35em 0 0;
  max-width: 10.2em;
  font-size: 0.52em;
  line-height: 1.4;
  color: var(--paper-muted);
}

.tiles {
  margin-top: auto;
  width: calc(100% + 1.4em);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.tiles span {
  aspect-ratio: 1;
  background: var(--sealed);
  opacity: 0.55;
}

.tiles span:nth-child(2) { opacity: 0.4; }
.tiles span:nth-child(3) { opacity: 0.7; }
.tiles span:nth-child(5) { opacity: 0.35; }

.screen-develop {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.6em 0.7em 0;
}

.dev-eyebrow {
  margin: 0;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.dev-film {
  margin: 0.5em 0 0;
  font-family: var(--display);
  font-size: 1.15em;
  letter-spacing: -0.02em;
}

.dev-count {
  margin: 0.3em 0 0;
  font-size: 0.55em;
  color: var(--paper-muted);
}

.dev-grid {
  margin-top: auto;
  width: calc(100% + 1.4em);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Portrait, because that is the shape a phone hands back. */
.dev-grid span {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.dev-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-develop.is-active .dev-grid img { animation: develop 1.2s ease-out both; }
.screen-develop.is-active .dev-grid span:nth-child(2) img { animation-delay: 40ms; }
.screen-develop.is-active .dev-grid span:nth-child(3) img { animation-delay: 80ms; }
.screen-develop.is-active .dev-grid span:nth-child(4) img { animation-delay: 120ms; }

@keyframes develop {
  from { opacity: 0.18; filter: grayscale(0.9) brightness(0.55) contrast(0.75); }
  to { opacity: 1; filter: none; }
}

.beat {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--paper-muted);
  animation: rise 0.35s ease-out both;
}

.beat span {
  color: var(--paper);
}

.dots {
  display: flex;
  gap: 0.4rem;
}

.dots button {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dots button::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(242, 238, 231, 0.22);
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}

.dots button:hover::before { background: rgba(242, 238, 231, 0.45); }

.dots button[aria-selected="true"]::before {
  background: var(--amber);
  transform: scale(1.2);
}

.dots button:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 0;
  border-radius: 999px;
}

.also {
  width: 100%;
  max-width: 22rem;
  text-align: left;
}

.also .eyebrow {
  margin-bottom: 0.9rem;
  text-align: center;
}

.also ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.also li {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--paper-muted);
}

.also li span {
  display: block;
  margin-bottom: 0.12rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.trust {
  margin: 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--paper-muted);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--paper-muted);
}

.footer p {
  margin: 0;
  max-width: 22rem;
  line-height: 1.5;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.footer a {
  color: var(--paper-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
}

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

@media (max-width: 22rem) {
  :root { --phone-unit: 0.82rem; }

  .notify-row { flex-wrap: wrap; }
  .btn-notify { width: 100%; }
}

@media (min-width: 30rem) {
  :root { --phone-unit: 1.06rem; }
  .deck { gap: 1rem; }
}

@media (min-width: 48rem) {
  :root { --phone-unit: 1.28rem; }

  .stage { gap: 1.5rem; }
  .deck { gap: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .beat { animation: none; }

  .screen { transition: none; }

  .flash.is-firing,
  .screen-camera.is-active .shutter,
  .screen-sealed.is-active .ring-arc,
  .screen-develop.is-active .dev-grid img { animation: none; }
}
