/* The Reel Machine — one stylesheet, mobile-first.
   Palette: near-black ink for hero/footer, warm off-white paper for body, coral for CTA + labels only. */

:root {
  --ink: #0B0B0F;
  --ink-raised: #14141A;
  --paper: #FAF7F2;
  --coral: #FF5C4D;
  --coral-press: #EE4636;

  --on-ink: #FFFFFF;
  --on-ink-muted: #9B9BA5;
  --on-paper: #0B0B0F;
  --on-paper-muted: #5D5D67;

  --hair-dark: rgba(255, 255, 255, 0.12);
  --hair-light: rgba(11, 11, 15, 0.12);

  /* logo mark: ribbon = the film-strip R, hole = its perforations */
  --logo-ribbon: #0B0B0F;
  --logo-hole: #FAF7F2;
  --logo-accent: #FF5C4D;
  --logo-word: #0B0B0F;

  --measure: 34rem;
  --wrap: 68rem;
  --pad-x: 1.5rem;
  --band-y: 4.75rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

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

/* ---------- layout ---------- */

.band {
  padding: var(--band-y) 0;
}

.band--ink,
.site-header,
.site-footer {
  --logo-ribbon: var(--coral);
  --logo-hole: var(--ink);
  --logo-accent: var(--coral);
  --logo-word: #FFFFFF;
}

.band--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.band--paper {
  background: var(--paper);
  color: var(--on-paper);
}

.band--paper + .band--paper {
  padding-top: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

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

.overline {
  margin: 0 0 1.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 8.8vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

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

h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--on-ink-muted);
}

.band--paper .lead { color: var(--on-paper-muted); }

.note {
  font-size: 0.95rem;
  color: var(--on-paper-muted);
  max-width: var(--measure);
}

.band--ink .note { color: var(--on-ink-muted); }

.prose { max-width: var(--measure); }

/* ---------- buttons + links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.65rem;
  border-radius: 999px;
  background: var(--coral);
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--coral-press);
  transform: translateY(-1px);
}

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

.link-quiet {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.link-quiet:hover { color: var(--on-ink); }

.link-coral {
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.link-coral:hover { opacity: 0.75; }

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  margin-top: 2.25rem;
}

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

.site-header {
  background: var(--ink);
  color: var(--on-ink);
  padding: 1.35rem 0 0.5rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--on-ink);
}

.logo { display: block; }

/* Every logo colour is declared here, on real elements in the page tree, so the
   theme variables resolve in their own context; the <use> shadow trees then
   inherit finished computed values. Declaring paint inside <defs>/<symbol>
   instead resolves against the sprite's ancestors, which is always :root. */
.lk-ribbon { fill: var(--logo-ribbon); }

.lk-hole { fill: var(--logo-hole); }

.lk-halo {
  fill: var(--logo-hole);
  stroke: var(--logo-hole);
}

.lk-accent { fill: var(--logo-accent); }

.lk-word { fill: var(--logo-word); }

/* horizontal lockup: simplified solid cursive R, sized for small heights */
.logo--h {
  height: 24px;
  width: auto;
}

/* stacked lockup: perforated R, hero only */
.hero__logo {
  width: min(17.5rem, 66vw);
  height: auto;
  margin: 0 0 1.75rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.lang:hover { color: var(--on-ink); }

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

.hero {
  padding-top: 3.25rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 3.5rem;
}

.hero__copy > * {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.18s; }

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

/* ---------- phone frames (9:16) ---------- */

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.phone {
  position: relative;
  flex: 0 0 auto;
  width: clamp(7rem, 27vw, 12rem);
  aspect-ratio: 9 / 16;
  padding: 0.85rem;
  border-radius: 1.4rem;
  background: var(--ink-raised);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2.5rem 4rem rgba(255, 255, 255, 0.045),
    0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.85);
}

.band--paper .phone {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2.5rem 4rem rgba(255, 255, 255, 0.04),
    0 1.25rem 2.5rem -1.5rem rgba(11, 11, 15, 0.45);
}

/* staggered, overlapping trio in the hero */
.phones--hero .phone:nth-child(1) { transform: translateY(1.15rem) rotate(-3deg); }
.phones--hero .phone:nth-child(2) {
  z-index: 2;
  margin: 0 -1.15rem;
  transform: translateY(-0.5rem) scale(1.06);
}
.phones--hero .phone:nth-child(3) { transform: translateY(1.6rem) rotate(3deg); }

/* placeholder caption block — swapped for real thumbnails/embeds later */
.cap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cap__tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.15rem;
}

.cap__line {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.cap__line:nth-child(2) { width: 92%; }
.cap__line:nth-child(3) { width: 68%; }
.cap__line:nth-child(4) { width: 44%; background: rgba(255, 255, 255, 0.1); }

/* ---------- problem ---------- */

.claims {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  max-width: 40rem;
}

.claims li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hair-light);
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.claims li:first-child { padding-top: 0; }
.claims li:last-child { border-bottom: 0; }

/* ---------- how it works ---------- */

.tiles {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.tile {
  padding: 1.5rem 1.35rem 1.75rem;
  border: 1px solid var(--hair-light);
  border-top: 2px solid var(--coral);
  border-radius: 0.25rem;
  background: transparent;
}

.tile h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tile p {
  color: var(--on-paper-muted);
  font-size: 1rem;
}

/* ---------- difference ---------- */

.points {
  display: grid;
  gap: 2rem;
  margin-top: 2.75rem;
}

.points h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.points p {
  color: var(--on-ink-muted);
  font-size: 1rem;
  max-width: 24rem;
}

/* ---------- samples ---------- */

.phones--samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin: 2.5rem 0 1.75rem;
}

.phones--samples .phone {
  width: 100%;
  transform: none;
  margin: 0;
}

.phone__slot {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.footer-cta {
  padding-bottom: 3.5rem;
}

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding: 0 0 3rem;
  font-size: 0.85rem;
}

.site-footer__inner {
  border-top: 1px solid var(--hair-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer a {
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer a:hover { color: var(--on-ink); }

.site-footer__links {
  display: flex;
  gap: 1.25rem;
}

/* ---------- larger screens ---------- */

@media (min-width: 40rem) {
  :root { --pad-x: 2rem; --band-y: 6rem; }

  .actions {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .logo--h { height: 28px; }
  .link-coral { font-size: 0.9rem; }

  .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .phones--samples { gap: 1.5rem; }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 60rem) {
  :root { --band-y: 7.5rem; }

  .hero {
    padding-top: 5rem;
    padding-bottom: 7rem;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4rem;
  }

  .phone { width: clamp(9rem, 13vw, 12.5rem); }
  .hero__logo { width: 21rem; }
  .logo--h { height: 30px; }
  .phones--samples .phone { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover { transform: none; }
}
