/* BIGtextSIGN — site styles
   Dark by design: the app is a sign that runs on a screen in a dim room, and the
   site is set the same way. One display face (Anton, the app's own default) for
   headings, the system UI stack for everything you actually read. */

/* ---------------------------------------------------------------- font */

@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  --ink: #0b0b0f;
  --surface: #131318;
  --surface-2: #1a1a21;
  --line: #2a2a33;
  --line-soft: #202028;
  --amber: #ffd400;
  --amber-dim: #b39400;
  --text: #f4f4f6;
  --muted: #a0a0ab;
  --muted-dim: #74747f;

  --wrap: 1120px;
  --radius: 14px;
  --radius-lg: 22px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --display: "Anton", "Haettenschweiler", "Arial Narrow Bold", var(--sans);

  --step: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
}

/* ---------------------------------------------------------------- base */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 3rem 0;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5.5rem);
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  letter-spacing: 0.02em;
}

h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* `prose` shares an element with `wrap`, so it must not narrow that element —
   doing so would centre the reading column while the page title above it stays
   at the left edge. The measure is applied to the children instead. */
.prose > * {
  max-width: 68ch;
}

.prose > .table-scroll,
.prose > .panel,
.prose > .faq,
.prose > .toc {
  max-width: 80ch;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--amber-dim);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.wordmark b {
  color: var(--amber);
  font-weight: inherit;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  font-size: 0.95rem;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

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

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line-soft);
}

.section--flush {
  border-top: 0;
}

.section__head {
  max-width: 58ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 30% 40% -20%;
  background: radial-gradient(
    closest-side,
    rgba(255, 212, 0, 0.09),
    transparent
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero__stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 1rem/1.2 var(--sans);
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease,
    border-color 0.12s ease;
}

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

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}

.btn--primary:hover {
  background: #ffe250;
  color: var(--ink);
}

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

.btn--ghost:hover {
  border-color: var(--muted-dim);
  color: var(--text);
}

/* The App Store slot. Until there is a real store URL this is a badge, not a
   link — a dead download button is worse than an honest "coming soon". */
.storeslot {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}

.storeslot span {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.storeslot strong {
  font-size: 1.05rem;
  font-weight: 600;
}

a.storeslot:hover {
  border-color: var(--muted-dim);
  color: var(--text);
}

/* ---------------------------------------------------------------- phone */

.phone {
  --w: 232px;
  width: var(--w);
  flex: 0 0 auto;
  aspect-ratio: 9 / 19.5;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #34343d, #101014 45%, #26262e);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.phone--sm {
  --w: 168px;
}

.phone--lg {
  --w: clamp(232px, 48vw, 290px);
}

.phone--wide {
  aspect-ratio: 19.5 / 9;
  width: clamp(280px, 80vw, 420px);
  border-radius: 30px;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  container-type: size;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.phone--wide .phone__screen {
  border-radius: 24px;
}

/* The camera housing, so the frame reads as a phone at a glance. */
.phone__screen::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  width: 32%;
  height: 4.5%;
  min-height: 14px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.phone--wide .phone__screen::after {
  top: 50%;
  left: 9px;
  translate: 0 -50%;
  width: 3%;
  height: 30%;
  min-width: 12px;
}

/* The settings button that recedes but never disappears. */
.phone__dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  z-index: 3;
}

/* ---------------------------------------------------------------- the sign */

.sign {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3cqh;
  padding: 4cqw;
  text-align: center;
  background: #000;
}

.sign__text {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--amber);
  font-size: 30cqw;
  margin: 0;
  overflow-wrap: break-word;
}

/* Sized by the longest word, the way the app's own fitter ends up doing it:
   fewer characters on the widest line means a larger size. */
.sign__text--two {
  font-size: 40cqw;
}

.sign__text--six {
  font-size: 30cqw;
}

.sign__text--three {
  font-size: 22cqw;
}

.sign__text--small {
  font-size: 22cqw;
}

/* Backgrounds, matching the presets a new sign can be set to. */
.sign--amber {
  background: #000;
}

.sign--gradient {
  background: linear-gradient(135deg, #ff2d55, #7a2ff2 55%, #00c2ff);
}

.sign--gradient .sign__text {
  color: #fff;
}

.sign--white {
  background: #fff;
}

.sign--white .sign__text {
  color: #0b0b0f;
}

.sign--green {
  background: #06d16b;
}

.sign--green .sign__text {
  color: #04240f;
}

/* A photo background stands in as a soft texture plus the darkening layer the
   app applies, so the words stay readable over it. */
.sign--photo {
  background: linear-gradient(200deg, #4a3f6b, #1d2a4a 60%, #0f1522);
}

.sign--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 80% at 20% 10%,
      rgba(255, 180, 80, 0.5),
      transparent 60%
    ),
    radial-gradient(90% 70% at 85% 80%, rgba(90, 200, 255, 0.35), transparent 60%),
    rgba(0, 0, 0, 0.45);
}

.sign--photo .sign__text {
  color: #fff;
  position: relative;
}

/* ---------------------------------------------------------------- effects */

.fx-glow {
  text-shadow: 0 0 0.14em currentColor, 0 0 0.3em currentColor;
  animation: glow 2.6s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 0.1em currentColor, 0 0 0.22em currentColor;
  }
  50% {
    text-shadow: 0 0 0.18em currentColor, 0 0 0.45em currentColor,
      0 0 0.7em currentColor;
  }
}

/* Neon: mostly steady, with two brief dips a cycle. Never off. */
.fx-neon {
  color: #fff;
  text-shadow: 0 0 0.06em #fff, 0 0 0.16em var(--amber), 0 0 0.34em var(--amber),
    0 0 0.6em rgba(255, 212, 0, 0.7);
  animation: neon 4s steps(1, end) infinite;
}

@keyframes neon {
  0%,
  16%,
  20%,
  62%,
  66%,
  100% {
    opacity: 1;
  }
  18%,
  64% {
    opacity: 0.72;
  }
}

/* Shine reveals a full-strength copy inside a moving band over a dimmed one,
   rather than brightening — brightening is invisible on white text. */
.fx-shine {
  background: linear-gradient(
    100deg,
    currentColor 0 42%,
    #fff 50%,
    currentColor 58% 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--amber);
  -webkit-text-fill-color: transparent;
  animation: shine 3.4s linear infinite;
}

@keyframes shine {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

.fx-pulse {
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

.fx-flash {
  animation: flash 1s steps(1, end) infinite;
}

@keyframes flash {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.08;
  }
}

.fx-zoom {
  animation: zoom 2.8s ease-in-out infinite;
}

@keyframes zoom {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.06);
  }
}

.fx-rainbow {
  animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

/* Marquee: one lane, scrolling sideways, sized to the lane's height. */
.marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 0.4em;
  white-space: nowrap;
  animation: marquee 9s linear infinite;
  will-change: transform;
}

.marquee .sign__text {
  font-size: 42cqh;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Typewriter, on one line, revealed by width. */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.08em solid currentColor;
  width: 0;
  animation: type 4s steps(11, end) infinite,
    caret 0.9s steps(1, end) infinite;
}

@keyframes type {
  0% {
    width: 0;
  }
  60%,
  95% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

/* ---------------------------------------------------------------- arrow */

.arrow {
  width: 34cqw;
  height: auto;
  color: var(--amber);
  flex: 0 0 auto;
}

.sign--gradient .arrow,
.sign--photo .arrow {
  color: #fff;
}

.sign--green .arrow {
  color: #04240f;
}

.arrow--anim {
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(12%);
  }
}

.arrow--chase g > path {
  animation: chase 1.2s linear infinite;
}

.arrow--chase g > path:nth-child(2) {
  animation-delay: 0.14s;
}

.arrow--chase g > path:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes chase {
  0%,
  60%,
  100% {
    opacity: 0.3;
  }
  20% {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 260px;
}

.shot figcaption {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.shot figcaption b {
  display: block;
  color: var(--text);
  font-weight: 600;
}

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

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.card h3 {
  margin-bottom: 0.45rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.card__mark {
  width: 30px;
  height: 30px;
  margin-bottom: 0.9rem;
  color: var(--amber);
}

/* Numbered steps. */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.6rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--amber);
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Callout panel. */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.75rem 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel h3 {
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------- table */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

td {
  color: var(--muted);
}

/* ---------------------------------------------------------------- details */

.faq {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq > summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq > summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--amber);
  flex: 0 0 auto;
}

.faq[open] > summary::after {
  content: "–";
}

.faq > summary:hover {
  background: var(--surface-2);
}

.faq__body {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
}

.faq__body > :last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- toc */

.toc {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 0.78rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.95rem;
}

@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

.toc li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

/* Anchored headings clear the sticky header. */
[id] {
  scroll-margin-top: 84px;
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 3rem 3.5rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 2.5rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer__base {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted-dim);
  font-size: 0.87rem;
}

/* ---------------------------------------------------------------- motion */

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

  .fx-glow,
  .fx-neon,
  .fx-shine,
  .fx-pulse,
  .fx-flash,
  .fx-zoom,
  .fx-rainbow,
  .marquee__track,
  .typewriter,
  .arrow--anim,
  .arrow--chase g > path {
    animation: none !important;
  }

  .typewriter {
    width: 100%;
    border-right-color: transparent;
  }

  .fx-shine {
    -webkit-text-fill-color: currentColor;
    background: none;
  }

  .fx-zoom {
    transform: none;
  }
}
