/* ============================================================
   ClauseWatcher — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@800&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
  /* Brand */
  --c-primary:       #0F172A;
  --c-secondary:     #334155;
  --c-accent:        #14B8A6;
  --c-accent-dark:   #0F766E;
  --c-bg:            #F8FAFC;
  --c-surface:       #FFFFFF;
  --c-border:        #E2E8F0;
  --c-border-strong: #CBD5E1;
  --c-text:          #1E293B;
  --c-muted:         #64748B;

  /* Status / Risk */
  --c-success:       #10B981;
  --c-warning:       #F59E0B;
  --c-danger:        #DC2626;
  --c-info:          #2563EB;
  --c-success-bg:    #ECFDF5;
  --c-warning-bg:    #FFFBEB;
  --c-danger-bg:     #FEF2F2;
  --c-info-bg:       #EFF6FF;

  /* Tokens */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-xs:        4px;
  --r-sm:        8px;
  --r-md:        12px;
  --r-lg:        16px;
  --r-xl:        24px;
  --shadow-sm:   0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md:   0 4px 16px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg:   0 16px 48px rgba(15, 23, 42, .10), 0 4px 16px rgba(15, 23, 42, .06);
  --ease:        150ms cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .75rem;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--c-primary);
}

h1 { font-size: clamp(2rem,   5vw, 3.25rem); }
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-top: 2rem;
}
h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}
h4 {
    font-size: 1.0625rem;
    margin-top: 1.5rem;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--c-accent-dark);
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1 0 auto;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease),
              transform var(--ease);
}

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

/* Primary — teal fill */
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 184, 166, .35);
}

/* Secondary — white outline */
.btn-secondary {
  background: var(--c-surface);
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}

.btn-secondary:hover {
  background: var(--c-bg);
  border-color: var(--c-secondary);
  color: var,--c-primary);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-high   { color: var(--c-danger);  background: var(--c-danger-bg);  }
.badge-medium { color: var(--c-warning); background: var(--c-warning-bg); }
.badge-low    { color: var(--c-success); background: var(--c-success-bg); }
.badge-info   { color: var(--c-info);    background: var(--c-info-bg);    }

/* ── ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 0 0 var(--c-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.navbar__toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.navbar__toggle {
  display: none;
}

/* Brand / logo */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--c-primary);
}

.navbar__brand:hover {
  color: var(--c-primary);
}

.navbar__brand-icon {
  width: 30px;
  height: 30px;
  color: var(--c-accent);
  flex-shrink: 0;
}

.navbar__brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--c-primary);
}

.navbar__brand-name span {
  color: var(--c-accent);
}

/* Primary nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.navbar__nav a {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-secondary);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.navbar__nav a:hover {
  color: var(--c-primary);
  background: var(--c-bg);
}

.navbar__nav a.active {
  color: var(--c-accent);
  background: rgba(20, 184, 166, .07);
}

/* Auth / action cluster */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.navbar__user-dropdown {
  position: relative;
}

.navbar__user-dropdown > summary {
  list-style: none;
}

.navbar__user-dropdown > summary::-webkit-details-marker {
  display: none;
}

.navbar__user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid var(--c-border-strong);
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(20, 184, 166, .24));
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.navbar__user-avatar:hover {
  border-color: var(--c-secondary);
}

.navbar__user-avatar:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .15);
}

.navbar__user-dropdown[open] .navbar__user-avatar {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.navbar__user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, 88vw);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  padding: 10px;
  z-index: 210;
}

.navbar__user-info {
  display: grid;
  gap: 2px;
  padding: 6px 4px;
}

.navbar__user-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.3;
  word-break: break-word;
}

.navbar__user-email {
  font-size: .75rem;
  color: var(--c-muted);
  line-height: 1.3;
  word-break: break-word;
}

.navbar__user-menu-divider {
  height: 1px;
  background: var(--c-border);
  margin: 6px 0;
}

.navbar__user-menu-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-secondary);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.navbar__user-menu-item:hover {
  background: var(--c-bg);
  color: var(--c-primary);
}

.navbar__user-menu-item--danger {
  color: var(--c-danger);
}

.navbar__user-menu-item--danger:hover {
  background: var(--c-danger-bg);
  color: var,--c-danger;
}

/* ── ============================================================
   Language Dropdown
   ============================================================ */
.navbar__language-dropdown {
  position: relative;
}

.navbar__language-dropdown > summary {
  list-style: none;
}

.navbar__language-dropdown > summary::-webkit-details-marker {
  display: none;
}

.navbar__language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.navbar__language-trigger:hover {
  border-color: var(--c-secondary);
}

.navbar__language-trigger:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .15);
}

.navbar__language-dropdown[open] .navbar__language-trigger {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.navbar__language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 232px;
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  z-index: 200;
}

.navbar__language-form {
  margin: 0;
}

.navbar__language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  background: var(--c-surface);
  cursor: pointer;
  padding: 0;
  flex: 0 0 36px;
}

.navbar__language-option:hover {
  border-color: var(--c-secondary);
  background: var(--c-bg);
}

.navbar__language-option.active {
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 1px var(--c-accent);
}

.navbar__language-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

/* ── ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: static;
  background: var(--c-primary);
  padding: 14px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
}

.footer__brand svg {
  color: var(--c-accent);
}

.footer__copy {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .4);
}

.footer__links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color var(--ease);
}

.footer__links a:hover {
  color: #fff;
}

/* ── ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  padding: 96px 0;
}

.section--sm {
  padding: 64px 0;
}

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

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

.section-header p {
  font-size: 1.0625rem;
  color: var(--c-muted);
  line-height: 1.7;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 32px;
}

.section-header-row h2 {
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .75rem;
}

.eyebrow--accent-soft {
  color: rgba(20, 184, 166, .9);
}

/* Button size variants */
.btn-lg {
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--r-md);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

/* ── ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #0D4A45 70%, #14B8A6 100%);
  padding: 96px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

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

.hero__content {
  color: #fff;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(20, 184, 166, .12);
  border: 1px solid rgba(20, 184, 166, .3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero__headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.hero__headline em {
  font-style: normal;
  color: var(--c-accent);
}

.hero__subheadline {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .45);
}

.hero__trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}

/* ── Preview window (hero) ───────────────────────────────── */
.hero__preview {
  position: relative;
}

.preview-window {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.hero__preview:hover .preview-window {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--c-border);
}

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

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dots span:nth-child(1) { background: #FC5F57; }
.preview-dots span:nth-child(2) { background: #FDBC27; }
.preview-dots span:nth-child(3) { background: #27C840; }

.preview-urlbar {
  flex: 1;
  background: var(--c-border);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  font-size: .6875rem;
  color: var(--c-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.preview-body {
  padding: 20px;
}

.preview-agreement-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-vendor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--c-secondary);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  margin-bottom: 5px;
}

.preview-vendor-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}

.preview-agreement-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.3;
}

.preview-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--c-danger-bg);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  border: 1px solid rgba(220, 38, 38, .1);
}

.preview-score-label {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--c-danger);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.preview-score-bar {
  flex: 1;
  height: 5px;
  background: rgba(220, 38, 38, .15);
  border-radius: 999px;
  overflow: hidden;
}

.preview-score-fill {
  height: 100%;
  background: var(--c-danger);
  border-radius: 999px;
}

.preview-score-value {
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-danger);
  white-space: nowrap;
}

.preview-clauses {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.clause-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  background: var(--c-bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}

.clause-text {
  font-size: .75rem;
  color: var(--c-text);
  line-height: 1.4;
  flex: 1;
}

/* ── ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step__icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--c-accent);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  box-shadow: 0 4px 16px rgba(20, 184, 166, .3);
  flex-shrink: 0;
}

.step__number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: .6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-surface);
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 8px;
}

.step__description {
  font-size: .9375rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .10) 0%, rgba(20, 184, 166, .18) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 10px;
}

.feature-card__description {
  font-size: .9375rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── ============================================================
   REVIEW DEMO
   ============================================================ */
.review-demo {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.review-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--c-border);
  gap: 16px;
  flex-wrap: wrap;
}

.review-demo__vendor {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}

.review-demo__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--c-primary);
}

.review-demo__score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.score-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  min-width: 128px;
}

.score-track {
  flex: 1;
  min-width: 80px;
  height: 8px;
  background: var(--c-border);
  border-radius: 999px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 999px;
}

.score-fill--high   { width: 72%; background: var(--c-danger); }
.score-fill--medium { width: 45%; background: var(--c-warning); }
.score-fill--low    { width: 20%; background: var(--c-success); }

.score-num {
  font-size: 1rem;
  font-weight: 800;
  min-width: 64px;
  text-align: right;
}

.score-num--high   { color: var(--c-danger); }
.score-num--medium { color: var(--c-warning); }
.score-num--low    { color: var(--c-success); }

.review-clause {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}

.review-clause:last-child {
  border-bottom: none;
}

.review-clause__badge-col {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.review-clause__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 5px;
}

.review-clause__text {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #0F172A 0%, #0D4A45 70%, #14B8A6 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── ============================================================
   PAGE CONTENT (Privacy, static pages)
   ============================================================ */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.page-content h1 {
  margin-bottom: 8px;
}

.page-content__lead {
  font-size: 1.125rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}

.culture-indicator {
  margin: 12px 24px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--c-border-strong);
  background: var(--c-warning-bg);
  color: var(--c-text);
  font-size: .8125rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── ============================================================
   ERROR PAGE
   ============================================================ */
.page-error {
  max-width: 520px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.page-error__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--c-warning-bg);
  border: 1.5px solid rgba(245, 158, 11, .25);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-warning);
}

.page-error__code {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--c-border-strong);
  margin: 0 0 4px;
}

.page-error__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.page-error__message {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.page-error__request {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--c-muted);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  margin-bottom: 28px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.page-error__request code {
  color: var(--c-text);
  font-family: inherit;
}

.page-error__hint {
  background: var(--c-info-bg);
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: var(--r-md);
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 32px;
}

.page-error__hint h3 {
  font-size: .9375rem;
  color: var(--c-info);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.page-error__hint p {
  font-size: .875rem;
  color: var(--c-text);
  line-height: 1.6;
  margin: 0;
}

/* ── ============================================================
   Debug: culture indicator
   ============================================================ */
.culture-indicator {
  margin: 12px 24px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--c-border-strong);
  background: var(--c-warning-bg);
  color: var(--c-text);
  font-size: .8125rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── ============================================================
   PAGE-LEVEL RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__subheadline {
    max-width: 100%;
  }

  .hero__preview {
    max-width: 500px;
    margin: 0 auto;
  }

  .preview-window {
    transform: none !important;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 36px;
  }

  .step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }

  .step__icon-wrap {
    margin: 0;
  }

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

  .navbar {
    height: auto;
  }

  .navbar__inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar__toggle {
    margin-left: auto;
    width: 40px;
    height: 36px;
    border: 1.5px solid var(--c-border-strong);
    border-radius: var(--r-sm);
    background: var(--c-surface);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .navbar__toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-primary);
    transition: transform var(--ease), opacity var(--ease);
  }

  .navbar__menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 6px 0 2px;
    border-top: 1px solid var(--c-border);
  }

  .navbar__toggle-input:checked ~ .navbar__menu {
    display: flex;
  }

  .navbar__toggle-input:checked + .navbar__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar__toggle-input:checked + .navbar__toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle-input:checked + .navbar__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navbar__nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .navbar__nav a {
    padding: 10px 12px;
  }

  .navbar__divider {
    width: 100%;
    height: 1px;
  }

  .navbar__actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .navbar__language-menu {
    right: auto;
    left: 0;
  }

  .dashboard-linked-companies__columns {
    grid-template-columns: 1fr;
  }

  .dashboard-linked-companies__panel {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

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

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

  .review-demo__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-clause {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .review-clause__badge-col {
    justify-content: flex-start;
  }

  .cta-section {
    padding: 72px 0;
  }
}

@media (max-width: 960px) {
  .pricing-grid--2,
  .pricing-grid--3,
  .deal-grid {
    grid-template-columns: 1fr;
  }

  .pricing-addon {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ── ============================================================
   FORM COMPONENTS (static/read-only display)
   ============================================================ */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.form-static {
  font-size: .9375rem;
  color: var(--c-text);
  padding: 8px 10px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  line-height: 1.5;
}

.form-static--mono {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: .8125rem;
  word-break: break-all;
}

/* ── ============================================================
   PROFILE
   ============================================================ */
.profile-page {
  background: linear-gradient(180deg, rgba(15, 23, 42, .02) 0%, transparent 100%);
}

.profile-groups {
  display: grid;
  gap: 20px;
}

.profile-group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile-group__header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}

.profile-group__header h2 {
  margin: 0;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.profile-group__body {
  padding: 20px 22px;
}

.profile-group__actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
}

.profile-definition-list {
  margin: 0;
  display: grid;
  gap: 16px;
}

.profile-definition-list > div {
  display: grid;
  gap: 4px;
}

.profile-definition-list dt {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-muted);
}

.profile-definition-list dd {
  margin: 0;
  font-size: .9375rem;
  color: var(--c-text);
}

.profile-subscriptions-table th,
.profile-subscriptions-table td {
  vertical-align: top;
}

.profile-subscriptions-table__mono {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: .8125rem;
  word-break: break-all;
}

.profile-empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-sm);
  color: var(--c-muted);
  background: var(--c-bg);
}

.profile-actions {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .profile-group__header,
  .profile-group__body {
    padding: 16px;
  }
}

/* ── ============================================================
   PRICING
   ============================================================ */
.pricing-page {
  padding-top: 80px;
}

.pricing-page .section-header {
  margin-bottom: 44px;
}

.pricing-category {
  margin-top: 44px;
}

.pricing-category:first-of-type {
  margin-top: 0;
}

.pricing-category__header {
  margin-bottom: 18px;
}

.pricing-category__header h2 {
  margin: 0;
}

.pricing-category__header p {
  margin: 6px 0 0;
  color: var(--c-muted);
}

.pricing-grid {
  display: grid;
  gap: 16px;
}

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

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

.pricing-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.pricing-card--accent {
  border-color: rgba(20, 184, 166, .35);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, .2);
}

.pricing-card__badge {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  background: rgba(20, 184, 166, .14);
  border: 1px solid rgba(20, 184, 166, .28);
}

.pricing-card__plan {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  font-weight: 600;
}

.pricing-card__price-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--c-primary);
}

.pricing-card__period {
  font-size: .8125rem;
  color: var(--c-muted);
}

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

.pricing-list__item {
  font-size: .9rem;
  color: var(--c-text);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pricing-list__item--yes {
  border-left: 3px solid var(--c-success);
}

.pricing-list__item--no {
  color: var(--c-muted);
  border-left: 3px solid var(--c-border-strong);
}

.pricing-list__item--value {
  border-left: 3px solid var(--c-info);
}

.pricing-list__val {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-secondary);
  white-space: nowrap;
}

.pricing-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

.pricing-addon {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px dashed var(--c-border-strong);
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pricing-addon__label {
  display: grid;
  gap: 2px;
}

.pricing-addon__label strong {
  color: var(--c-primary);
}

.pricing-addon__label span {
  color: var(--c-muted);
  font-size: .875rem;
}

.pricing-addon__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-addon__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  font-size: .875rem;
  color: var(--c-secondary);
}

.pricing-addon__item strong {
  color: var(--c-primary);
}

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

.deal-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.deal-card__type {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
}

.deal-card__price {
  margin-top: 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-primary);
}

.deal-card__list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--c-text);
}

.deal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ── ============================================================
   DATA PAGES (Brands / Users / Details)
   ============================================================ */
.brands-page .section-header {
  margin-bottom: 40px;
}

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

.brands-details-header {
  text-align: left;
}

.brands-details-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.brands-details-header__titles h1 {
  margin: 0;
}

.brands-details-header__titles h2 {
  margin: 8px 0 0;
  color: var(--c-secondary);
  font-size: 1.4rem;
}

.brands-details-header__titles h3 {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-muted);
}

.brands-status-banner {
  font-size: .8125rem;
  align-self: flex-start;
}

.brands-details-logo-wrap {
  margin: 22px 0;
  display: flex;
  justify-content: center;
}

.brands-details-logo {
  max-height: 100px;
  max-width: 500px;
  width: auto;
  object-fit: contain;
}

.brands-details-toolbar {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brands-details-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.brands-details-group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
}

.brands-details-group h4,
.brands-details-products__title {
  margin: 0 0 14px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-secondary);
  letter-spacing: 0;
}

.brands-details-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brands-details-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.brands-details-list__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.brands-details-list__item dt {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-muted);
}

.brands-details-list__item dd {
  margin: 0;
  font-size: .95rem;
  color: var(--c-text);
}

.brands-details-products,
.brands-details-products__empty {
  margin-top: 26px;
}

.brands-details-products__empty {
  color: var(--c-muted);
  font-size: .95rem;
}

@media (max-width: 900px) {
  .brands-details-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .brands-details-header__top {
    align-items: flex-start;
  }
}

.toast-stack {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.toast-notification {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-info);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  color: var(--c-primary);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--ease), transform var(--ease);
}

.toast-notification--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification__message {
  font-size: .875rem;
  line-height: 1.4;
}

.toast-notification__close {
  border: 0;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.toast-notification__close:hover {
  color: var(--c-primary);
}
