/* ==========================================================================
   A2Z Studios — site styles
   Palette derives from Numova's "Classic" in-app theme: warm cream surfaces,
   warm slate text, amber accent. Per-app accents override --accent locally.
   ========================================================================== */

:root {
  --bg:            #faf8f3;
  --bg-alt:        #f3ede2;
  --surface:       #ffffff;
  --line:          #e5dccc;
  --line-soft:     #efe8db;

  /* Every colour used for text clears WCAG AA 4.5:1 against --bg. */
  --text:          #2f2c27;   /* 13.10:1 */
  --text-mid:      #5d564a;   /*  6.83:1 */
  --text-soft:     #787062;   /*  4.61:1 */

  --accent:        #a46026;   /*  4.62:1 */
  --accent-ink:    #8f5220;
  --accent-wash:   #f7ecdd;

  /* Per-app accents sampled from each app's own store icon, then darkened
     until they clear 4.5:1 against --bg. Numova hue 268°, Pinball hue 210°. */
  --numova:        #5f3392;
  --numova-ink:    #45217a;
  --numova-wash:   #ece4f7;
  --pinball:       #2d6fb2;
  --pinball-ink:   #235a91;
  --pinball-wash:  #dde9f6;

  --radius:        14px;
  --radius-lg:     22px;
  --shadow-sm:     0 1px 2px rgba(47, 44, 39, .06), 0 2px 8px rgba(47, 44, 39, .04);
  --shadow-md:     0 2px 4px rgba(47, 44, 39, .05), 0 12px 32px rgba(47, 44, 39, .09);
  --shadow-lg:     0 4px 8px rgba(47, 44, 39, .06), 0 24px 60px rgba(47, 44, 39, .13);

  --gut:           clamp(1.25rem, 4vw, 2.5rem);
  --maxw:          1160px;
  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif:         "Fraunces", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }

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

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.hdr[data-stuck="true"] { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.hdr__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  letter-spacing: -.02em; color: var(--text); text-decoration: none;
  margin-right: auto; flex-shrink: 0;
}
.brand:hover { color: var(--accent-ink); }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--text-mid); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .005em;
  padding: .25rem 0; border-bottom: 1.5px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* The nav's store button carries the official Google Play arrow mark.
   `.nav a` above sets padding:.25rem 0 and a transparent bottom border for the
   text links; at (0,1,1) that outranks .btn/.btn--sm, which would leave the
   pill with no horizontal padding. `.nav a.btn` is (0,2,1) and wins back. */
.nav a.btn {
  gap: .45rem;
  padding: .5rem .95rem;
  border: 1.5px solid var(--line);
}
.nav a.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.nav__play { width: 15px; height: 16px; flex-shrink: 0; }

/* Only three links, so they still fit on a phone — no hamburger needed.
   The Google Play button is the one thing dropped, since every page has its
   own store button in the content. */
@media (max-width: 720px) {
  .hdr__in { gap: 1rem; min-height: 60px; }
  .brand { font-size: 1rem; }
  .brand__mark { width: 26px; height: 26px; }
  .nav { gap: 1.05rem; }
  .nav a { font-size: .8rem; }
  .nav .btn { display: none; }
}
@media (max-width: 400px) {
  .hdr__in { gap: .6rem; padding-inline: 1rem; }
  .brand { font-size: .94rem; gap: .5rem; }
  .nav { gap: .7rem; }
  .nav a { font-size: .75rem; }
}

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

.hero { padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3rem, 7vw, 5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent); display: block;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.3rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.hero__lede {
  font-size: clamp(1.075rem, 1.9vw, 1.3rem);
  color: var(--text-mid); max-width: 56ch; line-height: 1.6;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem;
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--text-soft);
}
.hero__meta strong { color: var(--text); font-weight: 600; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .005em;
  padding: .72rem 1.35rem; border-radius: 100px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: var(--accent-ink); color: #fff; }

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

.btn--sm { font-size: .82rem; padding: .55rem 1.05rem; }

.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ------------------------------------------------------------ app blocks  */

.apps { padding-bottom: clamp(3rem, 8vw, 6rem); }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.sec-head__count { font-size: .82rem; color: var(--text-soft); font-weight: 500; white-space: nowrap; }

/* On narrow phones the nowrap caption cannot sit beside the heading, so stack
   it and let it wrap rather than pushing the page wider than the viewport. */
@media (max-width: 560px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .sec-head__count { white-space: normal; }
}

/* Per-app theming. Put data-accent="numova" (or "pinball") on any .app block or
   on <main> of an app page; everything inside picks up that app's colour.
   To add an app: add one rule here plus its three custom properties above. */
[data-accent="numova"]  { --accent: var(--numova);  --accent-ink: var(--numova-ink);  --accent-wash: var(--numova-wash); }
[data-accent="pinball"] { --accent: var(--pinball); --accent-ink: var(--pinball-ink); --accent-wash: var(--pinball-wash); }

/* One app = one .app block. To add an app, duplicate the block in index.html. */
.app {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.app + .app { border-top: 1px solid var(--line-soft); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; gap: 2.25rem; }
  .app__art { order: -1; }
}

.app__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.app__icon {
  width: 64px; height: 64px; border-radius: 15px;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
  background: var(--surface);
}
.app__title { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin-bottom: .3rem; }
.app__cat {
  font-size: .74rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--accent);
}
.app__hook {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--text-mid);
  max-width: 46ch; margin-bottom: 1.75rem;
}

.feats { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .7rem; }
.feats li {
  position: relative; padding-left: 1.6rem;
  font-size: .935rem; color: var(--text-mid);
}
.feats li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: .55;
}
.feats strong { color: var(--text); font-weight: 600; }

.app__cta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* ------------------------------------------------------------------- art  */

/* Raw phone screenshots — get a device frame. */
.phone {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.phone img { border-radius: 17px; width: 100%; }

/* Store marketing graphics that already contain their own device mockup. */
.flat {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--surface);
}
.flat img { width: 100%; }

.art-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.art-pair > :nth-child(2) { margin-top: clamp(1rem, 4vw, 2.5rem); }

.art-solo { max-width: 320px; margin-inline: auto; }

/* ---------------------------------------------------------------- galleries */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: 0; margin: 0; list-style: none;
}
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ------------------------------------------------------------------ prose  */

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-mid); }
.prose ul { padding-left: 1.15rem; display: grid; gap: .5rem; }

.band { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.band--pad { padding: clamp(3.5rem, 8vw, 6rem) 0; }

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

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

.card {
  display: block; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.card p { font-size: .92rem; color: var(--text-mid); margin: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 11px; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-size: .86rem; font-weight: 600; color: var(--accent-ink); }

/* Placeholder for the next app — signals the roster grows without faking one. */
.card--soon {
  border-style: dashed; border-color: var(--line); background: transparent; box-shadow: none;
  display: flex; flex-direction: column; justify-content: center;
}
.card--soon h3 { color: var(--text-soft); font-family: var(--sans); font-size: 1rem; font-weight: 600; }

/* --------------------------------------------------------------- app page  */

.crumbs { padding-top: 2rem; font-size: .85rem; color: var(--text-soft); }
.crumbs a { color: var(--text-mid); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs span { padding-inline: .5rem; opacity: .5; }

.apphero { padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2.5rem, 6vw, 4rem); }

/* Text column + a single lead screenshot, so the hero is not half-empty. */
.apphero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 30%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .apphero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .apphero__lead { max-width: 260px; }
}

.apphero__top { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.6rem); margin-bottom: 1.75rem; }
.apphero__icon { width: clamp(72px, 12vw, 96px); height: clamp(72px, 12vw, 96px); border-radius: 20px; box-shadow: var(--shadow-md); flex-shrink: 0; }
.apphero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.apphero__lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-mid); max-width: 58ch; }

.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem; margin: 2.5rem 0 0; padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}
.specs div { min-width: 0; }
.specs dt { font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .35rem; }
.specs dd { margin: 0; font-size: .95rem; font-weight: 500; color: var(--text); overflow-wrap: break-word; }

/* Modes grid on the Numova page */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.modes li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.modes h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.modes p { font-size: .89rem; color: var(--text-mid); margin: 0; }

/* Official "Get it on Google Play" badge, used unmodified per Google's brand
   guidelines. The PNG ships with transparent clear space baked in (the button
   sits 41/250 in from each edge), so it is never scaled or recoloured here —
   only sized. The negative left margin pulls the button's visible edge into
   line with the text above it without cropping that clear space. */
.play {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  margin-left: -12px;
  transition: opacity .2s ease, transform .15s ease;
}
.play img { height: 72px; width: auto; }
.play:hover { opacity: .85; }
.play:active { transform: translateY(1px); }

@media (max-width: 480px) {
  .play img { height: 64px; }
  .play { margin-left: -10px; }
}

/* Centred call-to-action blocks: no alignment nudge needed. */
.center .play { margin-left: 0; }

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

.ftr {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}
.ftr__grid {
  display: grid; grid-template-columns: 1.6fr repeat(2, minmax(140px, 1fr));
  gap: clamp(2rem, 5vw, 3rem); margin-bottom: 3rem;
}
@media (max-width: 720px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

.ftr__brand p { font-size: .9rem; color: var(--text-soft); max-width: 34ch; margin-top: .85rem; }
.ftr h2 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ftr a { color: var(--text-mid); text-decoration: none; font-size: .9rem; }
.ftr a:hover { color: var(--accent-ink); text-decoration: underline; }

.ftr__base {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--text-soft);
}

/* ------------------------------------------------------------------- misc  */

.center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3rem); }

.notice {
  background: var(--accent-wash); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.35rem;
  font-size: .9rem; color: var(--text-mid);
}

.err { padding: clamp(5rem, 14vw, 9rem) 0; }
.err h1 { font-size: clamp(3.5rem, 12vw, 7rem); margin-bottom: 1rem; }

/* ------------------------------------------------------------ legal pages  */

.legal { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem); }

.legal__head {
  display: flex; align-items: center; gap: 1.1rem;
  padding-bottom: 1.75rem; margin-bottom: clamp(2rem, 5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.legal__icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.legal__head h1 { font-size: clamp(1.85rem, 4.5vw, 2.7rem); margin: .15rem 0 .3rem; }
.legal__date { font-size: .85rem; color: var(--text-soft); margin: 0; }

/* Legal prose runs slightly narrower and looser than marketing copy. */
.legal__body { max-width: 72ch; }
.legal__body h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 2.5rem 0 .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.legal__body h2:first-of-type { margin-top: 2rem; }
.legal__body p, .legal__body li { line-height: 1.72; }
.legal__body ul { margin-bottom: 1.25rem; }

/* The policies quote bare URLs, which have no break opportunities and would
   push narrow phones sideways. */
.legal__body a { overflow-wrap: anywhere; }

.legal__lede {
  font-size: 1.06rem; color: var(--text) !important;
  padding-left: 1.1rem; border-left: 2.5px solid var(--accent);
}
