:root {
  --primary: #ef587d;
  --primary-hover: #e04868;
  --primary-soft: #fff0f3;
  --primary-muted: #fce7ec;
  --primary-glow: rgba(239, 88, 125, 0.28);
  --gold: #c9a227;
  --gold-soft: #fdf6e8;
  --ink: #1c1418;
  --ink-soft: #3d3238;
  --text: #1c1418;
  --text-secondary: #6b6570;
  --text-muted: #9b939a;
  --surface: #fffbfc;
  --surface-alt: #fff5f7;
  --white: #ffffff;
  --border: #f0e6e9;
  --night: #0f0a0c;
  --shadow: 0 28px 72px rgba(239, 88, 125, 0.16);
  --shadow-soft: 0 12px 40px rgba(28, 20, 24, 0.07);
  --shadow-card: 0 4px 24px rgba(28, 20, 24, 0.05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1160px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 251, 252, 0.82);
  border-bottom: 1px solid rgba(240, 230, 233, 0.9);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: 36px;
}

.brand-app-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(239, 88, 125, 0.2);
}

.brand-logo--footer {
  height: 32px;
  filter: brightness(0.95);
}

/* Distant brand variant - larger icon and styled name */
.brand--distant {
  gap: 8px;
}

/* Slightly larger app icon and styled name */
.brand--distant .brand-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

/* Styled brand name */
.brand--distant .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--primary), #f4729a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #f8a6b8);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 10px 24px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #f06f8f);
  color: white;
  box-shadow: 0 14px 32px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #e85a7a);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: var(--primary-muted);
  background: var(--primary-soft);
}

.btn-ghost {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.88;
  cursor: default;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(248, 166, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 10%, rgba(255, 240, 243, 0.9), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(239, 88, 125, 0.08), transparent 60%),
    linear-gradient(180deg, #fff8fa 0%, var(--surface) 70%, var(--white) 100%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "copy visual"
    "points visual"
    "actions visual";
  gap: 48px 48px;
  align-items: start;
}

.hero-copy {
  max-width: 34rem;
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
  align-self: start;
  justify-self: center;
}

.hero-points {
  grid-area: points;
  max-width: 560px;
  justify-self: start;
}

.hero-actions {
  grid-area: actions;
  width: auto;
  justify-self: start;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.7vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #f4729a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(228, 229, 233, 0.9);
}

.hero-points li::before {
  content: '✦';
  color: var(--primary);
  margin-right: 8px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.hero-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(520px, 100%);
  min-height: 420px;
}

.phone-frame--hero {
  width: min(240px, 42vw);
  flex-shrink: 0;
}

.phone-frame--back {
  transform: rotate(-6deg) translateX(28px);
  z-index: 1;
}

.phone-frame--front {
  transform: rotate(4deg) translateX(-28px);
  z-index: 2;
}

.phone-frame--dark {
  background: linear-gradient(160deg, #2a2226 0%, #1a1418 100%);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 24px 56px rgba(15, 10, 12, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(280px, 72vw);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #ffffff 0%, #f3eef0 100%);
  border: 1px solid rgba(28, 20, 24, 0.08);
  box-shadow:
    0 24px 56px rgba(28, 20, 24, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 0 48px rgba(239, 88, 125, 0.1);
}

.phone-frame img {
  border-radius: 28px;
  width: 100%;
}

.phone-frame--sm {
  width: min(220px, 100%);
  padding: 8px;
  border-radius: 30px;
}

.phone-frame--sm img {
  border-radius: 24px;
}

.phone-frame--md {
  width: min(260px, 80%);
  margin: 0 auto;
}
/* Sections */

#categories {
  scroll-margin-top: 110px;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--white) 0%, var(--surface-alt) 100%);
}

.section-label {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin: 0 0 16px;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Categories */

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-muted);
  box-shadow: var(--shadow-soft);
}

.category-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.category-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

/* Steps */

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-muted));
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 18px;
}

/* Mission */

.mission-section {
  overflow: hidden;
}

.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.mission-copy .section-label {
  margin-bottom: 14px;
}

.mission-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 20px;
  line-height: 1.15;
}

.mission-copy p {
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.mission-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.quote-card {
  width: min(360px, 100%);
  margin: 0;
  background: linear-gradient(135deg, var(--primary), #d94567);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 20px 48px var(--primary-glow);
}

.quote-card p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  font-style: italic;
}

.quote-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  opacity: 0.9;
  font-size: 0.875rem;
  font-weight: 500;
}

/* CTA */

.cta {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 35%),
    radial-gradient(circle at 15% 85%, rgba(201, 162, 39, 0.12), transparent 40%),
    linear-gradient(135deg, #ef587d 0%, #e8486a 45%, #d93d62 100%);
  color: white;
  box-shadow: var(--shadow);
}

.cta-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.cta p {
  margin: 0 auto 28px;
  max-width: 520px;
  opacity: 0.94;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-tagline {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-family: var(--font-display);
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Legal & forms (shared pages) */

.legal-page {
  padding: 56px 0 88px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.legal-meta {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-page h2 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 88, 125, 0.12);
  outline: none;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form actions layout for report form and similar */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Spinner for inline controls */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinner-rotate 1s linear infinite;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spinner-rotate {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Make report page single-screen without page scroll */
.report-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.report-page main {
  flex: 1 1 auto;
  display: flex;
  /* start near the top so the card isn't vertically centered and clipped */
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
}
.report-page .section.container {
  padding: 12px 0 28px;
  width: 100%;
}
.report-page .section-head {
  margin-bottom: 18px;
}
.report-page .section-head h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.report-page .form-card {
  max-width: 720px;
  width: 100%;
  /* allow internal scrolling but ensure enough room for header/footer */
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 20px;
}

/* Mobile-specific adjustments for report page to show full form and submit button */
@media (max-width: 520px) {
  .report-page .site-header .nav {
    min-height: 56px;
    gap: 12px;
  }

  .report-page .section.container {
    padding: 8px 0 12px;
  }

  .report-page .section-head {
    margin-bottom: 8px;
  }

  .report-page .section-head h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }

  /* Give the form card the maximum possible height and allow internal scroll */
  .report-page .form-card {
    max-height: calc(100vh - 68px); /* header + small gap */
    padding: 14px;
  }

  /* Make the action row sticky so submit is always visible */
  .report-page .form-actions.full {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1));
    padding: 12px 0 6px;
    margin-top: 8px;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    z-index: 5;
  }

  .report-page .form-actions.full .btn {
    flex: 1 1 auto;
  }

  /* prevent sticky actions from overlapping content */
  .report-page .form-card {
    padding-bottom: 88px;
  }
}

/* Make select controls match input styles and leave room for inline spinner */
.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font: inherit;
  background: var(--white);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.select-wrap select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 88, 125, 0.12);
  outline: none;
}

/* Slightly smaller spinner to match field size */
.select-wrap .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* Two-column form grid for larger screens */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .form-group:nth-child(1) {
  /* first field stays normal */
}
.form-group.full {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: auto;
  }
  .select-wrap select {
    padding: 12px 40px 12px 12px;
  }
}

/* Chevron for select (visible when not loading) */
.select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}

/* Hide chevron while loading (spinner visible) */
.select-wrap.loading::after {
  opacity: 0;
}

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.form-check input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.form-note {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.form-status.success {
  color: #15803d;
}

.form-status.error {
  color: #b91c1c;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

@media (max-width: 900px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 28px;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  /* Mobile ordering: heading + description, then screenshots, then features, then download button */
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
    min-height: auto;
    margin-top: 8px;
  }

  .hero-points {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    justify-self: center;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    justify-self: center;
  }

  .hero-phones {
    min-height: auto;
    flex-direction: row;
    width: min(400px, 100%);
    margin-inline: auto;
  }

  .phone-frame--back {
    transform: rotate(-5deg) translateX(16px);
  }

  .phone-frame--front {
    transform: rotate(3deg) translateX(-16px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav {
    min-height: 64px;
    gap: 16px;
  }

  .brand-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    background: rgba(255, 251, 252, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 10px 4px;
    font-size: 1rem;
  }

  .nav-links .btn {
    margin-top: 8px;
    width: 100%;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .section {
    padding-block: 56px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .category-item {
    padding: 16px 8px;
  }

  .category-item img {
    width: 40px;
    height: 40px;
  }

  .category-item span {
    font-size: 0.8125rem;
  }

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

  .section-head h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-phones {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .phone-frame--hero {
    width: min(170px, 42vw);
  }

  .phone-frame--back {
    transform: rotate(-4deg) translateX(12px);
  }

  .phone-frame--front {
    transform: rotate(4deg) translateX(-12px);
  }

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

@media (max-width: 380px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .category-grid {
    gap: 8px;
  }

  .category-item {
    padding: 14px 6px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .quote-slide {
    transition: none;
  }

  .btn:hover,
  .feature-card:hover,
  .category-item:hover,
  .step-card:hover {
    transform: none;
  }
}
