:root {
  /* Curated Premium Slate & Indigo Aesthetic (Stripe/Apple inspired) */
  --bg: #ffffff;                 /* Pure white base */
  --bg-2: #f8fafc;               /* Soft slate off-white section background */
  --bg-3: #f1f5f9;               /* Slightly darker slate for accents */
  --card: #ffffff;               /* Crisp card background */
  --ink: #0f172a;                /* Deep navy-slate black for headers */
  --muted: #475569;              /* Slate-gray for body and lede copy */
  --line: #e2e8f0;               /* Extremely subtle border separator */
  --line-hover: #cbd5e1;         /* Hover state border separator */
  
  /* Primary Accents & Gradients */
  --primary: #4f46e5;            /* Indigo */
  --primary-hover: #4338ca;
  --accent: #2563eb;             /* Royal blue for links */
  --emerald: #059669;            /* Green for positive indicators */
  --gold: #eab308;               /* Warm amber for stars */
  
  /* Soft Theme Colors */
  --terracotta: #4f46e5;
  --terracotta-soft: rgba(79, 70, 229, 0.04);
  --sage: #0891b2;
  --sage-soft: rgba(8, 145, 178, 0.04);
  --navy: #0f172a;
  --navy-soft: rgba(15, 23, 42, 0.04);
  
  --mono: 'SF Mono', -apple-system-ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;                /* Modern curved cards */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Global Reset & Typo ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 120px 0;
  position: relative;
}
h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}
h2 {
  font-size: 42px;
  background: linear-gradient(135deg, var(--ink) 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}
.lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 700px;
  margin: 18px 0 0;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1 !important; transform: none !important; }
}

/* ---------- Sticky Navigation Bar ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.01);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  margin-right: auto;
  color: var(--ink);
}
.brand img {
  width: 28px;
  height: 28px;
}
nav.links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}
nav.links a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;          /* CRITICAL FIX: Prevent nav wrapping */
  position: relative;
  padding: 4px 0;
}
nav.links a:hover {
  color: var(--ink);
}
nav.links a.current {
  color: var(--primary);
}
nav.links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
nav.links a:hover::after, nav.links a.current::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
  transition: var(--transition);
}
.nav-panel {
  display: contents;
}

/* ---------- Premium Pill Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 99px;           /* Elegant Pill layout */
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);       /* Sleek black primary buttons */
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.btn-primary:hover {
  background: #334155;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.btn-ghost {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}

/* Overriding Outline Buttons to render as Apple/Stripe-Style Chevron Links */
.btn-outline-dark, .btn-outline-white, .cta .btn-outline-white {
  background: transparent !important;
  border: none !important;
  color: var(--accent) !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: none !important;
  height: auto !important;
  transition: var(--transition) !important;
}
.btn-outline-dark:hover, .btn-outline-white:hover, .cta .btn-outline-white:hover {
  text-decoration: none !important;
  color: var(--primary) !important;
  transform: translateX(3px) !important; /* Elegant slide on hover */
}

/* ---------- Language Switcher ---------- */
.lang-switch {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.lang-btn:hover {
  border-color: var(--line-hover);
  color: var(--ink);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  min-width: 140px;
  padding: 6px;
  display: none;
  z-index: 60;
  backdrop-filter: blur(15px);
}
.lang-menu.open {
  display: block;
}
.lang-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}
.lang-menu a:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.lang-menu a.active {
  color: var(--primary);
  background: var(--terracotta-soft);
  font-weight: 700;
}

/* ---------- Hero Section (with Mesh Gradients) ---------- */
.hero {
  background: var(--bg);
  padding: 100px 0 0;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(56, 189, 248, 0.03) 50%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}
.hero h1 {
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 20%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lede {
  position: relative;
  z-index: 1;
  color: var(--muted);
  max-width: 740px;
  margin: 24px auto 0;
  font-size: 21px;
}
.hero-ctas {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 80px auto 0;
  flex-wrap: wrap;
  max-width: 920px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat {
  flex: 1 1 180px;
  text-align: center;
  padding: 36px 16px;
  transition: var(--transition);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.hero-stats .stat span {
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-shot {
  position: relative;
  margin: 40px auto 0;
  max-width: 980px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #f8fafc;
}
.hero-shot::before {
  content: "";
  display: block;
  height: 28px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.hero-shot img {
  width: 100%;
  display: block;
}
.hero-shot-wrap {
  padding-bottom: 80px;
}

/* ---------- Trust Band ---------- */
.trust {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.trust .item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 30px;
}
.trust .dot {
  width: 5px;
  height: 5px;
  background: var(--line-hover);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ---------- Stripe-Style Elevated Grid for Features ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.005);
}
.feature-card:hover {
  border-color: var(--line-hover);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}
.feature-card .icn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--bg-2);
  color: var(--primary);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.icn svg {
  width: 22px;
  height: 22px;
}
.feature-card:hover .icn {
  background: var(--terracotta-soft);
  border-color: rgba(79, 70, 229, 0.2);
}
.feature-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Apple style rounded gray block cards ---------- */
.audiences {
  background: var(--bg);
}
.audiences .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.aud-card {
  border-radius: var(--radius);
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.aud-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  background: #f1f5f9;
}
.aud-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
  color: var(--ink);
}
.aud-card p {
  color: var(--muted);
  font-size: 15.5px;
  flex: 1;
  line-height: 1.6;
}
.aud-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 30px;
  font-size: 14px;
  color: var(--ink);
}
.aud-card ul li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--muted);
}
.aud-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  top: 3px;
}
.aud-card .btn {
  align-self: flex-start;
  width: 100%;
}

/* ---------- Security Section ---------- */
.security {
  background: var(--bg-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.security .grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.sec-item {
  text-align: left;
  border-radius: var(--radius);
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.sec-item:hover {
  border-color: var(--line-hover);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}
.sec-item .badge {
  width: 38px;
  height: 38px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.sec-item .badge svg {
  width: 20px;
  height: 20px;
}
.sec-item h4 {
  font-size: 16.5px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
}
.sec-item p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Platform Showcase ---------- */
.platforms .row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  margin-top: 80px;
}
.platforms .row:not(:first-of-type) {
  margin-top: 120px;
}
.platforms .row.rev {
  direction: rtl;
}
.platforms .row.rev > * {
  direction: ltr;
}
.platform-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}
.platform-shot::before {
  content: "";
  display: block;
  height: 24px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.platform-shot img {
  transition: var(--transition);
}
.platform-copy .eyebrow {
  margin-bottom: 14px;
}
.platform-copy h3 {
  font-size: 38px;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.platform-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.platform-copy ul {
  padding-left: 0;
  list-style: none;
  margin: 22px 0;
}
.platform-copy ul li {
  padding: 8px 0 8px 18px;
  position: relative;
  font-size: 15px;
  color: var(--muted);
}
.platform-copy ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  top: 1px;
}

/* ---------- Testimonials (Elevated Gray Blocks) ---------- */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.t-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
}
.t-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  background: #f1f5f9;
}
.t-stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 14px;
}
.t-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
  vertical-align: -2px;
}
.t-quote {
  font-size: 15.5px;
  color: var(--ink);
  margin: 0 0 24px;
  font-weight: 500;
  line-height: 1.6;
}
.t-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #ffffff !important;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
}
.t-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.t-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

/* ---------- Feature Strip ---------- */
.strip {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 24px;
}
.strip .item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.strip .item .badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.strip .item .badge svg {
  width: 18px;
  height: 18px;
}

/* ---------- FAQs Accordion ---------- */
.faq-list {
  max-width: 760px;
  margin: 60px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 6px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  gap: 16px;
  transition: var(--transition);
}
.faq-q:hover {
  color: var(--primary);
}
.faq-q .plus {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-q .plus::before {
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}
.faq-q .plus::after {
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
}
.faq-item.open .faq-q .plus::after {
  opacity: 0;
}
.faq-item.open .faq-q .plus {
  transform: rotate(180deg);
  border-color: var(--ink);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-a p {
  color: var(--muted);
  font-size: 15.5px;
  padding: 0 6px 24px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Clean CTA Band ---------- */
.cta {
  background: var(--bg-2);
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta h2 {
  color: var(--ink);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cta .lede {
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}
.cta-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-2);
  color: var(--muted);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.foot-brand img {
  width: 26px;
  height: 26px;
}
footer h5 {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  font-weight: 600;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}
footer a {
  text-decoration: none;
  color: var(--muted);
  transition: var(--transition);
}
footer a:hover {
  color: var(--ink);
  text-decoration: none;
}
.foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Pricing Page Styles ---------- */
.ph {
  text-align: center;
  padding: 100px 0 40px;
  position: relative;
}
.ph h1 {
  font-size: 56px;
  margin-top: 10px;
  color: var(--ink);
  letter-spacing: -0.035em;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}
.plan {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.plan.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.08);
  background: var(--card);
}
.plan.featured:hover {
  box-shadow: 0 16px 35px rgba(79, 70, 229, 0.15);
  border-color: var(--primary);
}
.plan.sage {
  border-top: 1px solid var(--line);
}
.plan h3 {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}
.plan .tagline {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
  min-height: 44px;
  line-height: 1.5;
}
.plan .price {
  font-size: 44px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.plan .price.custom {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.plan .price-note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 28px;
  font-weight: 500;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  flex: 1;
  text-align: left;
  border-top: 1px solid var(--line);
}
.plan ul li {
  padding: 10px 0 10px 18px;
  position: relative;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.plan ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.plan .badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}
.plan .btn {
  margin-top: auto;
  width: 100%;
  padding: 11px 22px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.faq-grid .faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.faq-grid .faq-item:hover {
  border-color: var(--line-hover);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}
.faq-grid .faq-item h4 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}
.faq-grid .faq-item p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Legal Pages Styles ---------- */
.legal-hero {
  padding: 100px 0 50px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.legal-hero h1 {
  font-size: 46px;
  color: var(--ink);
  margin-top: 10px;
  letter-spacing: -0.03em;
}
.legal-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
  margin-top: 12px;
}
.legal-body {
  padding: 60px 0 110px;
}
.legal-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-layout p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.legal-layout h2 {
  font-size: 26px;
  color: var(--ink);
  margin: 44px 0 18px;
  letter-spacing: -0.02em;
}
.legal-layout h3 {
  font-size: 20px;
  color: var(--ink);
  margin: 30px 0 12px;
}
.legal-layout ul, .legal-layout ol {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
  padding-left: 20px;
}
.legal-layout li {
  margin-bottom: 10px;
}
.legal-layout .updated {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 30px;
}
.legal-layout .toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 40px 0;
}
.legal-layout .toc h2 {
  font-size: 19px;
  margin-top: 0;
  margin-bottom: 16px;
}
.legal-layout .toc ol {
  margin: 0;
  padding-left: 18px;
}
.legal-layout .toc li {
  margin-bottom: 8px;
}
.legal-layout .toc a {
  color: var(--muted);
}
.legal-layout .toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1120px) { /* Changed from 900px to 1120px to prevent wrapping on mid-size screens */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    padding: 12px 24px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  header.nav.nav-open .nav-panel {
    display: flex;
  }
  .nav-panel nav.links {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  .nav-panel nav.links a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav-panel .nav-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 14px;
    gap: 12px;
  }
  .nav-panel .lang-switch {
    align-self: stretch;
  }
  .nav-panel .lang-btn {
    width: 100%;
    justify-content: center;
  }
  .nav-panel .lang-menu {
    left: 0;
    right: 0;
    top: 100%;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
  }
  .t-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .platforms .row {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 36px;
  }
  .hero h1 {
    font-size: 48px;
  }
  h2 {
    font-size: 36px;
  }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .security .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
  }
  section {
    padding: 70px 0;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-stats .stat {
    flex: 1 1 120px;
    padding: 20px 10px;
  }
  .hero-stats .stat b {
    font-size: 28px;
  }
}
