/* ==========================================================================
   Hisab — marketing & legal site
   Hand-written CSS. No framework. Tokens mirror the app palette
   (lib/core/constants/app_colors.dart) so the site and the app feel like one
   product.
   ========================================================================== */

:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #020617;
  --ink: #101828;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e4e7ec;
  --line-soft: #edeff3;
  --bg: #f7f8fa;
  --bg-2: #f1f3f6;
  --surface: #ffffff;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-2: #818cf8;
  --accent-soft: #eef2ff;
  --accent-ring: #c7d2fe;
  --brand: #0b34a8;
  --brand-deep: #08267a;
  --green: #10b981;
  --green-soft: #d1fae5;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --blue: #3b82f6;
  --blue-soft: #dbeafe;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  --shadow-phone: 0 50px 100px -20px rgba(15, 23, 42, 0.45), 0 30px 60px -30px rgba(15, 23, 42, 0.5);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --container: 1160px;
  --gutter: 20px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

main {
  overflow-x: clip;
}

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

img {
  height: auto;
}

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

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, color 0.2s,
    border-color 0.2s;
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.3), 0 8px 20px -8px rgba(15, 23, 42, 0.5);
}

.btn--primary:hover {
  color: #fff;
  background: var(--navy-3);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.3), 0 14px 28px -10px rgba(15, 23, 42, 0.55);
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3), 0 10px 24px -8px rgba(79, 70, 229, 0.6);
}

.btn--accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3), 0 16px 32px -10px rgba(79, 70, 229, 0.65);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn--outline:hover {
  color: var(--ink);
  border-color: var(--accent-ring);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
}

/* Google Play badge */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
  line-height: 1.1;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.play-badge:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
}

.play-badge img {
  width: 24px;
  height: 24px;
}

.play-badge small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 600;
}

.play-badge strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1px;
}

.play-badge--lg {
  gap: 12px;
  padding: 10px 20px 10px 14px;
  border-radius: 14px;
}

.play-badge--lg img {
  width: 28px;
  height: 28px;
}

.play-badge--lg strong {
  font-size: 18px;
}

.play-badge--light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.play-badge--light:hover {
  color: var(--ink);
  border-color: var(--accent-ring);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header--dark {
  color: #fff;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.site-header--dark.is-scrolled {
  background: rgba(15, 23, 42, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(11, 52, 168, 0.25));
}

.brand span {
  color: var(--ink);
}

.site-header--dark:not(.is-scrolled) .brand span,
.site-header--dark.is-scrolled .brand span {
  color: #fff;
}

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

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--body);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-header--dark .nav-links a {
  color: rgba(255, 255, 255, 0.72);
}

.site-header--dark .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header--dark .nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  padding: 12px var(--gutter) 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.25s;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.mobile-menu a:hover {
  background: var(--bg-2);
}

.mobile-menu a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.mobile-menu a svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.mobile-menu .play-badge {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  padding: 12px 20px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(79, 70, 229, 0.45), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(11, 52, 168, 0.5), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero__orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.hero__orb--1 {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -120px;
  background: #4f46e5;
}

.hero__orb--2 {
  width: 460px;
  height: 460px;
  right: -140px;
  top: 120px;
  background: #0b34a8;
  animation-delay: -6s;
}

.hero__orb--3 {
  width: 320px;
  height: 320px;
  left: 45%;
  bottom: -100px;
  background: #10b981;
  opacity: 0.22;
  animation-delay: -12s;
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, 30px, 0) scale(1.08);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero__copy {
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.eyebrow__dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #052e1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow__dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #052e1f;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #a5b4fc 0%, #818cf8 40%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  max-width: 540px;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta svg {
  width: 16px;
  height: 16px;
  color: #34d399;
}

/* Phone mockups */
.hero__visual {
  position: relative;
  height: 640px;
  perspective: 1600px;
}

.phone {
  position: absolute;
  width: 272px;
  aspect-ratio: 540 / 1134;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #334155, #0f172a 60%, #1e293b);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b1120;
  z-index: 2;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: #f7f8fa;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone--main {
  left: 50%;
  top: 30px;
  transform: translateX(-50%) rotateY(-8deg) rotateX(4deg);
  z-index: 3;
  animation: float-main 7s ease-in-out infinite;
}

.phone--left {
  width: 220px;
  left: 2%;
  top: 110px;
  transform: rotateY(14deg) rotateZ(-6deg) translateZ(-120px);
  z-index: 2;
  opacity: 0.95;
  animation: float-left 8s ease-in-out infinite;
}

.phone--right {
  width: 220px;
  right: 0;
  top: 160px;
  transform: rotateY(-16deg) rotateZ(6deg) translateZ(-140px);
  z-index: 1;
  opacity: 0.92;
  animation: float-right 9s ease-in-out infinite;
}

@keyframes float-main {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotateY(-8deg) rotateX(4deg);
  }
  50% {
    transform: translateX(-50%) translateY(-16px) rotateY(-6deg) rotateX(3deg);
  }
}

@keyframes float-left {
  0%,
  100% {
    transform: translateY(0) rotateY(14deg) rotateZ(-6deg) translateZ(-120px);
  }
  50% {
    transform: translateY(-12px) rotateY(12deg) rotateZ(-5deg) translateZ(-120px);
  }
}

@keyframes float-right {
  0%,
  100% {
    transform: translateY(0) rotateY(-16deg) rotateZ(6deg) translateZ(-140px);
  }
  50% {
    transform: translateY(-14px) rotateY(-14deg) rotateZ(5deg) translateZ(-140px);
  }
}

/* Floating chips around phones */
.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(2, 6, 23, 0.6);
  animation: chip-float 6s ease-in-out infinite;
}

.chip__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

.chip__icon svg {
  width: 16px;
  height: 16px;
}

.chip small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.chip--paid {
  left: 0;
  top: 40px;
}

.chip--paid .chip__icon {
  background: var(--green-soft);
  color: #047857;
}

.chip--gst {
  right: 0;
  top: 60px;
  animation-delay: -2s;
}

.chip--gst .chip__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip--offline {
  left: 6%;
  bottom: 30px;
  animation-delay: -4s;
}

.chip--offline .chip__icon {
  background: var(--amber-soft);
  color: #b45309;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Stats strip at hero bottom */
.hero__stats {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

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

.stat {
  padding: 26px 20px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: clip;
}

.steps,
.features,
.gallery {
  overflow-x: clip;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head--center .kicker::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--body);
}

/* Trust strip */
.trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.trust__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
}

.trust__row li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trust__row svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

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

.feature {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s;
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-ring);
}

.feature:hover::after {
  opacity: 1;
}

.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-spring);
}

.feature:hover .feature__icon {
  transform: scale(1.08) rotate(-4deg);
}

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

.feature__icon--green {
  background: var(--green-soft);
  color: #047857;
}

.feature__icon--amber {
  background: var(--amber-soft);
  color: #b45309;
}

.feature__icon--blue {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.feature__icon--red {
  background: var(--red-soft);
  color: #b91c1c;
}

.feature__icon--navy {
  background: #e2e8f0;
  color: var(--navy);
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

.feature--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: center;
}

.feature--wide .feature__shot {
  width: 200px;
  justify-self: end;
  border-radius: 18px;
  overflow: hidden;
  border: 6px solid var(--navy);
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg) translateY(30px);
  transition: transform 0.5s var(--ease-out);
}

.feature--wide:hover .feature__shot {
  transform: rotate(0deg) translateY(16px);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--line);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.5);
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
}

.step p {
  margin-top: 10px;
  font-size: 15px;
}

.step__arrow {
  position: absolute;
  top: 46px;
  right: -26px;
  width: 28px;
  height: 28px;
  color: var(--faint);
  z-index: 1;
}

.step:last-child .step__arrow {
  display: none;
}

/* Screens gallery */
.gallery {
  position: relative;
}

.gallery__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 4px 36px;
  margin: -24px -4px -12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: center;
  text-align: center;
}

.shot__frame {
  width: 100%;
  aspect-ratio: 540 / 1134;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #334155, #0f172a 60%, #1e293b);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.shot:hover .shot__frame {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 70px -20px rgba(15, 23, 42, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  background: #f7f8fa;
}

.shot figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.shot figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.gallery__nav {
  position: absolute;
  top: 40%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, background-color 0.2s, opacity 0.2s;
  z-index: 2;
}

.gallery__nav:hover {
  transform: scale(1.06);
  background: var(--accent-soft);
}

.gallery__nav svg {
  width: 20px;
  height: 20px;
}

.gallery__nav--prev {
  left: -23px;
}

.gallery__nav--next {
  right: -23px;
}

.gallery__nav[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

/* Templates band */
.templates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.templates__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.templates__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), border-color 0.2s;
}

.templates__list li:hover {
  transform: translateX(4px);
  border-color: var(--accent-ring);
}

.templates__list svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

.templates__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: clip;
}

.doc {
  position: absolute;
  width: 300px;
  aspect-ratio: 210 / 297;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transition: transform 0.6s var(--ease-out);
  overflow: hidden;
}

.doc--1 {
  transform: rotate(-9deg) translate(-70px, 20px);
  z-index: 1;
}

.doc--2 {
  transform: rotate(7deg) translate(80px, 10px);
  z-index: 2;
}

.doc--3 {
  transform: translateY(-10px);
  z-index: 3;
}

.templates__visual:hover .doc--1 {
  transform: rotate(-13deg) translate(-110px, 30px);
}

.templates__visual:hover .doc--2 {
  transform: rotate(11deg) translate(120px, 20px);
}

.templates__visual:hover .doc--3 {
  transform: translateY(-24px) scale(1.03);
}

.doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--doc-accent, var(--brand));
}

.doc__brand {
  display: flex;
  gap: 8px;
  align-items: center;
}

.doc__logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--doc-accent, var(--brand));
}

.doc__brand b {
  display: block;
  font-size: 10px;
  color: var(--ink);
}

.doc__brand i {
  display: block;
  width: 70px;
  height: 5px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--line);
}

.doc__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--doc-accent, var(--brand));
}

.doc__rows {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.doc__rows i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--line-soft);
}

.doc__rows i:nth-child(1) {
  width: 55%;
}

.doc__rows i:nth-child(2) {
  width: 75%;
}

.doc__rows i:nth-child(3) {
  width: 40%;
}

.doc__table {
  margin-top: 16px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.doc__table i {
  display: block;
  height: 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

.doc__table i:first-child {
  border-top: 0;
  background: var(--doc-accent, var(--brand));
  opacity: 0.9;
}

.doc__total {
  margin-top: 14px;
  margin-left: auto;
  width: 46%;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--doc-accent-soft, var(--accent-soft));
  color: var(--doc-accent, var(--brand));
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.doc--1 {
  --doc-accent: #047857;
  --doc-accent-soft: #d1fae5;
}

.doc--2 {
  --doc-accent: #0f172a;
  --doc-accent-soft: #e2e8f0;
}

.doc--3 {
  --doc-accent: #0b34a8;
  --doc-accent-soft: #e0e7ff;
}

/* Privacy band */
.privacy-band {
  position: relative;
  color: #fff;
  background: radial-gradient(800px 400px at 90% 0%, rgba(16, 185, 129, 0.28), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  overflow: hidden;
}

.privacy-band .section-head h2,
.privacy-band .section-head p {
  color: #fff;
}

.privacy-band .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.privacy-band .kicker {
  color: #34d399;
}

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

.pcard {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s;
}

.pcard:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(52, 211, 153, 0.4);
}

.pcard__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  margin-bottom: 18px;
}

.pcard__icon svg {
  width: 22px;
  height: 22px;
}

.pcard h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.pcard p {
  margin-top: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.68);
}

.privacy-band__links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq details[open] {
  border-color: var(--accent-ring);
  box-shadow: var(--shadow);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
}

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

.faq summary svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex: none;
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq__body {
  padding: 0 22px 22px;
  font-size: 15.5px;
  color: var(--body);
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding: 72px 40px;
  border-radius: var(--radius-xl);
  color: #fff;
  text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(129, 140, 248, 0.6), transparent 70%),
    linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: 0 40px 80px -30px rgba(79, 70, 229, 0.6);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta > img {
  width: 80px;
  height: 80px;
  margin-inline: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.cta h2 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}

.cta p {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

.cta__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 64px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 14.5px;
}

.footer-brand .play-badge {
  margin-top: 20px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

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

.footer-bottom a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Legal document pages
   -------------------------------------------------------------------------- */
.doc-hero {
  position: relative;
  color: #fff;
  background: radial-gradient(900px 400px at 80% -20%, rgba(79, 70, 229, 0.45), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 56px) 0 64px;
  overflow: hidden;
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.doc-hero .container {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.doc-hero h1 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
}

.doc-hero__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.doc-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doc-hero__meta svg {
  width: 16px;
  height: 16px;
  color: #a5b4fc;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  padding-block: 64px 96px; /* keep .container's side gutter */
  align-items: start;
}

/* Grid items default to min-width:auto, which lets a scrolling TOC rail widen
   its track past the viewport on phones. */
.doc-layout > * {
  min-width: 0;
  max-width: 100%;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.toc h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ol {
  display: grid;
  gap: 2px;
  max-height: calc(100vh - var(--nav-h) - 200px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body);
  border-left: 2px solid transparent;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.toc a:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.toc a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.toc__switch {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.toc__switch a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.toc__switch svg {
  width: 16px;
  height: 16px;
}

.doc-body {
  max-width: 760px;
}

.doc-intro {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.doc-section {
  margin-top: 48px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.doc-section h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.doc-section h2 a {
  color: inherit;
}

.doc-section h2 a:hover::after {
  content: " #";
  color: var(--accent-ring);
}

.doc-section p {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.75;
}

.doc-section ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.doc-section li {
  position: relative;
  padding-left: 26px;
  font-size: 16.5px;
  line-height: 1.7;
}

.doc-section li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.doc-footer-note {
  margin-top: 56px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-footer-note p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.doc-footer-note strong {
  color: #fff;
}

/* Not found */
.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.notfound h1 {
  font-size: clamp(48px, 10vw, 120px);
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound p {
  margin-top: 12px;
  font-size: 18px;
}

.notfound .btn {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger helper */
.stagger > * {
  --delay: calc(var(--i, 0) * 80ms);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out), background-color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--accent);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .gallery__nav--prev {
    left: 4px;
  }

  .gallery__nav--next {
    right: 4px;
  }
}

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

  .hero__copy {
    max-width: 640px;
  }

  .hero__visual {
    height: 560px;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .phone--main {
    width: 250px;
  }

  .phone--left,
  .phone--right {
    width: 190px;
  }

  .templates {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .templates__visual {
    min-height: 460px;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 36px 72px;
  }

  .toc {
    position: static;
    padding: 14px 16px;
  }

  .toc ol {
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .toc ol::-webkit-scrollbar {
    display: none;
  }

  .toc a {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    border-left-width: 1px;
  }

  .toc a.is-active {
    border-color: var(--accent-ring);
    border-left-color: var(--accent-ring);
  }

  .toc__switch {
    margin-top: 12px;
    padding-top: 12px;
  }

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

  .step__arrow {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta .play-badge {
    display: none;
  }

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

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
    --nav-h: 64px;
  }

  .section {
    padding: 72px 0;
  }

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

  .hero {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .hero__visual {
    height: 480px;
  }

  .phone--main {
    width: 210px;
    top: 20px;
  }

  .phone--left {
    width: 150px;
    left: -6%;
    top: 80px;
  }

  .phone--right {
    width: 150px;
    right: -6%;
    top: 120px;
  }

  .chip {
    font-size: 12px;
    padding: 8px 12px;
    gap: 8px;
  }

  .chip__icon {
    width: 26px;
    height: 26px;
  }

  .chip--paid {
    left: 0;
    top: 0;
  }

  .chip--gst {
    right: 0;
    top: auto;
    bottom: 120px;
  }

  .chip--offline {
    display: none;
  }

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

  .feature--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .feature--wide .feature__shot {
    display: none;
  }

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

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

  .footer-brand {
    grid-column: span 2;
  }

  .cta {
    padding: 56px 24px;
    border-radius: var(--radius-lg);
  }

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

  .doc-hero {
    padding-bottom: 44px;
  }

  .doc-hero__meta {
    flex-direction: column;
    gap: 8px;
  }

  .doc-intro {
    padding: 18px;
    font-size: 16px;
  }

  .doc-section {
    margin-top: 36px;
  }

  .doc-section h2 {
    font-size: 21px;
  }

  .doc-footer-note {
    padding: 20px;
    margin-bottom: 56px; /* clear the back-to-top button */
  }

  .doc-section p,
  .doc-section li {
    font-size: 16px;
  }

  .shot {
    width: 220px;
  }

  .gallery__nav {
    display: none;
  }

  .doc {
    width: 220px;
    padding: 16px;
  }

  .doc--1 {
    transform: rotate(-8deg) translate(-44px, 16px);
  }

  .doc--2 {
    transform: rotate(6deg) translate(50px, 8px);
  }

  .templates__visual:hover .doc--1 {
    transform: rotate(-10deg) translate(-56px, 20px);
  }

  .templates__visual:hover .doc--2 {
    transform: rotate(8deg) translate(62px, 12px);
  }

  .templates__visual {
    min-height: 400px;
  }

  .gallery__track {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .to-top,
  .doc-footer-note,
  .mobile-menu {
    display: none !important;
  }

  .doc-hero {
    background: none;
    color: #000;
    margin-top: 0;
    padding: 0 0 24px;
  }

  .doc-hero h1,
  .breadcrumb,
  .doc-hero__meta {
    color: #000;
  }

  .doc-layout {
    display: block;
    padding: 0;
  }

  body {
    background: #fff;
  }
}
