:root {
  --ink: #101418;
  --ink-soft: #2c3338;
  --muted: #626c72;
  --paper: #fbfaf7;
  --paper-warm: #f4efe6;
  --surface: rgba(255, 255, 255, 0.82);
  --line: rgba(16, 20, 24, 0.11);
  --accent: #a55b22;
  --accent-dark: #754019;
  --shadow-sm: 0 12px 30px rgba(18, 22, 25, 0.08);
  --shadow-lg: 0 34px 90px rgba(18, 22, 25, 0.16);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --max: 1200px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.purrscope-page {
  --accent: #8155c7;
  --accent-dark: #5d369c;
  --product-soft: #eee5fb;
  --product-deep: #140720;
}

body.home-storia-page {
  --accent: #e46735;
  --accent-dark: #a8431f;
  --product-soft: #f9e8dc;
  --product-deep: #0e3144;
}

body.gun-theme {
  --accent: #b5742d;
  --accent-dark: #7c4a17;
  --product-soft: #f2e4cf;
  --product-deep: #17120d;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: saturate(1.4) blur(22px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 840;
  line-height: 1.05;
  text-decoration: none;
}

.brand > img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  box-shadow: 0 9px 20px rgba(16, 20, 24, 0.15);
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 790;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-icons {
  position: relative;
  width: 70px;
  height: 44px;
  flex: 0 0 70px;
}

.brand-icons img {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 2px solid var(--paper);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(16, 20, 24, 0.16);
}

.brand-icons img:nth-child(1) { left: 0; top: 0; z-index: 3; }
.brand-icons img:nth-child(2) { left: 17px; top: 3px; z-index: 2; }
.brand-icons img:nth-child(3) { left: 34px; top: 6px; z-index: 1; }

.nav-menu {
  position: relative;
}

.nav-menu > summary {
  display: none;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.nav-links {
  justify-content: flex-end;
  font-size: 0.9rem;
  font-weight: 760;
}

.nav-links a,
.footer-links a {
  color: #465056;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-tight {
  padding-top: 34px;
}

.section-tint {
  width: 100%;
  background: var(--paper-warm);
}

.section-tint > .section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 860;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3.25rem, 7.5vw, 7.2rem);
  font-weight: 820;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 790;
}

h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 700px;
  color: #515b61;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 790;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(16, 20, 24, 0.17);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16, 20, 24, 0.21);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
}

.button.product {
  background: var(--accent);
}

.button .arrow {
  margin-left: 8px;
  font-size: 1.12em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  color: #515b61;
  font-size: 0.86rem;
  font-weight: 690;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent-dark);
  font-weight: 900;
}

.publisher-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(233, 182, 105, 0.22), transparent 28%),
    radial-gradient(circle at 13% 88%, rgba(116, 169, 171, 0.18), transparent 30%),
    linear-gradient(145deg, #fffdf8, #f2ece1 78%);
}

.publisher-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(rgba(16, 20, 24, 0.16) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.publisher-hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 94px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 64px;
  align-items: center;
}

.publisher-copy h1 {
  max-width: 820px;
  font-size: clamp(3.7rem, 7vw, 6.9rem);
}

.publisher-copy .lead {
  margin-top: 26px;
}

.product-constellation {
  position: relative;
  min-height: 560px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(95, 75, 43, 0.17);
  border-radius: 50%;
}

.orbit.one { inset: 22px 30px 38px 8px; transform: rotate(-17deg); }
.orbit.two { inset: 82px 0 8px 72px; transform: rotate(20deg); }

.constellation-card {
  position: absolute;
  overflow: hidden;
  width: 245px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.constellation-card:hover {
  z-index: 5;
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow: 0 40px 100px rgba(18, 22, 25, 0.22);
}

.constellation-card img.cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.constellation-card .mini-copy {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
}

.constellation-card .mini-copy img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.constellation-card strong,
.constellation-card small {
  display: block;
}

.constellation-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.constellation-card.purr { left: 0; top: 78px; transform: rotate(-5deg); }
.constellation-card.home { right: 5px; top: 8px; transform: rotate(4deg); }
.constellation-card.gun { right: 54px; bottom: 4px; transform: rotate(-2deg); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading .lead {
  justify-self: end;
}

.app-story {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  min-height: 600px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.app-story:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
}

.app-story:nth-child(even) .app-story-media {
  order: 2;
}

.app-story-media {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: grid;
  place-items: end center;
  padding: 54px 46px 0;
}

.app-story-media img.screenshot {
  width: min(100%, 360px);
  max-height: 550px;
  object-fit: cover;
  object-position: top;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.app-story.purr .app-story-media { background: radial-gradient(circle at 50% 15%, #7b3cb0, #160521 70%); }
.app-story.home .app-story-media { background: radial-gradient(circle at 50% 15%, #f7b36f, #12394c 74%); }
.app-story.gun .app-story-media { background: radial-gradient(circle at 50% 12%, #775022, #17120e 72%); }

.app-story-copy {
  align-self: center;
  padding: 64px;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

.app-title-row img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.app-title-row h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.app-story-copy h3 {
  max-width: 650px;
  font-size: clamp(2.4rem, 4.4vw, 4.5rem);
}

.app-story-copy > p {
  max-width: 610px;
  margin-top: 24px;
  color: #515b61;
  font-size: 1.12rem;
}

.benefit-list,
.fact-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li,
.fact-list li {
  position: relative;
  padding-left: 27px;
  color: #465056;
}

.benefit-list li::before,
.fact-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.principle-grid,
.feature-grid,
.pricing,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle-card,
.feature-card,
.price-card,
.legal-copy,
.support-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.principle-card,
.feature-card,
.price-card {
  padding: 30px;
}

.principle-card .number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.principle-card p,
.feature-card p,
.price-card p {
  margin-top: 14px;
  color: #59636a;
}

.product-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--product-deep);
}

.product-hero::before,
.product-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.product-hero::before {
  width: 680px;
  height: 680px;
  right: -180px;
  top: -250px;
  background: color-mix(in srgb, var(--accent) 42%, transparent);
  opacity: 0.55;
}

.product-hero::after {
  width: 480px;
  height: 480px;
  left: -260px;
  bottom: -300px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.product-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  min-height: 700px;
  margin: 0 auto;
  padding: 78px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(620px, 1.18fr);
  gap: 36px;
  align-items: center;
}

.product-hero-copy {
  padding-bottom: 72px;
}

.product-hero h1 {
  max-width: 830px;
  font-size: clamp(3.4rem, 6.8vw, 6.5rem);
}

.product-hero .eyebrow {
  color: color-mix(in srgb, var(--accent) 45%, white);
}

.product-hero .lead {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.76);
}

.product-hero .button.product {
  background: color-mix(in srgb, var(--accent) 86%, white);
  color: #fff;
}

.product-hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.product-hero .trust-row {
  color: rgba(255, 255, 255, 0.72);
}

.product-hero .trust-row span::before {
  color: color-mix(in srgb, var(--accent) 45%, white);
}

.hero-devices {
  align-self: end;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.hero-device {
  align-self: end;
  justify-self: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.46);
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.step-grid {
  counter-reset: steps;
}

.feature-card {
  counter-increment: steps;
}

.step-grid .feature-card::before {
  content: "0" counter(steps);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--product-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 880;
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.screenshot-card {
  overflow: hidden;
  margin: 0;
  padding: 12px 12px 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--product-deep);
  box-shadow: var(--shadow-lg);
}

.screenshot-card:nth-child(2) {
  margin-top: 48px;
}

.screenshot-card img {
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 68px;
  align-items: center;
}

.copy-block .lead {
  margin-top: 22px;
}

.copy-block .hero-actions {
  margin-top: 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--accent-dark);
  text-decoration: none;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-hero-image {
  overflow: hidden;
  margin: 38px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--product-soft);
  box-shadow: var(--shadow-sm);
}

.guide-hero-image img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.answer-box {
  margin: 34px 0 0;
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--product-soft);
}

.answer-box h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.answer-box p {
  margin-top: 12px;
  color: #465056;
}

.fact-table {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.fact-table th,
.fact-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.fact-table th {
  width: 30%;
  color: var(--ink);
  font-size: 0.86rem;
}

.fact-table td {
  color: #465056;
}

.release-list {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.release-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.release-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.release-card .article-meta {
  margin-top: 10px;
}

.media-panel {
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--product-soft, var(--paper-warm));
  box-shadow: var(--shadow-lg);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.media-panel.contain {
  display: grid;
  place-items: center;
  padding: 36px 36px 0;
}

.media-panel.contain img {
  min-height: 0;
  max-height: 620px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 28px 70px rgba(16, 20, 24, 0.2);
}

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

.feature-card a {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-dark);
  font-weight: 780;
}

.icon-dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--product-soft, var(--paper-warm));
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 880;
  letter-spacing: 0.06em;
}

.guide-card-title {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  overflow-wrap: anywhere;
}

.copy-block > h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.copy-block > h2:first-of-type {
  margin-top: 32px;
}

.copy-block > .muted {
  margin-top: 28px;
}

.pricing {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.price-card {
  min-height: 280px;
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  background: linear-gradient(160deg, #fff, var(--product-soft));
  transform: translateY(-10px);
}

.badge {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--product-soft, var(--paper-warm));
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin-top: 24px !important;
  color: var(--ink) !important;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 24px 44px 24px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 790;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 19px;
  color: var(--accent-dark);
  font-size: 1.45rem;
  font-weight: 520;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 36px 24px 0;
  color: #59636a;
}

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  padding: 58px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.cta::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -220px;
  top: -220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.cta .eyebrow {
  color: color-mix(in srgb, var(--accent) 42%, white);
}

.cta p {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
}

.cta .button {
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--ink);
}

.legal-copy {
  max-width: 920px;
  padding: 40px;
}

.page-hero {
  padding-top: 92px;
  padding-bottom: 36px;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.legal-copy h2 {
  margin: 36px 0 12px;
  font-size: 1.7rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: #566168;
}

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

.support-list li {
  padding: 22px;
}

.support-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.mobile-download-bar {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0;
  background: #f7f4ee;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.footer-inner .muted {
  margin-top: 5px;
  font-size: 0.9rem;
}

.footer-links {
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .publisher-hero-inner,
  .product-hero-inner {
    grid-template-columns: 1fr;
  }

  .publisher-hero-inner {
    padding-bottom: 50px;
  }

  .product-constellation {
    width: min(100%, 620px);
    justify-self: center;
  }

  .product-hero-inner {
    padding-top: 76px;
  }

  .product-hero-copy {
    padding-bottom: 0;
  }

  .hero-device {
    width: 100%;
  }

  .hero-devices {
    width: min(100%, 720px);
    justify-self: center;
  }

  .app-story,
  .app-story:nth-child(even) {
    grid-template-columns: 1fr 1fr;
  }

  .app-story-copy {
    padding: 44px;
  }

  .app-story-media {
    padding-left: 30px;
    padding-right: 30px;
  }

  .pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    gap: 36px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 74px;
  }

  body.product-page {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .nav {
    min-height: 68px;
  }

  .brand > img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-icons {
    width: 58px;
    height: 38px;
    flex-basis: 58px;
  }

  .brand-icons img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-icons img:nth-child(2) { left: 13px; }
  .brand-icons img:nth-child(3) { left: 26px; }

  .brand small {
    display: none;
  }

  .nav-menu > summary {
    display: block;
    min-width: 44px;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .nav-menu > summary::-webkit-details-marker {
    display: none;
  }

  .nav-menu[open] > summary {
    background: var(--ink);
    color: #fff;
  }

  .nav-menu .nav-links {
    position: absolute;
    top: 54px;
    right: 0;
    width: min(285px, calc(100vw - 28px));
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(16, 20, 24, 0.2);
  }

  .nav-menu:not([open]) .nav-links {
    display: none;
  }

  .nav-menu .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-menu .nav-links a:hover {
    background: var(--paper-warm);
  }

  .nav > .nav-links {
    display: none;
  }

  .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .section,
  .section-tint > .section {
    width: min(100% - 28px, var(--max));
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .publisher-hero-inner,
  .product-hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .publisher-hero-inner {
    min-height: auto;
    padding-top: 76px;
    gap: 40px;
  }

  .publisher-copy h1 {
    font-size: clamp(3.15rem, 15.5vw, 5.25rem);
  }

  .publisher-copy .lead {
    margin-top: 22px;
  }

  .product-constellation {
    min-height: 420px;
    transform: scale(0.9);
    transform-origin: center top;
    margin-bottom: -34px;
  }

  .constellation-card {
    width: 205px;
  }

  .constellation-card img.cover {
    height: 155px;
  }

  .constellation-card.purr { left: -8px; top: 70px; }
  .constellation-card.home { right: -8px; }
  .constellation-card.gun { right: 25px; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }

  .section-heading .lead {
    justify-self: start;
  }

  .app-story,
  .app-story:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .app-story:nth-child(even) .app-story-media {
    order: 0;
  }

  .app-story-media {
    min-height: 440px;
    padding-top: 38px;
  }

  .app-story-media img.screenshot {
    max-height: 405px;
  }

  .app-story-copy {
    padding: 34px 28px 38px;
  }

  .app-story-copy h3 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .principle-grid,
  .feature-grid,
  .guide-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .product-hero-inner {
    min-height: auto;
    padding-top: 66px;
    gap: 46px;
  }

  .product-hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .product-hero-copy {
    padding-bottom: 0;
  }

  .hero-device {
    width: 100%;
    border-width: 5px;
    border-radius: 24px 24px 0 0;
  }

  .hero-devices {
    gap: 8px;
  }

  .screenshot-showcase {
    gap: 10px;
  }

  .screenshot-card {
    padding: 6px 6px 0;
    border-radius: 16px;
  }

  .screenshot-card img {
    border-radius: 11px 11px 0 0;
  }

  .screenshot-card:nth-child(2) {
    margin-top: 24px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .media-panel,
  .media-panel img {
    min-height: 360px;
  }

  .fact-table,
  .fact-table tbody,
  .fact-table tr,
  .fact-table th,
  .fact-table td {
    display: block;
    width: 100%;
  }

  .fact-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .fact-table td {
    padding-top: 4px;
  }

  .cta {
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }

  .cta .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .mobile-download-bar {
    position: fixed;
    z-index: 45;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: rgba(16, 20, 24, 0.94);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 790;
    text-decoration: none;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
  }

  .mobile-download-bar span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .hero-actions .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-constellation {
    left: 50%;
    width: 430px;
    transform: translateX(-50%) scale(0.76);
    margin-bottom: -86px;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .legal-copy {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .publisher-copy,
  .product-hero-copy {
    animation: rise-in 640ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
  }

  .product-constellation,
  .hero-device {
    animation: rise-in 760ms 90ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
  }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
