/* Chromareel website.
   Direction: a printed film programme, not a SaaS template. Big serif display type, monospace for the
   technical lines (like the app's own file-details line), hairline rules, asymmetric layouts, no card grids.
   Dark only (BRAND.md). No web fonts and no scripts: Apple devices get New York and SF from the system. */

:root {
  color-scheme: dark;
  --ink: #0b0419;
  --ink-2: #120830;
  --indigo: #1f2046;
  --paper: #f3f0ff;
  --muted: rgba(226, 221, 250, 0.68);
  --faint: rgba(226, 221, 250, 0.42);
  --rule: rgba(226, 221, 250, 0.16);
  --accent: #c2b2ff;
  --serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(18px, 4.5vw, 64px);
  --max: 1240px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
  background:
    radial-gradient(140% 90% at 85% 0%, var(--indigo) 0%, transparent 55%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 60%);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain: a faint fixed noise layer instead of glowing blobs. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(194, 178, 255, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--accent);
  color: #fff;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* Header: one thin line, text links only. */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

.brand img {
  width: 30px;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 15px;
}

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

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

.nav-optional {
  display: none;
}

@media (min-width: 760px) {
  .nav-optional {
    display: inline;
  }
}

/* Hero: headline left; on the right a large phone with the chrome C beside it, tucked just behind its edge. */

.hero {
  padding: clamp(28px, 6vw, 72px) 0 clamp(64px, 9vw, 120px);
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.hero-copy .mono {
  margin: 0 0 26px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lede {
  max-width: 33rem;
  margin: 34px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 30px 0 0;
  font-size: 16px;
  font-weight: 500;
}

.links a {
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.hero-visual .mark {
  position: absolute;
  right: 0;
  top: 50%;
  width: 50%;
  margin-top: -27.2%;
  z-index: 0;
  filter: drop-shadow(0 40px 60px rgba(4, 1, 12, 0.75));
  animation: float 3.2s ease-in-out infinite alternate;
}

/* BRAND.md: scale 1.00 to 1.03, float up about 4 points, 3.2 s, ease in and out, autoreverse. */
@keyframes float {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-4px) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .mark {
    animation: none;
  }
}

.hero-visual .device {
  position: relative;
  z-index: 1;
  width: 57%;
}

/* Join the beta: the one solid button on the page. "is-soon" until the TestFlight link exists. */

.cta-row {
  margin: 36px 0 0;
}

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

a.cta[href]:hover {
  background: var(--paper);
}

.cta span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cta.is-soon {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  cursor: default;
}

.cta.is-soon span {
  color: var(--accent);
  opacity: 1;
}

.cta-row + .links {
  margin-top: 24px;
}

/* A phone: the screenshot in a thin dark bezel. */

.device {
  padding: 2.4%;
  border-radius: 13% / 6%;
  background: #08060f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 70px rgba(2, 0, 8, 0.8);
}

.device img {
  width: 100%;
  border-radius: 11% / 5%;
}

/* Sections: a rule, a running number, a serif heading. */

.section {
  padding: clamp(72px, 10vw, 130px) 0 0;
}

.section-top {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.section-top .mono {
  flex: none;
  width: 3.2em;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 em {
  font-style: italic;
  color: var(--accent);
}

.prose {
  max-width: 36rem;
  color: var(--muted);
}

.prose p {
  margin: 18px 0 0;
}

.prose strong {
  color: var(--paper);
  font-weight: 600;
}

/* Duo: the open phone, library on one panel, the film on the other. */

.duo {
  display: grid;
  gap: 40px;
  margin-top: 48px;
  align-items: end;
}

@media (min-width: 980px) {
  .duo {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

.fold {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 1.6%;
  border-radius: 34px;
  background: #08060f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 90px rgba(2, 0, 8, 0.8);
}

.fold figure {
  position: relative;
  margin: 0;
  aspect-ratio: 0.71;
  overflow: hidden;
}

.fold figure:first-child {
  border-radius: 24px 0 0 24px;
}

.fold figure:last-child {
  border-radius: 0 24px 24px 0;
}

.fold figure:last-child::before {
  /* the hinge */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}

.fold img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.caption {
  margin: 14px 0 0;
}

.postures {
  display: grid;
  gap: 28px;
  margin: 0;
}

.postures dt {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.postures dd {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Features: a numbered running list (a programme's contents), with one phone pinned beside it. */

.features {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: 0.42fr 1fr;
    gap: 72px;
    align-items: start;
  }
}

.features-aside {
  display: none;
}

@media (min-width: 980px) {
  .features-aside {
    display: block;
    position: sticky;
    top: 40px;
  }
}

.reel {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reel;
}

.reel li {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 4px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  counter-increment: reel;
}

.reel li:last-child {
  border-bottom: 1px solid var(--rule);
}

.reel li::before {
  content: counter(reel, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}

.reel h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.reel p {
  margin: 6px 0 0;
  max-width: 38rem;
  color: var(--muted);
}

/* Ledgers: monospace rows with dot leaders, like the app's file-details line. */

.ledger {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.5;
}

.ledger div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}

.ledger dt {
  color: var(--muted);
  white-space: nowrap;
}

.ledger div::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 20px;
  border-bottom: 1px dotted rgba(226, 221, 250, 0.28);
  transform: translateY(-4px);
}

.ledger dd {
  order: 2;
  margin: 0;
  text-align: right;
  color: var(--paper);
}

.split {
  display: grid;
  gap: 44px;
  margin-top: 48px;
  align-items: start;
}

@media (min-width: 980px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.ticket {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: rgba(11, 4, 25, 0.55);
}

.ticket .mono {
  margin: 0 0 10px;
}

.ticket .title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.ticket .note {
  margin: 16px 0 0;
}

/* Privacy: the statement, set large. */

.statement {
  margin: 48px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.4vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.statement em {
  font-style: italic;
  color: var(--accent);
}

/* Q&A: two columns, no accordions. */

.qa {
  margin: 48px 0 0;
}

.qa div {
  display: grid;
  gap: 8px 48px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.qa div:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 860px) {
  .qa div {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.qa dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.qa dd {
  margin: 0;
  color: var(--muted);
}

/* Closing */

.closing {
  padding: clamp(96px, 14vw, 180px) 0 clamp(64px, 9vw, 110px);
}

.closing h2 {
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 0.95;
}

.closing .links {
  margin-top: 34px;
  font-size: 18px;
}

/* Footer */

.site-footer {
  padding: 34px 0 52px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--faint);
}

.site-footer .wrap {
  display: grid;
  gap: 22px;
}

@media (min-width: 860px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    gap: 64px;
  }
}

.footer-word {
  width: 200px;
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 14px;
}

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

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

.site-footer p {
  margin: 4px 0 0;
  max-width: 52rem;
}

/* Document pages (privacy, support) */

.doc {
  max-width: 44rem;
  padding: clamp(40px, 7vw, 80px) 0 clamp(72px, 10vw, 120px);
}

.doc .mono {
  margin: 0;
}

.doc h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.doc h1 em {
  font-style: italic;
  color: var(--accent);
}

.doc .standfirst {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--paper);
}

.doc h2 {
  margin: 56px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.1;
}

.doc h3 {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc p {
  margin: 14px 0 0;
}

.doc ul,
.doc ol {
  margin: 14px 0 0;
  padding-left: 1.25em;
}

.doc li {
  margin: 8px 0 0;
}

.doc li::marker {
  color: var(--faint);
}

.doc strong {
  color: var(--paper);
  font-weight: 600;
}

.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--paper);
}

.doc .ledger {
  margin-top: 22px;
}

/* 404 */

.not-found {
  min-height: 72vh;
  display: grid;
  align-content: center;
  padding: 40px 0;
}

.not-found .mark {
  width: 140px;
  margin-bottom: 30px;
}

.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.not-found p {
  margin: 18px 0 0;
  color: var(--muted);
}

.split-single {
  margin-top: 30px;
}

.contact-list {
  margin: 18px 0 0;
}

.contact-list a {
  text-decoration: none;
}

.contact-list dd a:hover {
  text-decoration: underline;
}

.closing .cta-row {
  margin-top: 40px;
}

.nowrap {
  white-space: nowrap;
}
