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

:root {
  color-scheme: dark;
  --page: #08162a;
  --page-deep: #050d19;
  --surface: #13233d;
  --surface-soft: #102039;
  --surface-raised: #182b49;
  --text: #e6ecf7;
  --text-muted: #b4c0d6;
  --text-soft: #8394b3;
  --line: #2d4265;
  --line-soft: rgba(91, 111, 146, 0.38);
  --coral: #ff6b5b;
  --coral-hover: #ff8174;
  --teal: #59b8a4;
  --teal-bright: #6dcab6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --header: rgba(8, 22, 42, 0.88);
  --device: #02060c;
  --device-screen: #0b172a;
  --device-card: #13233d;
  --device-text: #edf3ff;
  --device-muted: #96a8c6;
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --page-deep: #f1f4f8;
  --surface: #f4f6f9;
  --surface-soft: #edf1f6;
  --surface-raised: #ffffff;
  --text: #11141a;
  --text-muted: #566174;
  --text-soft: #7f899b;
  --line: #d7dee8;
  --line-soft: rgba(17, 20, 26, 0.12);
  --coral-hover: #e84532;
  --shadow: 0 24px 70px rgba(30, 42, 62, 0.15);
  --header: rgba(255, 255, 255, 0.9);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 180ms ease, color 180ms ease;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--coral);
  color: #ffffff;
  padding: 10px 14px;
  text-decoration: none;
}

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

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.icon-sun { mask-image: url("/lilcoach/assets/icons/sun.svg"); }
.icon-moon { mask-image: url("/lilcoach/assets/icons/moon.svg"); }
.icon-menu { mask-image: url("/lilcoach/assets/icons/menu.svg"); }
.icon-close { mask-image: url("/lilcoach/assets/icons/x.svg"); }
.icon-chevron { mask-image: url("/lilcoach/assets/icons/chevron-down.svg"); }
.icon-arrow-down { mask-image: url("/lilcoach/assets/icons/arrow-down.svg"); }
.icon-check { mask-image: url("/lilcoach/assets/icons/check.svg"); }
.icon-globe { mask-image: url("/lilcoach/assets/icons/globe.svg"); }
.icon-circle-check { mask-image: url("/lilcoach/assets/icons/circle-check.svg"); }
.icon-recover { mask-image: url("/lilcoach/assets/icons/rotate-ccw.svg"); }
.icon-chart { mask-image: url("/lilcoach/assets/icons/chart-no-axes-column-increasing.svg"); }
.icon-cloud { mask-image: url("/lilcoach/assets/icons/cloud.svg"); }
.icon-health { mask-image: url("/lilcoach/assets/icons/heart-pulse.svg"); }
.icon-ai { mask-image: url("/lilcoach/assets/icons/sparkles.svg"); }
.icon-bell { mask-image: url("/lilcoach/assets/icons/bell.svg"); }
.icon-timer { mask-image: url("/lilcoach/assets/icons/timer.svg"); }
.icon-note { mask-image: url("/lilcoach/assets/icons/notebook-pen.svg"); }
.icon-shield { mask-image: url("/lilcoach/assets/icons/shield-check.svg"); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line-soft);
}

.nav {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-mark-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-mark {
  position: absolute;
  inset: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-mark-light {
  display: none;
}

html[data-theme="light"] .brand-mark-dark {
  display: none;
}

html[data-theme="light"] .brand-mark-light {
  display: block;
}

.brand-name {
  font-family: Sora, "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links a {
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 11px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.nav-divider {
  width: 1px;
  height: 18px;
  margin: 0 5px;
  background: var(--line-soft);
}

.nav-links .ecosystem-link {
  color: var(--text-soft);
  font-weight: 600;
}

.nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.language-switcher > summary,
.menu-button {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text-muted);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.language-switcher > summary:hover,
.language-switcher > summary:focus-visible,
.menu-button:hover,
.menu-button:focus-visible {
  border-color: var(--line);
  color: var(--text);
  outline: none;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: inline-block;
}

.language-switcher {
  position: relative;
}

.language-switcher > summary {
  min-width: 66px;
  gap: 6px;
  padding: 0 9px;
  list-style: none;
}

.language-switcher > summary::-webkit-details-marker {
  display: none;
}

.language-switcher > summary .icon {
  width: 15px;
  height: 15px;
}

.language-switcher > summary .icon-chevron {
  width: 13px;
  height: 13px;
  transition: transform 150ms ease;
}

.language-switcher[open] > summary .icon-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 174px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 10px 12px;
  text-decoration: none;
}

.language-menu a + a {
  border-top: 1px solid var(--line-soft);
}

.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.language-menu strong {
  color: var(--text-soft);
  font-size: 11px;
}

.menu-button {
  display: none;
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 94px 0 44px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 540px;
}

.hero h1,
.section-title,
.section-intro h2,
.plans-heading h2,
.faq-heading h2 {
  margin: 0;
  font-family: Sora, "DM Sans", sans-serif;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(66px, 7vw, 102px);
  font-weight: 800;
  line-height: 0.94;
}

.hero-headline {
  max-width: 520px;
  margin: 26px 0 0;
  font-family: Sora, "DM Sans", sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.12;
}

.hero-lede {
  max-width: 510px;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  border-bottom: 2px solid var(--coral);
  color: var(--text);
  font-weight: 800;
  padding: 4px 0 7px;
  text-decoration: none;
}

.text-action .icon {
  width: 17px;
  height: 17px;
  color: var(--coral);
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--coral);
  outline: none;
}

.hero-device-stage {
  position: relative;
  min-height: 660px;
}

.app-shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 8px solid #111f35;
  border-radius: 42px;
  background: #000000;
  box-shadow: var(--shadow);
  line-height: 0;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.phone {
  position: relative;
  width: 250px;
  min-height: 512px;
  overflow: hidden;
  border: 8px solid var(--device);
  border-radius: 36px;
  background: var(--device-screen);
  color: var(--device-text);
  box-shadow: var(--shadow);
}

.phone::before {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 21px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: #000000;
  content: "";
}

.hero-phone-primary {
  position: absolute;
  top: 0;
  left: 24px;
  z-index: 2;
  width: 294px;
}

.hero-phone-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 252px;
  transform: rotate(1.5deg);
}

.phone-screen {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  padding: 34px 13px 12px;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--device-muted);
  font-size: 9px;
  font-weight: 800;
}

.phone-status span:last-child {
  letter-spacing: 2px;
}

.phone-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.phone-heading h3 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.phone-heading p {
  margin: 5px 0 0;
  color: var(--device-muted);
  font-size: 10px;
}

.phone-date {
  color: var(--teal-bright);
  font-size: 10px;
  font-weight: 800;
}

.phone-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid rgba(109, 202, 182, 0.25);
  border-radius: 8px;
  background: var(--device-card);
  padding: 12px;
}

.phone-progress strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 20px;
}

.phone-progress small {
  color: var(--device-muted);
  font-size: 9px;
}

.progress-meter {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 5px solid #24445a;
  border-top-color: var(--teal-bright);
  border-right-color: var(--teal-bright);
  border-radius: 50%;
  color: var(--device-text);
  font-size: 9px;
  font-weight: 800;
}

.phone-section-label {
  margin: 16px 0 8px;
  color: var(--device-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.habit-list,
.recovery-list,
.coach-list {
  display: grid;
  gap: 7px;
}

.habit-row,
.recovery-row,
.coach-row {
  display: grid;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(91, 111, 146, 0.25);
  border-radius: 7px;
  background: var(--device-card);
  padding: 9px 10px;
}

.habit-row {
  grid-template-columns: 21px 1fr auto;
}

.recovery-row {
  grid-template-columns: 1fr auto;
}

.coach-row {
  grid-template-columns: 24px 1fr;
}

.habit-row .icon,
.coach-row .icon {
  width: 16px;
  height: 16px;
  color: var(--teal-bright);
}

.habit-row strong,
.recovery-row strong,
.coach-row strong {
  display: block;
  font-size: 10px;
  line-height: 1.25;
}

.habit-row small,
.recovery-row small,
.coach-row small {
  display: block;
  margin-top: 2px;
  color: var(--device-muted);
  font-size: 8px;
  line-height: 1.25;
}

.habit-check {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid #3f587c;
  border-radius: 50%;
}

.habit-check.done {
  border-color: var(--teal-bright);
  background: var(--teal);
}

.habit-check.done .icon {
  width: 10px;
  height: 10px;
  color: #061a1a;
}

.recover-summary {
  margin-top: 18px;
  border: 1px solid rgba(255, 107, 91, 0.3);
  border-radius: 8px;
  background: rgba(255, 107, 91, 0.08);
  padding: 12px;
}

.recover-summary strong {
  font-family: Sora, sans-serif;
  font-size: 13px;
}

.recover-summary p {
  margin: 5px 0 0;
  color: var(--device-muted);
  font-size: 9px;
}

.mood-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.mood-row span {
  border: 1px solid #314768;
  border-radius: 6px;
  color: var(--device-muted);
  font-size: 8px;
  padding: 6px 2px;
  text-align: center;
}

.mood-row span.active {
  border-color: var(--coral);
  color: var(--coral);
}

.recovery-row.selected {
  border-color: var(--teal);
}

.recovery-row em {
  color: var(--teal-bright);
  font-size: 8px;
  font-style: normal;
}

.phone-action {
  margin-top: auto;
  border: 0;
  border-radius: 7px;
  background: var(--coral);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 11px;
}

.phone-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 12px;
  border-top: 1px solid #263a5a;
  padding-top: 9px;
}

.phone-nav span {
  color: var(--device-muted);
  font-size: 7px;
  text-align: center;
}

.phone-nav span.active {
  color: var(--coral);
  font-weight: 800;
}

.section {
  border-bottom: 1px solid var(--line-soft);
  padding: 112px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(360px, 1.24fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-intro h2,
.plans-heading h2,
.faq-heading h2 {
  font-size: clamp(36px, 4.3vw, 62px);
  font-weight: 800;
  line-height: 1.05;
}

.section-intro > p:last-child,
.plans-heading p,
.faq-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.usage-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.usage-step {
  min-height: 238px;
  padding: 28px 26px 30px;
}

.usage-step + .usage-step {
  border-left: 1px solid var(--line);
}

.step-number {
  color: var(--coral);
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.usage-step h3 {
  margin: 52px 0 10px;
  font-family: Sora, sans-serif;
  font-size: 21px;
  line-height: 1.2;
}

.usage-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.workflow {
  background: var(--page-deep);
}

.workflow .section-intro {
  margin-bottom: 52px;
}

.workflow-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.workflow-item {
  min-width: 0;
}

.workflow-meta {
  min-height: 126px;
  border-top: 2px solid var(--line);
  padding: 20px 4px 22px;
}

.workflow-item:nth-child(1) .workflow-meta {
  border-color: var(--coral);
}

.workflow-item:nth-child(2) .workflow-meta,
.workflow-item:nth-child(3) .workflow-meta {
  border-color: var(--teal);
}

.workflow-meta span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.workflow-meta h3 {
  margin: 9px 0 6px;
  font-family: Sora, sans-serif;
  font-size: 24px;
}

.workflow-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.workflow-phone-wrap {
  display: grid;
  min-height: 570px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px 18px 0;
}

.workflow-phone-wrap .app-shot {
  width: min(248px, 86%);
  transform: translateY(38px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.feature-index {
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 27px 0;
}

.feature-row > span {
  color: var(--text-soft);
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.feature-row h3 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 21px;
  line-height: 1.25;
}

.feature-row p {
  margin: 0;
  color: var(--text-muted);
}

.principles {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
  margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 34px 38px;
}

.coach-quote {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: center;
}

.coach-quote img {
  width: 104px;
  max-height: 140px;
  object-fit: contain;
}

.coach-quote blockquote {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.coach-quote cite {
  display: block;
  margin-top: 9px;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

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

.principle-list div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.principle-list .icon {
  color: var(--teal-bright);
}

.principle-list strong {
  display: block;
  margin-top: 12px;
  font-family: Sora, sans-serif;
  font-size: 14px;
}

.principle-list p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.plans-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.plans-layout > *,
.faq-layout > * {
  min-width: 0;
}

.plans-heading,
.faq-heading {
  position: sticky;
  top: 104px;
}

.plans-heading h2,
.faq-heading h2 {
  font-size: clamp(36px, 4vw, 54px);
}

.plans-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plans-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.plans-table th,
.plans-table td {
  width: 25%;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.plans-table th:last-child,
.plans-table td:last-child {
  border-right: 0;
}

.plans-table tbody tr:last-child td {
  border-bottom: 0;
}

.plans-table thead th {
  background: var(--surface);
}

.plans-table thead th:first-child {
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.plan-name {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 22px;
}

.plans-table td {
  color: var(--text-muted);
  font-size: 14px;
}

.plans-table td:first-child {
  color: var(--text);
  font-weight: 700;
}

.plans-table .yes {
  color: var(--teal-bright);
}

.plans-table .no {
  color: var(--text-soft);
}

.plans-note {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

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

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

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: Sora, sans-serif;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  padding: 20px 4px;
}

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

.faq-list summary .icon {
  color: var(--text-soft);
  transition: transform 150ms ease;
}

.faq-list details[open] summary .icon {
  transform: rotate(180deg);
}

.faq-list details p {
  max-width: 720px;
  margin: -4px 0 0;
  color: var(--text-muted);
  padding: 0 44px 24px 4px;
}

.site-footer {
  background: var(--page-deep);
  padding: 58px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 0.42fr));
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Sora, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer-copy {
  max-width: 300px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 3px;
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  padding-top: 22px;
}

.footer-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.footer-languages a {
  text-decoration: none;
}

.footer-languages a[aria-current="page"],
.footer-languages a:hover,
.footer-languages a:focus-visible {
  color: var(--text);
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--page);
    padding: 18px 24px 26px;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 16px;
    padding: 14px 4px;
  }

  .nav-divider {
    display: none;
  }

  .nav-links .ecosystem-start {
    margin-top: 8px;
    border-top: 1px solid var(--line-soft);
  }

  .menu-button {
    display: inline-flex;
  }

  .menu-button .icon-close {
    display: none;
  }

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

  .menu-button[aria-expanded="true"] .icon-close {
    display: inline-block;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-device-stage {
    width: min(650px, 100%);
    min-height: 650px;
    margin-inline: auto;
  }

  .hero-phone-primary {
    left: 12%;
  }

  .hero-phone-secondary {
    right: 12%;
  }

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

  .usage-step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .usage-step:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .workflow-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
  }

  .workflow-item {
    scroll-snap-align: start;
  }

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

  .plans-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .plans-heading,
  .faq-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 620px);
  }

  .nav {
    min-height: 60px;
    gap: 12px;
  }

  .nav-links {
    top: 60px;
    max-height: calc(100vh - 60px);
  }

  .language-switcher > summary {
    min-width: 42px;
    padding: 0 8px;
  }

  .language-switcher > summary .icon-globe,
  .language-switcher > summary .icon-chevron {
    display: none;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 92px 0 0;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .hero-headline {
    margin-top: 20px;
    font-size: clamp(27px, 8vw, 38px);
  }

  .hero-lede {
    margin-top: 20px;
    font-size: 16px;
  }

  .text-action {
    margin-top: 24px;
  }

  .hero-device-stage {
    min-height: 275px;
    overflow: hidden;
  }

  .phone {
    width: 190px;
    min-height: 390px;
    border-width: 6px;
    border-radius: 28px;
  }

  .phone::before {
    top: 7px;
    width: 60px;
    height: 16px;
  }

  .hero-phone-primary {
    top: 0;
    left: 3%;
    width: 160px;
  }

  .hero-phone-secondary {
    right: 1%;
    bottom: 0;
    width: 150px;
  }

  .phone-screen {
    padding: 27px 10px 9px;
  }

  .phone-heading {
    margin-top: 13px;
  }

  .phone-heading h3 {
    font-size: 17px;
  }

  .phone-progress {
    margin-top: 12px;
    padding: 9px;
  }

  .progress-meter {
    width: 36px;
    height: 36px;
  }

  .habit-list,
  .recovery-list,
  .coach-list {
    gap: 5px;
  }

  .habit-row,
  .recovery-row,
  .coach-row {
    padding: 7px;
  }

  .habit-row:nth-child(n + 4),
  .recovery-row:nth-child(n + 3) {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .hero + .section {
    padding-top: 40px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 42px;
  }

  .section-intro h2,
  .plans-heading h2,
  .faq-heading h2 {
    font-size: 36px;
  }

  .section-intro > p:last-child,
  .plans-heading p,
  .faq-heading p {
    font-size: 16px;
  }

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

  .usage-step {
    min-height: 0;
    padding: 24px 4px 28px;
  }

  .usage-step + .usage-step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .usage-step h3 {
    margin-top: 24px;
  }

  .workflow-grid {
    grid-template-columns: repeat(3, minmax(260px, 82vw));
    gap: 16px;
    padding-right: 16px;
  }

  .workflow-phone-wrap {
    min-height: 470px;
  }

  .workflow-phone-wrap .app-shot {
    width: 205px;
  }

  .feature-row {
    grid-template-columns: 42px 1fr;
    gap: 10px 16px;
    padding: 23px 0;
  }

  .feature-row p {
    grid-column: 2;
  }

  .principles {
    gap: 32px;
    margin-top: 52px;
    padding: 26px 22px;
  }

  .coach-quote {
    grid-template-columns: 76px 1fr;
  }

  .coach-quote img {
    width: 72px;
    max-height: 96px;
  }

  .coach-quote blockquote {
    font-size: 17px;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .principle-list div {
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 12px;
  }

  .principle-list strong {
    margin: 0;
  }

  .principle-list p {
    grid-column: 2;
  }

  .plans-table-wrap {
    margin-right: 0;
  }

  .faq-list summary {
    min-height: 68px;
    font-size: 15px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
