@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@300;400;500;600;700;800&display=swap');

/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --primary: #7c6bf2;
  --primary-hover: #6a57e6;
  --secondary: #9a8bf5;
  --soft-purple: #bcb3f2;
  --light-block: #d8d2f5;
  --thread-green: #e6f0d4;
  --thread-orange: #fbead6;
  --thread-yellow: #fbf3dc;
  --thread-peach: #fbe4e4;
  --thread-blue: #e2edfb;
  --bg: #f3f4f7;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-2: #faf9fc;
  --text-dark: #1a1b22;
  --text-body: #3a3950;
  --text-muted: #6a697e;
  --text-light: #9b9aae;
  --success: #2e9e5b;
  --success-bg: #e6f7ed;
  --warning: #c77b10;
  --warning-bg: #fcf1dc;
  --error: #d44141;
  --error-bg: #fcebeb;
  --info-bg: #edeafb;
  --border: #e6e4f0;
  --border-strong: #d6d3e6;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(28, 27, 46, 0.05);
  --shadow-sm: 0 2px 8px rgba(28, 27, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(28, 27, 46, 0.06);
  --shadow-lg: 0 20px 52px rgba(28, 27, 46, 0.09);
  --shadow-xl: 0 28px 70px rgba(28, 27, 46, 0.16);
  --shadow-purple: 0 14px 36px rgba(124, 107, 242, 0.32);
  --font: 'Commissioner', system-ui, -apple-system, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.08rem;
}

p {
  text-wrap: pretty;
}

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

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

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

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

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 116px 0;
}

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

.section-header--wide {
  max-width: 900px;
}

.section-header p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--info-bg);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-label--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 107, 242, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: var(--info-bg);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 17px 36px;
  font-size: 1.04rem;
}

/* ─── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 0 20px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 14px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(28, 27, 46, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: auto;
  height: 44px;
}

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

.nav-links a {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-links .btn-primary,
.nav-links .btn-primary:hover {
  color: #fff;
}

.nav-links a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
}

.nav-links .btn {
  margin-left: 10px;
}

.mobile-menu-btn {
  display: none;
  border: 0;
  background: none;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-menu-btn .ic-close {
  display: none;
}

html.js .nav-links.show + .mobile-menu-btn .ic-burger {
  display: none;
}

html.js .nav-links.show + .mobile-menu-btn .ic-close {
  display: block;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 96px;
  background:
    radial-gradient(1100px 620px at 78% -8%, #e7e1fb 0%, rgba(231, 225, 251, 0) 60%),
    radial-gradient(900px 560px at 6% 18%, #f1ecdf 0%, rgba(241, 236, 223, 0) 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 26px;
  line-height: 1.08;
}

.hero .accent {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.hero .accent::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: 0.07em;
  left: -2px;
  z-index: -1;
  height: 0.34em;
  border-radius: 3px;
  background: linear-gradient(90deg, #ef9f4d 0%, #f1d44e 100%);
  opacity: 0.42;
}

.hero-sub {
  max-width: 540px;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 1.18rem;
  line-height: 1.64;
}

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

.hero-device-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.device-glow {
  position: absolute;
  top: 14%;
  left: -8%;
  z-index: 0;
  width: 116%;
  height: 70%;
  background: radial-gradient(circle, rgba(124, 107, 242, 0.24) 0%, transparent 70%);
  filter: blur(20px);
}

.device {
  position: relative;
  z-index: 2;
  width: 300px;
  padding: 10px;
  border-radius: 46px;
  background: #15141f;
  box-shadow: 0 40px 90px -20px rgba(28, 27, 46, 0.45), 0 0 0 1.5px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(-2.5deg);
  transition: transform 0.5s var(--ease-out);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 37px;
}

.hero-device-wrap:hover .device:not(.device--compact) {
  transform: rotate(0deg) translateY(-4px);
}

.device--compact {
  width: 286px;
  aspect-ratio: 717 / 1567;
  overflow: hidden;
  transform: rotate(-2deg);
}

.feature-phone {
  position: relative;
  background: linear-gradient(180deg, #14141f 0%, #111119 100%);
}

.feature-phone-screen {
  position: absolute;
  inset: 11px;
  overflow: hidden;
  border-radius: 39px;
  background: #f3f4f7;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
  pointer-events: none;
}

.feature-phone-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-phone-frame-wrap {
  --feature-frame-scale: 0.704;
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f4f7;
  overflow: hidden;
}

.feature-phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--feature-frame-scale));
  height: calc(100% / var(--feature-frame-scale));
  border: 0;
  background: #f3f4f7;
  transform: scale(var(--feature-frame-scale)) translateZ(0);
  transform-origin: top left;
  overflow: hidden;
  pointer-events: none;
}

.feature-ui {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.feature-ui--paper {
  background: #f3f4f7;
}

.feature-ui-scroll {
  position: absolute;
  inset: 54px 0 0;
  padding: 0 13px 86px;
}

.feature-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 0;
  color: #050505;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.feature-phone-status--light {
  color: rgba(255, 255, 255, 0.96);
}

.feature-phone-status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.feature-phone-signal,
.feature-phone-wifi,
.feature-phone-battery {
  display: block;
}

.feature-phone-signal {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background:
    linear-gradient(to top, currentColor 0 100%) left bottom / 2px 4px no-repeat,
    linear-gradient(to top, currentColor 0 100%) 4px bottom / 2px 6px no-repeat,
    linear-gradient(to top, currentColor 0 100%) 8px bottom / 2px 8px no-repeat,
    linear-gradient(to top, currentColor 0 100%) 12px bottom / 2px 10px no-repeat;
}

.feature-phone-wifi {
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 12px 12px 0 0;
}

.feature-phone-battery {
  position: relative;
  width: 21px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.feature-phone-battery::before {
  content: "";
  position: absolute;
  top: 3px;
  right: -4px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.feature-phone-battery::after {
  content: "";
  position: absolute;
  inset: 2px 6px 2px 2px;
  border-radius: 1px;
  background: currentColor;
}

.feature-phone-nav {
  position: absolute;
  right: 14px;
  bottom: 22px;
  left: 14px;
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
  align-items: center;
}

.feature-phone-nav-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 52px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(28, 27, 46, 0.12);
}

.feature-phone-nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: #8f90a4;
}

.feature-phone-nav-item.is-active {
  color: var(--text-dark);
}

.feature-phone-nav-dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #ece9ff;
}

.feature-phone-nav-item.is-active .feature-phone-nav-dot {
  background: #dcd4ff;
}

.feature-phone-nav-dot::before,
.feature-phone-nav-dot::after {
  content: "";
  position: absolute;
}

.feature-phone-nav-dot--diary::before {
  inset: 4px 5px;
  border: 1.6px solid #7c6bf2;
  border-radius: 4px;
}

.feature-phone-nav-dot--diary::after {
  top: 8px;
  left: 8px;
  width: 6px;
  height: 1.6px;
  background: #7c6bf2;
  box-shadow: 0 4px 0 #7c6bf2;
}

.feature-phone-nav-dot--pillbox::before {
  top: 6px;
  left: 4px;
  width: 14px;
  height: 8px;
  border: 1.6px solid #7c6bf2;
  border-radius: 999px;
  transform: rotate(-28deg);
}

.feature-phone-nav-dot--pillbox::after {
  top: 6px;
  left: 10px;
  width: 1.6px;
  height: 8px;
  background: #7c6bf2;
  transform: rotate(-28deg);
}

.feature-phone-nav-dot--profile::before {
  top: 4px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c6bf2;
}

.feature-phone-nav-dot--profile::after {
  bottom: 4px;
  left: 5px;
  width: 12px;
  height: 6px;
  border-radius: 6px 6px 3px 3px;
  background: #7c6bf2;
}

.feature-phone-nav-item small {
  font-size: 8px;
  font-weight: 600;
}

.feature-phone-fab {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(124, 107, 242, 0.34);
}

.feature-phone-fab::before,
.feature-phone-fab::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.feature-phone-fab::before {
  width: 18px;
  height: 2.6px;
}

.feature-phone-fab::after {
  width: 2.6px;
  height: 18px;
}

.feature-screen-title,
.feature-diary-head h3,
.feature-mood-hero h3 {
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.feature-diary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.feature-diary-head h3,
.feature-screen-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.feature-diary-head p,
.feature-card-subtitle,
.feature-device-chip,
.feature-pill-main p,
.feature-rec-card p,
.feature-doc-card p,
.feature-survey-card p,
.feature-metric-card small {
  color: #8a8da1;
}

.feature-diary-head p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
}

.feature-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 20, 30, 0.06);
}

.feature-week-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.feature-day-pill {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 0;
  border-radius: 14px;
  background: #fff;
  color: #8a8da1;
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
}

.feature-day-pill span {
  color: var(--text-dark);
  font-size: 14px;
}

.feature-day-indicator {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

.feature-day-indicator--dot::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7d9e2;
}

.feature-day-pill--active .feature-day-indicator--dot::before {
  background: #fff;
}

.feature-day-indicator--check::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 7px;
  border-right: 1.8px solid #7c6bf2;
  border-bottom: 1.8px solid #7c6bf2;
  transform: rotate(45deg);
}

.feature-day-pill--active .feature-day-indicator--check::before {
  border-color: #fff;
}

.feature-day-pill--active {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.76);
}

.feature-day-pill--active span {
  color: #fff;
}

.feature-card,
.feature-chart-card,
.feature-doctor-card,
.feature-pill-card,
.feature-rec-card,
.feature-doc-card,
.feature-survey-card,
.feature-list-row {
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 20, 30, 0.04);
}

.feature-card {
  padding: 12px;
  border-radius: 18px;
}

.feature-card + .feature-card,
.feature-date-group + .feature-date-group {
  margin-top: 8px;
}

.feature-card-title,
.feature-section-title {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.feature-card-subtitle {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}

.feature-mini-metrics,
.feature-metric-grid,
.feature-control-chips {
  display: grid;
  gap: 8px;
}

.feature-mini-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.feature-mini-metric,
.feature-metric-card {
  border-radius: 16px;
}

.feature-mini-metric {
  padding: 9px 8px;
}

.feature-mini-metric-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-mini-metric span,
.feature-metric-card span {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.feature-mini-metric-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.feature-mini-metric-icon--sleep {
  background-image: url("/static/img/feature-sleep.svg");
}

.feature-mini-metric-icon--steps {
  background-image: url("/static/img/feature-steps.svg");
}

.feature-mini-metric-icon--heart {
  background-image: url("/static/img/feature-heart.svg");
}

.feature-mini-metric strong,
.feature-metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.feature-mini-metric--blue,
.feature-metric-card--blue {
  background: #e8eeff;
}

.feature-mini-metric--sand,
.feature-metric-card--sand {
  background: #fff4d5;
}

.feature-mini-metric--rose,
.feature-metric-card--rose {
  background: #ffebea;
}

.feature-metric-card--mint {
  background: #e5f2e8;
}

.feature-card--note p {
  margin-top: 8px;
  color: #5f6277;
  font-size: 12px;
  line-height: 1.38;
}

.feature-note-chip,
.feature-pill-badge,
.feature-rec-tag,
.feature-mood-badge,
.feature-device-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.feature-note-chip {
  margin-top: 10px;
  background: #edeafb;
  color: #5b45e0;
}

.feature-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 999px;
  color: var(--text-dark);
  font-size: 14px;
}

.feature-list-row b {
  color: #7c6bf2;
  font-size: 13px;
}

.feature-action-btn,
.feature-wide-btn {
  border: 0;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
}

.feature-action-btn {
  height: 44px;
}

.feature-action-btn--ghost {
  background: #efeafd;
  color: #5b45e0;
}

.feature-ui-scroll--mood-done {
  padding-bottom: 112px;
}

.feature-mood-complete-head {
  text-align: center;
}

.feature-mood-complete-icon {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 6px auto 16px;
  place-items: center;
  border-radius: 24px;
  background: #efeafd;
}

.feature-mood-complete-check {
  width: 14px;
  height: 26px;
  border-right: 3px solid #7c6bf2;
  border-bottom: 3px solid #7c6bf2;
  transform: rotate(45deg) translate(-2px, -1px);
}

.feature-mood-complete-head h3 {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-mood-complete-head p {
  max-width: 210px;
  margin: 8px auto 0;
  color: #9a9caf;
  font-size: 12px;
  line-height: 1.42;
}

.feature-mood-streak {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 14px 13px;
  border-radius: 18px;
  background: #fff4d9;
}

.feature-mood-streak-thumb {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
}

.feature-mood-streak-thumb::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 13px;
  width: 12px;
  height: 10px;
  border: 2px solid #d79a16;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 6px 6px;
  transform: rotate(180deg);
}

.feature-mood-streak strong {
  display: block;
  color: #2c2c36;
  font-size: 12px;
  font-weight: 800;
}

.feature-mood-streak p {
  margin-top: 3px;
  color: #66687a;
  font-size: 11px;
  line-height: 1.3;
}

.feature-mood-dayline {
  display: flex;
  justify-content: space-between;
  margin: 16px 2px 10px;
  color: #9a9caf;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-mood-dayline b {
  font-size: 11px;
}

.feature-mood-results {
  display: grid;
  gap: 10px;
}

.feature-mood-row {
  display: grid;
  grid-template-columns: 42px 1fr 10px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 20, 30, 0.04);
}

.feature-mood-row-emoji {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  font-size: 22px;
}

.feature-mood-row--green .feature-mood-row-emoji { background: #e2f3e4; }
.feature-mood-row--rose .feature-mood-row-emoji { background: #fde7e7; }
.feature-mood-row--peach .feature-mood-row-emoji { background: #ffecdc; }
.feature-mood-row--yellow .feature-mood-row-emoji { background: #fff0d8; }
.feature-mood-row--blue .feature-mood-row-emoji { background: #e1ebfa; }

.feature-mood-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feature-mood-row-top span {
  color: #2c2c36;
  font-size: 12px;
  font-weight: 700;
}

.feature-mood-row-top b {
  color: #7c6bf2;
  font-size: 12px;
  font-weight: 800;
}

.feature-mood-row-bar {
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e6e6ef;
  overflow: hidden;
}

.feature-mood-row-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b3a6f8;
}

.feature-mood-row-chevron {
  position: relative;
  width: 8px;
  height: 14px;
}

.feature-mood-row-chevron::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid #c8cada;
  border-right: 2px solid #c8cada;
  transform: rotate(45deg);
}

.feature-mood-bottom {
  position: absolute;
  right: 12px;
  bottom: 20px;
  left: 12px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
}

.feature-mood-edit-btn,
.feature-mood-done-btn {
  border: 0;
  border-radius: 18px;
  font-family: var(--font);
}

.feature-mood-edit-btn {
  position: relative;
  height: 60px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 20, 30, 0.08);
}

.feature-mood-edit-btn::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 23px;
  width: 14px;
  height: 4px;
  border: 2px solid #6f7085;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

.feature-mood-done-btn {
  height: 60px;
  background: linear-gradient(180deg, #7d6cf3 0%, #735ff0 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(124, 107, 242, 0.25);
}

.feature-integrations-head {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.feature-integrations-head h3 {
  overflow: hidden;
  color: var(--text-dark);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-integrations-back {
  position: relative;
  width: 18px;
  height: 18px;
}

.feature-integrations-back::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-bottom: 2px solid #2c2c36;
  border-left: 2px solid #2c2c36;
  transform: rotate(45deg);
}

.feature-connect-card,
.feature-sync-card {
  padding: 14px;
  border: 1px solid #ece8f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(28, 27, 46, 0.06);
}

.feature-connect-card {
  text-align: center;
}

.feature-connect-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 2px auto 12px;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #7c6bf2;
}

.feature-connect-check {
  width: 16px;
  height: 28px;
  border-right: 3px solid #7c6bf2;
  border-bottom: 3px solid #7c6bf2;
  transform: rotate(45deg) translate(-3px, -1px);
}

.feature-connect-card strong,
.feature-sync-head strong {
  color: #7c6bf2;
  font-size: 16px;
  font-weight: 700;
}

.feature-connect-card p,
.feature-sync-head p,
.feature-integration-section > p,
.feature-sync-note {
  margin-top: 5px;
  color: #68697b;
  font-size: 11px;
  line-height: 1.3;
}

.feature-integration-section {
  margin-top: 16px;
}

.feature-integration-section h4 {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-access-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.feature-access-row {
  display: grid;
  grid-template-columns: 24px 1fr 22px;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid #ece8f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(28, 27, 46, 0.05);
}

.feature-access-row span {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
}

.feature-access-icon,
.feature-access-check,
.feature-sync-icon {
  position: relative;
}

.feature-access-icon {
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.feature-access-icon--steps {
  background-image: url("/static/img/feature-steps.svg");
}

.feature-access-icon--pulse {
  background-image: url("/static/img/feature-heart.svg");
}

.feature-access-icon--sleep {
  background-image: url("/static/img/feature-sleep.svg");
}

.feature-access-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c6bf2;
}

.feature-access-check::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -58%) rotate(45deg);
}

.feature-pill-section {
  margin-top: 10px;
}

.feature-pill-card {
  position: relative;
  margin-top: 7px;
  padding: 11px 34px 11px 11px;
  border-radius: 16px;
}

.feature-pill-card--muted {
  opacity: 0.84;
}

.feature-pill-main {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.feature-pill-main b,
.feature-doc-card b,
.feature-doctor-card strong,
.feature-rec-card b {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
}

.feature-pill-main p,
.feature-doc-card p,
.feature-doctor-card p,
.feature-rec-card p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
}

.feature-pill-icon,
.feature-doctor-avatar,
.feature-doc-icon {
  border-radius: 14px;
}

.feature-pill-icon {
  width: 34px;
  height: 34px;
  background: #edeafb;
}

.feature-pill-icon::before,
.feature-pill-icon::after {
  content: "";
  position: absolute;
}

.feature-pill-icon {
  position: relative;
  overflow: hidden;
}

.feature-pill-icon::before {
  top: 9px;
  left: 7px;
  width: 20px;
  height: 12px;
  border-radius: 999px;
  background: #7c6bf2;
  transform: rotate(-28deg);
}

.feature-pill-icon::after {
  top: 9px;
  left: 16px;
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(-28deg);
}

.feature-pill-icon--muted {
  background: #f4ecce;
}

.feature-pill-icon--muted::before {
  background: #ad8b2b;
}

.feature-pill-arrow {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #b9bccb;
  border-right: 2px solid #b9bccb;
  transform: translateY(-50%) rotate(45deg);
}

.feature-wide-btn {
  width: 100%;
  height: 46px;
  margin-top: 12px;
}

.feature-pill-add-btn {
  position: relative;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #efeafd;
  color: #5b45e0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
}

.feature-pill-add-btn::before,
.feature-pill-add-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 78px);
  background: #5b45e0;
  transform: translateY(-50%);
  border-radius: 999px;
}

.feature-pill-add-btn::before {
  width: 12px;
  height: 2px;
}

.feature-pill-add-btn::after {
  width: 2px;
  height: 12px;
  transform: translateY(-50%) translateX(5px);
}

.feature-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-top: 10px;
  border-radius: 12px;
  background: #eceaf3;
}

.feature-tab {
  height: 32px;
  border-radius: 9px;
  color: #8d8fa3;
  font-size: 11px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.feature-tab--active {
  background: #fff;
  color: var(--text-dark);
}

.feature-ui-scroll--recommend {
  padding-bottom: 90px;
}

.feature-rx-tabs {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4px;
  padding: 4px;
  margin-top: 10px;
  border-radius: 12px;
  background: #eceaf3;
}

.feature-rx-tab {
  height: 32px;
  border-radius: 9px;
  color: #8d8fa3;
  font-size: 10px;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
}

.feature-rx-tab--active {
  background: #fff;
  color: var(--text-dark);
}

.feature-rx-doctor,
.feature-rx-sheet,
.feature-rx-control {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 20, 30, 0.04);
}

.feature-rx-doctor {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
}

.feature-rx-doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3dbff 0%, #ccbfff 100%);
}

.feature-rx-doctor-copy span,
.feature-rx-note {
  color: #8a8da1;
  font-size: 10px;
  font-weight: 700;
}

.feature-rx-doctor-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
}

.feature-rx-doctor-copy p {
  margin-top: 2px;
  color: #8a8da1;
  font-size: 11px;
  line-height: 1.25;
}

.feature-rx-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feature-rx-section-head span {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
}

.feature-rx-section-head b {
  color: #8a8da1;
  font-size: 11px;
  font-weight: 700;
}

.feature-rx-slot {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}

.feature-rx-slot-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2efff;
  color: #5b45e0;
  font-size: 10px;
  font-weight: 800;
}

.feature-rx-drug {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 10px;
  border-radius: 16px;
  background: #fbfbfe;
  border: 1px solid #efedf7;
}

.feature-rx-drug-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #edeafb;
  overflow: hidden;
}

.feature-rx-drug-icon::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 6px;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: #7c6bf2;
  transform: rotate(-28deg);
}

.feature-rx-drug-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 14px;
  width: 2px;
  height: 10px;
  background: rgba(255, 255, 255, 0.82);
  transform: rotate(-28deg);
}

.feature-rx-drug-copy strong {
  display: block;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 800;
}

.feature-rx-drug-copy p {
  margin-top: 2px;
  color: #8a8da1;
  font-size: 10px;
  line-height: 1.3;
}

.feature-rx-slot--muted {
  align-items: center;
}

.feature-rx-empty {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f6fa;
  color: #9a9caf;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-rx-control-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.feature-rx-control-chips span {
  display: grid;
  min-height: 32px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #edeafb;
  color: #5b45e0;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.feature-rx-note {
  margin-top: 10px;
  line-height: 1.35;
}

.feature-doctor-card,
.feature-rec-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
}

.feature-doctor-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: center;
}

.feature-doctor-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #e3dbff 0%, #ccbfff 100%);
}

.feature-rec-tag {
  background: #efeafd;
  color: #5b45e0;
}

.feature-rec-tag--peach {
  background: #fbe4e4;
  color: #9f5353;
}

.feature-rec-card b {
  display: block;
  margin-top: 8px;
}

.feature-rec-card--soft {
  background: #fff9fb;
}

.feature-control-row {
  margin-top: 10px;
}

.feature-control-row > span {
  color: #7f8194;
  font-size: 11px;
  font-weight: 700;
}

.feature-control-chips {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.feature-control-chips span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #edeafb;
  color: #5b45e0;
  font-size: 10px;
  font-weight: 700;
}

.feature-search {
  display: flex;
  align-items: center;
  height: 40px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 22px;
  background: #e2e0ea;
  color: #8f90a4;
  font-size: 11px;
  font-weight: 600;
}

.feature-filter-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.feature-filter-row span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  color: #8f90a4;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.feature-filter-row .is-active {
  background: #edeafb;
  color: #5b45e0;
}

.feature-date-group {
  margin-top: 12px;
}

.feature-date-group small {
  color: #8f90a4;
  font-size: 10px;
  font-weight: 700;
}

.feature-doc-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 7px;
  padding: 10px;
  border-radius: 16px;
}

.feature-doc-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8efff;
}

.feature-doc-icon::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 14px;
  height: 18px;
  border-radius: 4px;
  background: #7e95d8;
}

.feature-doc-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 13px;
  width: 6px;
  height: 1.6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.9), 0 8px 0 rgba(255, 255, 255, 0.9);
}

.feature-doc-icon--loading {
  background: #f4ebcf;
}

.feature-doc-icon--loading::before {
  background: #bb9b44;
}

.feature-doc-icon--loading::after {
  position: absolute;
  inset: 1px;
  border: 2px solid #6d5f33;
  border-right-color: transparent;
  border-radius: 50%;
  box-shadow: none;
}

.feature-docs-add-btn {
  position: absolute;
  right: 12px;
  bottom: 18px;
  left: 12px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #7c6bf2;
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(124, 107, 242, 0.24);
}

.feature-docs-add-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 66px);
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top: 0;
  border-left: 0;
  transform: translateY(-60%) rotate(45deg);
}


.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  height: 56px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
}

.store-badge:hover {
  color: #fff;
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-badge svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  line-height: 1.12;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.85;
}

.store-badge strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.store-badge--light {
  background: #fff;
  color: #1f1e35;
  border-color: #fff;
}

.store-badge--light:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #1f1e35;
}

.store-badge--light small {
  opacity: 0.6;
}

/* ─── How It Works ──────────────────────────────────────────────────────── */
.how-section {
  background: var(--surface);
}

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

.how-step,
.fs-item,
.download-meta-card,
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
}

.how-step {
  padding: 34px 30px 30px;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.how-step:hover,
.fs-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.how-ico,
.feature-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-ico {
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border-radius: 17px;
}

.how-step:nth-child(1) .how-ico {
  background: var(--info-bg);
  color: #5b45e0;
}

.how-step:nth-child(2) .how-ico {
  background: var(--thread-yellow);
  color: #8a6a14;
}

.how-step:nth-child(3) .how-ico {
  background: var(--thread-green);
  color: #4f6b29;
}

.how-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 9px;
}

.how-num {
  font-size: 1.1rem;
  font-weight: 800;
}

.how-step p,
.fs-tx p,
.download-copy p,
.faq-a-inner,
.footer-brand p,
.footer-links {
  color: var(--text-muted);
}

.features-showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 60px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.fs-visual {
  display: flex;
  justify-content: center;
}

.fs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
}

.fs-item.is-active {
  transform: translateY(-4px);
  border-color: rgba(124, 107, 242, 0.22);
  box-shadow: var(--shadow-md);
}

.feature-ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  margin-bottom: 0;
  border-radius: 13px;
}

.ico-purple {
  background: var(--info-bg);
  color: #5b45e0;
}

.ico-blue {
  background: var(--thread-blue);
  color: #2660c4;
}

.ico-orange {
  background: var(--thread-orange);
  color: #9a5a16;
}

.ico-yellow {
  background: var(--thread-yellow);
  color: #8a6a14;
}

.ico-peach {
  background: var(--thread-peach);
  color: #a64f4f;
}

.ico-green {
  background: var(--thread-green);
  color: #4f6b29;
}

.fs-tx h4 {
  margin-bottom: 3px;
  font-size: 1.06rem;
}

.fs-tx p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── Download CTA ──────────────────────────────────────────────────────── */
.download-section {
  padding-top: 88px;
}

.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 64px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #7c6bf2 0%, #9a8bf5 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.download-copy h2 {
  margin-bottom: 16px;
  color: #fff;
}

.download-copy p {
  max-width: 440px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.download-meta-card {
  display: flex;
  flex: 1;
  gap: 14px;
  align-items: center;
  min-width: 260px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.download-meta-card img {
  width: 28px;
  height: 28px;
}

.download-meta-card b {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.download-meta-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq-section {
  padding-top: 100px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-item.open {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 26px;
  border: 0;
  background: none;
  color: var(--text-dark);
  font-family: var(--font);
  font-size: 1.04rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q:hover {
  color: var(--primary);
}

.chev {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--info-bg);
  color: var(--primary);
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .chev {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-item.open .faq-a {
  max-height: 340px;
}

.faq-a-inner {
  padding: 0 26px 24px;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  padding: 72px 0 36px;
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.66);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.35fr 1.55fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-contacts {
  min-width: 0;
}

.footer-info {
  min-width: 0;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.footer-badges .store-badge,
.footer-badges .store-badge:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  font-size: 0.9rem;
}

.footer-links + h4 {
  margin-top: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer--light {
  background: var(--surface-2);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer--light h4,
.footer--light .nav-logo,
.footer--light a:hover {
  color: var(--text-dark);
}

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

.footer--light .footer-bottom {
  border-top-color: var(--border);
  color: var(--text-light);
}

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

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid,
  .features-showcase,
  .download-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1,
  .hero-sub {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .store-row,
  .download-meta {
    justify-content: center;
  }

  .hero-device-wrap,
  .fs-visual {
    order: -1;
  }

  .feature-phone {
    transform: none;
  }

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

  .download-card {
    padding: 56px 40px;
    text-align: center;
  }

  .download-copy p {
    margin-right: auto;
    margin-left: auto;
  }

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

  html.js .nav-links {
    display: none;
  }

  html.js .mobile-menu-btn {
    display: block;
  }

  html.js .nav-links.show {
    position: absolute;
    top: calc(var(--nav-height) + 10px);
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }

  html.js .nav-links.show .btn {
    width: 100%;
    margin-top: 8px;
    margin-left: 0;
  }

  html.no-js .nav {
    position: static;
    padding: 0;
  }

  html.no-js .nav-inner {
    flex-direction: column;
    height: auto;
    gap: 10px;
    border-radius: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  html.no-js .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .download-section {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 640px) {
  .download-section {
    padding-right: 0;
    padding-left: 0;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 124px 0 64px;
  }

  .hero-sub {
    font-size: 1.06rem;
  }

  .hero-actions,
  .store-row {
    justify-content: center;
  }

  .hero-actions .btn,
  .hero-actions .store-badge,
  .store-row .store-badge {
    justify-content: center;
  }

  .device,
  .device--compact {
    width: min(300px, 100%);
  }

  .feature-phone-screen {
    inset: 9px;
    border-radius: 34px;
  }

  .feature-ui-scroll {
    padding-right: 12px;
    padding-left: 12px;
  }

  .download-card {
    padding: 44px 26px;
    border-radius: 0;
  }

  .download-meta-card {
    min-width: 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
