/* Ongaku — night drive.
   Palette sampled from the app's own store creative (press/store_carousel).
   Type is Poppins, the typeface the app itself ships. */

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins_medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b0c1d;
  --void: #070814;
  --grid: #ff54a4;
  --sun: #ffa751;
  --crimson: #d72638;
  --crimson-lit: #ff3b4e;
  --paper: #f5f2fa;
  --haze: #b9b3d4;
  --edge: rgba(185, 179, 212, 0.16);
  --panel: rgba(11, 12, 29, 0.82);
  --maxw: 1080px;
  --sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: every screenshot carries width/height
   attributes, and without this the height attribute applies as a
   presentational hint and stretches the image. */
img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------
   The night: three fixed layers the content floats over.
   --------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -20%, #221641 0%, transparent 55%),
    radial-gradient(90% 60% at 85% 8%, rgba(255, 84, 164, 0.16) 0%, transparent 60%),
    radial-gradient(70% 50% at 8% 30%, rgba(255, 167, 81, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--void) 60%, #0d0718 100%);
}

/* The horizon grid, drawn rather than imaged. */
.sky::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 42vh;
  background:
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 84, 164, 0.5) 78px 79px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255, 84, 164, 0.35) 58px 59px);
  transform: perspective(30vh) rotateX(72deg);
  transform-origin: bottom center;
  opacity: 0.32;
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
}

/* Phones drifting past, behind everything. */
.drift {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.drift figure {
  position: absolute;
  margin: 0;
  width: 190px;
  opacity: 0.17;
  /* Thrown out of focus, so the phones read as depth behind the page
     rather than as a second layer of text competing with the copy. */
  filter: blur(2.5px) saturate(0.8);
  will-change: transform;
}

.drift img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.drift .d1 { left: -3%;  top: 12%; width: 220px; }
.drift .d2 { right: -4%; top: 30%; width: 250px; }
.drift .d3 { left: 6%;   top: 68%; width: 180px; }
.drift .d4 { right: 8%;  top: 88%; width: 200px; }
.drift .d5 { left: 42%;  top: 120%; width: 165px; }
.drift .d6 { left: -2%;  top: 158%; width: 210px; }
.drift .d7 { right: -3%; top: 196%; width: 230px; }

@media (max-width: 720px) {
  .drift .d2, .drift .d4 { display: none; }
  .drift figure { opacity: 0.13; filter: blur(2px) saturate(0.8); }
  /* Keep the drift clear of the headline band on a narrow screen. */
  .drift .d1 { top: 46%; left: -14%; width: 190px; }
  .drift .d3 { top: 78%; left: 52%; width: 160px; }
  .drift .d5 { top: 132%; left: 8%; }
  .drift .d6 { top: 176%; left: -10%; width: 175px; }
  .drift .d7 { display: none; }
}

/* ---------------------------------------------------------------
   Shell
   --------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.site-head {
  padding: 22px 0;
  position: relative;
  z-index: 2;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand img { width: 30px; height: 30px; border-radius: 9px; display: block; }

.site-head nav { display: flex; gap: 22px; font-size: 0.92rem; }

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

a { color: var(--sun); }
a:hover { color: #ffc489; }

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

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
  padding: 68px 0 76px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero img.app-icon {
  width: 78px;
  height: 78px;
  border-radius: 19px;
  box-shadow: 0 20px 50px -16px rgba(215, 38, 56, 0.75);
  margin-bottom: 26px;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero .tagline {
  color: var(--haze);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  max-width: 44ch;
  margin: 0 auto 34px;
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--crimson);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(215, 38, 56, 0.9);
}

.cta:hover { background: var(--crimson-lit); color: #fff; }
.cta svg { width: 18px; height: 18px; flex: none; }

.standfirst {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--haze);
}

/* ---------------------------------------------------------------
   Alternating scenes — text one side, phone the other
   --------------------------------------------------------------- */

.scene {
  display: grid;
  gap: 34px;
  align-items: center;
  padding: 30px 0 66px;
  position: relative;
  z-index: 1;
}

@media (min-width: 860px) {
  .scene { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .scene.flip .scene-text { order: 2; }
  .scene.flip .scene-shot { order: 1; }
}

.scene-shot {
  display: flex;
  justify-content: center;
}

.scene-shot img {
  width: 232px;
  border-radius: 24px;
  border: 1px solid var(--edge);
  box-shadow: 0 30px 70px -30px #000;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 12px;
  text-wrap: balance;
}

.lead {
  color: var(--haze);
  margin: 0 0 22px;
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------
   Glass panels — the night shows through
   --------------------------------------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 22px;
  padding: 34px 32px;
  position: relative;
  z-index: 1;
}

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .panel {
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
  }
}

.panel-wide { margin: 0 auto 66px; max-width: var(--maxw); }

@media (max-width: 640px) {
  .panel { padding: 26px 22px; border-radius: 18px; }
}

/* ---------------------------------------------------------------
   Format chips
   --------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.chips li {
  font-size: 0.84rem;
  font-weight: 500;
  background: rgba(185, 179, 212, 0.09);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 4px 11px;
  color: var(--paper);
}

/* ---------------------------------------------------------------
   The free list — the generous middle of the page
   --------------------------------------------------------------- */

.free-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 44px;
  margin-top: 30px;
}

@media (min-width: 700px) { .free-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .free-groups { grid-template-columns: repeat(3, 1fr); } }

.free-groups h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.free-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--haze);
  font-size: 0.93rem;
  line-height: 1.55;
}

.free-groups li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 5px;
}

.free-groups li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.85;
}

.free-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.count {
  font-size: 0.86rem;
  color: var(--haze);
}

/* ---------------------------------------------------------------
   Pro block — small, plain, honest
   --------------------------------------------------------------- */

.pro-panel {
  border-color: rgba(255, 167, 81, 0.28);
  background: rgba(28, 16, 22, 0.82);
}

.pro-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
  color: var(--haze);
  font-size: 0.93rem;
}

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

.pro-list li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
  break-inside: avoid;
}

.pro-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background: var(--grid);
  transform: rotate(45deg);
}

.pro {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--sun);
  border: 1px solid rgba(255, 167, 81, 0.45);
  border-radius: 999px;
  padding: 1px 9px;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   Recap strip
   --------------------------------------------------------------- */

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

@media (max-width: 620px) { .card-row { grid-template-columns: 1fr; max-width: 260px; margin-inline: auto; } }

.card-row figure { margin: 0; text-align: center; }

.card-row img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--edge);
  display: block;
}

.card-row figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--haze);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--edge);
  padding: 30px 0 60px;
  color: var(--haze);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
  background: rgba(7, 8, 20, 0.86);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 14px;
}

.site-foot a { color: var(--haze); text-decoration: none; }
.site-foot a:hover { color: var(--paper); }

/* ---------------------------------------------------------------
   Long-form pages: formats, press, privacy, terms
   --------------------------------------------------------------- */

.doc {
  padding: 8px 0 60px;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.doc h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.5rem);
  margin-bottom: 8px;
}

.doc .updated { color: var(--haze); font-size: 0.9rem; margin: 0 0 34px; }

.doc h2 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 36px 0 10px;
}

.doc p, .doc li { color: #d7d2e6; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 4px; }

.back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--haze);
}
.back:hover { color: var(--paper); }

.note {
  border-left: 2px solid var(--sun);
  padding: 4px 0 4px 18px;
  margin: 28px 0 0;
  color: var(--haze);
  font-size: 0.94rem;
}

/* format tables */

.fmt-table-wrap { overflow-x: auto; }

table.fmt {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 8px;
}

table.fmt th, table.fmt td {
  text-align: left;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}

table.fmt th {
  color: var(--haze);
  font-weight: 500;
  font-size: 0.86rem;
}

table.fmt td:first-child {
  color: var(--sun);
  white-space: nowrap;
  padding-right: 24px;
  font-weight: 500;
}

table.fmt td { color: #d7d2e6; }

/* press */

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 620px) { .press-grid { grid-template-columns: repeat(4, 1fr); } }

.press-grid figure { margin: 0; }

.press-grid img {
  width: 100%;
  display: block;
  border-radius: 13px;
  border: 1px solid var(--edge);
}

.press-grid figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--haze); }

blockquote.boiler {
  margin: 0 0 26px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 18px;
  color: #d7d2e6;
}

blockquote.boiler p { margin: 0; }

.factlist {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  color: #d7d2e6;
  font-size: 0.94rem;
}

.factlist li { padding: 9px 0; border-bottom: 1px solid var(--edge); }

.factlist strong {
  color: var(--haze);
  font-weight: 500;
  display: inline-block;
  min-width: 9.5rem;
}

/* ---------------------------------------------------------------
   404
   --------------------------------------------------------------- */

.notfound { text-align: center; padding: 110px 0; position: relative; z-index: 1; }

.notfound .code {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--grid);
  margin: 0 0 10px;
}

.notfound p { color: var(--haze); margin: 0 0 28px; }

/* ---------------------------------------------------------------
   Reduced motion: the drift holds still.
   --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .drift figure { will-change: auto; }
}
