/* Heatnik website: one stylesheet for every page (landing page, Privacy Policy, Support, 404).
   Colours follow the app's Default palette: night violet → magenta → orange → warm white. */

:root {
  color-scheme: light dark;
  --bg: #fbf9f7;
  --bg-alt: #f3efeb;
  --surface: #ffffff;
  --surface-2: #f7f4f1;
  --text: #1a1622;
  --muted: #5d5768;
  --faint: #8a8494;
  --rule: rgba(26, 22, 34, 0.1);
  --rule-strong: rgba(26, 22, 34, 0.16);
  --link: #b3310b;
  --accent: #c2410c;
  --accent-2: #a21caf;
  --ok: #15803d;
  --warn: #a16207;
  --no: #b91c1c;
  --shadow: 0 1px 2px rgba(26, 22, 34, 0.04), 0 8px 28px rgba(26, 22, 34, 0.07);
  --heat: linear-gradient(90deg, #6d28d9 0%, #c026d3 32%, #ea580c 72%, #f59e0b 100%);
  --heat-text: linear-gradient(90deg, #7c3aed 0%, #c026d3 38%, #ea580c 85%);
  --palette: linear-gradient(90deg, #03030e 0%, #180342 10%, #47017f 20%, #860387 30%, #b91c70 40%, #dd3a4f 50%, #f55d26 60%, #ff8c17 70%, #ffba34 80%, #ffe384 90%, #fdfde9 100%);
  --glow-1: rgba(234, 88, 12, 0.22);
  --glow-2: rgba(192, 38, 211, 0.16);
  --radius: 22px;
  --radius-s: 14px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0913;
    --bg-alt: #120d1c;
    --surface: #17121f;
    --surface-2: #1d1727;
    --text: #f4f1f8;
    --muted: #b0a9bd;
    --faint: #857e93;
    --rule: rgba(244, 241, 248, 0.09);
    --rule-strong: rgba(244, 241, 248, 0.16);
    --link: #ffa069;
    --accent: #ff8a4c;
    --accent-2: #e879f9;
    --ok: #4ade80;
    --warn: #facc15;
    --no: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 32px rgba(0, 0, 0, 0.35);
    --heat-text: linear-gradient(90deg, #e879f9 0%, #fb7185 35%, #fb923c 70%, #fcd34d 100%);
    --glow-1: rgba(249, 115, 22, 0.28);
    --glow-2: rgba(168, 34, 196, 0.32);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rule);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

header.site nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

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

header.site nav a:hover {
  color: var(--text);
}

header.site nav a.nav-cta {
  color: #fff;
  background: #1a1622;
  padding: 7px 15px;
  border-radius: 99px;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  header.site nav a.nav-cta {
    background: #f4f1f8;
    color: #14101b;
  }
}

@media (max-width: 760px) {
  header.site nav a:not(.nav-cta) {
    display: none;
  }
}

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

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

footer.site .brand {
  font-size: 16px;
  margin-right: auto;
}

footer.site .brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

footer.site a {
  color: var(--muted);
}

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

footer.site .copy {
  order: 3;
}

footer.site .legal {
  order: 4;
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

/* ---------- Text pages (Privacy Policy, Support, 404) ---------- */

main.page {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 72px;
}

main.page h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

main.page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 10px;
}

main.page p,
main.page ul {
  margin: 0 0 16px;
}

main.page ul {
  padding-left: 22px;
}

main.page li {
  margin-bottom: 8px;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.summary {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  padding: 20px 22px 6px 20px;
  box-shadow: var(--shadow);
}

nav.links a {
  margin-right: 20px;
}

/* ---------- Landing page: shared bits ---------- */

section {
  position: relative;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
}

.sub {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}

.center {
  text-align: center;
}

.center .sub {
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 48px;
}

.nowrap {
  white-space: nowrap;
}

.grad {
  background: var(--heat-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* App Store badge: Apple's artwork, unmodified (images/app-store-badge-*.svg; black, white in dark mode). Apple's
   guidelines: at least 40 px tall on screen, clear space of a quarter of its height around it, no effects or
   animation. Its link is set in one place: APP_STORE_URL in /site.js. */
.store {
  display: inline-block;
  flex: none;
  line-height: 0;
  border-radius: 10px;
}

.store img {
  display: block;
  width: auto;
  height: 54px;
}

@media (max-width: 620px) {
  .store img {
    height: 50px;
  }
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.btn-link:hover {
  color: var(--accent);
}

.btn-link span {
  transition: transform 0.15s ease;
}

.btn-link:hover span {
  transform: translateX(3px);
}

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

.hero {
  overflow: hidden;
  padding: 72px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% 0 30%;
  background:
    radial-gradient(38% 42% at 62% 46%, var(--glow-1), transparent 70%),
    radial-gradient(34% 40% at 46% 22%, var(--glow-2), transparent 72%);
  filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.hero h1 .grad {
  display: block;
}

.hero .sub {
  font-size: clamp(18px, 1.9vw, 22px);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.hero-note b {
  color: var(--text);
  font-weight: 600;
}

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

.chips li {
  font-size: 13.5px;
  font-weight: 550;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--muted);
}

.chips li a {
  color: inherit;
  text-decoration: none;
}

.chips li:has(a):hover {
  color: var(--text);
  border-color: var(--rule-strong);
}

.hero-device {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
}

.hero-device {
  margin: 0;
}

.hero-device img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(40, 10, 60, 0.28)) drop-shadow(0 8px 16px rgba(40, 10, 60, 0.12));
}

@media (prefers-color-scheme: dark) {
  .hero-device img {
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 60px rgba(234, 88, 12, 0.12));
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 48px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero::before {
    inset: 30% -40% 0 -40%;
  }
  .hero-device {
    width: min(80%, 400px);
  }
}

/* ---------- Spotlights ---------- */

.spot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.spot.flip {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.spot.flip .spot-media {
  order: 2;
}

.spot + .spot {
  margin-top: 120px;
}

.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #07050c;
  box-shadow: 0 24px 60px rgba(30, 10, 50, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.frame img {
  display: block;
  width: 100%;
}

.profile {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(46%, 300px);
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: rgba(20, 14, 28, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  font: 600 12px/1.2 var(--font-round);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.profile header {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  justify-content: space-between;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.profile header span:last-child {
  color: rgba(255, 255, 255, 0.6);
}

.profile svg {
  display: block;
  width: 100%;
  height: auto;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}

.ticks li strong {
  color: var(--text);
  font-weight: 600;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--heat);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm4.3 6.3-5.6 5.6-2.9-2.9-1.4 1.4 4.3 4.3 7-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm4.3 6.3-5.6 5.6-2.9-2.9-1.4 1.4 4.3 4.3 7-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .spot,
  .spot.flip {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .spot.flip .spot-media {
    order: 0;
  }
  .spot + .spot {
    margin-top: 88px;
  }
}

/* ---------- Palette picker (pure CSS: radio buttons) ---------- */

.palettes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: center;
}

.palettes > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pal-stage {
  position: relative;
  aspect-ratio: 3 / 4;
}

.pal-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.pal-list label {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1px 12px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.pal-list label:hover {
  background: var(--surface-2);
}

.pal-list i {
  grid-row: span 2;
  width: 44px;
  height: 28px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.pal-list b {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
}

.pal-list span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.3;
}

.sw-default { background: var(--palette); }
.sw-whitehot { background: linear-gradient(90deg, #000, #fff); }
.sw-blackhot { background: linear-gradient(90deg, #fff, #000); }
.sw-rainbow { background: linear-gradient(90deg, #190a5a, #1e2dd2 12%, #008cf0 27%, #00c3aa 40%, #50d23c 52%, #e1e123 64%, #ffa000 76%, #f54b0f 88%, #dc141e); }
.sw-rainbowhc { background: linear-gradient(90deg, #000, #460078 8%, #1414eb 17%, #0082ff 25%, #00e6e6 33%, #00dc00 42%, #f0f000 52%, #ff8c00 62%, #eb0000 72%, #f000c8 82%, #ff8cff 91%, #fff); }
.sw-arctic { background: linear-gradient(90deg, #050a2d, #0d2270 10%, #1545a7 20%, #256bcb 30%, #4392df 40%, #81bbea 50%, #b5cfd3 60%, #d5c89a 70%, #f8c646 80%, #ffe387 90%, #fffae6); }
.sw-hotspots { background: linear-gradient(90deg, #000, #c8c8c8 80%, #c81414 80%, #ff6400 90%, #fff05a); }
.sw-coldspots { background: linear-gradient(90deg, #1428be, #0f78f5 10%, #6ecdff 20%, #3c3c3c 20%, #f0f0f0); }

#pal-default:checked ~ .pal-stage .p-default,
#pal-whitehot:checked ~ .pal-stage .p-whitehot,
#pal-blackhot:checked ~ .pal-stage .p-blackhot,
#pal-rainbow:checked ~ .pal-stage .p-rainbow,
#pal-rainbowhc:checked ~ .pal-stage .p-rainbowhc,
#pal-arctic:checked ~ .pal-stage .p-arctic,
#pal-hotspots:checked ~ .pal-stage .p-hotspots,
#pal-coldspots:checked ~ .pal-stage .p-coldspots {
  opacity: 1;
}

#pal-default:checked ~ .pal-list [for="pal-default"],
#pal-whitehot:checked ~ .pal-list [for="pal-whitehot"],
#pal-blackhot:checked ~ .pal-list [for="pal-blackhot"],
#pal-rainbow:checked ~ .pal-list [for="pal-rainbow"],
#pal-rainbowhc:checked ~ .pal-list [for="pal-rainbowhc"],
#pal-arctic:checked ~ .pal-list [for="pal-arctic"],
#pal-hotspots:checked ~ .pal-list [for="pal-hotspots"],
#pal-coldspots:checked ~ .pal-list [for="pal-coldspots"] {
  background: var(--surface);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow);
}

#pal-default:focus-visible ~ .pal-list [for="pal-default"],
#pal-whitehot:focus-visible ~ .pal-list [for="pal-whitehot"],
#pal-blackhot:focus-visible ~ .pal-list [for="pal-blackhot"],
#pal-rainbow:focus-visible ~ .pal-list [for="pal-rainbow"],
#pal-rainbowhc:focus-visible ~ .pal-list [for="pal-rainbowhc"],
#pal-arctic:focus-visible ~ .pal-list [for="pal-arctic"],
#pal-hotspots:focus-visible ~ .pal-list [for="pal-hotspots"],
#pal-coldspots:focus-visible ~ .pal-list [for="pal-coldspots"] {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .pal-list span {
    display: none;
  }
  .pal-list i {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .palettes {
    grid-template-columns: 1fr;
  }
  .pal-stage {
    width: min(100%, 380px);
    justify-self: center;
  }
  .pal-list {
    grid-template-columns: 1fr 1fr;
  }
  .pal-list label {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .pal-list i {
    width: 100%;
    height: 14px;
    grid-row: auto;
    margin-bottom: 4px;
  }
  .pal-list span {
    display: none;
  }
}

/* ---------- Feature grid ---------- */

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

.feature {
  padding: 28px 26px 26px;
}

.feature.wide {
  grid-column: span 2;
}

.feature.dark {
  color: #f4f1f8;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(234, 88, 12, 0.35), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(147, 51, 234, 0.35), transparent 60%),
    #150b24;
  border-color: rgba(255, 255, 255, 0.08);
}

.feature.dark p {
  color: rgba(244, 241, 248, 0.74);
}

.feature.dark .fi {
  background: rgba(255, 255, 255, 0.1);
  color: #ffb36b;
}

.fi {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.fi svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.feature .tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  vertical-align: 2px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffd2b0;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
  .feature.wide {
    grid-column: auto;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 3fr 3fr 4fr;
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #07050c;
}

.gallery figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.gallery figcaption b {
  color: var(--text);
  font-weight: 600;
}

.gallery .wide-shot {
  align-self: center;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery .wide-shot {
    grid-column: span 2;
  }
}

/* ---------- Cameras ---------- */

.cams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.cam {
  padding: 26px 26px 22px;
}

.cam h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.dot.maybe { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.dot.no { background: var(--no); box-shadow: 0 0 0 4px color-mix(in srgb, var(--no) 18%, transparent); }

.cam > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cam ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cam li {
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
  line-height: 1.4;
}

.cam li small {
  display: block;
  color: var(--faint);
  font-size: 13px;
  margin-top: 2px;
}

.cam.works {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--rule));
}

.cam.works li {
  font-weight: 600;
}

.cam-note {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 20px 24px;
  border-radius: var(--radius-s);
  border: 1px dashed var(--rule-strong);
  color: var(--muted);
}

.cam-note p {
  margin: 0;
  flex: 1 1 380px;
}

.cam-note strong {
  color: var(--text);
}

@media (max-width: 960px) {
  .cams {
    grid-template-columns: 1fr 1fr;
  }
  .cam.works {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .cams {
    grid-template-columns: 1fr;
  }
  .cam.works {
    grid-column: auto;
  }
}

/* ---------- Requirements ---------- */

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

.req {
  padding: 30px 28px 28px;
}

.req .req-icon {
  width: 52px;
  height: 52px;
  color: var(--text);
  margin-bottom: 18px;
}

.req.off .req-icon {
  color: var(--faint);
}

.req h3 {
  margin: 0 0 2px;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.req .req-os {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--accent);
  font-size: 15px;
}

.req.off .req-os {
  color: var(--no);
}

.req p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .reqs {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}

.price-col {
  padding: 40px 40px 38px;
}

.price-col + .price-col {
  border-left: 1px solid var(--rule);
}

.price-col.pro {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(234, 88, 12, 0.32), transparent 62%),
    radial-gradient(80% 80% at 0% 100%, rgba(147, 51, 234, 0.36), transparent 60%),
    #150b24;
  color: #f4f1f8;
  border-left: 0 !important;
}

.price-col h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.price-col.pro h3 {
  color: #ffb36b;
}

.price-big {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.price-col > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.price-col > p.price-big {
  color: var(--text);
  margin-bottom: 8px;
}

.price-col.pro > p.price-big {
  color: #fff;
}

.price-col.pro > p {
  color: rgba(244, 241, 248, 0.74);
}

.price-col .ticks {
  margin-top: 0;
  gap: 10px;
  font-size: 15.5px;
}

.price-col.pro .ticks li {
  color: rgba(244, 241, 248, 0.78);
}

.price-col.pro .ticks li strong {
  color: #fff;
}

.price-foot {
  max-width: 920px;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 760px) {
  .pricing {
    grid-template-columns: 1fr;
  }
  .price-col {
    padding: 32px 26px;
  }
  .price-col + .price-col {
    border-left: 0;
  }
}

/* ---------- Resellers ---------- */

.resell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 40px;
  align-items: center;
  padding: 48px 52px;
}

.resell .h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.resell p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 0 12px;
}

.resell-box {
  padding: 24px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  border: 1px solid var(--rule);
}

.resell-box p {
  font-size: 15px;
  margin: 0 0 14px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  word-break: break-all;
}

@media (max-width: 860px) {
  .resell {
    grid-template-columns: 1fr;
    padding: 32px 26px;
    gap: 24px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 1px solid var(--rule);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq .answer {
  padding: 0 4px 22px;
  color: var(--muted);
}

.faq .answer p {
  margin: 0 0 12px;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Final call to action ---------- */

.final {
  padding: 120px 0 128px;
  text-align: center;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34% 40% at 50% 48%, var(--glow-1), transparent 72%),
    radial-gradient(32% 36% at 42% 62%, var(--glow-2), transparent 72%);
  pointer-events: none;
}

.final .wrap {
  position: relative;
}

.final-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  margin-bottom: 28px;
  box-shadow: 0 20px 50px rgba(60, 10, 80, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.final .sub {
  margin-left: auto;
  margin-right: auto;
}

.final .h2 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.final .store {
  margin-top: 34px;
}

.final .hero-note {
  margin-top: 16px;
}

/* ---------- Entrance animations ---------- */
/* site.js marks blocks below the first screen with .reveal and adds .is-in as they scroll into view (staggered with
   --reveal-delay). Opacity and transform only, so nothing shifts; nothing is hidden without the script or with
   reduced motion. The App Store badges are never animated (Apple's badge guidelines). */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  /* The hero's device settles into place once, on load (pure CSS: ends visible even without the script). */
  .hero-device {
    animation: device-in 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
  }

  @keyframes device-in {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Small screens: denser cards ---------- */

@media (max-width: 620px) {
  .section {
    padding: 80px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    padding: 22px 20px;
  }
  .fi {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin: 0;
    grid-row: span 2;
  }
  .feature h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .feature p {
    font-size: 15px;
  }
  .features {
    gap: 12px;
  }
  .profile {
    width: 58%;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px 6px;
    font-size: 10.5px;
    border-radius: 10px;
  }
  .price-big {
    font-size: 34px;
  }
  .req {
    padding: 24px 22px;
  }
  .req .req-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
  .final {
    padding: 88px 0 96px;
  }
  .final-icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }
}
