/* Status SaaS visual system rebuilt from the delivered redesign package. */

:root {
  --defy: #9b51e0;
  --pursue: #ff3b30;
  --shape: #34c759;
  --thrive: #ff9f0a;
  --impact: #0a84ff;
  --c-blue: #0a84ff;
  --c-blue-tint: #e5f1ff;
  --c-green: #34c759;
  --c-green-tint: #e4f8ea;
  --c-orange: #ff9f0a;
  --c-orange-tint: #fff1dc;
  --c-red: #ff3b30;
  --c-red-tint: #ffe6e4;
  --c-purple: #af52de;
  --c-purple-tint: #f5e8fb;
  --c-cyan: #32ade6;
  --c-cyan-tint: #e3f4fc;
  --c-indigo: #5856d6;
  --c-indigo-tint: #e8e8fa;
  --bg: #eef1f5;
  --bg-soft: #f7faff;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: rgba(118, 118, 128, 0.08);
  --text: #0b0f17;
  --text-2: #6b7685;
  --text-3: #98a1b0;
  --border: rgba(11, 15, 23, 0.08);
  --border-strong: rgba(11, 15, 23, 0.13);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 26px rgba(16, 28, 52, 0.08);
  --shadow-lg: 0 22px 54px rgba(16, 28, 52, 0.14);
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --admin-bg: #0a0e16;
  --admin-surface: #161d2b;
  --admin-surface-2: #1d2636;
  --admin-text: #eaf2f5;
  --admin-text-2: #9dacbe;
  --admin-text-3: #62718a;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-accent: #15cfe8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 12% 0%, rgba(10, 132, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(52, 199, 89, 0.09), transparent 30%),
    linear-gradient(180deg, #f9fbff, #eef1f5 60%);
}

body.admin-theme {
  color: var(--admin-text);
  background: radial-gradient(circle at 85% -5%, rgba(21, 207, 232, 0.1), transparent 40%), var(--admin-bg);
}

body.app-theme {
  background: var(--bg);
}

body.ritmel-site-v2 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eef3f9;
  color: #0b0f17;
}

body.ritmel-site-v2 > main {
  flex: 1;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

input::placeholder,
textarea::placeholder {
  color: #b4bcc8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 10px 16px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}

tbody td {
  padding: 14px 16px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.1);
  font-size: 14px;
  color: var(--text);
}

body.admin-theme tbody td,
body.admin-theme thead th {
  border-color: rgba(255, 255, 255, 0.08);
}

body.admin-theme tbody td {
  color: var(--admin-text-2);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-3);
}

body.admin-theme .muted {
  color: var(--admin-text-3);
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-meta {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

body.admin-theme .brand-meta {
  color: var(--admin-text-3);
}

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

body.admin-theme .section-label {
  color: var(--admin-text-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.22);
}

.btn-secondary {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.icon-tile.sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.tone-blue {
  background: var(--c-blue-tint);
  color: var(--c-blue);
}

.tone-green {
  background: var(--c-green-tint);
  color: var(--c-green);
}

.tone-orange {
  background: var(--c-orange-tint);
  color: #e68600;
}

.tone-purple {
  background: var(--c-purple-tint);
  color: var(--c-purple);
}

.tone-cyan {
  background: var(--c-cyan-tint);
  color: #1e9bd7;
}

.tone-indigo {
  background: var(--c-indigo-tint);
  color: var(--c-indigo);
}

.tone-red {
  background: var(--c-red-tint);
  color: #d1453b;
}

.ritmel-v2-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
  backdrop-filter: blur(18px);
}

.ritmel-v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ritmel-v2-brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.ritmel-v2-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ritmel-v2-brand strong {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.ritmel-v2-brand small {
  margin-top: 4px;
  color: #9aa4b3;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ritmel-v2-nav nav,
.ritmel-v2-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ritmel-v2-nav nav a,
.ritmel-v2-signin {
  color: #7a8798;
  font-size: 14px;
  font-weight: 750;
}

.ritmel-v2-actions {
  gap: 14px;
}

.ritmel-v2-lang {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(11, 15, 23, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  color: #657185;
  font-size: 13px;
  font-weight: 750;
}

.ritmel-v2-lang svg {
  width: 16px;
  height: 16px;
}

.ritmel-v2-primary,
.ritmel-v2-download,
.ritmel-v2-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.ritmel-v2-primary {
  height: 40px;
  min-width: 132px;
  padding: 0 18px;
  background: #0a84ff;
  color: #fff;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.25);
}

.ritmel-v2-primary svg,
.ritmel-v2-download svg,
.ritmel-v2-secondary svg {
  width: 17px;
  height: 17px;
}

.ritmel-v2-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 126px) 24px 80px;
  background:
    radial-gradient(70% 90% at 76% 12%, rgba(10, 132, 255, 0.13), transparent 62%),
    #eef3f9;
}

.ritmel-v2-hero-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.ritmel-v2-copy {
  min-width: 0;
}

.ritmel-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 15px;
  margin-bottom: 26px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(11, 15, 23, 0.07);
  box-shadow: 0 1px 3px rgba(16, 28, 52, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.ritmel-v2-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8a00;
  box-shadow: 0 0 0 4px #fff0db;
}

.ritmel-v2-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.ritmel-v2-copy h1 span {
  color: #0a84ff;
}

.ritmel-v2-copy p {
  max-width: 660px;
  margin: 26px 0 0;
  color: #7a8798;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
}

.ritmel-v2-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ritmel-v2-download {
  padding: 0 25px;
  background: #0a84ff;
  color: #fff;
  box-shadow: 0 18px 42px rgba(10, 132, 255, 0.25);
}

.ritmel-v2-download svg {
  fill: currentColor;
}

.ritmel-v2-secondary {
  padding: 0 24px;
  background: #fff;
  color: #151a23;
  border: 1px solid rgba(11, 15, 23, 0.07);
  box-shadow: 0 10px 22px rgba(16, 28, 52, 0.08);
}

.ritmel-v2-secondary svg {
  color: #0a84ff;
}

.ritmel-v2-stats {
  display: flex;
  gap: clamp(22px, 4vw, 48px);
  margin-top: 34px;
}

.ritmel-v2-stats strong {
  display: block;
  color: #0b0f17;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ritmel-v2-stats span {
  display: block;
  margin-top: 2px;
  color: #7f8b9a;
  font-size: 13px;
  font-weight: 650;
}

.ritmel-v2-device {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ritmel-v2-card {
  position: relative;
  z-index: 2;
  width: min(350px, 86vw);
  padding: 22px;
  border-radius: 31px;
  background: #fff;
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: 0 26px 70px rgba(16, 28, 52, 0.14);
}

.ritmel-v2-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
}

.ritmel-v2-card-head strong {
  display: block;
  font-size: 15px;
  font-weight: 850;
}

.ritmel-v2-card-head small,
.ritmel-v2-recognized small {
  color: #a2acba;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.ritmel-v2-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  flex: 0 0 auto;
}

.ritmel-v2-icon svg {
  width: 25px;
  height: 25px;
}

.ritmel-v2-icon.purple {
  background: #f5e8fb;
  color: #af52de;
}

.ritmel-v2-icon.blue {
  background: #e5f1ff;
  color: #0a84ff;
}

.ritmel-v2-icon.green {
  background: #e4f8ea;
  color: #1fa855;
}

.ritmel-v2-wave {
  height: 28px;
  margin-left: auto;
  display: flex;
  align-items: end;
  gap: 4px;
}

.ritmel-v2-wave span {
  width: 3px;
  border-radius: 3px;
  background: #af52de;
}

.ritmel-v2-wave span:nth-child(1) { height: 12px; }
.ritmel-v2-wave span:nth-child(2) { height: 25px; }
.ritmel-v2-wave span:nth-child(3) { height: 17px; }
.ritmel-v2-wave span:nth-child(4) { height: 28px; }
.ritmel-v2-wave span:nth-child(5) { height: 20px; }
.ritmel-v2-wave span:nth-child(6) { height: 26px; }

.ritmel-v2-recognized {
  padding: 18px 2px 4px;
}

.ritmel-v2-recognized p {
  margin: 6px 0 0;
  color: #748093;
  font-size: 15px;
  line-height: 1.5;
}

.ritmel-v2-parsed {
  margin-top: 16px;
  padding: 14px;
  border-radius: 17px;
  background: #dcecff;
}

.ritmel-v2-parsed > div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #0a84ff;
  font-size: 13px;
  font-weight: 850;
}

.ritmel-v2-parsed > div svg {
  width: 15px;
  height: 15px;
}

.ritmel-v2-parsed article {
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 28, 52, 0.06);
}

.ritmel-v2-parsed article strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.ritmel-v2-parsed article span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #748093;
  font-size: 12px;
  font-weight: 700;
}

.ritmel-v2-parsed article span svg {
  width: 14px;
  height: 14px;
  color: #0a84ff;
}

.ritmel-v2-dot {
  position: absolute;
  right: 16px;
  bottom: 44px;
  z-index: 3;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, #1b2230, #0b0f17);
  box-shadow: 0 22px 54px rgba(16, 28, 52, 0.22), 0 0 0 9px rgba(255, 255, 255, 0.72);
}

.ritmel-v2-dot span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #c36b0c;
  box-shadow: 0 0 28px rgba(255, 145, 26, 0.62);
}

.ritmel-v2-dot small {
  position: absolute;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ritmel-v2-strip {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 58px);
  padding: 18px 24px;
  background: #fff;
  border-top: 1px solid rgba(11, 15, 23, 0.06);
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
}

.ritmel-v2-strip span {
  color: #9ca7b6;
  font-size: 13px;
  font-weight: 800;
}

.ritmel-v2-strip strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7a8798;
  font-size: 15px;
  font-weight: 850;
}

.ritmel-v2-strip svg {
  width: 18px;
  height: 18px;
  color: #a0abb9;
  fill: currentColor;
}

.ritmel-v2-how {
  padding: clamp(82px, 8vw, 116px) 24px;
}

.ritmel-v2-section-head {
  width: min(760px, 100%);
  margin: 0 auto 56px;
  text-align: center;
}

.ritmel-v2-section-head small {
  color: #0a84ff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.ritmel-v2-section-head h2 {
  margin: 17px auto 0;
  max-width: 660px;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.ritmel-v2-section-head p {
  margin: 20px 0 0;
  color: #7d8999;
  font-size: 17px;
}

.ritmel-v2-step-grid {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ritmel-v2-step-grid article {
  position: relative;
  min-height: 194px;
  padding: 29px 26px;
  overflow: hidden;
  border-radius: 25px;
  background: #fff;
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: 0 1px 3px rgba(16, 28, 52, 0.06), 0 10px 24px rgba(16, 28, 52, 0.05);
}

.ritmel-v2-step-grid em {
  position: absolute;
  top: 16px;
  right: 23px;
  color: #e7edf5;
  font-family: var(--font-mono);
  font-size: 52px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.ritmel-v2-step-grid h3 {
  position: relative;
  margin: 20px 0 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.ritmel-v2-step-grid p {
  position: relative;
  margin: 10px 0 0;
  color: #758195;
  font-size: 15px;
  line-height: 1.55;
}

.home-capture {
  padding: 82px 24px;
  background: #0c121d;
  color: #f7fbff;
}

.home-section-grid,
.home-focus,
.home-feature-deck,
.home-pricing-preview,
.home-final-cta {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
}

.home-section-grid,
.home-focus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 74px);
  align-items: center;
}

.home-capture small,
.home-focus small,
.home-final-cta small {
  color: #0a84ff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-capture h2,
.home-focus h2 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.capture-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.capture-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.capture-list strong,
.capture-list p {
  display: block;
  margin: 0;
}

.capture-list p,
.capture-chart p {
  color: #9dacbe;
  line-height: 1.55;
}

.capture-list em {
  color: #22d3ee;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.capture-chart p {
  max-width: 480px;
  margin: 0 0 24px;
}

.chart-card {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 64px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-card::before {
  content: "";
  position: absolute;
  inset: 50% 10% auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.chart-card span {
  position: absolute;
  left: var(--x);
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--c);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.home-focus {
  padding: 92px 0;
}

.home-focus-dot {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 38px;
  background: radial-gradient(circle, rgba(255, 159, 10, 0.2), transparent 32%), rgba(255, 255, 255, 0.36);
}

.home-focus p,
.home-final-cta p {
  color: #7a8798;
  font-size: 18px;
  line-height: 1.58;
}

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

.home-mini-grid article {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: var(--shadow-sm);
}

.home-mini-grid i,
.home-mini-grid strong,
.home-mini-grid span {
  display: block;
}

.home-mini-grid i {
  width: 26px;
  height: 26px;
  color: #0a84ff;
  margin-bottom: 12px;
}

.home-mini-grid strong {
  font-weight: 900;
}

.home-mini-grid span {
  margin-top: 5px;
  color: #7a8798;
  font-size: 13px;
  line-height: 1.45;
}

.home-sync-preview {
  padding: 84px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(11, 15, 23, 0.05);
  border-bottom: 1px solid rgba(11, 15, 23, 0.05);
}

.home-sync-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.home-sync-flow {
  margin: 28px auto 24px;
}

.home-sync-flow article {
  min-width: 150px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: 0 14px 34px rgba(16, 28, 52, 0.06);
}

.home-sync-flow i {
  width: 30px;
  height: 30px;
  color: #0a84ff;
}

.home-sync-flow strong,
.home-sync-flow span {
  display: block;
}

.home-sync-flow strong,
.home-sync-flow span {
  margin-top: 10px;
  font-weight: 900;
}

.home-sync-flow span {
  margin-top: 4px;
  color: #98a1b0;
  font-size: 12px;
  font-weight: 800;
}

.home-feature-deck,
.home-pricing-preview {
  padding: 86px 0;
}

.home-feature-deck .section-head {
  margin-bottom: 34px;
}

.home-price {
  margin: 16px 0 10px;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.home-price span {
  color: #98a1b0;
  font-size: 14px;
  letter-spacing: 0;
}

.pricing-card.dark {
  background: #0c121d !important;
  color: #f7fbff;
}

.pricing-card.dark p {
  color: #9dacbe !important;
}

.home-final-cta {
  position: relative;
  overflow: hidden;
  margin-bottom: 72px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 28px;
  background: radial-gradient(circle at 88% 65%, rgba(255, 159, 10, 0.35), transparent 18%), #0d1422;
  color: #fff;
}

.home-final-cta h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.home-final-cta p {
  max-width: 560px;
  color: #a9b6c7;
}

.ritmel-v2-secondary.dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  body.ritmel-site-v2 .marketing-header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  body.ritmel-site-v2 .marketing-nav,
  body.ritmel-site-v2 .marketing-actions {
    width: 100%;
    justify-self: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.ritmel-site-v2 .marketing-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    padding: 24px 0;
  }

  body.ritmel-site-v2 .marketing-footer-copy {
    justify-self: start;
  }

  .marketing-page-shell {
    padding-top: 54px;
  }

  .marketing-card-grid,
  .pricing-grid,
  .marketing-hardware-hero,
  .marketing-split,
  .home-section-grid,
  .home-focus {
    grid-template-columns: 1fr;
  }

  .home-focus {
    padding: 66px 0;
  }

  .home-sync-flow {
    flex-wrap: wrap;
  }

  .marketing-hardware-hero {
    gap: 34px;
  }

  .hardware-stage {
    min-height: 400px;
  }

  .ritmel-v2-nav {
    height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
  }

  .ritmel-v2-nav nav,
  .ritmel-v2-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .ritmel-v2-hero {
    padding-top: 56px;
  }

  .ritmel-v2-hero-inner,
  .ritmel-v2-step-grid {
    grid-template-columns: 1fr;
  }

  .ritmel-v2-device {
    min-height: 370px;
  }

  .ritmel-v2-dot {
    right: calc(50% - 188px);
  }
}

@media (max-width: 640px) {
  body.ritmel-site-v2 .marketing-header-inner,
  body.ritmel-site-v2 .marketing-footer-inner,
  .marketing-page-shell {
    width: min(100% - 32px, 1260px);
  }

  body.ritmel-site-v2 .marketing-nav {
    gap: 18px;
  }

  body.ritmel-site-v2 .marketing-actions {
    flex-wrap: wrap;
  }

  body.ritmel-site-v2 .marketing-footer nav {
    gap: 10px;
  }

  body.ritmel-site-v2 .marketing-footer-inner {
    grid-template-columns: 1fr;
  }

  body.ritmel-site-v2 .section-head h1,
  body.ritmel-site-v2 .section-head h2,
  .marketing-hardware-copy h1 {
    font-size: 40px;
  }

  .hardware-stage {
    min-height: 350px;
    border-radius: 30px;
  }

  .hardware-dot.ritmel-v2-dot {
    width: 122px;
    height: 122px;
  }

  .hardware-loop-card {
    right: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

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

  .home-section-grid,
  .home-focus,
  .home-feature-deck,
  .home-pricing-preview,
  .home-final-cta {
    width: min(100% - 32px, 1260px);
  }

  .home-capture,
  .home-sync-preview {
    padding-left: 0;
    padding-right: 0;
  }

  .home-mini-grid {
    grid-template-columns: 1fr;
  }

  .ritmel-v2-actions {
    flex-wrap: wrap;
  }

  .ritmel-v2-primary {
    min-width: 0;
  }

  .ritmel-v2-copy h1 {
    font-size: 48px;
  }

  .ritmel-v2-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .ritmel-v2-stats strong {
    font-size: 22px;
  }

  .ritmel-v2-device {
    min-height: 330px;
    justify-content: flex-start;
  }

  .ritmel-v2-card {
    width: min(330px, 100%);
  }

  .ritmel-v2-dot {
    width: 96px;
    height: 96px;
    right: 4px;
    bottom: 20px;
  }

  .ritmel-v2-dot span {
    width: 28px;
    height: 28px;
  }

  .ritmel-v2-strip {
    justify-content: flex-start;
  }
}

/* Ritmel public marketing v3. The landing page is intentionally a focused
   product story; authenticated workspace styles above remain separate. */
body.ritmel-site-v3 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fbfcff;
  color: #111827;
}

body.ritmel-site-v3 > main {
  flex: 1;
  overflow: hidden;
}

body.ritmel-site-v3 .ritmel-v3-frame,
body.ritmel-site-v3 .marketing-header-inner,
body.ritmel-site-v3 .marketing-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

body.ritmel-site-v3 .marketing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  background: rgba(251, 252, 255, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
}

body.ritmel-site-v3 .marketing-header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0;
}

body.ritmel-site-v3 .ritmel-v2-brand {
  gap: 9px;
}

body.ritmel-site-v3 .ritmel-v2-brand img {
  width: 31px;
  height: 31px;
}

body.ritmel-site-v3 .ritmel-v2-brand strong {
  color: #101828;
  font-size: 17px;
}

body.ritmel-site-v3 .ritmel-v2-brand small {
  color: #8d99ab;
  font-size: 8px;
  letter-spacing: 0.16em;
}

body.ritmel-site-v3 .marketing-nav {
  justify-self: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 750;
}

body.ritmel-site-v3 .marketing-nav a,
body.ritmel-site-v3 .marketing-actions a {
  color: #6d7889;
  transition: color 160ms ease;
}

body.ritmel-site-v3 .marketing-nav a:hover,
body.ritmel-site-v3 .marketing-nav a.active {
  color: #172033;
}

body.ritmel-site-v3 .marketing-actions {
  justify-self: end;
  gap: 16px;
  font-size: 13px;
  font-weight: 750;
}

.ritmel-v3-store-link:hover {
  color: #172033 !important;
}

.ritmel-v3-header-cta,
.ritmel-v3-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  background: #1769ff;
  color: #fff !important;
  font-weight: 780;
  box-shadow: 0 10px 22px rgba(23, 105, 255, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ritmel-v3-header-cta {
  min-height: 38px;
  padding: 0 14px;
}

.ritmel-v3-header-cta svg,
.ritmel-v3-primary svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.ritmel-v3-header-cta:hover,
.ritmel-v3-primary:hover {
  transform: translateY(-1px);
  background: #0758ec;
  box-shadow: 0 14px 28px rgba(23, 105, 255, 0.24);
}

.ritmel-v3-hero {
  position: relative;
  padding: clamp(70px, 10vw, 136px) 0 clamp(72px, 9vw, 116px);
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 42%, rgba(99, 102, 241, 0.16), transparent 24%),
    radial-gradient(circle at 18% 3%, rgba(28, 134, 255, 0.1), transparent 23%),
    linear-gradient(135deg, #fbfdff 0%, #f1f6ff 52%, #f9f7ff 100%);
}

.ritmel-v3-hero::before {
  position: absolute;
  z-index: -1;
  top: 56px;
  left: 50%;
  width: min(1030px, 86vw);
  aspect-ratio: 1.72;
  border: 1px solid rgba(45, 110, 246, 0.08);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%) rotate(-12deg);
}

.ritmel-v3-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.83fr);
  align-items: center;
  gap: clamp(56px, 9vw, 132px);
}

.ritmel-v3-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.ritmel-v3-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #436285;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.145em;
  text-transform: uppercase;
}

.ritmel-v3-eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5d6cf6;
  box-shadow: 0 0 0 5px rgba(93, 108, 246, 0.11);
}

.ritmel-v3-hero h1,
.ritmel-v3-section-intro h2,
.ritmel-v3-product-copy h2,
.ritmel-v3-features h2,
.ritmel-v3-price-card h2,
.ritmel-v3-final h2 {
  margin: 0;
  color: #111827;
  font-weight: 790;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.ritmel-v3-hero h1 {
  max-width: 680px;
  font-size: clamp(54px, 6vw, 82px);
}

.ritmel-v3-hero h1 span {
  color: #2668ed;
}

.ritmel-v3-lede {
  max-width: 530px;
  margin: 28px 0 30px;
  color: #5e6a7c;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
}

.ritmel-v3-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 19px;
}

.ritmel-v3-primary {
  min-height: 52px;
  padding: 0 18px 0 21px;
  font-size: 14px;
}

.ritmel-v3-primary > span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
}

.ritmel-v3-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #253750;
  font-size: 14px;
  font-weight: 780;
}

.ritmel-v3-link svg {
  width: 16px;
  height: 16px;
  color: #4d6e98;
}

.ritmel-v3-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 28px 0 0;
  padding: 0;
  color: #66758a;
  font-size: 12px;
  font-weight: 670;
  list-style: none;
}

.ritmel-v3-promise li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ritmel-v3-promise svg {
  width: 14px;
  height: 14px;
  color: #3475e8;
  stroke-width: 3;
}

.ritmel-v3-phone {
  position: relative;
  width: min(100%, 425px);
  min-height: 538px;
  margin-left: auto;
  padding: 22px 22px 26px;
  overflow: hidden;
  border: 9px solid #fdfdff;
  border-radius: 44px;
  background: linear-gradient(158deg, #192135 0%, #101625 100%);
  box-shadow: 0 34px 82px rgba(21, 39, 74, 0.24), 0 5px 12px rgba(21, 39, 74, 0.14);
  color: #fff;
  transform: rotate(3deg);
}

.ritmel-v3-phone::before {
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(81, 105, 255, 0.46);
  content: "";
  filter: blur(25px);
}

.ritmel-v3-phone-bar,
.ritmel-v3-phone-date,
.ritmel-v3-schedule,
.ritmel-v3-capture-card {
  position: relative;
  z-index: 1;
}

.ritmel-v3-phone-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
}

.ritmel-v3-phone-bar strong { color: #fff; font-size: 12px; }
.ritmel-v3-phone-bar svg { justify-self: end; width: 15px; height: 15px; color: #a9bcff; }

.ritmel-v3-phone-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 36px 3px 22px;
}

.ritmel-v3-phone-date span { color: #a9b5c9; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.ritmel-v3-phone-date strong { font-size: 38px; letter-spacing: -0.06em; }
.ritmel-v3-phone-date em { color: #9db5ff; font-size: 11px; font-style: normal; font-weight: 760; }

.ritmel-v3-schedule {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  min-height: 270px;
}

.ritmel-v3-time {
  display: grid;
  grid-template-rows: 18px 58px 18px 58px 18px 58px 18px;
  color: rgba(210, 220, 240, 0.5);
  font-size: 9px;
  font-weight: 700;
}

.ritmel-v3-time i { width: 1px; height: 100%; margin-left: 11px; background: rgba(255, 255, 255, 0.16); }

.ritmel-v3-event {
  position: absolute;
  left: 42px;
  right: 1px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
}

.ritmel-v3-event-blue { top: 29px; height: 97px; background: linear-gradient(135deg, #3c7eff, #2860dd); }
.ritmel-v3-event-purple { top: 147px; height: 77px; background: linear-gradient(135deg, #7d61f5, #5c43d8); }
.ritmel-v3-event small { color: rgba(255,255,255,.72); font-size: 9px; font-weight: 780; }
.ritmel-v3-event strong { font-size: 14px; letter-spacing: -0.02em; }
.ritmel-v3-event span { color: rgba(255,255,255,.8); font-size: 10px; }

.ritmel-v3-capture-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 17px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(9px);
}

.ritmel-v3-capture-card > svg { width: 17px; height: 17px; color: rgba(255,255,255,.65); }
.ritmel-v3-capture-card small { display: block; margin-bottom: 3px; color: #b9c5db; font-size: 9px; font-weight: 750; }
.ritmel-v3-capture-card strong { display: block; font-size: 12px; font-weight: 680; }
.ritmel-v3-capture-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: #dcd2ff; color: #6545d9; }
.ritmel-v3-capture-icon svg { width: 16px; height: 16px; }

.ritmel-v3-steps {
  padding: clamp(80px, 10vw, 140px) 0;
  background: #fff;
}

.ritmel-v3-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  column-gap: 100px;
  align-items: end;
  margin-bottom: 62px;
}

.ritmel-v3-section-intro .ritmel-v3-eyebrow { grid-column: 1 / -1; }
.ritmel-v3-section-intro h2,
.ritmel-v3-product-copy h2,
.ritmel-v3-features h2 { font-size: clamp(42px, 4.3vw, 61px); }
.ritmel-v3-section-intro > p { margin: 0 0 4px; color: #667386; font-size: 16px; line-height: 1.65; }

.ritmel-v3-step-list {
  border-top: 1px solid #dce3ef;
}

.ritmel-v3-step-list article {
  display: grid;
  grid-template-columns: 80px 34px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 128px;
  border-bottom: 1px solid #dce3ef;
}

.ritmel-v3-step-number { color: #9da9ba; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.ritmel-v3-step-list article > svg { width: 25px; height: 25px; color: #356ce3; stroke-width: 1.75; }
.ritmel-v3-step-list h3 { margin: 0 0 7px; color: #1d2939; font-size: 19px; letter-spacing: -0.03em; }
.ritmel-v3-step-list p { max-width: 550px; margin: 0; color: #69778a; font-size: 14px; line-height: 1.55; }

.ritmel-v3-product {
  padding: clamp(74px, 10vw, 138px) 0;
  background: #edf3fb;
}

.ritmel-v3-product-grid {
  display: grid;
  grid-template-columns: minmax(280px, .73fr) minmax(470px, 1.18fr);
  align-items: center;
  gap: clamp(55px, 8vw, 110px);
}

.ritmel-v3-product-copy > p:not(.ritmel-v3-eyebrow) {
  margin: 26px 0 31px;
  color: #667386;
  font-size: 16px;
  line-height: 1.62;
}

.ritmel-v3-capability-list { display: grid; gap: 14px; }
.ritmel-v3-capability-list > div { display: flex; align-items: center; gap: 13px; }
.ritmel-v3-capability-list > div > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #fff; color: #376be0; box-shadow: 0 4px 12px rgba(56,85,138,.08); }
.ritmel-v3-capability-list svg { width: 17px; height: 17px; }
.ritmel-v3-capability-list p { margin: 0; }
.ritmel-v3-capability-list strong { display: block; color: #283548; font-size: 13px; }
.ritmel-v3-capability-list small { display: block; margin-top: 3px; color: #758398; font-size: 12px; line-height: 1.35; }

.ritmel-v3-workspace {
  overflow: hidden;
  border: 1px solid rgba(38, 67, 110, .13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 26px 54px rgba(43, 67, 106, .15);
}

.ritmel-v3-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 17px;
  border-bottom: 1px solid #e2e8f1;
  color: #8b98a9;
  font-size: 12px;
  font-weight: 700;
}

.ritmel-v3-workspace-head > div { display: inline-flex; align-items: center; gap: 9px; color: #212d40; }
.ritmel-v3-workspace-head svg { width: 16px; height: 16px; }
.ritmel-v3-workspace-head strong { font-size: 14px; letter-spacing: -0.02em; }

.ritmel-v3-workspace-body { display: grid; grid-template-columns: minmax(210px, .67fr) minmax(250px, 1fr); min-height: 398px; }
.ritmel-v3-workspace-body aside { padding: 18px 12px; border-right: 1px solid #e7ebf2; background: #fbfcfe; }
.ritmel-v3-workspace-body aside > small, .ritmel-v3-detail-head > small { display: block; padding: 0 8px 12px; color: #93a0b0; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.ritmel-v3-workspace-body aside article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; margin-bottom: 7px; padding: 9px 8px; border-radius: 10px; }
.ritmel-v3-workspace-body aside article.active { background: #edf3ff; }
.ritmel-v3-workspace-body aside article > i { width: 14px; height: 14px; color: #7290c4; }
.ritmel-v3-workspace-body aside p { min-width: 0; margin: 0; }
.ritmel-v3-workspace-body aside strong { display: block; overflow: hidden; color: #344154; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ritmel-v3-workspace-body aside small { display: block; margin-top: 3px; color: #92a0b1; font-size: 9px; }
.ritmel-v3-source { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; }
.ritmel-v3-source svg { width: 15px; height: 15px; }
.ritmel-v3-source.purple { background: #eee9ff; color: #7056e6; }
.ritmel-v3-source.orange { background: #fff0dd; color: #dd8413; }
.ritmel-v3-source.blue { background: #e5f0ff; color: #3176ea; }

.ritmel-v3-workspace-detail { padding: 27px 29px; }
.ritmel-v3-detail-head { display: flex; align-items: center; justify-content: space-between; }
.ritmel-v3-detail-head > small { padding: 0; }
.ritmel-v3-detail-head button { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: #f1f4f8; color: #7d8a9a; cursor: pointer; }
.ritmel-v3-detail-head svg { width: 16px; height: 16px; }
.ritmel-v3-workspace-detail h3 { margin: 24px 0 8px; color: #1f2b3e; font-size: 23px; letter-spacing: -.045em; }
.ritmel-v3-detail-copy { margin: 0 0 29px; color: #78869a; font-size: 13px; line-height: 1.5; }
.ritmel-v3-detail-row { display: flex; align-items: center; gap: 10px; min-height: 38px; color: #506075; font-size: 12px; font-weight: 650; }
.ritmel-v3-detail-row svg { width: 16px; height: 16px; color: #517cec; }
.ritmel-v3-detail-actions { display: flex; gap: 9px; margin-top: 36px; }
.ritmel-v3-detail-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; color: #536277; font-size: 10px; font-weight: 750; cursor: pointer; }
.ritmel-v3-detail-actions button:last-child { border-color: #286df1; background: #286df1; color: #fff; }
.ritmel-v3-detail-actions svg { width: 13px; height: 13px; }

.ritmel-v3-features { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.ritmel-v3-features-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 55px; }
.ritmel-v3-features-head .ritmel-v3-eyebrow { margin-bottom: 18px; }
.ritmel-v3-features-head > p { max-width: 330px; margin: 0 0 4px; color: #687589; font-size: 15px; line-height: 1.65; }
.ritmel-v3-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #dce3ec; }
.ritmel-v3-feature-grid article { min-height: 250px; padding: 28px 30px 22px 0; border-right: 1px solid #dce3ec; }
.ritmel-v3-feature-grid article + article { padding-left: 30px; }
.ritmel-v3-feature-grid article:last-child { border-right: 0; }
.ritmel-v3-feature-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; }
.ritmel-v3-feature-icon svg { width: 21px; height: 21px; }
.ritmel-v3-feature-icon.blue { background: #e7f0ff; color: #2c73ed; }
.ritmel-v3-feature-icon.orange { background: #fff0de; color: #dd8515; }
.ritmel-v3-feature-icon.purple { background: #f0eaff; color: #7057e4; }
.ritmel-v3-feature-grid h3 { margin: 30px 0 10px; color: #1f2b3d; font-size: 19px; letter-spacing: -.035em; }
.ritmel-v3-feature-grid p { max-width: 260px; margin: 0; color: #6c798b; font-size: 14px; line-height: 1.6; }

.ritmel-v3-pricing { padding: 0 0 clamp(72px, 9vw, 118px); background: #fff; }
.ritmel-v3-price-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; padding: clamp(42px, 6vw, 76px); overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, #121b2b, #202f52 67%, #2d3d77); color: #fff; box-shadow: 0 24px 50px rgba(24, 42, 77, .17); }
.ritmel-v3-price-card h2 { color: #fff; font-size: clamp(37px, 4.4vw, 59px); }
.ritmel-v3-price-card > div:first-child > p:last-child { max-width: 500px; margin: 25px 0 0; color: #bbc9df; font-size: 15px; line-height: 1.6; }
.ritmel-v3-eyebrow-light { color: #9dbaf8; }
.ritmel-v3-eyebrow-light span { background: #8aaefa; box-shadow: 0 0 0 5px rgba(138,174,250,.14); }
.ritmel-v3-price-action { display: grid; justify-items: start; gap: 16px; min-width: 198px; }
.ritmel-v3-price { display: grid; gap: 3px; }
.ritmel-v3-price strong { font-size: 33px; letter-spacing: -.055em; }
.ritmel-v3-price span, .ritmel-v3-price-action > small { color: #aebed9; font-size: 11px; font-weight: 650; }
.ritmel-v3-primary-light { min-width: 215px; background: #fff; color: #1c3e90 !important; box-shadow: none; }
.ritmel-v3-primary-light:hover { background: #edf3ff; box-shadow: none; }

.ritmel-v3-final { padding: 0 0 clamp(90px, 11vw, 150px); background: #fff; text-align: center; }
.ritmel-v3-final .ritmel-v3-frame { display: grid; justify-items: center; }
.ritmel-v3-final .ritmel-v3-eyebrow { margin-bottom: 18px; }
.ritmel-v3-final h2 { margin-bottom: 29px; font-size: clamp(42px, 5.2vw, 70px); }

body.ritmel-site-v3 .marketing-footer { margin-top: auto; border-top: 1px solid #e1e7ef; background: #f9fbfd; }
body.ritmel-site-v3 .marketing-footer-inner { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(105px, .55fr)); align-items: start; gap: 36px; min-height: 204px; padding: 39px 0; }
body.ritmel-site-v3 .marketing-footer nav { display: grid; gap: 9px; color: #7c899b; font-size: 12px; font-weight: 650; }
body.ritmel-site-v3 .marketing-footer nav strong { margin-bottom: 2px; color: #334055; font-size: 12px; font-weight: 800; }
body.ritmel-site-v3 .marketing-footer-brand p { max-width: 250px; margin: 14px 0; color: #778497; font-size: 13px; line-height: 1.5; }
body.ritmel-site-v3 .marketing-footer-copy { color: #9aa5b3; font-size: 11px; }

@media (max-width: 980px) {
  body.ritmel-site-v3 .marketing-header-inner { grid-template-columns: 1fr auto; }
  body.ritmel-site-v3 .marketing-nav { display: none; }
  .ritmel-v3-hero-grid, .ritmel-v3-product-grid { grid-template-columns: 1fr; }
  .ritmel-v3-hero-copy { max-width: 670px; }
  .ritmel-v3-phone { margin: 6px auto 0; transform: rotate(2deg); }
  .ritmel-v3-product-copy { max-width: 600px; }
  .ritmel-v3-workspace { width: min(100%, 650px); }
  .ritmel-v3-section-intro { column-gap: 44px; }
  body.ritmel-site-v3 .marketing-footer-inner { grid-template-columns: 1.2fr repeat(3, minmax(90px, .6fr)); gap: 22px; }
}

@media (max-width: 680px) {
  body.ritmel-site-v3 .ritmel-v3-frame,
  body.ritmel-site-v3 .marketing-header-inner,
  body.ritmel-site-v3 .marketing-footer-inner { width: calc(100% - 32px); }
  body.ritmel-site-v3 .marketing-header-inner { display: flex; flex-direction: row; min-height: 64px; padding: 0; }
  body.ritmel-site-v3 .marketing-actions { margin-left: auto; gap: 0; }
  .ritmel-v3-store-link { display: none; }
  .ritmel-v3-header-cta { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .ritmel-v3-header-cta svg { display: none; }
  .ritmel-v3-hero { padding: 65px 0 76px; }
  .ritmel-v3-hero h1 { font-size: clamp(47px, 15vw, 66px); }
  .ritmel-v3-lede { margin: 24px 0 27px; font-size: 17px; }
  .ritmel-v3-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .ritmel-v3-primary { min-height: 50px; }
  .ritmel-v3-promise { display: grid; gap: 8px; margin-top: 25px; }
  .ritmel-v3-phone { min-height: 490px; padding: 20px 18px 21px; border-width: 7px; border-radius: 36px; transform: none; }
  .ritmel-v3-phone-date { margin-top: 29px; }
  .ritmel-v3-schedule { min-height: 238px; }
  .ritmel-v3-event { left: 40px; }
  .ritmel-v3-event-blue { height: 87px; }
  .ritmel-v3-event-purple { top: 138px; height: 69px; }
  .ritmel-v3-section-intro { display: block; margin-bottom: 43px; }
  .ritmel-v3-section-intro h2 { margin-bottom: 20px; }
  .ritmel-v3-step-list article { grid-template-columns: 36px 1fr; align-items: start; gap: 12px 15px; padding: 22px 0; }
  .ritmel-v3-step-number { grid-row: 1; }
  .ritmel-v3-step-list article > svg { grid-row: 1; grid-column: 2; }
  .ritmel-v3-step-list article > div:last-child { grid-column: 2; }
  .ritmel-v3-step-list h3 { margin-top: 6px; }
  .ritmel-v3-product-grid { gap: 45px; }
  .ritmel-v3-workspace-body { grid-template-columns: 1fr; }
  .ritmel-v3-workspace-body aside { display: none; }
  .ritmel-v3-workspace-detail { min-height: 360px; padding: 24px; }
  .ritmel-v3-features-head { display: block; margin-bottom: 35px; }
  .ritmel-v3-features-head h2 { margin-bottom: 21px; }
  .ritmel-v3-feature-grid { grid-template-columns: 1fr; }
  .ritmel-v3-feature-grid article, .ritmel-v3-feature-grid article + article { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid #dce3ec; }
  .ritmel-v3-feature-grid article:last-child { border-bottom: 0; }
  .ritmel-v3-feature-grid h3 { margin: 19px 0 8px; }
  .ritmel-v3-price-card { grid-template-columns: 1fr; gap: 34px; padding: 37px 28px; border-radius: 22px; }
  .ritmel-v3-price-action { gap: 13px; }
  .ritmel-v3-final h2 { font-size: clamp(40px, 12vw, 57px); }
  body.ritmel-site-v3 .marketing-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding: 32px 0; }
  body.ritmel-site-v3 .marketing-footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ritmel-v3-header-cta,
  .ritmel-v3-primary { transition: none; }
}

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(160%);
  background: rgba(249, 251, 255, 0.82);
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
}

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

.marketing-header-inner {
  padding: 16px 0;
}

.marketing-nav,
.marketing-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.marketing-nav a,
.marketing-actions a {
  color: var(--text-2);
}

.marketing-nav a.active,
.marketing-actions a.active {
  color: var(--text);
}

.marketing-user-pill {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-main {
  padding-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 64px 0 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--c-blue-tint);
  color: #0759b8;
  font-size: 12.5px;
  font-weight: 700;
}

.hero-title {
  margin: 22px 0;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-copy {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 34px;
}

.hero-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-3);
}

.floating-preview {
  position: relative;
  padding: 8px 0;
}

.floating-toast,
.floating-card,
.floating-subcard,
.soft-card,
.feature-card,
.admin-card,
.overview-card,
.surface-card {
  background: var(--surface);
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: var(--shadow-sm), 0 4px 14px rgba(16, 24, 40, 0.04);
}

.floating-toast {
  position: absolute;
  top: -16px;
  left: -30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(16, 28, 52, 0.18);
}

.floating-card {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 34px 74px rgba(16, 28, 52, 0.2);
}

.floating-subcard {
  position: relative;
  z-index: 1;
  margin: -12px 0 0 36px;
  padding: 18px 20px;
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(16, 28, 52, 0.16);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-ok,
.st-satisfied,
.st-safe {
  color: #148b45;
  background: var(--c-green-tint);
}

.status-alert,
.st-last_chance {
  color: #d07f00;
  background: var(--c-orange-tint);
}

.status-danger,
.st-overdue {
  color: #d1453b;
  background: var(--c-red-tint);
}

.status-neutral,
.st-no_data {
  color: var(--text-2);
  background: var(--surface-2);
}

.section {
  padding: 32px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

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

.feature-card {
  padding: 26px;
  border-radius: 24px;
}

.feature-card h3 {
  margin: 18px 0 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.016em;
}

.feature-card p,
.feature-card li {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.feature-card ul {
  margin: 0 0 24px;
  padding-left: 18px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: #3a4452;
  font-size: 14.5px;
  font-weight: 600;
}

.marketing-footer {
  border-top: 1px solid rgba(11, 15, 23, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.marketing-footer-inner {
  padding: 34px 0;
  flex-wrap: wrap;
}

.marketing-footer-copy {
  color: var(--text-3);
  font-size: 13px;
}

.marketing-page {
  padding: 36px 0 64px;
}

.marketing-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.soft-card {
  padding: 24px;
  border-radius: 22px;
}

/* Ritmel marketing shell v2: one shared header/footer for every public page. */
body.ritmel-site-v2 .marketing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
  backdrop-filter: blur(18px);
}

body.ritmel-site-v2 .marketing-header-inner,
body.ritmel-site-v2 .marketing-footer-inner {
  margin: 0 auto;
}

body.ritmel-site-v2 .marketing-header-inner {
  width: calc(100% - 32px);
}

body.ritmel-site-v2 .marketing-footer-inner {
  width: min(1260px, calc(100% - 48px));
}

body.ritmel-site-v2 .marketing-header-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0;
}

body.ritmel-site-v2 .marketing-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 750;
}

body.ritmel-site-v2 .marketing-nav a {
  color: #7a8798;
}

body.ritmel-site-v2 .marketing-nav a.active,
body.ritmel-site-v2 .marketing-nav a:hover {
  color: #0b0f17;
}

body.ritmel-site-v2 .marketing-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

body.ritmel-site-v2 .marketing-actions .ritmel-v2-primary {
  height: 40px;
}

body.ritmel-site-v2 .marketing-footer {
  margin-top: auto;
  border-top: 1px solid rgba(11, 15, 23, 0.06);
  background: rgba(255, 255, 255, 0.62);
}

body.ritmel-site-v2 .marketing-footer-inner {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.6fr));
  align-items: start;
  gap: 44px;
  padding: 42px 0;
}

body.ritmel-site-v2 .marketing-footer nav {
  display: grid;
  gap: 11px;
  color: #8c97a7;
  font-size: 13px;
  font-weight: 750;
}

body.ritmel-site-v2 .marketing-footer nav strong {
  color: #0b0f17;
  font-size: 13px;
  font-weight: 900;
}

body.ritmel-site-v2 .marketing-footer-brand p {
  max-width: 280px;
  margin: 16px 0;
  color: #8c97a7;
  font-size: 14px;
  line-height: 1.5;
}

body.ritmel-site-v2 .marketing-footer-copy {
  color: #a1acba;
  font-size: 13px;
  font-weight: 650;
}

.marketing-page-shell {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 7vw, 96px) 0 76px;
}

.marketing-page-hero {
  position: relative;
  padding: 0;
}

.marketing-page-hero + .marketing-page-hero {
  margin-top: 64px;
}

.marketing-page-hero.compact {
  margin-top: 58px;
}

body.ritmel-site-v2 .section-head {
  max-width: 720px;
  margin: 0 0 36px;
}

body.ritmel-site-v2 .section-head h1,
body.ritmel-site-v2 .section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

body.ritmel-site-v2 .section-head p {
  max-width: 650px;
  color: #7a8798;
  font-size: 17px;
  line-height: 1.55;
}

.marketing-card-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.ritmel-site-v2 .feature-card,
body.ritmel-site-v2 .soft-card {
  border-radius: 25px;
  background: #fff;
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: 0 1px 3px rgba(16, 28, 52, 0.06), 0 14px 34px rgba(16, 28, 52, 0.055);
}

body.ritmel-site-v2 .feature-card {
  min-height: 180px;
  padding: 28px;
}

body.ritmel-site-v2 .feature-card h3 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 900;
}

body.ritmel-site-v2 .feature-card p,
body.ritmel-site-v2 .feature-card li {
  color: #758195;
  font-size: 15px;
  line-height: 1.58;
}

.pricing-card.featured {
  border: 1.5px solid rgba(10, 132, 255, 0.45);
  box-shadow: 0 24px 58px rgba(10, 132, 255, 0.14);
}

.marketing-hardware-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.marketing-hardware-copy h1 {
  max-width: 720px;
  margin: 12px 0 20px;
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.marketing-hardware-copy p {
  max-width: 620px;
  margin: 0;
  color: #7a8798;
  font-size: 19px;
  line-height: 1.58;
}

.hardware-stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 138, 0, 0.22), transparent 14%),
    radial-gradient(circle at 50% 45%, rgba(10, 132, 255, 0.14), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(232, 241, 252, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.hardware-orbit {
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  border: 1px dashed rgba(122, 135, 152, 0.28);
}

.hardware-dot.ritmel-v2-dot {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 164px;
  height: 164px;
}

.hardware-dot.ritmel-v2-dot span {
  width: 46px;
  height: 46px;
}

.hardware-loop-card {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: min(330px, calc(100% - 68px));
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 15, 23, 0.06);
  box-shadow: 0 24px 58px rgba(16, 28, 52, 0.14);
  backdrop-filter: blur(14px);
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #98a1b0;
  font-size: 13px;
  font-weight: 850;
}

.preview-card-head strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e4f8ea;
  color: #148b45;
  font-size: 12px;
}

.preview-card-head strong::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

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

.hardware-loop-steps div {
  padding: 13px;
  border-radius: 16px;
  background: #f4f7fb;
}

.hardware-loop-steps b,
.hardware-loop-steps span {
  display: block;
}

.hardware-loop-steps b {
  color: #0b0f17;
  font-size: 15px;
  font-weight: 900;
}

.hardware-loop-steps span {
  margin-top: 4px;
  color: #7a8798;
  font-size: 12px;
  font-weight: 700;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 26px;
  border: 1px solid rgba(11, 15, 23, 0.06);
  background: #fff;
  box-shadow: var(--shadow-sm), var(--shadow-lg);
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.auth-head img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.022em;
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--text-3);
  font-size: 14.5px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: #fff;
  font-size: 15px;
  color: var(--text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #b4bcc8;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(11, 15, 23, 0.08);
}

.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  color: var(--text-2);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 132, 255, 0.15);
  border-top-color: var(--c-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.alert-error {
  background: var(--c-red-tint);
  color: #bf4338;
}

.alert-ok,
.alert-success {
  background: var(--c-green-tint);
  color: #148b45;
}

.alert-info {
  background: var(--c-blue-tint);
  color: #0759b8;
}

.session-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-2);
  margin-bottom: 18px;
}

.session-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.session-card p {
  margin: 0 0 14px;
  font-size: 13px;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  grid-template-rows: 84px minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
}

.workspace-shell.admin {
  grid-template-columns: 252px minmax(0, 1fr);
}

.workspace-sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-sidebar {
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
}

.workspace-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-sidebar-head {
  border-bottom-color: var(--admin-border);
}

.workspace-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 14px;
  overflow-y: auto;
}

.workspace-sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.workspace-sidebar-nav button.active {
  background: #e8f2ff;
  color: var(--c-blue);
}

.workspace-shell.admin .workspace-sidebar-nav button {
  color: var(--admin-text-2);
}

.workspace-shell.admin .workspace-sidebar-nav button.active {
  background: rgba(21, 207, 232, 0.14);
  color: var(--admin-accent);
}

.workspace-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  border-top: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-sidebar-foot {
  border-top-color: var(--admin-border);
}

.sidebar-subcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--surface-2);
}

.workspace-shell.admin .sidebar-subcard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-header {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid rgba(11, 15, 23, 0.08);
}

.workspace-shell.admin .workspace-header {
  background: var(--admin-surface);
  border-bottom-color: var(--admin-border);
}

.workspace-header h1 {
  margin: 4px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.05;
}

.workspace-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 28px 48px;
  background: var(--bg);
}

.workspace-shell.admin .workspace-main {
  background: transparent;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.identity-switch {
  display: flex;
  align-items: center;
  gap: 9px;
}

.identity-switch-list {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: #edf0f4;
}

.identity-switch-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.identity-switch-list button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.account-chip {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 13px;
  border-radius: 13px;
  background: var(--surface-2);
  cursor: pointer;
}

.account-trigger-copy {
  text-align: right;
  line-height: 1.15;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0a84ff, #5856d6);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 248px;
  padding: 8px;
  border: 1px solid rgba(11, 15, 23, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 28, 52, 0.16);
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 12px;
}

.account-menu-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(11, 15, 23, 0.07);
}

.account-menu-items button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.account-menu-items button:hover {
  background: var(--surface-2);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-auto-2,
.grid-auto-3,
.grid-auto-4 {
  display: grid;
  gap: 16px;
}

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

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

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

.surface-card {
  padding: 24px;
  border-radius: 22px;
}

.overview-ribbon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
}

.overview-ribbon-copy {
  flex: 1;
  min-width: 0;
}

.overview-ribbon-title {
  margin-top: 3px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.map-card {
  padding: 24px 24px 18px;
  border-radius: 22px;
}

.map-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.metric-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border-radius: 20px;
}

.metric-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ring-gauge {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 16px auto 12px;
}

.ring-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kpi-strip {
  display: flex;
  gap: 10px;
}

.kpi-strip > div,
.stat-box {
  flex: 1;
  padding: 15px 8px;
  border-radius: 14px;
  background: var(--surface-3);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-box span {
  font-size: 12px;
  color: var(--text-3);
}

.warning-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--c-orange-tint);
}

.warning-banner svg {
  color: #e68600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.data-table-card {
  padding: 8px;
  overflow: hidden;
}

.data-table-card > h3,
.table-title {
  padding: 16px 16px 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.timeline-list,
.list-stack {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: flex;
  gap: 13px;
  padding-bottom: 20px;
}

.timeline-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: rgba(11, 15, 23, 0.08);
  margin-top: 6px;
}

.admin-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
}

.admin-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.admin-metric {
  padding: 20px;
  border-radius: 18px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
}

.admin-metric strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--admin-text);
}

.admin-metric span {
  color: var(--admin-text-3);
  font-size: 13px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.plan-badge.free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--admin-text-2);
}

.plan-badge.pro {
  background: rgba(10, 132, 255, 0.16);
  color: #5ab0ff;
}

.plan-badge.family {
  background: rgba(175, 82, 222, 0.18);
  color: #c98ae8;
}

.keybox {
  padding: 16px;
  border-radius: 16px;
  background: rgba(21, 207, 232, 0.08);
  border: 1px solid rgba(21, 207, 232, 0.18);
  color: var(--admin-text);
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}

.kv-list {
  display: flex;
  flex-direction: column;
}

.kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}

.kv-row:first-child {
  border-top: 0;
}

.kv-row span {
  color: var(--text-3);
  font-size: 13px;
}

.kv-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

body.admin-theme .kv-row {
  border-color: rgba(255, 255, 255, 0.08);
}

body.admin-theme .kv-row span {
  color: var(--admin-text-3);
}

body.admin-theme .kv-row strong {
  color: var(--admin-text);
}

.empty-state {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed rgba(11, 15, 23, 0.12);
  color: var(--text-2);
  text-align: center;
}

.dropdown-divider {
  width: 1px;
  height: 30px;
  background: rgba(11, 15, 23, 0.1);
}

.scroll-soft::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.scroll-soft::-webkit-scrollbar-thumb {
  background: rgba(11, 15, 23, 0.15);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

body.admin-theme .scroll-soft::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid transparent;
  background-clip: padding-box;
}

@media (max-width: 1120px) {
  .hero-grid,
  .marketing-split,
  .grid-auto-2,
  .grid-auto-3,
  .grid-auto-4,
  .metric-box-grid,
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .workspace-shell,
  .workspace-shell.admin {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .workspace-sidebar {
    grid-row: 1;
    grid-column: 1;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 15, 23, 0.08);
  }

  .workspace-shell.admin .workspace-sidebar {
    border-bottom-color: var(--admin-border);
  }

  .workspace-header,
  .workspace-main {
    grid-column: 1;
  }

  .workspace-header {
    grid-row: 2;
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-main {
    grid-row: 3;
    padding: 20px;
  }

  .workspace-sidebar-nav {
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .wrap {
    width: min(100%, calc(100% - 28px));
  }

  .marketing-header-inner,
  .marketing-footer-inner,
  .top-tools,
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-nav,
  .marketing-actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .auth-main {
    padding: 28px 14px 40px;
  }

  .auth-card {
    padding: 24px;
  }

  .workspace-sidebar-head,
  .workspace-sidebar-foot,
  .workspace-sidebar-nav,
  .workspace-header,
  .workspace-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .identity-switch {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-switch-list {
    width: 100%;
    overflow-x: auto;
  }

  .account-menu {
    right: auto;
    left: 0;
    width: min(248px, calc(100vw - 28px));
  }
}

@media (max-width: 980px) {
  body.ritmel-site-v2 .marketing-header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  body.ritmel-site-v2 .marketing-nav,
  body.ritmel-site-v2 .marketing-actions {
    width: 100%;
    justify-self: start;
    overflow-x: auto;
  }

  body.ritmel-site-v2 .marketing-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section-grid,
  .home-focus {
    grid-template-columns: 1fr;
  }

  .marketing-card-grid,
  .pricing-grid,
  .home-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-sync-flow {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  body.ritmel-site-v2 .marketing-footer-inner,
  .home-section-grid,
  .home-focus,
  .home-feature-deck,
  .home-pricing-preview,
  .home-final-cta {
    width: min(100% - 32px, 1260px);
  }

  body.ritmel-site-v2 .marketing-footer-inner,
  .marketing-card-grid,
  .pricing-grid,
  .home-mini-grid {
    grid-template-columns: 1fr;
  }

  .home-capture,
  .home-sync-preview {
    padding-left: 0;
    padding-right: 0;
  }

}
