/* Static Features / FAQ — extracted from ui/src/App.css + ui/src/index.css (MyRoomsAI theme). */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111827;
  --text-section-heading: hwb(272 20% 28% / 0.763);
  --muted: #586174;
  --primary: #1f7ae7;
  --primary-dark: #0f5ec0;
  --border: #dce6f5;
  --shadow: 0 10px 30px rgba(14, 42, 83, 0.08);
  --brand-wordmark-start: #000000;
  --brand-purple: #8b5cf6;
  --brand-purple-dark: #7c3aed;
  --brand-accent: #8b5cf6;
  --Text-2: #8b5cf6;
  --brand-purple-soft-bg: rgba(139, 92, 246, 0.14);
  --brand-purple-soft-bg-medium: rgba(139, 92, 246, 0.12);
  --brand-purple-border: rgba(139, 92, 246, 0.38);
  --credits-accent-bg: rgba(236, 252, 202, 1);
  --credits-accent-border: #9cdfa0;
  --credits-accent-fg: var(--muted);
  --pale-mint: #ecfcca;
  --pricing-trust-panel-border: #b9c4db;
  --page-gutter: clamp(1rem, 2vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
}

body.static-page-body {
  overflow-x: hidden;
  margin: 0;
  background: #ffffff;
  font-family:
    Inter,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #111827;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.page {
  min-height: 100vh;
}

.page.landing-bg {
  background-color: var(--bg);
  background-image: radial-gradient(
    ellipse 130% 90% at 50% 0%,
    rgba(255, 255, 255, 1) 0%,
    rgba(44, 137, 251, 0.1) 21%,
    rgba(155, 132, 245, 0.15) 100%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 255, 0.88);
  border-bottom: 1px solid rgba(220, 230, 245, 0.9);
}

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

.nav-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
}

.nav-wrap-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.21rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.nav-wrap-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.nav-links a {
  position: static;
  left: auto;
  top: auto;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link-btn {
  display: flex;
  flex-wrap: wrap;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-link-btn:hover {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-links a:hover {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-links a.btn-primary,
.nav-wrap-end a.btn-primary {
  color: var(--bg);
}

.nav-links a.btn-primary:hover,
.nav-wrap-end a.btn-primary:hover {
  color: var(--bg);
}

.nav-links a.btn,
.nav-wrap-end a.btn {
  flex-shrink: 0;
}

.nav-links a.btn.btn-ghost,
.nav-wrap-end a.btn.btn-ghost {
  text-align: center;
  vertical-align: middle;
  font-family: 'Segoe UI', sans-serif;
  color: var(--brand-wordmark-start);
  width: 90px;
  height: 45px;
  background-color: var(--border);
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  border-color: rgba(255, 255, 255, 1);
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.mobile-menu-toggle {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(220, 230, 245, 0.8);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  border-radius: 0 0 16px 16px;
}

.mobile-menu-inner {
  padding: 0.9rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-menu-link {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  padding: 0.45rem 0.1rem;
}

.mobile-menu-auth-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.mobile-menu-auth-btn {
  flex: 1 1 0;
  min-height: 44px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.section {
  padding: 1.8rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: capitalize;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--primary), #2f8cff);
  color: var(--bg);
  box-shadow: 0 12px 22px rgba(32, 105, 197, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--primary-dark), #237ce4);
}

.btn-ghost {
  color: var(--muted);
  background: #fff;
  border: 2px solid rgba(220, 230, 245, 1);
  border-image: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  gap: 1rem;
}

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

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

.cards .card {
  padding: 1.25rem;
}

.cards article.card {
  padding-top: 10px;
  padding-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  padding: 1rem 1.1rem;
}

.feature-card-icon-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e7f1ff;
}

.feature-card-body {
  min-width: 0;
}

.feature-card-title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.feature-card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(236, 241, 254, 1) 0%, rgba(219, 234, 254, 1) 100%);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  align-self: center;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.credits-badge--lilac {
  background: linear-gradient(135deg, rgba(245, 240, 255, 0.98) 0%, rgba(237, 233, 254, 0.99) 100%);
  color: var(--Text-2);
  border-color: var(--brand-purple-border);
}

.credits-badge--mint {
  background: linear-gradient(135deg, rgba(236, 252, 202, 0.95) 0%, rgba(250, 255, 240, 0.98) 100%);
  color: rgba(73, 126, 93, 1);
  border-color: rgba(22, 163, 74, 0.35);
}

.fp-hero .credits-badge {
  flex-shrink: 0;
}

.credits-subtitle {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

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

.faq-card-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e7f1ff;
  margin-bottom: 0.75rem;
}

.faq-card h3 {
  margin-top: 0.1rem;
}

.faq-card p,
.cards .card p {
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-wrap {
  padding: 1.2rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a,
.footer p {
  color: var(--muted);
  text-decoration: none;
}

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

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1rem 0 1.35rem;
  }

  .footer-wrap > p {
    margin: 0;
    width: 100%;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.45rem;
    column-gap: 0.85rem;
    max-width: 42rem;
    margin: 0 auto;
  }

  .footer-links a {
    font-size: 0.88rem;
  }
}

/* ── Features Page (fp-*) ─────────────────────────────────────── */

.fp-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 3.5rem;
  padding-bottom: 1rem;
}

.fp-hero-heading {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.features-page .fp-hero-heading {
  font-size: 30px;
}

.features-page .fp-hero-heading .new-design-page-heading-accent {
  background-image: linear-gradient(
    115deg,
    var(--primary) 0%,
    var(--primary) 50%,
    var(--brand-purple) 50%,
    var(--brand-purple) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.fp-grid-section {
  padding-top: 0.5rem;
}

.fp-lucide-icon {
  color: var(--primary);
  display: block;
}

.features-grid .fp-feature-card:nth-child(3n + 1) .feature-card-icon-badge,
.faq-grid .faq-card:nth-child(3n + 1) .faq-card-icon-badge {
  background: #dbeafe;
}

.features-grid .fp-feature-card:nth-child(3n + 1) .fp-lucide-icon,
.faq-grid .faq-card:nth-child(3n + 1) .fp-lucide-icon {
  color: var(--primary);
}

.features-grid .fp-feature-card:nth-child(3n + 2) .feature-card-icon-badge,
.faq-grid .faq-card:nth-child(3n + 2) .faq-card-icon-badge {
  background-color: var(--credits-accent-bg);
}

.features-grid .fp-feature-card:nth-child(3n + 2) .fp-lucide-icon,
.faq-grid .faq-card:nth-child(3n + 2) .fp-lucide-icon {
  color: var(--credits-accent-fg);
}

.features-grid .fp-feature-card:nth-child(3n + 3) .feature-card-icon-badge,
.faq-grid .faq-card:nth-child(3n + 3) .faq-card-icon-badge {
  background: var(--brand-purple-soft-bg);
}

.features-grid .fp-feature-card:nth-child(3n + 3) .fp-lucide-icon,
.faq-grid .faq-card:nth-child(3n + 3) .fp-lucide-icon {
  color: var(--brand-purple);
}

.fp-value-card .fp-lucide-icon {
  color: var(--Text-2);
}

.fp-feature-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fp-feature-card:hover {
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.11);
  transform: translateY(-2px);
}

.fp-section-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.fp-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.fp-value-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  padding: 1.5rem 1.4rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fp-value-card:hover {
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.11);
  transform: translateY(-2px);
}

.fp-value-icon-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--brand-purple-soft-bg-medium);
}

.fp-value-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.fp-value-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.fp-cta-section {
  padding-bottom: 4rem;
}

@media (max-width: 900px) {
  .fp-cta-section {
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 600px) {
  .fp-cta-section {
    padding-bottom: 2rem;
  }
}

.fp-cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  min-height: 0;
  height: auto;
}

.fp-cta-copy {
  flex: 1 1 280px;
}

.fp-cta-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.fp-cta-text {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.6;
}

.fp-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.fp-cta-card.fp-cta-card--trust {
  background: linear-gradient(
    135deg,
    rgba(237, 242, 255, 0.98) 0%,
    rgba(243, 232, 255, 0.45) 55%,
    rgba(239, 246, 255, 0.75) 100%
  );
  border: 1px solid var(--pricing-trust-panel-border);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 24px rgba(17, 24, 39, 0.06);
  padding: 1.45rem 1.5rem 1.55rem;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.fp-cta-card--trust .fp-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.fp-cta-card--trust .fp-cta-copy {
  flex: 0 0 auto;
  width: 100%;
}

.fp-cta-card--trust .fp-cta-actions-wrap {
  width: 100%;
}

.fp-cta-card--trust .fp-cta-actions {
  width: 100%;
  margin-top: 0;
}

@media (max-width: 1024px) {
  .fp-cta-card {
    padding: 1.35rem 1.35rem;
    gap: 0.75rem;
  }

  .fp-cta-card.fp-cta-card--trust {
    padding: 1.25rem 1.35rem 1.35rem;
    gap: 0;
  }

  .fp-cta-card--trust .fp-cta-inner {
    gap: 0.55rem;
  }

  .fp-cta-heading {
    font-size: clamp(1.2rem, 3.5vw, 1.55rem);
    margin-bottom: 0.3rem;
  }

  .fp-cta-text {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .fp-cta-actions {
    gap: 0.55rem;
  }
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-col,
  .two-col,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .fp-value-grid {
    grid-template-columns: 1fr;
  }

  .fp-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem 1.2rem;
    gap: 0.55rem;
  }

  .fp-cta-card.fp-cta-card--trust {
    padding: 1.1rem 1.2rem 1.2rem;
    gap: 0;
  }

  .fp-cta-card--trust .fp-cta-inner {
    gap: 0.45rem;
  }

  .fp-cta-actions {
    width: 100%;
    margin-top: 0.15rem;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .fp-hero {
    padding-top: 2.5rem;
  }

  .fp-cta-card {
    padding: 1rem 1rem;
    gap: 0.45rem;
  }

  .fp-cta-card.fp-cta-card--trust {
    padding: 1rem 1rem 1.1rem;
    gap: 0;
  }

  .fp-cta-card--trust .fp-cta-inner {
    gap: 0.4rem;
  }

  .fp-cta-heading {
    margin-bottom: 0.2rem;
  }

  .fp-cta-text {
    margin-bottom: 0;
  }

  .fp-cta-actions {
    margin-top: 0.2rem;
    gap: 0.45rem;
    flex-direction: column;
    width: 100%;
  }

  .fp-cta-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.92rem;
  }

  .nav-wrap-end {
    margin-left: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 639px) {
  .brand-logo {
    height: 35px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1rem max(10px, env(safe-area-inset-left)) 1.25rem max(10px, env(safe-area-inset-right));
    box-sizing: border-box;
  }

  .footer-wrap > p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    width: 100%;
    justify-items: start;
    line-height: 1.3;
  }

  .footer-links a {
    font-size: 0.8rem;
    padding: 0.15rem 0;
    word-break: break-word;
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    min-height: 64px;
    padding: 0.7rem 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 0.75rem;
  }

  .nav-wrap-start {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .nav-wrap-end {
    margin-left: 0;
    flex: 0 0 auto;
    min-width: 0;
  }

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

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: 0;
    order: -1;
  }

  .mobile-menu.open,
  #static-nav-toggle:checked ~ nav.mobile-menu--static {
    display: block;
  }

  .mobile-menu {
    border-top-color: rgba(220, 230, 245, 0.65);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
  }

  #static-nav-toggle:checked ~ .container .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #static-nav-toggle:checked ~ .container .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  #static-nav-toggle:checked ~ .container .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
