/* ==========================================================================
   App Factory — appfactoryrus.com
   Design tokens transcribed from design_handoff_appfactory_website/README.md
   ========================================================================== */

:root {
  /* Ink */
  --navy: #0a1b33;
  --navy-footer: #060f1f;
  --ink: #13233d;
  --ink-quote: #22334e;

  /* Secondary / muted */
  --text-2: #4a5a73;
  --text-3: #3a4a63;
  --muted: #6b7a93;

  /* Accent */
  --blue: #1d4ed8;
  --blue-hover: #2e5fe8;

  /* On dark */
  --on-dark: #b9c6dc;
  --on-dark-muted: #8fa3c4;
  --on-dark-dim: #9db4dc;
  --on-dark-accent: #7fa0e8;

  /* Lines & fills */
  --line: #e6eaf1;
  --line-soft: #eef1f6;
  --line-chip: #d6dde8;
  --tint: #f4f7fb;

  /* Status */
  --error: #fca5a5;
  --success: #34d399;

  /* Geometry */
  --container: 1200px;
  --gutter: 32px;
  --nav-h: 72px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Type */
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  /* Elevation */
  --shadow-card: 0 12px 32px rgba(10, 27, 51, 0.1);
  --shadow-featured: 0 16px 40px rgba(29, 78, 216, 0.12);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  font-family: var(--body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--navy);
  text-decoration: underline;
}

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

/* A class-level `display` outranks the UA's `[hidden]{display:none}`, which
   would leave the contact form's success card visible next to the form. */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--blue);
  color: #fff;
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
}

/* Visible focus for keyboard users on every interactive element. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.hero :focus-visible,
.contact :focus-visible,
.about :focus-visible,
.site-footer :focus-visible,
.preview-bar :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
  text-decoration: none;
}

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

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

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

/* --------------------------------------------------------------------------
   Preview banner — marks placeholder content as sample, not real
   -------------------------------------------------------------------------- */

.preview-bar {
  background: #12294a;
  color: #cfe0ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.45;
}

.preview-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
}

.preview-bar strong {
  color: #fff;
  font-weight: 700;
}

.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  border: 1px solid var(--line-chip);
  background: var(--tint);
  color: var(--muted);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sample-tag--dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark-dim);
}

.sample-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 0;
}

.sample-note--dark {
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  flex: none;
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  color: var(--text-3);
}

.nav__links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.nav__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav__cta:hover {
  background: var(--blue);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: relative;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 4px;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

.section {
  scroll-margin-top: var(--nav-h);
}

.section--light {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.eyebrow--dark {
  color: var(--on-dark-accent);
}

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -1px;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

.h2--dark {
  color: #fff;
}

.section-head--center {
  text-align: center;
  margin-bottom: 52px;
}

.btn {
  display: inline-block;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-family: var(--body);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--blue);
  color: #fff !important;
  padding: 14px 28px;
  font-size: 15px;
  border: 1px solid var(--blue);
}

.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  text-decoration: none;
}

.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  padding: 14px 28px;
  font-size: 15px;
  background: none;
}

.btn--ghost-light:hover {
  border-color: #fff;
  text-decoration: none;
}

.btn--outline-navy {
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  padding: 13px;
  font-size: 14.5px;
  background: none;
  display: block;
}

.btn--outline-navy:hover {
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
}

.btn--solid-blue {
  background: var(--blue);
  color: #fff !important;
  padding: 13px;
  font-size: 14.5px;
  border: 1px solid var(--blue);
  display: block;
}

.btn--solid-blue:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  text-decoration: none;
}

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

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

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 85% -10%, rgba(29, 78, 216, 0.35), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 88px;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  animation: afRise 0.7s ease both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-bottom: 28px;
}

.hero h1 {
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark);
  margin: 0 0 36px;
  max-width: 52ch;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 44px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}

.stat__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -1px;
}

.stat__label {
  font-size: 13px;
  color: var(--on-dark-muted);
  margin-top: 2px;
}

.hero__stats-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stats--tagged {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

/* Phone mockup */

.hero__visual {
  animation: afRise 0.7s 0.15s ease both;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.38), transparent 65%);
  filter: blur(10px);
}

.hero__grid {
  position: absolute;
  inset: -40px;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 44px);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 75%);
}

.phone {
  position: relative;
  width: 284px;
  background: #0d1420;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: rotate(2deg);
}

.phone__screen {
  background: linear-gradient(172deg, #131f35, #0a1426);
  border-radius: 36px;
  overflow: hidden;
  height: 530px;
  padding: 16px 20px 0;
  display: flex;
  flex-direction: column;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #c7d3e8;
}

.phone__notch {
  width: 78px;
  height: 22px;
  background: #0d1420;
  border-radius: 12px;
}

.phone__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.phone__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e82a6;
}

.phone__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.5px;
}

/* --- My Memory capture screen ------------------------------------------ */

.phone__mic-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
}

/* Concentric halo around the record button, echoing the ring it replaced. */
.phone__mic {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 125, 249, 0.28) 38%, rgba(79, 125, 249, 0.1) 58%, transparent 70%);
  display: grid;
  place-items: center;
}

.phone__mic::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(126, 162, 255, 0.4);
}

.phone__mic-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(160deg, #7ea2ff, #2c4fa8);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(10, 20, 46, 0.55);
}

.phone__hint {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e82a6;
  margin-top: 8px;
}

.phone__entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.phone__entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.phone__entry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f7df9;
  flex: none;
  margin-top: 5px;
}

.phone__entry-text {
  font-size: 12px;
  font-weight: 600;
  color: #dbe4f5;
  line-height: 1.35;
}

.phone__entry-meta {
  font-size: 10px;
  color: #6e82a6;
  margin-top: 2px;
}

.phone__tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0 18px;
  /* The screen is a column flex container, so without this the tab bar is the
     first thing flex-shrink crushes when the content above it grows. */
  flex: none;
}

.phone__tab {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.12);
  flex: none;
}

.phone__tab--on {
  background: #4f7df9;
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */

.apps__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line-chip);
  background: #fff;
  color: var(--text-3);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--body);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--navy);
}

.chip[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

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

.app-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.app-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card__icon {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: var(--r-md);
  object-fit: cover;
}

.app-card__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.app-card__cat {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 2px;
}

.app-card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.app-card__meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  flex-wrap: wrap;
}

/* Plain-language release state, shown instead of the rating/downloads an
   unreleased app does not have. */
.app-card__status {
  color: var(--text-2);
  font-weight: 600;
}

.app-card__status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: 1px;
}

.app-card__links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Empty state — shown while data/apps.json has no apps */

.apps__empty {
  border: 1px dashed var(--line-chip);
  border-radius: var(--r-md);
  background: var(--tint);
  padding: 64px 32px;
  text-align: center;
}

.apps__empty-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--r-md);
  background: var(--navy);
  display: grid;
  place-items: center;
}

.apps__empty h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 10px;
}

.apps__empty p {
  margin: 0 auto 24px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Compliance banner */

.compliance {
  margin-top: 40px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.compliance__mark {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  flex: none;
}

.compliance__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}

.compliance__intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 74ch;
  text-wrap: pretty;
}

.compliance__list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  background: var(--navy);
  color: #fff;
}

.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-dark);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.about p:last-of-type {
  margin-bottom: 0;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 26px;
}

.stat-card__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
}

.stat-card__label {
  font-size: 13.5px;
  color: var(--on-dark-muted);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

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

.step {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  background: #fff;
}

.step__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue);
  margin-bottom: 16px;
}

.step__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials,
.section--band {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testimonials__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px var(--gutter);
}

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

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-quote);
  text-wrap: pretty;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quote__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}

.quote__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.quote__role {
  font-size: 12.5px;
  color: var(--muted);
}

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

.pricing__sub {
  margin: 14px 0 0;
  font-size: 15.5px;
  color: var(--text-2);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tier {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  background: #fff;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-featured);
}

.tier__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.tier__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}

.tier__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}

.tier__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -1px;
}

.tier__per {
  font-size: 13.5px;
  opacity: 0.65;
}

.tier__desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.75;
}

.tier__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.tier__features li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.tier__check {
  color: var(--blue);
  font-weight: 700;
  flex: none;
}

.tier .btn {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--navy);
  color: #fff;
}

.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.contact__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-dark);
  margin: 0 0 32px;
  max-width: 46ch;
  text-wrap: pretty;
}

.contact__emails {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: var(--on-dark);
}

.contact__emails a {
  color: var(--on-dark);
}

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

.contact__emails dt {
  color: var(--on-dark-accent);
  font-weight: 600;
  display: inline;
}

.contact__emails dd {
  display: inline;
  margin: 0 0 0 10px;
}

.contact__emails > div {
  display: block;
}

.form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14.5px;
  font-family: var(--body);
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 108px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--on-dark-accent);
}

.field select option {
  color: var(--ink);
}

.field__error {
  font-size: 12.5px;
  color: var(--error);
  min-height: 0;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.form__submit {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--body);
  cursor: pointer;
  transition: background 0.15s ease;
}

.form__submit:hover:not(:disabled) {
  background: var(--blue-hover);
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form__hp {
  position: absolute !important;
  left: -9999px;
}

.form-success {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.form-success__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.form-success__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.form-success p {
  margin: 0;
  color: var(--on-dark);
  font-size: 15px;
  max-width: 36ch;
}

.form-success button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--body);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.form-success button:hover {
  border-color: #fff;
}

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

.site-footer {
  background: var(--navy-footer);
  color: var(--on-dark-muted);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.site-footer__brand-mark {
  width: 30px;
  height: 30px;
  background: var(--blue);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.site-footer__brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer-col__head {
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--on-dark-muted);
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Sub-pages (support / privacy / terms / per-app)
   -------------------------------------------------------------------------- */

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

.page-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter) 56px;
  position: relative;
}

.page-hero h1 {
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin: 0;
  text-wrap: balance;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark);
  margin: 16px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}

.breadcrumb {
  font-size: 13px;
  color: var(--on-dark-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--on-dark-muted);
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: none;
}

.prose {
  max-width: 78ch;
  margin: 0 auto;
  padding: 72px var(--gutter) 88px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin: 44px 0 14px;
}

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

.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--tint);
  color: var(--navy);
  font-weight: 600;
}

.prose__meta {
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.callout {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
}

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

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

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

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

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

.faq summary::after {
  content: "+";
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}

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

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

.error-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 120px var(--gutter);
  text-align: center;
}

.error-page__code {
  font-family: var(--display);
  font-weight: 800;
  font-size: 72px;
  color: var(--blue);
  letter-spacing: -2px;
  line-height: 1;
}

.error-page h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 12px;
  letter-spacing: -0.8px;
}

.error-page p {
  color: var(--text-2);
  font-size: 16px;
  margin: 0 0 28px;
}

/* --------------------------------------------------------------------------
   Responsive — the handoff prototype is desktop-only; these are additive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -1.2px;
  }

  .hero__stats {
    gap: 32px;
  }

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

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

  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }

  .nav__toggle {
    display: grid;
  }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    box-shadow: 0 18px 32px rgba(10, 27, 51, 0.08);
    display: none;
  }

  .nav__links[data-open="true"] {
    display: flex;
  }

  .nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }

  .nav__cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0 !important;
    padding: 14px 20px;
  }

  .section--light {
    padding: 72px var(--gutter);
  }

  .about__inner,
  .contact__inner,
  .testimonials__inner {
    padding: 72px var(--gutter);
  }

  .h2 {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .hero__sub {
    font-size: 16.5px;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }

  .apps__grid,
  .testimonials__grid,
  .pricing__grid,
  .process__grid,
  .about__stats,
  .form__row {
    grid-template-columns: 1fr;
  }

  .apps__head {
    align-items: flex-start;
  }

  .compliance {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 24px;
  }

  .compliance__list {
    gap: 10px 20px;
  }

  .tier--featured {
    margin-top: 14px;
  }

  .form,
  .form-success {
    padding: 26px 22px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .page-hero h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .prose {
    padding: 52px var(--gutter) 72px;
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__orb,
  .hero__grid {
    display: none;
  }

  .phone {
    transform: rotate(0deg) scale(0.94);
  }

  .error-page__code {
    font-size: 56px;
  }

  .prose table,
  .prose__scroll {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Wide tables on sub-pages must scroll inside themselves, never the page. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@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;
  }

  .app-card:hover {
    transform: none;
  }
}

@media print {
  .nav,
  .preview-bar,
  .site-footer,
  .hero__visual {
    display: none;
  }
}
