:root {
  --background: #f6f8fa;
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --border: #d0d7de;
  --border-soft: #d8e0db;
  --text: #24292f;
  --text-secondary: #57606a;
  --text-muted: #6e7781;
  --accent: #1f883d;
  --accent-pressed: #176f2f;
  --info: #0969da;
  --info-subtle: #eff7ff;
  --danger: #cf222e;
  --danger-subtle: #fff5f5;
  --success-subtle: #dcfce7;
  --warning: #f9b305;
  --planner: #d63384;
  --recovery: #7c3aed;
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius-card: 12px;
  --shadow-soft: 0 18px 46px rgba(31, 35, 40, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px 12px;
  color: var(--text);
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 248, 250, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.site-nav a {
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

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

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-control);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.header-action {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.header-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

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

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

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

.mobile-nav summary span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-secondary);
}

.mobile-nav[open] summary,
.mobile-nav summary:hover,
.mobile-nav summary:focus-visible {
  border-color: var(--text-secondary);
  outline: none;
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(280px, calc(100vw - 24px));
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 8px;
}

.mobile-nav-panel a {
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

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

.button img {
  width: 18px;
  height: 18px;
}

.button-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
  outline: none;
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--text-secondary);
  outline: none;
}

.hero {
  min-height: min(720px, calc(100svh - 88px));
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(#f6f8fa, #f6f8fa) padding-box,
    repeating-linear-gradient(
      90deg,
      rgba(208, 215, 222, 0.34) 0,
      rgba(208, 215, 222, 0.34) 1px,
      transparent 1px,
      transparent 72px
    );
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-items: center;
  gap: 22px;
  padding: 40px 0 22px;
}

.hero-copy-block {
  max-width: 760px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-grid;
  min-width: 150px;
  min-height: 52px;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 8px 14px;
  color: var(--text);
  line-height: 1.2;
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.08);
}

.store-badge strong {
  font-size: 15px;
  font-weight: 800;
}

.store-badge em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 590px;
  margin: 22px auto 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.hero-facts div {
  padding: 12px 14px;
}

.hero-facts div + div {
  border-left: 1px solid var(--border);
}

.hero-facts dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.product-stage {
  width: min(420px, 100%);
  display: flex;
  justify-content: center;
  align-self: end;
  max-height: 310px;
  overflow: hidden;
}

.device-frame {
  width: min(320px, 88vw);
  aspect-ratio: 390 / 780;
  border: 1px solid #1f2328;
  border-radius: 34px;
  background: #24292f;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.device-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  background: var(--background);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.status-dots {
  display: inline-flex;
  gap: 4px;
}

.status-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.app-bar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 8px 14px;
}

.app-bar strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.app-bar span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.icon-button img {
  width: 18px;
  height: 18px;
}

.phone-scroll {
  flex: 1;
  overflow: hidden;
  padding: 14px;
}

.summary-panel,
.recovery-panel,
.mock-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.summary-panel {
  padding: 14px;
}

.summary-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-panel strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.2;
}

.summary-panel p,
.recovery-panel p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.mock-section {
  margin-top: 16px;
}

.mock-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.mock-section-header img {
  width: 16px;
  height: 16px;
}

.mock-section-header h2 {
  flex: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.mock-section-header span {
  color: var(--text-muted);
  font-size: 12px;
}

.mock-list {
  overflow: hidden;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.mock-row + .mock-row {
  border-top: 1px solid var(--border);
}

.mock-row > div {
  min-width: 0;
  flex: 1;
}

.mock-row strong {
  display: block;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 13px;
}

.mock-row span {
  display: block;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-row button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px 9px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 500;
}

.badges img {
  width: 12px;
  height: 12px;
}

.recovery-panel {
  margin-top: 12px;
  padding: 12px;
  background: #fbf9ff;
  border-color: rgba(124, 58, 237, 0.26);
}

.recovery-panel div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--recovery);
  font-size: 13px;
}

.recovery-panel img {
  width: 18px;
  height: 18px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 4px 10px;
}

.bottom-nav span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav img {
  width: 18px;
  height: 18px;
}

.bottom-nav .active {
  color: var(--text);
}

.bottom-nav .active img {
  border-radius: 8px;
  background: var(--surface-muted);
}

.section-band,
.join-section {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 76px 0;
}

.section-band.muted {
  background: var(--background);
}

.split-layout,
.calendar-layout,
.evidence-layout,
.faq-layout,
.join-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.calendar-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.section-copy h2,
.faq-layout h2,
.join-inner h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
}

.section-copy p,
.join-inner p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  position: relative;
  min-height: 170px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 18px;
}

.step-card img {
  width: 24px;
  height: 24px;
}

.step-card > span {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.step-card h3 {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.step-card p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.calendar-app-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.app-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--background);
  padding: 12px 16px;
}

.app-calendar-header strong {
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-calendar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.app-calendar-actions button,
.planner-banner button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.app-calendar-actions .square-action {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  place-items: center;
  padding: 0;
}

.square-action img {
  width: 16px;
  height: 16px;
}

.planner-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(214, 51, 132, 0.05);
  padding: 8px 16px;
}

.planner-badge {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(214, 51, 132, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.planner-badge img {
  width: 22px;
  height: 22px;
}

.planner-banner > div {
  min-width: 0;
  flex: 1;
}

.planner-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planner-title-row strong {
  font-size: 13px;
  font-weight: 700;
}

.planner-title-row span {
  max-width: 120px;
  overflow: hidden;
  border: 1px solid rgba(214, 51, 132, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 2px 8px;
  color: var(--planner);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-banner p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.25;
}

.planner-banner button {
  flex: 0 0 auto;
  border-color: transparent;
  background: var(--planner);
  color: #ffffff;
}

.app-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.app-weekdays span {
  justify-self: center;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.app-weekdays .weekday-today {
  background: rgba(9, 105, 218, 0.05);
  color: var(--text);
  font-weight: 700;
}

.calendar-month-label {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.app-calendar-weeks {
  padding-bottom: 14px;
}

.app-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.app-day {
  display: flex;
  min-height: 97px;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding: 4px 0 2px;
}

.app-day.planner-checked,
.app-day.recommended-bg {
  background: rgba(214, 51, 132, 0.05);
}

.app-day.today-cell {
  margin: 1px;
  border: 1px solid var(--info);
  border-radius: 8px;
  background: rgba(9, 105, 218, 0.05);
}

.day-number {
  width: 56px;
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.material-marker,
.review-marker,
.review-marker-row {
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
}

.material-marker {
  width: 48px;
  height: 24px;
}

.material-marker img {
  width: 20px;
  height: 20px;
}

.material-marker.started {
  border: 1px solid var(--warning);
  background: rgba(250, 180, 5, 0.05);
}

.material-marker.started img {
  filter: brightness(0) saturate(100%) invert(73%) sepia(99%) saturate(1139%)
    hue-rotate(358deg) brightness(101%) contrast(96%);
}

.material-marker.recommended {
  border: 1px dashed var(--planner);
  background: transparent;
}

.material-marker.recommended img {
  filter: brightness(0) saturate(100%) invert(29%) sepia(65%) saturate(2618%)
    hue-rotate(307deg) brightness(91%) contrast(87%);
}

.review-marker {
  width: 20px;
  height: 20px;
  border: 1px solid var(--info);
  background: #e7f1ff;
}

.review-marker-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 56px;
  min-height: 20px;
  border-radius: 0;
}

.review-marker.future,
.review-marker.today {
  border-color: var(--info);
  background: #e7f1ff;
}

.review-marker.future img,
.review-marker.today img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(95%) saturate(1858%)
    hue-rotate(197deg) brightness(89%) contrast(94%);
}

.review-marker img {
  width: 14px;
  height: 14px;
}

.review-marker.overdue {
  border-color: var(--danger);
  background: #ffe4e6;
}

.review-marker.overdue img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(93%) saturate(3102%)
    hue-rotate(340deg) brightness(91%) contrast(92%);
}

.review-marker.completed {
  border-color: var(--accent);
  background: #dcf5e6;
}

.review-marker.completed img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(83%) saturate(643%)
    hue-rotate(89deg) brightness(89%) contrast(88%);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
}

.check-list img {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.comparison-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-row + .comparison-row {
  border-top: 1px solid var(--border);
}

.comparison-row span {
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.comparison-row span + span {
  border-left: 1px solid var(--border);
}

.comparison-head {
  background: var(--surface-muted);
}

.comparison-head span {
  color: var(--text);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 0 16px;
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
}

.faq-list p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.join-section {
  background: var(--surface);
}

.join-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.site-footer {
  background: var(--background);
  padding: 22px 0;
}

.expanded-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-brand p {
  max-width: 260px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-group {
  display: grid;
  gap: 8px;
}

.footer-group h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.footer-group a {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

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

.page-main {
  background: var(--surface);
}

.content-page {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 84px;
}

.content-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.content-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
}

.content-hero p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.prose {
  padding-top: 34px;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 42px;
  align-items: start;
  min-width: 0;
}

.page-sidebar {
  position: sticky;
  top: 88px;
  order: 2;
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 14px;
  min-width: 0;
  max-width: 100%;
}

.page-sidebar h2 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.page-sidebar a {
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.page-sidebar a.is-active,
.page-sidebar a[aria-current="location"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.feature-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.feature-overview article {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 16px;
}

.feature-overview img,
.page-intro-grid img,
.workflow-track img,
.feature-group-title img {
  width: 22px;
  height: 22px;
}

.feature-overview h2 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.feature-overview p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.page-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.page-intro-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 16px;
}

.page-intro-grid h2 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.page-intro-grid p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.feature-page {
  width: min(1040px, calc(100% - 32px));
}

.feature-page .content-hero {
  max-width: 820px;
}

.feature-workflow,
.feature-system {
  margin-top: 42px;
}

.feature-section-heading {
  max-width: 620px;
}

.feature-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.workflow-track article {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 18px;
}

.workflow-track article::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -13px;
  z-index: 1;
  width: 13px;
  border-top: 1px solid var(--border);
}

.workflow-track article:last-child::after {
  display: none;
}

.workflow-track span {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--background);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.workflow-track h3,
.feature-system-grid h3 {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.workflow-track p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.feature-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.feature-system-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 18px;
}

.feature-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-group-title h3 {
  margin: 0;
}

.feature-system-grid ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-system-grid li {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 9px 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.feature-detail-intro {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 18px;
}

.feature-detail-intro h2 {
  margin: 0;
  font-size: 22px;
}

.feature-detail-intro p:last-child {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.early-access-panel,
.content-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 18px;
}

.early-access-panel {
  margin-top: 28px;
}

.early-access-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-top: 16px;
}

.early-access-column {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 18px;
}

.early-access-column h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.early-access-card-grid {
  display: grid;
  gap: 10px;
}

.early-access-card-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  padding: 12px;
}

.early-access-card-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.early-access-card-grid p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

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

.request-list li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  padding: 10px 12px 10px 34px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.request-list li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 13px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--success-subtle);
}

.next-step-box {
  margin-top: 12px;
  border: 1px solid rgba(9, 105, 218, 0.22);
  border-radius: var(--radius-sm);
  background: var(--info-subtle);
  padding: 12px;
}

.next-step-box strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.next-step-box p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.service-panel,
.draft-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 18px;
}

.service-panel h2,
.draft-notice strong {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.service-panel p,
.draft-notice p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.danger-service {
  border-color: rgba(207, 34, 46, 0.24);
  background: var(--danger-subtle);
}

.account-delete-tool {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  border: 1px solid rgba(207, 34, 46, 0.24);
  border-radius: var(--radius-card);
  background: var(--danger-subtle);
  padding: 20px;
}

.account-delete-copy {
  max-width: 680px;
}

.danger-label {
  margin: 0 0 8px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-delete-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.account-delete-copy p:last-child {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.account-delete-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

.form-field input:focus-visible,
.check-row input:focus-visible {
  border-color: var(--danger);
  outline: 3px solid rgba(207, 34, 46, 0.18);
  outline-offset: 1px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--danger);
}

.button-danger {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.button-danger:hover,
.button-danger:focus-visible {
  border-color: #a40e1a;
  background: #a40e1a;
  outline: none;
}

.button-danger:disabled,
.account-delete-form button:disabled,
.account-delete-form input:disabled {
  cursor: wait;
  opacity: 0.68;
}

.delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.challenge-note,
.delete-fallback {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.delete-status {
  min-height: 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.delete-status[data-tone="success"] {
  color: var(--accent-pressed);
}

.delete-status[data-tone="error"] {
  color: var(--danger);
}

.delete-fallback a {
  color: var(--danger);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.service-quick-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 14px;
}

.service-quick-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.service-quick-grid p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.draft-notice {
  align-items: flex-start;
  justify-content: flex-start;
  border-color: rgba(249, 179, 5, 0.5);
  background: rgba(249, 179, 5, 0.08);
}

.legal-contact-notice {
  border-color: rgba(9, 105, 218, 0.22);
  background: var(--info-subtle);
}

.draft-notice strong {
  flex: 0 0 auto;
  font-size: 15px;
}

.editorial-meta {
  margin: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 14px 16px;
}

.editorial-meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.editorial-meta p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.editorial-meta a {
  color: var(--info);
  text-decoration: none;
}

.content-cta {
  margin-top: 42px;
}

.related-pages {
  margin-top: 42px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.related-pages h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.related-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.related-page-grid a {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.related-page-grid a:hover,
.related-page-grid a:focus-visible {
  border-color: var(--text-secondary);
  outline: none;
}

.related-page-grid strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.related-page-grid span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.not-found-page {
  min-height: calc(100svh - 65px);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.early-access-panel h2,
.content-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.early-access-panel p,
.content-cta p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.prose h1 {
  display: none;
}

.prose h2 {
  margin: 42px 0 12px;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.prose h3 {
  margin: 30px 0 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.prose h4 {
  margin: 22px 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.prose p {
  margin: 12px 0;
}

.prose ul,
.prose ol {
  margin: 12px 0 20px;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--info);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 22px 0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.prose code {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  padding: 1px 5px;
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.92em;
}

.prose pre {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  padding: 14px 16px;
}

.prose pre code {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
}

.prose hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 700;
}

.prose tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    gap: 16px;
    padding: 28px 0 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-facts {
    display: none;
  }

  .product-stage {
    max-height: 300px;
    overflow: hidden;
  }

  .device-frame {
    width: min(266px, 78vw);
  }

  .split-layout,
  .calendar-layout,
  .evidence-layout,
  .faq-layout,
  .join-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .calendar-layout .section-copy {
    order: -1;
  }

  .section-band,
  .join-section {
    padding: 56px 0;
  }

  .section-copy h2,
  .faq-layout h2,
  .join-inner h2 {
    font-size: 26px;
  }

  .join-inner .button {
    width: fit-content;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .content-page {
    padding-top: 48px;
  }

  .content-hero h1 {
    font-size: 34px;
  }

  .content-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-sidebar {
    position: static;
    order: -1;
    margin-top: 24px;
  }

  .feature-overview {
    grid-template-columns: 1fr;
  }

  .page-intro-grid {
    grid-template-columns: 1fr;
  }

  .workflow-track,
  .feature-system-grid {
    grid-template-columns: 1fr;
  }

  .workflow-track article {
    min-height: auto;
  }

  .workflow-track article::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 30px;
    width: 0;
    height: 13px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .early-access-panel,
  .content-cta,
  .service-panel,
  .draft-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .early-access-flow {
    grid-template-columns: 1fr;
  }

  .service-quick-grid {
    grid-template-columns: 1fr;
  }

  .related-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 58px;
    gap: 10px;
  }

  .brand span {
    font-size: 14px;
  }

  .header-action {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero-inner {
    padding: 26px 0 16px;
  }

  .hero-copy-block {
    text-align: left;
  }

  .hero-copy {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-stage {
    justify-content: center;
  }

  .device-frame {
    width: min(260px, 84vw);
  }

  .flow-steps,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row span + span {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .calendar-app-panel {
    margin-left: -4px;
    margin-right: -4px;
  }

  .app-calendar-header,
  .planner-banner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-calendar-actions {
    gap: 6px;
  }

  .planner-banner {
    align-items: flex-start;
  }

  .planner-badge,
  .planner-banner button {
    display: none;
  }

  .app-weekdays span {
    padding-left: 4px;
    padding-right: 4px;
  }

  .app-day {
    min-height: 86px;
  }

  .day-number {
    width: 44px;
    font-size: 13px;
  }

  .material-marker {
    width: 40px;
    height: 22px;
  }

  .review-marker {
    width: 18px;
    height: 18px;
  }

  .footer-inner {
    flex-direction: column;
  }

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

  .content-page {
    width: min(100% - 24px, 880px);
    padding-top: 40px;
  }

  .feature-page {
    width: min(100% - 24px, 1040px);
  }

  .content-hero h1 {
    font-size: 30px;
  }

  .feature-section-heading h2 {
    font-size: 24px;
  }

  .feature-system-grid ul {
    grid-template-columns: 1fr;
  }

  .content-hero p:last-child,
  .prose p,
  .prose li {
    font-size: 15px;
  }
}
