/* ============================================================
   Sobra — Landing & Legal Site
   Brand colors:
     primary  #16A34A (green)
     accent   #7C3AED (purple)
     bg-dark  #0A0A0A
     bg-soft  #0F172A
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #16A34A;
  --primary-light: #DCFCE7;
  --primary-dark: #15803D;
  --accent: #7C3AED;
  --accent-light: #EDE9FE;
  --bg: #0A0A0A;
  --bg-soft: #0F172A;
  --surface: #1E293B;
  --surface-2: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border: #334155;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 14px;
  --radius-lg: 24px;
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

@media (max-width: 700px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(22, 163, 74, 0.18), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(22, 163, 74, 0.25);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13px;
}

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

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 88px 24px;
  position: relative;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 56px;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s, border-color 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.12);
  font-size: 24px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Security callout */
.security {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .security {
    grid-template-columns: 1fr;
    padding: 36px;
  }
}

.security h2 {
  margin-bottom: 14px;
}

.security-points {
  list-style: none;
  display: grid;
  gap: 18px;
}

.security-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.security-points li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  background-image:
    url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 6.5 11.5 13 4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.security-points strong {
  color: var(--text);
}

/* Two-column rows */
.row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.row.flip {
  grid-template-columns: 1fr 1.1fr;
}

.row.flip .row-text {
  order: 2;
}

@media (max-width: 800px) {
  .row, .row.flip {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .row.flip .row-text {
    order: 0;
  }
}

.row-visual {
  background: linear-gradient(135deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.1);
}

.row h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.row p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.row ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.row ul li {
  color: var(--text-muted);
  padding-left: 26px;
  position: relative;
}

.row ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.plan.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.06), var(--surface));
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 42px;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.plan-features li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 96px 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.12), transparent 50%);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer-col p {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-col h5 {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 600;
}

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

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

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================================
   Legal pages (privacy, terms, settings)
   ============================================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.legal-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal ul, .legal ol {
  margin-left: 22px;
  margin-bottom: 18px;
}

.legal li {
  margin-bottom: 6px;
}

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

.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(22, 163, 74, 0.35);
  text-underline-offset: 3px;
}

.callout {
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

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

.callout.warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin: 24px 0 40px;
}

.toc h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0 0 0 18px;
  padding: 0;
}

.toc li {
  margin: 4px 0;
  font-size: 14px;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

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

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

table.data-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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