/* ==========================================================================
   SubTracker (appsub.ru) — спокойный минималистичный сайт-визитка
   ========================================================================== */

:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-subtle: #EEEDE8;
  --text: #161615;
  --text-secondary: #585852;
  --text-muted: #84837C;
  --border: #E4E2DA;
  --border-strong: #CFCBC0;

  --accent: #3730A3;
  --accent-soft: #EEF0FB;
  --emerald: #0E9266;
  --emerald-soft: #E6F5EF;

  /* App UI preview palette (dark AMOLED app look by default, crisp in both themes) */
  --app-bg: #000000;
  --app-card: #121216;
  --app-card-elev: #1B1B22;
  --app-border: #24242C;
  --app-text: #F4F4F5;
  --app-muted: #8E8E98;
  --app-accent: #9084F8;
  --app-accent-soft: rgba(144, 132, 248, 0.16);
  --app-fab: #B8F2D0;
  --app-fab-icon: #0B2618;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --container: 1040px;
  --doc-width: 740px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #080809;
  --surface: #131316;
  --surface-subtle: #1C1C21;
  --text: #F2F2F0;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --border: #24242A;
  --border-strong: #35353F;

  --accent: #818CF8;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--doc {
  max-width: var(--doc-width);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

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

/* Light theme: unified light button style across RuStore and all other buttons */
.btn--primary,
.btn--secondary {
  background-color: #FFFFFF;
  color: #161615;
  border-color: #C9C5B9;
  box-shadow: 0 2px 6px rgba(22, 22, 21, 0.06), 0 1px 2px rgba(22, 22, 21, 0.04);
}

.btn--primary:hover,
.btn--secondary:hover {
  background-color: #F4F3EE;
  border-color: #A8A396;
  color: #161615;
  box-shadow: 0 4px 12px rgba(22, 22, 21, 0.08);
}

/* Dark theme: unified dark button style across RuStore and all other buttons */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--secondary {
  background-color: #131317;
  color: #F2F2F0;
  border-color: #262630;
  box-shadow: none;
}

[data-theme="dark"] .btn--primary:hover,
[data-theme="dark"] .btn--secondary:hover {
  background-color: #1C1C24;
  border-color: #383846;
  color: #FFFFFF;
  box-shadow: none;
}

.btn--sm {
  font-size: 13.5px;
  min-height: 36px;
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
}

/* RuStore logo button: dark text on light button (light theme), light text on dark button (dark theme) */
.btn--rustore {
  padding: 11px 24px;
  min-height: 52px;
}

.rustore-logo {
  width: 112px;
  height: 28px;
  flex-shrink: 0;
}

.rustore-logo--light-theme {
  display: block;
}

.rustore-logo--dark-theme {
  display: none;
}

[data-theme="dark"] .rustore-logo--light-theme {
  display: none;
}

[data-theme="dark"] .rustore-logo--dark-theme {
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 54px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 52px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.3vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 520px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.platforms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 500px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}

.platform-chip--live {
  color: var(--text);
  border-color: var(--border-strong);
  font-weight: 550;
}

.platform-chip small {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.platform-chip--live small {
  color: var(--emerald);
  font-weight: 550;
}

/* ==========================================================================
   True-Ratio Smartphone Mockup (9:19.5 Form Factor) with Crisp Text UI
   ========================================================================== */

.phone-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.phone-device {
  position: relative;
  width: 304px;
  max-width: 100%;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2D2D33 0%, #151519 46%, #24242A 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 4px #0A0A0D,
    0 28px 60px rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .phone-device {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px #0A0A0C,
    0 28px 64px rgba(0, 0, 0, 0.72);
}

.phone-btn {
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #35353D;
  pointer-events: none;
}

.phone-btn--vol {
  top: 120px;
  height: 54px;
}

.phone-btn--power {
  top: 194px;
  height: 36px;
}

.phone-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-text);
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Status Bar + Punch-Hole Camera */
.phone-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  padding: 5px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10.5px;
  font-weight: 600;
}

.phone-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #040406;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15);
}

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

.phone-gesture-bar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 3.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.34);
  z-index: 6;
  pointer-events: none;
}

/* Panels inside phone */
.mock-panel {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 32px 13px 14px;
  background: var(--app-bg);
}

.mock-panel.is-active {
  display: flex;
}

/* ---- Screen 1: Subscriptions ---- */
.m-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.m-icon-group {
  display: flex;
  gap: 6px;
}

.m-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-card-elev);
  border: 1px solid var(--app-border);
  color: var(--app-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-fab {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--app-fab);
  color: var(--app-fab-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.m-screen-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--app-text);
}

.m-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--app-muted);
  margin-bottom: 9px;
  padding: 0 2px;
}

.m-month-cur {
  color: #D4D4DC;
  font-weight: 600;
}

.m-summary {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 11px 12px;
  margin-bottom: 10px;
}

.m-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--app-muted);
}

.m-summary-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 3px 0 9px;
  line-height: 1.1;
}

.m-progress {
  height: 5px;
  border-radius: 99px;
  background: #23232C;
  overflow: hidden;
  margin-bottom: 8px;
}

.m-progress-fill {
  height: 100%;
  width: 69%;
  border-radius: 99px;
  background: var(--app-accent);
}

.m-summary-foot {
  display: flex;
  justify-content: space-between;
  font-size: 9.8px;
  color: var(--app-muted);
}

.m-paid-txt {
  color: var(--app-accent);
  font-weight: 550;
}

.m-cats {
  display: flex;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.m-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--app-card-elev);
  color: #C4C4CE;
  white-space: nowrap;
}

.m-cat-chip--active {
  background: var(--app-accent);
  color: #FFFFFF;
  font-weight: 600;
}

.m-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.m-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--app-muted);
  margin: 2px 2px 6px;
}

.m-group-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.m-group-sum {
  color: #D4D4DC;
  font-weight: 600;
}

.m-sub-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 15px;
  padding: 9px 10px 11px;
  margin-bottom: 7px;
  overflow: hidden;
}

.m-sub-card--warn::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #F5C249;
}

.m-mono {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.m-sub-main {
  flex: 1;
  min-width: 0;
}

.m-sub-title {
  font-size: 12px;
  font-weight: 650;
  color: #FFFFFF;
  line-height: 1.2;
}

.m-sub-date {
  font-size: 9.5px;
  color: var(--app-muted);
  margin-top: 1px;
}

.m-sub-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.m-tag {
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 99px;
  background: #23232B;
  color: #C8C8D2;
}

.m-tag--soon {
  background: #F5C249;
  color: #1A1405;
}

.m-sub-price {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  align-self: flex-start;
}

.m-sub-conv {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--app-muted);
  margin-top: 1px;
}

/* Floating Bottom Navigation inside App Mock */
.m-bottom-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 46px;
  border-radius: 23px;
  background: rgba(24, 24, 30, 0.94);
  border: 1px solid #2A2A34;
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 4px;
  z-index: 4;
}

.m-nav-item {
  height: 100%;
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 8.5px;
  color: var(--app-muted);
}

.m-nav-item--active {
  background: #262632;
  color: var(--app-accent);
  font-weight: 600;
}

/* ---- Screen 2: Analytics ---- */
.m-seg {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 99px;
  padding: 3px;
  margin-bottom: 9px;
  font-size: 9.5px;
  color: var(--app-muted);
  text-align: center;
}

.m-seg span {
  padding: 5px 4px;
  border-radius: 99px;
  white-space: nowrap;
}

.m-seg-active {
  background: #25252E;
  color: #FFFFFF;
  font-weight: 600;
}

.m-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 15px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.m-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #D4D4DC;
}

.m-stat-line strong {
  color: #FFFFFF;
  font-size: 12.5px;
}

.m-divider {
  height: 1px;
  background: var(--app-border);
  margin: 8px 0;
}

.m-big-accent {
  font-size: 15px;
  font-weight: 700;
  color: var(--app-accent);
}

.m-sub-caption {
  font-size: 9px;
  color: var(--app-muted);
  margin-top: 1px;
}

.m-cat-bar {
  display: flex;
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  gap: 2px;
  margin: 8px 0 9px;
}

.m-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.m-cat-row:first-of-type {
  border-top: none;
}

.m-cat-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E4E4EA;
}

.m-cat-pct {
  color: var(--app-muted);
  font-size: 9.5px;
}

.m-cat-val {
  font-weight: 600;
  color: #FFFFFF;
}

.m-year-bar {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
  text-align: center;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 99px;
  padding: 3px;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--app-muted);
}

.m-year-active {
  background: #25252E;
  color: #FFFFFF;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 99px;
}

.m-mini-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 4px;
  height: 36px;
  margin-top: 8px;
}

.m-mini-bars i {
  display: block;
  border-radius: 3px 3px 1px 1px;
  background: #272733;
}

.m-mini-bars i.is-hi {
  background: var(--app-accent);
}

/* ---- Screen 3: Redesigned Home Screen Wallpaper + Crisp Widget + New Minimal Dock Icons ---- */
.mock-panel--wallpaper {
  padding: 38px 12px 18px;
  justify-content: space-between;
  background:
    radial-gradient(circle at 18% 14%, rgba(129, 140, 248, 0.42) 0%, transparent 48%),
    radial-gradient(circle at 86% 32%, rgba(45, 212, 191, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 50% 88%, rgba(99, 102, 241, 0.30) 0%, transparent 52%),
    linear-gradient(165deg, #171B2E 0%, #1F2937 48%, #111827 100%);
}

.w-card {
  background: rgba(255, 255, 255, 0.97);
  color: #16161B;
  border-radius: 22px;
  padding: 12px 11px 11px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.w-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.w-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111116;
  line-height: 1.2;
}

.w-sub {
  font-size: 9px;
  color: #6B7280;
  margin-top: 2px;
}

.w-head-btns {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.w-btn-refresh {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #EEF2FF;
  color: #4F46E5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w-btn-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4F46E5;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.w-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.w-row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #F4F5F8;
  border-radius: 12px;
  padding: 5.5px 7px;
}

.w-mono {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #4F46E5;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.w-info {
  flex: 1;
  min-width: 0;
}

.w-name {
  font-size: 10px;
  font-weight: 650;
  color: #18181B;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-date {
  font-size: 8.5px;
  color: #6B7280;
  line-height: 1.15;
}

.w-price {
  font-size: 10px;
  font-weight: 700;
  color: #18181B;
  white-space: nowrap;
}

.w-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.w-more {
  text-align: center;
  font-size: 9px;
  color: #6B7280;
  margin: 7px 0 8px;
}

.w-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.w-act {
  text-align: center;
  font-size: 9.5px;
  font-weight: 650;
  padding: 7px 4px;
  border-radius: 99px;
}

.w-act--primary {
  background: #4F46E5;
  color: #FFFFFF;
}

.w-act--soft {
  background: #EEF2FF;
  color: #4F46E5;
}

/* Home Screen Page Dots & Clean Minimal Frosted Dock */
.hs-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
}

.hs-dots {
  display: flex;
  gap: 5px;
}

.hs-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.hs-dots span.is-cur {
  background: #FFFFFF;
  width: 14px;
  border-radius: 99px;
}

.hs-dock {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hs-app {
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.hs-app--phone {
  background: linear-gradient(145deg, #2563EB, #1D4ED8);
}

.hs-app--chat {
  background: linear-gradient(145deg, #0D9488, #0F766E);
}

.hs-app--web {
  background: linear-gradient(145deg, #475569, #334155);
}

.hs-app--sub {
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

/* Switcher Tabs under the Phone */
.preview-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
}

.preview-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.preview-tab:hover {
  color: var(--text);
}

.preview-tab.is-active {
  background: var(--surface-subtle);
  color: var(--text);
}

.phone-caption {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  max-width: 312px;
  min-height: 40px;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 620px;
  margin-bottom: 38px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface-subtle);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--text-secondary);
}

/* Privacy Strip */
.privacy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

.privacy-box h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.privacy-box p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 14.5px;
  font-weight: 550;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: text-decoration-color 0.15s ease;
}

.text-link:hover {
  text-decoration-color: var(--accent);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.52;
}

.check-list strong {
  color: var(--text);
  font-weight: 600;
}

.check-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Platforms Compact Strip */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.platform-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.platform-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

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

.status-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.status-tag--live {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.status-tag--dev {
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

/* FAQ */
.faq-list {
  max-width: 740px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  padding: 20px 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

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

.faq-plus {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 660px;
}

.faq-body p {
  margin: 0;
}

/* Bottom CTA */
.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
}

.cta-block h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.cta-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Dedicated Support Developer Card (single unobtrusive block near bottom) */
.support-banner {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
}

.support-banner-text {
  max-width: 600px;
}

.support-banner h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.support-banner p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--text-secondary);
}

.support-banner p:last-child {
  margin-bottom: 0;
}

.honest-note {
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
}

.support-banner-action {
  flex-shrink: 0;
}

/* ==========================================================================
   Legal / Document Pages
   ========================================================================== */

.doc-page {
  padding: 50px 0 80px;
}

.doc-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.doc-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.doc-breadcrumb a:hover {
  color: var(--text);
}

.doc-crumb-sep {
  opacity: 0.45;
}

.doc-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.doc-pill {
  font-size: 13.5px;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.doc-pill:hover {
  color: var(--text);
}

.doc-pill[aria-current="page"] {
  background: #FFFFFF;
  color: #161615;
  box-shadow: 0 1px 3px rgba(22, 22, 21, 0.08);
}

[data-theme="dark"] .doc-pill[aria-current="page"] {
  background: #24242E;
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.doc-header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.doc-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 35px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.doc-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}

.doc-summary strong {
  color: var(--text);
}

.doc-content h2 {
  margin: 34px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.doc-content h3 {
  margin: 22px 0 8px;
  font-size: 16.5px;
  color: var(--text);
}

.doc-content p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.doc-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content li strong {
  color: var(--text);
}

.doc-content code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
}

.doc-table th,
.doc-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--surface-subtle);
  white-space: nowrap;
}

.doc-table td {
  color: var(--text-secondary);
}

.doc-table td strong {
  color: var(--text);
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.tech-details {
  margin: 14px 0 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.tech-details summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.tech-details summary:hover {
  color: var(--text);
}

.tech-details-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.tech-details-body p {
  font-size: 13.5px;
  margin-bottom: 8px;
}

.tech-details-body ul {
  font-size: 13.5px;
  margin-bottom: 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 16px;
}

.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px 16px;
  font-size: 14.5px;
}

.contact-card dt {
  color: var(--text-muted);
}

.contact-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 42px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

/* ==========================================================================
   404 Page
   ========================================================================== */

.notfound {
  padding: 96px 0;
}

.notfound-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.notfound h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.notfound p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  max-width: 460px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

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

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

  .privacy-box {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 24px;
  }

  .cta-block,
  .support-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .doc-nav-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .doc-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .doc-pill {
    padding: 8px 10px;
    font-size: 13px;
  }

  .header-actions .btn--sm {
    font-size: 12.5px;
    padding: 0 11px;
  }

  .hero {
    padding: 36px 0 52px;
  }

  .section {
    padding: 48px 0;
  }

  .features-grid,
  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .phone-device {
    width: 286px;
  }

  .contact-card dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-card dd {
    margin-bottom: 10px;
  }
}
