/* ============================================================
   RESIDENQUEST ENARM PREP — PUBLIC WEBSITE
   Step 3 static-site stylesheet
   ============================================================ */

:root {
  /* ==========================================================
     RESIDENQUEST BRAND
     ========================================================== */

  --rq-purple: #673ab7;
  --rq-purple-bright: #5d2bff;
  --rq-purple-dark: #211033;
  --rq-purple-mid: #7e57c2;
  --rq-purple-soft: #9b7ad0;

  --rq-pink: #ff4fb8;
  --rq-gold: #ffd166;
  --rq-cta-gold: #ffc107;
  --rq-mint: #4be3b5;
  --rq-success: #20a464;

  --rq-white: #ffffff;
  --rq-lavender: #f5f3ff;
  --rq-lavender-strong: #f0eafe;
  --rq-lavender-card: #f7f4ff;

  --rq-text: #211a2a;
  --rq-text-strong: #18121e;
  --rq-text-soft: #665e70;
  --rq-text-faint: #867d90;

  --rq-border: rgba(103, 58, 183, 0.14);
  --rq-border-strong: rgba(103, 58, 183, 0.24);
  --rq-white-border: rgba(255, 255, 255, 0.24);

  /* PAGE PADDING — mirrors AppLayout.dart */

  --rq-page-padding-tight: 12px;
  --rq-page-padding-compact: 16px;
  --rq-page-padding-medium: 20px;
  --rq-page-padding-expanded: 24px;
  --rq-page-padding-large: 32px;

  /* SPACING — mirrors AppLayout.dart */

  --rq-gap-small: 8px;
  --rq-gap: 12px;
  --rq-gap-medium: 16px;
  --rq-gap-large: 24px;

  /* CONTENT WIDTHS — mirrors AppLayout.dart */

  --rq-form-max-width: 560px;
  --rq-readable-max-width: 860px;
  --rq-standard-max-width: 1000px;
  --rq-wide-max-width: 1200px;

  /* SURFACES */

  --rq-radius-small: 14px;
  --rq-radius-medium: 18px;
  --rq-radius-card: 22px;
  --rq-radius-large: 30px;
  --rq-radius-pill: 999px;

  --rq-shadow-small: 0 8px 24px rgba(33, 16, 51, 0.08);
  --rq-shadow: 0 18px 46px rgba(33, 16, 51, 0.10);
  --rq-shadow-strong: 0 24px 60px rgba(33, 16, 51, 0.16);

  /* HEADER */

  --rq-header-height: 78px;

  /* MOTION */

  --rq-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rq-transition-fast: 160ms var(--rq-ease);
  --rq-transition: 240ms var(--rq-ease);
}

/* ============================================================
   GLOBAL
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rq-header-height) + 20px);
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--rq-lavender);
  color: var(--rq-text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
header,
footer,
section,
nav,
article,
aside,
div {
  min-width: 0;
}

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

img,
video {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  border: 0;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--rq-text-strong);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

p,
li,
a,
summary {
  overflow-wrap: break-word;
}

ul {
  padding-left: 1.25rem;
}

::selection {
  background: rgba(103, 58, 183, 0.20);
  color: var(--rq-purple-dark);
}

:focus-visible {
  outline: 3px solid var(--rq-gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--rq-purple-dark);
  color: var(--rq-white);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--rq-transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  position: relative;
  padding-block: 64px;
}

.section--alt {
  background: rgba(255, 255, 255, 0.46);
  border-block: 1px solid rgba(103, 58, 183, 0.06);
}

.section-inner,
.site-header__inner,
.site-footer__inner {
  width: min(
    100%,
    calc(var(--rq-wide-max-width) + (2 * var(--rq-page-padding-compact)))
  );
  margin-inline: auto;
  padding-inline: var(--rq-page-padding-compact);
}

.section-heading {
  max-width: var(--rq-readable-max-width);
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  font-weight: 900;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--rq-text-soft);
  font-size: clamp(1rem, 2.8vw, 1.12rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 5px 11px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  border-radius: var(--rq-radius-pill);
  background: rgba(103, 58, 183, 0.08);
  color: var(--rq-purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.text-link {
  color: var(--rq-purple);
  font-weight: 850;
  text-decoration-color: rgba(103, 58, 183, 0.38);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--rq-purple-bright);
  text-decoration-color: currentColor;
}

/* ============================================================
   BUTTONS / SHARED INTERACTIVE ELEMENTS
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 19px;
  border: 2px solid transparent;
  border-radius: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--rq-transition-fast),
    box-shadow var(--rq-transition-fast),
    background-color var(--rq-transition-fast),
    border-color var(--rq-transition-fast),
    color var(--rq-transition-fast),
    opacity var(--rq-transition-fast);
}

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

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--rq-cta-gold);
  color: #2d2200;
  box-shadow: 0 10px 24px rgba(255, 193, 7, 0.24);
}

.button-primary:hover {
  background: #ffca28;
  box-shadow: 0 14px 30px rgba(255, 193, 7, 0.30);
}

.button-secondary {
  border-color: var(--rq-border-strong);
  background: var(--rq-white);
  color: var(--rq-purple);
  box-shadow: 0 7px 18px rgba(33, 16, 51, 0.06);
}

.button-secondary:hover {
  border-color: rgba(103, 58, 183, 0.42);
  background: var(--rq-lavender-card);
}

.button-hero {
  min-height: 56px;
  padding-inline: 24px;
  border-radius: 18px;
  font-size: 1.04rem;
}

.app-link[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
  filter: saturate(0.65);
  box-shadow: none;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--rq-header-height);
  border-bottom: 1px solid rgba(103, 58, 183, 0.10);
  background: rgba(245, 243, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  position: relative;
  display: flex;
  min-height: var(--rq-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--rq-purple);
  text-decoration: none;
  white-space: nowrap;
}

.brand__logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand__text-group {
  display: flex;
  min-width: max-content;
  flex: 0 0 auto;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.brand__tagline {
  margin-top: 4px;
  color: var(--rq-text-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rq-border);
  border-radius: 15px;
  background: var(--rq-white);
  color: var(--rq-purple);
  box-shadow: var(--rq-shadow-small);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 21px;
  height: 2.5px;
  border-radius: 99px;
  background: currentColor;
  transition:
    transform var(--rq-transition),
    opacity var(--rq-transition),
    top var(--rq-transition);
}

.menu-toggle span:nth-child(1) {
  top: 16px;
}

.menu-toggle span:nth-child(2) {
  top: 22px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.main-navigation {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--rq-page-padding-compact);
  left: var(--rq-page-padding-compact);
  display: none;
  max-height: calc(100dvh - var(--rq-header-height) - 24px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--rq-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--rq-shadow-strong);
}

.menu-toggle[aria-expanded="true"] + .main-navigation {
  display: block;
}

.main-navigation__links {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation__links a {
  display: block;
  padding: 12px 13px;
  border-radius: 12px;
  color: var(--rq-text);
  font-weight: 800;
  text-decoration: none;
}

.main-navigation__links a:hover {
  background: var(--rq-lavender);
  color: var(--rq-purple);
}

.main-navigation__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rq-border);
}

.main-navigation__actions .button {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  isolation: isolate;
  overflow: clip;
  padding-top: 52px;
  padding-bottom: 72px;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(255, 79, 184, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at 8% 24%,
      rgba(93, 43, 255, 0.13),
      transparent 34%
    ),
    linear-gradient(180deg, #f8f6ff 0%, var(--rq-lavender) 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  width: 230px;
  height: 230px;
  top: 70px;
  right: -110px;
  background: rgba(255, 79, 184, 0.10);
}

.hero::after {
  width: 210px;
  height: 210px;
  bottom: 10px;
  left: -120px;
  background: rgba(75, 227, 181, 0.10);
}

.hero__layout {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--rq-purple-dark);
  font-size: clamp(2.45rem, 11vw, 4.6rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 22px;
  color: var(--rq-text-soft);
  font-size: clamp(1.05rem, 3.6vw, 1.26rem);
  line-height: 1.6;
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  border-radius: var(--rq-radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--rq-purple);
  box-shadow: 0 5px 15px rgba(33, 16, 51, 0.04);
  font-size: 0.84rem;
  font-weight: 800;
}

.hero__actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.hero__actions .button {
  width: 100%;
}

.hero__login,
.hero__supporting-copy,
.hero__disclaimer {
  max-width: 670px;
}

.hero__login {
  margin-bottom: 10px;
  color: var(--rq-text-soft);
}

.hero__supporting-copy {
  margin-bottom: 10px;
  color: var(--rq-text-soft);
  font-size: 0.92rem;
}

.hero__disclaimer {
  margin-bottom: 0;
  padding-left: 12px;
  border-left: 3px solid rgba(103, 58, 183, 0.28);
  color: var(--rq-text-faint);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero__preview {
  display: grid;
  width: 100%;
  max-width: 560px;
  gap: 14px;
  margin-inline: auto;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-large);
  box-shadow: var(--rq-shadow);
}

.hero-card--primary {
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--rq-purple);
  color: var(--rq-white);
}

.hero-card--secondary {
  background: rgba(255, 255, 255, 0.94);
}

.hero-card__eyebrow {
  margin-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-card--primary .hero-card__eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-card--secondary .hero-card__eyebrow {
  color: var(--rq-purple);
}

.hero-card__title {
  max-width: 460px;
  margin-bottom: 18px;
  color: inherit;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 950;
}

.hero-card__list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card__list li {
  position: relative;
  padding-left: 23px;
  font-weight: 720;
}

.hero-card__list li::before {
  position: absolute;
  top: 0.5em;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rq-gold);
  box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.16);
  content: "";
}

.hero-card__price {
  margin-bottom: 4px;
  color: var(--rq-purple-dark);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-card__note {
  margin-bottom: 6px;
  color: var(--rq-text-soft);
  font-size: 0.9rem;
}

.hero-card__note:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PRODUCT / FEATURES / ENARM / MODES / STATS / PREMIUM
   ============================================================ */

.content-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.content-card,
.feature-card,
.mode-card,
.stat-card,
.premium-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-card);
  background: var(--rq-white);
  box-shadow: var(--rq-shadow-small);
}

.content-card h3,
.feature-card h3,
.mode-card h3,
.stat-card h3,
.premium-card h3 {
  margin-bottom: 9px;
  color: var(--rq-purple);
  font-size: 1.12rem;
  font-weight: 900;
}

.content-card p,
.feature-card p,
.mode-card p,
.stat-card p,
.premium-card p {
  margin-bottom: 0;
  color: var(--rq-text-soft);
}

.feature-card::before,
.mode-card::before,
.stat-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
}

.feature-card:nth-child(4n + 1)::before,
.mode-card:nth-child(4n + 1)::before,
.stat-card:nth-child(4n + 1)::before {
  background: var(--rq-purple-bright);
}

.feature-card:nth-child(4n + 2)::before,
.mode-card:nth-child(4n + 2)::before,
.stat-card:nth-child(4n + 2)::before {
  background: var(--rq-pink);
}

.feature-card:nth-child(4n + 3)::before,
.mode-card:nth-child(4n + 3)::before,
.stat-card:nth-child(4n + 3)::before {
  background: var(--rq-mint);
}

.feature-card:nth-child(4n)::before,
.mode-card:nth-child(4n)::before,
.stat-card:nth-child(4n)::before {
  background: var(--rq-gold);
}

.notice-card {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(103, 58, 183, 0.16);
  border-left: 5px solid var(--rq-purple);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(103, 58, 183, 0.07),
      rgba(255, 255, 255, 0.90)
    );
  color: var(--rq-text-soft);
}

.notice-card p {
  margin: 0;
}

.notice-card strong {
  color: var(--rq-purple-dark);
}

.premium-card--accent {
  border-color: rgba(93, 43, 255, 0.28);
  background: var(--rq-white);
  box-shadow: 0 18px 42px rgba(93, 43, 255, 0.12);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 27px;
  color: var(--rq-text-soft);
}

.feature-list li::before {
  position: absolute;
  top: 0.36em;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(75, 227, 181, 0.18);
  color: #14774f;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.feature-list li.feature-list__unavailable::before {
  background: rgba(220, 53, 69, 0.14);
  color: #c62828;
  content: "\00d7";
}

.premium-card .button {
  margin-top: 18px;
}

/* ============================================================
   PETS / SCREENSHOTS
   ============================================================ */

.media-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.media-card {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-card);
  background: var(--rq-white);
  box-shadow: var(--rq-shadow-small);
}

.media-card img {
  width: 100%;
  height: clamp(250px, 72vw, 430px);
  padding: 12px;
  background: var(--rq-lavender-card);
  object-fit: contain;
}

.media-card figcaption {
  margin-top: auto;
  padding: 13px 16px 15px;
  border-top: 1px solid rgba(103, 58, 183, 0.08);
  color: var(--rq-purple);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing-layout {
  width: min(100%, 760px);
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid rgba(93, 43, 255, 0.24);
  border-radius: var(--rq-radius-large);
  background: var(--rq-white);
  box-shadow: var(--rq-shadow-strong);
}

.pricing-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background:
    linear-gradient(
      90deg,
      var(--rq-purple-bright),
      var(--rq-pink)
    );
  content: "";
}

.pricing-card__label {
  margin-bottom: 9px;
  color: var(--rq-purple);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pricing-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 9px;
  color: var(--rq-purple-dark);
  font-size: clamp(3rem, 14vw, 5.4rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.pricing-card__price span {
  color: var(--rq-text-soft);
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.pricing-card__tax {
  margin-bottom: 22px;
  color: var(--rq-success);
  font-weight: 850;
}

.pricing-card__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pricing-card__actions .button {
  width: 100%;
}

.pricing-card__fineprint {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--rq-text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  display: grid;
  width: min(100%, var(--rq-standard-max-width));
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--rq-border);
  border-radius: 18px;
  background: var(--rq-white);
  box-shadow: 0 7px 20px rgba(33, 16, 51, 0.05);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 17px 52px 17px 18px;
  color: var(--rq-purple-dark);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--rq-lavender-strong);
  color: var(--rq-purple);
  content: "+";
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    transform var(--rq-transition-fast),
    background-color var(--rq-transition-fast);
}

.faq-item[open] summary {
  color: var(--rq-purple);
}

.faq-item[open] summary::after {
  background: rgba(103, 58, 183, 0.12);
  transform: translateY(-50%) rotate(45deg);
}

.faq-item__content {
  padding: 0 18px 18px;
  color: var(--rq-text-soft);
}

.faq-item__content p {
  margin-bottom: 10px;
}

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

/* ============================================================
   CONTACT
   ============================================================ */

.contact-card {
  width: min(100%, 820px);
  padding: clamp(24px, 6vw, 36px);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-large);
  background: var(--rq-white);
  box-shadow: var(--rq-shadow);
}

.contact-card__text {
  margin-bottom: 5px;
  color: var(--rq-text-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card__email {
  margin-bottom: 22px;
  color: var(--rq-purple);
  font-size: clamp(1.05rem, 4.2vw, 1.4rem);
  font-weight: 900;
}

.contact-card__email a {
  text-decoration-color: rgba(103, 58, 183, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-card__actions {
  display: grid;
  gap: 10px;
}

.contact-card__actions .button {
  width: 100%;
}

.contact-card__note {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--rq-text-soft);
  font-size: 0.84rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  position: relative;
  overflow: clip;
  padding-block: 46px 28px;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(255, 79, 184, 0.16),
      transparent 30%
    ),
    linear-gradient(145deg, #2a1540 0%, var(--rq-purple-dark) 100%);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
  display: grid;
  gap: 30px;
}

.brand--footer {
  color: var(--rq-white);
}

.brand--footer .brand__tagline {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__description {
  max-width: 420px;
  margin: 16px 0 18px;
  color: rgba(255, 255, 255, 0.70);
}

.site-footer__cta {
  width: fit-content;
}

.site-footer__nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--rq-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__meta {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.site-footer__meta p {
  margin-bottom: 8px;
}

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

.site-footer__disclaimer {
  max-width: 680px;
}

/* ============================================================
   LEGAL PAGE FOUNDATION
   Ready for legal/terms.html, legal/privacy.html, legal/refunds.html
   ============================================================ */

body.legal-page {
  background: var(--rq-lavender);
}

.legal-main {
  padding-block: 48px 72px;
}

.legal-shell {
  width: min(
    100%,
    calc(var(--rq-readable-max-width) + (2 * var(--rq-page-padding-compact)))
  );
  margin-inline: auto;
  padding-inline: var(--rq-page-padding-compact);
}

.legal-card {
  padding: clamp(22px, 6vw, 40px);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-card);
  background: var(--rq-white);
  box-shadow: var(--rq-shadow-small);
}

.legal-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 950;
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--rq-purple-dark);
  font-size: clamp(1.3rem, 5vw, 1.65rem);
  font-weight: 900;
}

.legal-card h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 900;
}

.legal-card p,
.legal-card li {
  color: var(--rq-text-soft);
}

.legal-card a {
  color: var(--rq-purple);
  font-weight: 800;
  text-underline-offset: 3px;
}

.legal-meta {
  margin-bottom: 26px;
  color: var(--rq-text-faint);
  font-size: 0.9rem;
}

.legal-draft-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: var(--rq-radius-pill);
  background: rgba(255, 209, 102, 0.26);
  color: #725300;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE — MEDIUM WIDTH (600+)
   ============================================================ */

@media (min-width: 600px) {
  .section-inner,
  .site-header__inner,
  .site-footer__inner,
  .legal-shell {
    padding-inline: var(--rq-page-padding-medium);
  }

  .section {
    padding-block: 76px;
  }

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

  .hero {
    padding-top: 64px;
    padding-bottom: 84px;
  }

  .hero__actions,
  .pricing-card__actions,
  .contact-card__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero__actions .button,
  .pricing-card__actions .button,
  .contact-card__actions .button {
    width: auto;
  }

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

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

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

  .media-card img {
    height: clamp(280px, 44vw, 430px);
  }

  .site-footer__inner {
    grid-template-columns:
      minmax(0, 1.45fr)
      minmax(190px, 0.75fr);
  }

  .site-footer__meta {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — EXPANDED WIDTH (840+)
   ============================================================ */

@media (min-width: 840px) {
  :root {
    --rq-header-height: 82px;
  }

  .section-inner,
  .site-header__inner,
  .site-footer__inner,
  .legal-shell {
    padding-inline: var(--rq-page-padding-expanded);
  }

  .section {
    padding-block: 88px;
  }

  .hero {
    padding-top: 76px;
    padding-bottom: 96px;
  }

  .hero__layout {
    grid-template-columns:
      minmax(0, 1.08fr)
      minmax(350px, 0.92fr);
    gap: 46px;
  }

  .hero__preview {
    max-width: 520px;
    margin-inline: 0;
    justify-self: end;
  }

  .content-card,
  .feature-card,
  .mode-card,
  .stat-card,
  .premium-card {
    padding: 25px;
  }

  .media-card img {
    height: clamp(300px, 31vw, 430px);
  }

  .media-grid--three .media-card--wide {
    grid-column: 1 / -1;
  }

  .media-grid--three .media-card--wide img {
    height: clamp(330px, 36vw, 500px);
  }
}

/* ============================================================
   RESPONSIVE — DESKTOP NAVIGATION (920+)
   Keep the compact hamburger navigation below 920px so the
   ResidenQuest brand is never squeezed by the full navbar.
   ============================================================ */

@media (min-width: 920px) {
  .menu-toggle {
    display: none;
  }

  .main-navigation {
    position: static;
    display: flex;
    max-height: none;
    margin-left: auto;
    align-items: center;
    gap: 14px;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-navigation__links {
    display: flex;
    align-items: center;
    gap: 1px;
  }

  .main-navigation__links a {
    padding: 10px 8px;
    font-size: 0.87rem;
  }

  .main-navigation__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .main-navigation__actions .button {
    width: auto;
    min-height: 44px;
    padding: 10px 13px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   RESPONSIVE — LARGE WIDTH (1200+)
   ============================================================ */

@media (min-width: 1200px) {
  .section-inner,
  .site-header__inner,
  .site-footer__inner,
  .legal-shell {
    padding-inline: var(--rq-page-padding-large);
  }

  .section {
    padding-block: 104px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .main-navigation {
    gap: 20px;
  }

  .main-navigation__links {
    gap: 4px;
  }

  .main-navigation__links a {
    padding-inline: 10px;
    font-size: 0.92rem;
  }

  .main-navigation__actions {
    gap: 10px;
  }

  .main-navigation__actions .button {
    padding-inline: 16px;
    font-size: 0.9rem;
  }

  .hero__layout {
    gap: 64px;
  }

  .hero__preview {
    max-width: 560px;
  }

  .hero-card {
    padding: 28px;
  }

  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-grid--three .media-card--wide {
    grid-column: auto;
  }

  .media-grid--three .media-card img,
  .media-grid--three .media-card--wide img {
    height: 360px;
  }

  .media-grid--two .media-card img {
    height: 410px;
  }
}

/* ============================================================
   RESPONSIVE — EXTRA LARGE WIDTH (1600+)
   ============================================================ */

@media (min-width: 1600px) {
  .section {
    padding-block: 112px;
  }

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

  .hero__layout {
    gap: 72px;
  }

  .content-card,
  .feature-card,
  .mode-card,
  .stat-card,
  .premium-card {
    padding: 28px;
  }
}

/* ============================================================
   TIGHT COMPACT WIDTH (<360)
   ============================================================ */

@media (max-width: 359.98px) {
  .section-inner,
  .site-header__inner,
  .site-footer__inner,
  .legal-shell {
    padding-inline: var(--rq-page-padding-tight);
  }

  .brand {
    gap: 8px;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand__name {
    font-size: 0.98rem;
  }

  .brand__tagline {
    font-size: 0.67rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .main-navigation {
    right: var(--rq-page-padding-tight);
    left: var(--rq-page-padding-tight);
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 2.9rem);
  }

  .hero-card,
  .content-card,
  .feature-card,
  .mode-card,
  .stat-card,
  .premium-card,
  .pricing-card,
  .contact-card {
    border-radius: 18px;
  }

  .hero-card,
  .content-card,
  .feature-card,
  .mode-card,
  .stat-card,
  .premium-card {
    padding: 19px;
  }

  .button {
    padding-inline: 14px;
  }
}

/* ============================================================
   SHORT VIEWPORTS
   Keep short landscape usable without global scaling.
   ============================================================ */

@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --rq-header-height: 66px;
  }

  .site-header__inner {
    min-height: var(--rq-header-height);
  }

  .brand__logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .main-navigation {
    max-height:
      calc(100dvh - var(--rq-header-height) - 16px);
  }

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

  .section {
    padding-block: 54px;
  }
}

/* ============================================================
   HOVER — ONLY WHERE A REAL HOVER POINTER EXISTS
   ============================================================ */

@media (hover: hover) and (pointer: fine) {
  .content-card,
  .feature-card,
  .mode-card,
  .stat-card,
  .premium-card,
  .media-card,
  .faq-item,
  .contact-card {
    transition:
      transform var(--rq-transition),
      box-shadow var(--rq-transition),
      border-color var(--rq-transition);
  }

  .content-card:hover,
  .feature-card:hover,
  .mode-card:hover,
  .stat-card:hover,
  .premium-card:hover,
  .media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 58, 183, 0.23);
    box-shadow: var(--rq-shadow);
  }

  .faq-item:hover,
  .contact-card:hover {
    border-color: rgba(103, 58, 183, 0.22);
    box-shadow: var(--rq-shadow-small);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

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

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

  .button:hover,
  .content-card:hover,
  .feature-card:hover,
  .mode-card:hover,
  .stat-card:hover,
  .premium-card:hover,
  .media-card:hover {
    transform: none;
  }
}

/* ============================================================
   FORCED COLORS / HIGH-CONTRAST SUPPORT
   ============================================================ */

@media (forced-colors: active) {
  .button,
  .menu-toggle,
  .hero-card,
  .content-card,
  .feature-card,
  .mode-card,
  .stat-card,
  .premium-card,
  .media-card,
  .pricing-card,
  .faq-item,
  .contact-card,
  .notice-card {
    border: 1px solid CanvasText;
  }

  .feature-card::before,
  .mode-card::before,
  .stat-card::before,
  .pricing-card::before {
    background: CanvasText;
  }
}