/* Anta, as on granulab.xyz (SIL Open Font License, from Google Fonts): one weight, every text. */
@font-face {
  font-family: Anta; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/anta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Anta; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/anta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  /* The app's colors (AIFXTheme): its purple accent, the purple → cyan gradient, near-black surfaces. */
  --bg: #090a0c;
  --surface: #0e1012;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f5fa;
  --muted: rgba(246, 245, 250, 0.66);
  --violet: #9e70ff;
  --cyan: #33e6f2;
  --on-accent: rgba(0, 0, 0, 0.88);
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --mono: Anta, Arial, Helvetica, sans-serif;
  --sans: Anta, Arial, Helvetica, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(9, 10, 12, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand span { font: 900 18px/1 var(--mono); letter-spacing: 3px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--violet); color: var(--on-accent); }
.btn.ghost { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
  max-width: 1180px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--gutter) 56px;
}
.eyebrow { font: 700 13px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
h1 { font: 900 clamp(44px, 8vw, 92px)/0.98 var(--mono); letter-spacing: -1px; margin: 0 0 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores.center { justify-content: center; }
.note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* Phone with crossfading FX */
.phone {
  justify-self: center; width: min(320px, 78vw); aspect-ratio: 9 / 19;
  border-radius: 46px; padding: 10px; background: #1c1c21;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 120px -30px rgba(158, 112, 255, 0.5), 0 30px 80px -20px rgba(51, 230, 242, 0.18);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; animation: fade 18s infinite;
}
/* Six app screens, three seconds each; started a moment in, so the first is already showing. */
.screen img:nth-child(1) { animation-delay: -1s; }
.screen img:nth-child(2) { animation-delay: 2s; }
.screen img:nth-child(3) { animation-delay: 5s; }
.screen img:nth-child(4) { animation-delay: 8s; }
.screen img:nth-child(5) { animation-delay: 11s; }
.screen img:nth-child(6) { animation-delay: 14s; }
@keyframes fade { 0%, 100% { opacity: 0; } 3%, 17% { opacity: 1; } 20% { opacity: 0; } }

/* Wall of FX */
.wall { padding: 8px 0 24px; display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.row { overflow: hidden; }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 60s linear infinite; }
.row.reverse .track { animation-direction: reverse; animation-duration: 70s; }
.track img { width: clamp(130px, 16vw, 190px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }

/* Numbers */
.numbers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 900px; margin: 40px auto 0; padding: 0 var(--gutter); text-align: center;
}
.numbers div { padding: 22px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.numbers strong { display: block; font: 900 clamp(28px, 5vw, 42px)/1 var(--mono); }
.numbers span { color: var(--muted); font-size: 14px; }

/* Sections */
section h2 { font: 900 clamp(32px, 5vw, 52px)/1.05 var(--mono); letter-spacing: -0.5px; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 36em; margin: 0 0 32px; }
.small { font-size: 14px; color: var(--muted); }
.features, .remix, .cta { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 10vw, 112px) var(--gutter) 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 14px 14px 22px; }
.card h3 { font: 900 22px/1.1 var(--mono); margin: 18px 8px 8px; }
.card p { color: var(--muted); margin: 0 8px; font-size: 16px; }
.art { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.art img { width: 100%; height: 100%; object-fit: cover; }

.extras { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.extras li { position: relative; padding-left: 22px; color: var(--muted); }
.extras b { color: var(--text); margin-right: 6px; }
.dot { position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }

/* Remix */
.remix { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.remix-stack { position: relative; height: 460px; }
.remix-stack img {
  position: absolute; width: 52%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.remix-stack img:nth-child(1) { left: 0; top: 30px; rotate: -8deg; }
.remix-stack img:nth-child(2) { left: 24%; top: 0; rotate: 2deg; z-index: 1; }
.remix-stack img:nth-child(3) { right: 0; top: 40px; rotate: 9deg; }

/* App Store screenshots: a row that swipes (and snaps) on phones, scrolls on desktops. */
.tour { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 10vw, 112px) 0 0; }
.tour h2, .tour .section-lead { padding: 0 var(--gutter); }
.shots {
  list-style: none; margin: 0; padding: 4px var(--gutter) 18px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.shots li { flex: none; width: clamp(200px, 23vw, 250px); scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); }

/* Every camera app */
.apps { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 10vw, 112px) var(--gutter) 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip {
  font: 700 14px/1 var(--sans); color: var(--muted); cursor: pointer;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
}
.chip span { opacity: 0.6; margin-left: 4px; font-weight: 600; }
.chip:hover { color: var(--text); }
.chip.on { color: var(--on-accent); background: var(--violet); border-color: var(--violet); }
.app-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px;
}
.app-grid li[hidden] { display: none; }
/* All, before Show all: the first rows only (desktop 36, phones 24). */
.app-grid.collapsed li:nth-child(n + 37) { display: none; }
.show-all { display: flex; margin: 26px auto 0; }
.show-all[hidden] { display: none; }
.app-grid img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
}
.app-grid b { display: block; font: 800 13px/1.2 var(--mono); letter-spacing: 0.5px; margin: 10px 2px 2px; }
.app-grid span { display: block; font-size: 13px; color: var(--muted); margin: 0 2px; }

/* Help */
.help { max-width: 900px; margin: 0 auto; padding: clamp(64px, 10vw, 112px) var(--gutter) 0; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; font-size: 17px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--violet); transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq .q { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.faq .tag {
  flex: none; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--violet);
  border: 1px solid rgba(158, 112, 255, 0.4); border-radius: 999px; padding: 4px 9px;
}
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* CTA */
.cta { text-align: center; padding-bottom: 96px; }
.cta h2 { margin-bottom: 28px; }
.cta .pro { max-width: 36em; margin: 22px auto 0; }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer p { margin: 0 0 0 auto; }
.small-brand span { font-size: 14px; }

/* Phones */
@media (max-width: 860px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .remix { grid-template-columns: 1fr; text-align: center; }
  .remix .section-lead { margin-left: auto; margin-right: auto; }
  .remix-stack { height: 330px; max-width: 380px; width: 100%; margin: 0 auto; }
  footer p { margin-left: 0; }
}
@media (max-width: 600px) {
  /* Category chips: one row that swipes, edge to edge. */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter) 4px;
           scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .app-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
  .app-grid.collapsed li:nth-child(n + 25) { display: none; }
  .app-grid img { border-radius: 14px; }
  .app-grid b { font-size: 11px; margin-top: 7px; }
  .app-grid span { font-size: 11px; }
  .art { aspect-ratio: 16 / 9; }
  .numbers { gap: 8px; }
  .numbers div { padding: 16px 6px; border-radius: 16px; }
  .numbers span { font-size: 12px; }
  .faq summary { padding: 16px; font-size: 16px; }
  .faq details p { padding: 0 16px 16px; }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
  .top .btn, .show-all { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .screen img { animation: none; }
  .screen img:first-child { opacity: 1; }
  .btn:hover { transform: none; }
}
