/* Gabito Landing Page Mockup – gabito.eu proposal */
/* Encoding: UTF-8 */

:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --primary-light: #e7f1ff;
  --accent: #c77d8e;
  --accent-warm: #e8a598;
  --accent-purple: #6f42c1;
  --success: #28a745;
  --text: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --bg: #ffffff;
  --bg-alt: #faf8f6;
  --bg-warm: #fdf6f3;
  --border: #e9ecef;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --hero-badge-bg: rgba(255, 255, 255, 0.8);
  --gradient-end: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #4dabf7;
  --primary-dark: #339af0;
  --primary-light: #152a45;
  --accent: #e599ad;
  --accent-warm: #d4a59a;
  --accent-purple: #9775fa;
  --success: #51cf66;
  --text: #e8eaed;
  --text-secondary: #b0b8c1;
  --text-muted: #8b949e;
  --bg: #12151a;
  --bg-alt: #1a1f27;
  --bg-warm: #1c1816;
  --border: #2d333b;
  --surface: #1a1f27;
  --surface-elevated: #222831;
  --header-bg: rgba(18, 21, 26, 0.92);
  --hero-badge-bg: rgba(26, 31, 39, 0.85);
  --gradient-end: #12151a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

/* Font scale (A / AA / AAA) — scales all rem-based text site-wide */
html[data-font-scale="aa"] {
  font-size: 115%;
}

html[data-font-scale="aaa"] {
  font-size: 150%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--primary);
}

.nav-links a.nav-active {
  font-weight: 600;
}

@media (min-width: 769px) {
  .nav-links .nav-mobile-only {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  min-width: 64px;
}

.lang-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.font-scale {
  display: inline-flex;
  align-items: center;
}

.font-scale-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.font-scale-toggle--a {
  font-size: 0.9rem;
}

.font-scale-toggle--aa {
  font-size: 0.78rem;
}

.font-scale-toggle--aaa {
  font-size: 0.68rem;
}

.font-scale-toggle:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.font-scale-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.theme-toggle-icon {
  display: block;
}

.theme-toggle:hover,
.theme-toggle--dark {
  color: var(--primary);
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

html[data-theme="dark"] .lang-select {
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

html[data-theme="dark"] .font-scale-toggle {
  background-color: var(--surface);
}

html[data-theme="dark"] .logo img {
  filter: brightness(0) invert(1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.prod-app-block-note {
  margin: 0;
  padding: 0 0 0 4px;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  text-align: right;
}

.prod-app-block-note a {
  color: var(--accent, #b45309);
  font-weight: 600;
}

.app-entry-blocked[title] {
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .prod-app-block-note {
    display: none;
  }
}

.btn-unavailable,
.btn-unavailable:hover,
.btn--disabled,
.btn--disabled:hover {
  text-decoration: line-through;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-white {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
}

.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--primary-light) 50%, var(--gradient-end) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(199, 125, 142, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge > span:first-child {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-badge > span:last-child {
  white-space: nowrap;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--surface-elevated);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.hero-float-card .icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-float-card strong {
  display: block;
  color: var(--text);
}

.hero-float-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Section common ── */

section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ── Features ── */

.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-alt);
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list {
  margin-top: 16px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ── How it works ── */

.how-it-works {
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.steps-visual {
  margin-top: 56px;
  text-align: center;
}

.steps-visual img {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Who it's for ── */

.audience {
  background: var(--bg);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.audience-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.audience-card:hover {
  border-color: var(--accent-warm);
  background: var(--bg-warm);
}

.audience-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Social proof ── */

.social-proof {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
}

.testimonials {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-author {
  font-size: 0.9rem;
  opacity: 0.9;
}

.testimonial-author strong {
  display: block;
}

/* ── Pricing ── */

.pricing {
  background: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.price-amount small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  flex: 1 1 auto;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.price-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.pricing-state p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-state--loading p {
  margin-bottom: 0;
}

.pricing-state--error {
  border-color: #f5c2c7;
  background: #fff5f5;
}

html[data-theme="dark"] .pricing-state--error {
  border-color: #7a2e35;
  background: #2a1518;
}

.pricing-state--error p {
  color: #842029;
}

html[data-theme="dark"] .pricing-state--error p {
  color: #ffb3b8;
}

.pricing-state--empty {
  border-style: dashed;
}

.pricing-retry {
  margin-top: 4px;
}

/* ── CTA ── */

.cta-section {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Prezentacja ── */

.prezentacja-section {
  background: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.prezentacja-section .section-header {
  margin-bottom: 40px;
}

.prezentacja-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.prezentacja-mailto-btn--disabled {
  text-decoration: line-through;
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.15);
}

.prezentacja-calendly {
  max-width: 720px;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.prezentacja-fallback {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.prezentacja-fallback a {
  font-weight: 600;
}

/* ── Footer ── */

.site-footer {
  background: #1a1d21;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-producer {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-producer a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.footer-producer a:hover {
  color: #fff;
}

.footer-brand .logo {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-dev-link {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-dev-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-legal-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-legal-nav a:hover {
  color: #fff;
}

.footer-legal-sep {
  opacity: 0.45;
}

.cta-legal-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cta-legal-note a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-legal-note a:hover {
  color: var(--primary-dark, var(--primary));
}

.cta-legal-sep {
  margin: 0 0.35em;
  opacity: 0.5;
}

.page-hero .cta-legal-note {
  margin-top: 16px;
}

.features-bottom-cta .cta-legal-note {
  margin-top: 16px;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ── Subpage hero ── */

.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--primary-light) 60%, var(--gradient-end) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

.page-hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Features detail page ── */

.features-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 48px 24px 90px;
  align-items: start;
}

.features-toc {
  position: sticky;
  top: 96px;
}

.features-toc nav ul {
  list-style: none;
}

.features-toc a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.features-toc a:hover {
  color: var(--primary);
}

.feature-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.feature-section:last-of-type {
  border-bottom: none;
}

.feature-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-section > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.detail-list {
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.feature-cta-line {
  margin-top: 24px;
}

.features-bottom-cta {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.features-bottom-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.features-bottom-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Developers page ── */

.dev-code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 12px 0 20px;
  color: var(--text);
}

.dev-code code {
  font-family: inherit;
}

.dev-endpoint-list {
  list-style: none;
  margin-bottom: 20px;
}

.dev-endpoint-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.dev-endpoint-list li:last-child {
  border-bottom: none;
}

.dev-endpoint-list code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.dev-method {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dev-method-get {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.dev-method-post {
  background: #e8f5e9;
  color: #2e7d32;
}

html[data-theme="dark"] .dev-method-post {
  background: #1b3d1f;
  color: #81c784;
}

.dev-note {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.feature-section h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.site-footer-compact {
  padding: 24px 0;
  margin-top: 48px;
}

.site-footer-compact .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  border-top: none;
  padding-top: 0;
}

.site-footer-compact .footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.site-footer-compact .footer-bottom a:hover {
  color: #fff;
}

/* ── Responsive ── */

@media (max-width: 992px) {
  .features-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-toc {
    position: static;
  }

  .features-toc nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .features-toc a {
    border-bottom: none;
    padding: 4px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps,
  .audience-grid,
  .stats-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header .header-inner {
    position: relative;
    gap: 8px;
  }

  .site-header .logo {
    flex-shrink: 1;
    min-width: 0;
    gap: 8px;
  }

  .header-actions {
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .font-scale-toggle {
    min-width: 72px;
    min-height: 44px;
    padding: 10px 12px;
  }

  /* px sizes — header chrome must not grow with html[data-font-scale] */
  .site-header .font-scale-toggle--a {
    font-size: 16px;
  }

  .site-header .font-scale-toggle--aa {
    font-size: 14px;
  }

  .site-header .font-scale-toggle--aaa {
    font-size: 13px;
  }

  .site-header .theme-toggle {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 20px;
  }

  .site-header .lang-select {
    font-size: 14px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions a[data-gabito-app-path="/demo"] {
    display: none;
  }

  .header-actions .btn-outline {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .logo-text {
    display: inline;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  html[data-font-scale="aa"] .site-header .logo-text {
    font-size: calc(1.125rem / 1.15);
  }

  html[data-font-scale="aaa"] .site-header .logo-text {
    font-size: calc(0.9rem / 1.5);
  }

  html[data-font-scale="aa"] .site-header .logo img {
    height: 40px;
    width: 40px;
  }

  html[data-font-scale="aaa"] .site-header .logo img {
    height: 34px;
    width: 34px;
  }

  html[data-font-scale="aaa"] .site-header .header-actions {
    gap: 4px;
  }

  html[data-font-scale="aaa"] .site-header .font-scale-toggle {
    min-width: 64px;
    padding: 8px 10px;
  }

  html[data-font-scale="aaa"] .site-header .lang-select {
    min-width: 56px;
    font-size: 13px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
  }

  .header-actions .btn-primary {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  section {
    padding: 60px 0;
  }

  .features-grid,
  .steps,
  .audience-grid,
  .stats-grid,
  .testimonials,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  body.has-cookie-banner .site-footer {
    padding-bottom: var(--cookie-banner-offset, 120px);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-legal-nav {
    width: 100%;
    justify-content: center;
  }

  .hero-float-card {
    left: 12px;
    bottom: 12px;
  }

}

/* ── Architecture diagrams ── */

.architecture {
  background: var(--bg-alt);
}

.arch-diagram {
  max-width: 760px;
  margin: 0 auto 40px;
}

.arch-svg {
  width: 100%;
  height: auto;
}

/* Simple architecture diagram — theme-aware SVG fills */

.arch-svg--simple .arch-node--core {
  fill: var(--primary);
}

.arch-svg--simple .arch-node--staff {
  fill: var(--primary-light);
  stroke: var(--primary);
  stroke-width: 2;
}

.arch-svg--simple .arch-node--client {
  fill: var(--bg-warm);
  stroke: var(--accent);
  stroke-width: 2;
}

.arch-svg--simple .arch-node--site {
  fill: #f3effa;
  stroke: var(--accent-purple);
  stroke-width: 2;
}

.arch-svg--simple .arch-node--booking {
  fill: #e8f5e9;
  stroke: var(--success);
  stroke-width: 2;
}

.arch-svg--simple .arch-node--ai-staff {
  fill: #f3effa;
  stroke: var(--accent-purple);
  stroke-width: 2;
}

.arch-svg--simple .arch-node--ai-client {
  fill: #e7f1ff;
  stroke: var(--primary);
  stroke-width: 2;
}

.arch-svg--simple .arch-node--live-assist {
  fill: #fdf0ed;
  stroke: var(--accent);
  stroke-width: 2;
}

.arch-svg--simple .arch-label {
  fill: var(--text);
}

.arch-svg--simple .arch-label--on-core {
  fill: #fff;
}

.arch-svg--simple .arch-label--muted {
  fill: var(--text-secondary);
}

.arch-svg--simple .arch-label--caption {
  fill: var(--text-muted);
}

.arch-svg--simple .arch-line {
  stroke: #adb5bd;
}

.arch-svg--simple .arch-line--ai {
  stroke: var(--accent-purple);
}

.arch-svg--simple .arch-line--live {
  stroke: var(--accent);
}

.arch-svg--simple .arch-arrow {
  fill: #adb5bd;
}

.arch-svg--simple .arch-arrow-ai {
  fill: var(--accent-purple);
}

.arch-svg--simple .arch-arrow-live {
  fill: var(--accent);
}

html[data-theme="dark"] .arch-svg--simple .arch-node--site,
html[data-theme="dark"] .arch-svg--simple .arch-node--ai-staff {
  fill: #2a2240;
}

html[data-theme="dark"] .arch-svg--simple .arch-node--booking {
  fill: #1a2e22;
}

html[data-theme="dark"] .arch-svg--simple .arch-node--ai-client {
  fill: #1a2a3d;
}

html[data-theme="dark"] .arch-svg--simple .arch-node--live-assist {
  fill: #3a2528;
}

html[data-theme="dark"] .arch-svg--simple .arch-line {
  stroke: #5c6670;
}

html[data-theme="dark"] .arch-svg--simple .arch-arrow {
  fill: #5c6670;
}

.arch-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-benefits--quad {
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .arch-benefits,
  .arch-benefits--quad {
    grid-template-columns: 1fr;
  }
}

.arch-benefit {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.arch-benefit strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
}

.arch-benefit span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── System schema (4 channels) ── */

.system-schema-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .system-schema-grid {
    grid-template-columns: 1fr;
  }
}

.system-schema-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.system-schema-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.system-schema-card--staff {
  border-top: 3px solid var(--primary);
}

.system-schema-card--client {
  border-top: 3px solid var(--accent);
}

.system-schema-card--public {
  border-top: 3px solid var(--accent-purple);
}

.system-schema-card--booking {
  border-top: 3px solid var(--success);
}

.system-schema-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 12px;
}

.system-schema-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.system-schema-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.system-schema-card .feature-list {
  margin-top: 12px;
  flex: 1;
}

.system-schema-embed {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.system-schema-embed strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 8px;
}

.system-schema-embed p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.system-schema-embed code,
.system-schema-card code {
  font-size: 0.82em;
  word-break: break-word;
}

.system-schema--page {
  background: var(--bg-alt);
  padding: 72px 0;
}

.system-schema-link {
  margin-top: 16px;
  margin-bottom: 0;
}

.steps-visual-caption {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── AI section ── */

.ai-section {
  background: var(--bg);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

.ai-list {
  margin: 20px 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.ai-list li {
  margin-bottom: 8px;
}

.ai-note a {
  font-weight: 600;
}

/* ── Login admin panel ── */

.login-admin-page .login-admin-main {
  padding: 40px 24px 80px;
  max-width: 960px;
}

.admin-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-hint {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-form label span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  background: var(--surface);
  color: var(--text);
}

.admin-form textarea {
  min-height: 72px;
  resize: vertical;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 8px;
  margin-bottom: 24px;
}

.admin-fieldset legend {
  padding: 0 8px;
  font-weight: 600;
}

.admin-status {
  min-height: 1.5em;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.admin-status--error {
  color: #c0392b;
}

html[data-theme="dark"] .admin-status--error {
  color: #ff6b6b;
}

.admin-status--ok {
  color: var(--success);
}

.admin-usage-stats {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.admin-contact-form {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.admin-contact-form h2 {
  margin-bottom: 20px;
}

.admin-checkbox-label {
  display: flex;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
  cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.header-chat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--primary);
  flex-shrink: 0;
  cursor: default;
  opacity: 0.85;
}

.header-chat-icon svg {
  display: block;
}

html[data-theme="dark"] .header-chat-icon {
  background: var(--surface);
  border-color: var(--border);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  margin-top: 8px;
  align-self: flex-start;
}

@media (max-width: 400px) {
  .hero-badge > span:last-child {
    white-space: normal;
  }
}

/* ── Legal pages ── */

.legal-draft-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md, 8px);
  color: #92400e;
  font-size: 0.92rem;
  margin-bottom: 32px;
  padding: 14px 18px;
}

html[data-theme="dark"] .legal-draft-banner {
  background: rgba(245, 158, 11, 0.15);
  border-color: #b45309;
  color: #fcd34d;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 90px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
  scroll-margin-top: 96px;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px 1.25rem;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-page table {
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 16px 0 24px;
  width: 100%;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--bg-warm);
  color: var(--text-primary);
  font-weight: 600;
}

.legal-meta {
  color: var(--text-muted, var(--text-secondary));
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ── Cookie banner ── */

body.has-cookie-banner {
  padding-bottom: var(--cookie-banner-offset, 5.5rem);
}

.cookie-banner {
  background: var(--surface, #fff);
  border-top: 1px solid var(--border);
  bottom: 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  left: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  position: fixed;
  right: 0;
  transform: translateZ(0);
  width: 100%;
  z-index: 99998;
}

.cookie-banner__inner.container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  width: 100%;
}

.cookie-banner__text {
  color: var(--text-secondary);
  flex: 1 1 280px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.cookie-banner__legal {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.cookie-banner__legal a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner__more {
  margin-top: 0;
}

.cookie-banner .btn-sm {
  margin-top: 0;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}
