/* Flexomi — static marketing site
   Palette mirrors the mobile app theme (lib/theme/ui.ts) and web panel (theme/colors.ts). */

:root {
  --primary: #0f766e;
  --primary-600: #0d9488;
  --primary-hover: #005c55;
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --mint: #eafbf8;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --blue: #3b82f6;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --dark: #042f2e;
  --dark-text: #ccfbf1;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;
  --info-text: #075985;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --gradient: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgb(15 23 42 / 0.06);
  --shadow: 0 10px 30px -12px rgb(15 23 42 / 0.18);
  --shadow-lg: 0 30px 60px -20px rgb(4 47 46 / 0.35);
  --container: 1160px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

html.i18n-pending body {
  opacity: 0;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.15s ease;
}

html[lang="tr"] [data-lang="en"],
html[lang="en"] [data-lang="tr"] {
  display: none !important;
}

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}

.skip-link:focus {
  left: 8px;
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgb(15 118 110 / 0.35);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: #fff;
  color: var(--dark);
}

.btn-light:hover {
  background: var(--primary-50);
  color: var(--dark);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* Store badges */

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

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: #0b1220;
  color: #fff;
  border: 1px solid #0b1220;
  transition: background 0.15s ease;
}

.store-btn:hover {
  color: #fff;
  background: #1e293b;
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn small {
  font-size: 11px;
  opacity: 0.8;
}

.store-btn strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.store-btn small {
  white-space: nowrap;
}

.store-btn.is-soon {
  cursor: default;
}

.store-btn.is-soon::after {
  content: attr(data-soon-label);
  position: absolute;
  top: -9px;
  right: -6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
}

.store-buttons.on-dark .store-btn {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.store-buttons.on-dark .store-btn:hover {
  background: var(--primary-50);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(248 250 252 / 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgb(255 255 255 / 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-50);
}

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

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch button {
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 56px 0;
}

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

.section-head.left {
  margin-left: 0;
  margin-bottom: 32px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(45 212 191 / 0.22), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -200px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(59 130 246 / 0.1), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 540px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 19px;
}

.hero .store-buttons {
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 620px;
}

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: 300px;
  height: 610px;
  padding: 12px;
  border-radius: 48px;
  background: #0b1220;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1e293b;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #0b1220;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--bg);
}

.ps-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 26px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.ps-body {
  flex: 1;
  padding: 24px 16px 0;
  overflow: hidden;
}

.ps-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ps-brandbar img {
  height: 20px;
  width: auto;
}

.ps-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient);
}

.ps-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ps-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.ps-days {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}

.ps-day {
  flex: 1;
  padding: 7px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

.ps-day b {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.ps-day.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: rgb(255 255 255 / 0.8);
}

.ps-day.is-active b {
  color: #fff;
}

.ps-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  line-height: 1.35;
}

.ps-ring {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 60%, rgb(255 255 255 / 0.2) 60% 100%);
}

.ps-ring::after {
  content: "3/5";
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.ps-progress strong {
  display: block;
  font-size: 13px;
}

.ps-progress small {
  font-size: 11px;
  opacity: 0.85;
}

.ps-ex {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  line-height: 1.35;
}

.ps-thumb {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-100), #dbeafe);
  color: var(--primary);
}

.ps-thumb svg {
  width: 20px;
  height: 20px;
}

.ps-ex-text {
  flex: 1;
  min-width: 0;
}

.ps-ex-text b {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-ex-text small {
  font-size: 11px;
  color: var(--muted);
}

.ps-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.ps-check.is-done {
  border-color: var(--primary);
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.ps-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 8px 12px 14px;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.ps-tab {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.ps-tab svg {
  width: 18px;
  height: 18px;
}

.ps-tab.is-active {
  background: var(--primary);
  color: #fff;
}

/* Nutrition screen variant */

.ps-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.ps-macro {
  padding: 9px 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.ps-macro b {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.ps-bar {
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.ps-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-600);
}

.ps-kcal {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--mint);
  border: 1px solid var(--primary-100);
  line-height: 1.35;
}

.ps-kcal small {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

.ps-kcal b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.ps-kcal span {
  font-size: 12px;
  color: var(--muted);
}

.ps-meal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  line-height: 1.35;
}

.ps-meal b {
  display: block;
  font-size: 12.5px;
}

.ps-meal small {
  color: var(--muted);
  font-size: 11px;
}

.ps-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Floating cards around the phone */

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}

.float-card b {
  display: block;
  font-size: 14px;
}

.float-card small {
  color: var(--muted);
  font-size: 12px;
}

.float-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
}

.float-icon svg {
  width: 20px;
  height: 20px;
}

.float-icon.warm {
  background: #fff7ed;
  color: #ea580c;
}

.float-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.float-card.f1 {
  top: 18px;
  left: 0;
}

.float-card.f2 {
  top: 300px;
  right: -6px;
  animation-delay: -2s;
}

.float-card.f3 {
  bottom: 60px;
  left: 18px;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .float-card {
    animation: none;
  }
}

/* ---------- Audience strip ---------- */

.audience-strip {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.audience-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 36px;
}

.audience-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
}

.audience-chip svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* ---------- Feature cards ---------- */

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

.feature-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  flex-shrink: 0;
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Roles ---------- */

.roles-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.role-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.role-mini {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.role-mini:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}

.role-mini h3 {
  font-size: 19px;
  font-weight: 800;
}

.role-mini p {
  flex: 1;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.role-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

a:hover > .link-arrow svg,
.link-arrow:hover svg {
  transform: translateX(3px);
}

.hero-pro-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.hero-pro-link:hover {
  border-color: var(--primary);
  color: var(--text);
}

.hero-pro-link strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-pro-link {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 18px;
    text-align: center;
  }
}

.hero-pro-link svg {
  width: 16px;
  height: 16px;
}

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

/* ---------- Role detail sections ---------- */

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split.reverse .split-visual {
  order: -1;
}

.split-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mini-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin: 8px 0 32px;
}

.mini-feature {
  display: flex;
  gap: 14px;
}

.mini-feature .icon-box {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
}

.mini-feature .icon-box svg {
  width: 20px;
  height: 20px;
}

.mini-feature h3 {
  font-size: 16px;
  font-weight: 700;
}

.mini-feature p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.cta-note {
  color: var(--muted);
  font-size: 14px;
}

/* PT dashboard phone */

.ps-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 4px;
}

.ps-kpi {
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  line-height: 1.3;
}

.ps-kpi small {
  font-size: 10.5px;
  color: var(--muted);
}

.ps-kpi b {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ps-kpi.accent {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.ps-kpi.accent small {
  color: rgb(255 255 255 / 0.8);
}

.ps-section-title {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.ps-section-title span {
  color: var(--primary);
  font-weight: 600;
}

.ps-appt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  line-height: 1.3;
}

.ps-time {
  padding: 5px 7px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.ps-appt b {
  display: block;
  font-size: 12px;
}

.ps-appt small {
  font-size: 10.5px;
  color: var(--muted);
}

.ps-pkg {
  margin-bottom: 7px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  line-height: 1.3;
}

.ps-pkg b {
  display: block;
  font-size: 12px;
}

.ps-pkg small {
  font-size: 10.5px;
  color: #9a3412;
}

.ps-pkg .ps-bar {
  background: #fed7aa;
}

.ps-pkg .ps-bar i {
  background: #ea580c;
}

/* Web panel browser mockup */

.browser {
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
}

.browser-bar i:nth-child(2) {
  background: #fbbf24;
}

.browser-bar i:nth-child(3) {
  background: #34d399;
}

.browser-url {
  flex: 1;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
}

.browser-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 360px;
}

.wp-side {
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  background: #fff;
}

.wp-side img {
  height: 18px;
  width: auto;
  margin: 2px 6px 16px;
}

.wp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 11.5px;
}

.wp-nav i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--border-strong);
}

.wp-nav.is-active {
  background: #eff4ff;
  color: var(--primary-hover);
  font-weight: 600;
}

.wp-nav.is-active i {
  background: var(--primary);
}

.wp-main {
  padding: 16px;
  background: #f8f9ff;
  line-height: 1.35;
}

.wp-title {
  font-size: 15px;
  font-weight: 800;
}

.wp-sub {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.wp-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.wp-kpi {
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  line-height: 1.25;
}

.wp-kpi small {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
}

.wp-kpi b {
  font-size: 17px;
}

.wp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8px;
}

.wp-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.wp-card h4 {
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.wp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
}

.wp-card h4 + .wp-row {
  border-top: 0;
}

.wp-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.wp-prio {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.wp-prio.high {
  background: #fef2f2;
  color: #b91c1c;
}

.wp-prio.mid {
  background: #fffbeb;
  color: #92400e;
}

.wp-meter {
  width: 56px;
  height: 5px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.wp-meter i {
  display: block;
  height: 100%;
  background: var(--primary-600);
}

.split-visual .float-card.fx {
  left: -14px;
  bottom: -26px;
}

/* How it works tabs */

.tabs {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tabs button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
}

[data-tab-panel][hidden] {
  display: none;
}

/* Salon Pro flow */

.pro-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 56px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  list-style: none;
}

.pro-step {
  padding: 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.pro-step .n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
}

.pro-step h3 {
  font-size: 15px;
  font-weight: 700;
}

.pro-step p {
  margin-top: 4px;
  color: rgb(204 251 241 / 0.75);
  font-size: 13.5px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

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

.step {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

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

/* ---------- Dark (Salon Pro) ---------- */

.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
}

.dark-section::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(45 212 191 / 0.25), transparent 65%);
}

.dark-section h2,
.dark-section h3 {
  color: #fff;
}

.dark-section .eyebrow {
  background: rgb(45 212 191 / 0.12);
  border-color: rgb(45 212 191 / 0.3);
  color: var(--accent);
}

.dark-section .section-lead {
  color: rgb(204 251 241 / 0.8);
}

.pro-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.pro-features {
  display: grid;
  gap: 14px;
  margin: 32px 0;
}

.pro-feature {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
}

.pro-feature .icon-box {
  width: 42px;
  height: 42px;
  margin: 0;
  background: rgb(45 212 191 / 0.15);
  color: var(--accent);
}

.pro-feature h3 {
  font-size: 16px;
  font-weight: 700;
}

.pro-feature p {
  margin-top: 4px;
  font-size: 14px;
  color: rgb(204 251 241 / 0.75);
}

.pro-note {
  margin-top: 14px;
  font-size: 14px;
  color: rgb(204 251 241 / 0.7);
}

.offer-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6);
}

.offer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}

.gym-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--dark);
  color: var(--accent);
  font-weight: 800;
}

.offer-head b {
  display: block;
  font-size: 16px;
}

.offer-head small {
  color: var(--muted);
  font-size: 13px;
}

.offer-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
}

.qr {
  width: 128px;
  height: 128px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.offer-info small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-info b {
  display: block;
  margin: 4px 0 10px;
  font-size: 17px;
  line-height: 1.3;
}

.offer-info .ps-pill {
  display: inline-block;
}

.offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.offer-actions span {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.offer-actions .primary {
  background: var(--primary);
  color: #fff;
}

.offer-actions .ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  font-size: 15px;
}

.disclaimer svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

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

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

.faq-item summary::after {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open]:not(.is-closing) summary::after {
  transform: rotate(45deg);
}

.faq-item[open]:not(.is-closing) {
  border-color: var(--primary-100);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 15px;
}

.faq-more {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -160px;
  background: radial-gradient(circle, rgb(45 212 191 / 0.35), transparent 70%);
}

.cta-band::after {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -220px;
  background: radial-gradient(circle, rgb(59 130 246 / 0.3), transparent 70%);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band .cta-mark {
  width: 52px;
  height: auto;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

.cta-band p {
  max-width: 560px;
  margin: 14px auto 0;
  color: rgb(255 255 255 / 0.85);
  font-size: 18px;
}

.cta-band .store-buttons {
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  padding: 64px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  font-size: 15px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Legal / document pages ---------- */

.doc-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, var(--mint), var(--bg));
  border-bottom: 1px solid var(--border);
}

.doc-hero .container,
.doc-main {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

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

.doc-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
}

.doc-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.doc-main {
  margin: 0 auto;
  padding: 40px 24px 0;
}

.doc {
  display: grid;
  gap: 18px;
}

.doc-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.doc-card h2 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
}

.doc-card p,
.doc-card li {
  color: var(--text-2);
  font-size: 15.5px;
}

.doc-card p + p,
.doc-card p + ul,
.doc-card p + ol,
.doc-card ul + p,
.doc-card ol + p {
  margin-top: 12px;
}

.doc-card ul,
.doc-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.doc-card ol.num-steps {
  list-style: none;
  padding: 0;
  counter-reset: s;
}

.doc-card ol.num-steps li {
  position: relative;
  padding-left: 42px;
  min-height: 30px;
  counter-increment: s;
}

.doc-card ol.num-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.doc-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-section h2 .n {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
}

.note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
  font-size: 14.5px;
}

.note.warn {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.contact-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0 !important;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.contact-list b {
  min-width: 90px;
  color: var(--text);
}

.doc-card .btn {
  margin-top: 18px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
}

.related-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.doc-footnote {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* 404 */

.not-found {
  padding: 120px 0 40px;
  text-align: center;
}

.not-found .code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
}

.not-found p {
  margin: 16px auto 28px;
  max-width: 440px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .feature-grid,
  .role-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav a {
    padding: 8px 9px;
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

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

  .header-actions .btn {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .main-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-grid,
  .steps-grid,
  .pro-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-visual {
    order: 0;
  }

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

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

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .store-buttons,
  .hero-meta {
    justify-content: center;
  }

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

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 72px 0;
  }

  .feature-grid,
  .role-overview,
  .mini-features,
  .pro-steps {
    grid-template-columns: 1fr;
  }

  .browser-body {
    grid-template-columns: 1fr;
  }

  .wp-side {
    display: none;
  }

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

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

  .split-visual .float-card.fx {
    left: 0;
    bottom: -30px;
  }

  .hero-visual {
    min-height: 580px;
  }

  .phone {
    width: 272px;
    height: 560px;
  }

  .float-card {
    padding: 10px 12px;
    font-size: 12px;
  }

  .float-card.f1 {
    left: -6px;
    top: 4px;
  }

  .float-card.f2 {
    right: -10px;
  }

  .float-card.f3 {
    left: -4px;
  }

  .doc-card {
    padding: 22px;
  }

  .cta-band {
    padding: 44px 22px;
    border-radius: 28px;
  }

  .offer-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .store-btn {
    min-width: 0;
    flex: 1 1 150px;
    padding: 0 14px 0 12px;
    gap: 10px;
  }

  .store-btn strong {
    font-size: 16px;
  }

  .brand img {
    height: 30px;
  }
}
