/* ==========================================================================
   RIO AI — retailrio.com
   ========================================================================== */

/* Tokens */
:root {
  --black: #0A0A0A;
  --ink: #111111;
  --white: #FFFFFF;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-150: #EFEFEF;
  --grey-200: #E8E8E8;
  --grey-300: #D4D4D4;
  --grey-400: #A3A3A3;
  --grey-500: #737373;
  --grey-600: #525252;
  --grey-700: #404040;
  --grey-800: #262626;
  --grey-900: #171717;

  --green: #16A34A;
  --green-dark: #15803D;
  --green-soft: #ECFDF3;

  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 3px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 14px rgba(10, 10, 10, 0.06), 0 2px 4px rgba(10, 10, 10, 0.03);
  --shadow-lg: 0 18px 40px rgba(10, 10, 10, 0.08), 0 4px 12px rgba(10, 10, 10, 0.04);
  --shadow-xl: 0 30px 80px rgba(10, 10, 10, 0.14);

  --max-w: 1200px;
  --nav-h: 72px;

  --t-fast: 160ms cubic-bezier(.4,0,.2,1);
  --t-med: 280ms cubic-bezier(.4,0,.2,1);
  --t-slow: 480ms cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul, ol { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--black);
}

p { margin: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--grey-600);
  padding: 6px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.h1 { font-size: clamp(40px, 6.4vw, 76px); }
.h2 { font-size: clamp(32px, 4.6vw, 56px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--grey-600); line-height: 1.55; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--grey-600); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

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

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-md);
}
.btn-primary:hover {
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--grey-200);
}
.btn-secondary:hover { border-color: var(--black); }

.btn-ghost { color: var(--black); }
.btn-ghost:hover { background: var(--grey-100); }

.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--t-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.nav-wrap.is-scrolled {
  border-bottom-color: var(--grey-200);
  background: rgba(255, 255, 255, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--black);
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--grey-700);
  border-radius: var(--radius-md);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-links a:hover { background: var(--grey-100); color: var(--black); }
.nav-links a.active { color: var(--black); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--grey-100); }
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--black);
  position: relative;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--black);
  transition: transform var(--t-fast);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 95;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
  border-top: 1px solid var(--grey-200);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--grey-150);
}
.mobile-menu .btn { margin-top: 16px; align-self: flex-start; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(22, 163, 74, 0.05), transparent 60%),
    radial-gradient(800px 420px at 0% 100%, rgba(0,0,0,0.04), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  background: linear-gradient(180deg, var(--black) 60%, var(--green) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 2px;
}
.hero p.lead { max-width: 560px; margin-bottom: 32px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--grey-600);
  font-size: 14px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

/* Hero illustration: chat mockup */
.hero-art {
  position: relative;
  perspective: 1200px;
}

.chat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  transform: rotate(-1.5deg);
  transition: transform var(--t-slow);
}
.chat-card:hover { transform: rotate(0deg) translateY(-4px); }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--grey-150);
  background: var(--grey-50);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.chat-head .info { line-height: 1.2; }
.chat-head .name { font-weight: 600; font-size: 14px; }
.chat-head .status {
  font-size: 12px; color: var(--grey-500);
  display: inline-flex; align-items: center; gap: 6px;
}
.chat-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
}

.chat-body {
  padding: 20px;
  background: var(--white);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 360px;
}

.bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeUp 600ms var(--t-slow) both;
}
.bubble.user {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 6px;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--grey-100);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.product-mini {
  align-self: flex-start;
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  align-items: center;
}
.product-mini .thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1a1a, #444);
  position: relative;
  overflow: hidden;
}
.product-mini .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80px 80px at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.product-mini .meta .title { font-size: 13.5px; font-weight: 600; color: var(--black); }
.product-mini .meta .price { font-size: 12.5px; color: var(--grey-600); margin-top: 2px; }
.product-mini .add {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid; place-items: center;
  transition: transform var(--t-fast);
}
.product-mini .add:hover { transform: scale(1.06); }

.typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  padding: 12px 14px;
  background: var(--grey-100);
  border-radius: 16px;
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grey-500);
  animation: typing 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-input {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--grey-150);
  background: var(--grey-50);
}
.chat-input .field {
  flex: 1;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--grey-200);
  display: flex; align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: var(--grey-500);
}
.chat-input .mic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid; place-items: center;
}

/* Floating badges around hero art */
.float-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
.float-badge .ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
}
.float-badge.b1 { top: 10%; left: -2%; animation-delay: 0s; }
.float-badge.b2 { bottom: 12%; left: -6%; animation-delay: 1.4s; }
.float-badge.b3 { top: 20%; right: -4%; animation-delay: 0.8s; }
@media (max-width: 1100px) {
  .float-badge.b1, .float-badge.b2, .float-badge.b3 { display: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Logos strip */
.logos {
  border-top: 1px solid var(--grey-150);
  border-bottom: 1px solid var(--grey-150);
  padding: 28px 0;
  background: var(--grey-50);
}
.logos-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.logos-label {
  font-size: 13px; color: var(--grey-500); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  flex-shrink: 0;
}
.logos-row {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  font-family: var(--font-display);
  color: var(--grey-500);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logos-row span { opacity: 0.7; transition: opacity var(--t-fast); }
.logos-row span:hover { opacity: 1; color: var(--black); }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.feature-card:hover {
  border-color: var(--grey-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--grey-600); line-height: 1.6; }

/* Highlight section: side-by-side */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 1fr; }
.split.reverse .split-text { order: 2; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
}

.split-text .eyebrow { margin-bottom: 16px; }
.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--grey-600); font-size: 17px; margin-bottom: 22px; }
.bullet-list { display: flex; flex-direction: column; gap: 12px; }
.bullet-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--grey-700);
}
.bullet-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid; place-items: center;
  margin-top: 1px;
}
.bullet-list .check svg { width: 12px; height: 12px; }

/* Mockup panels */
.mockup {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  padding: 32px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mockup::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 280px at 100% 0%, rgba(22, 163, 74, 0.06), transparent 60%);
  pointer-events: none;
}

.dashboard-mock {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.dash-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-150);
}
.dash-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-300); }
.dash-bar .url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--grey-500);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.dash-content { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
}
.stat-card .label { font-size: 12px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--black); margin-top: 6px; }
.stat-card .delta { font-size: 12px; color: var(--green-dark); margin-top: 4px; font-weight: 600; }

.bar-chart {
  grid-column: span 2;
  height: 120px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--white);
}
.bar-chart .bar {
  flex: 1;
  background: var(--black);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transition: opacity var(--t-fast);
}
.bar-chart .bar:hover { opacity: 1; }
.bar-chart .bar.accent { background: var(--green); opacity: 1; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: steps;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  counter-increment: steps;
}
.step .num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--grey-600); line-height: 1.6; }

/* Stats band */
.stats-band {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-block .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.stat-block .num .green { color: var(--green); }
.stat-block .label { margin-top: 10px; color: var(--grey-400); font-size: 14px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.plan:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-md);
}
.plan.featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  position: relative;
}
.plan.featured h3, .plan.featured .price-num { color: var(--white); }
.plan.featured .plan-meta { color: var(--grey-400); }
.plan.featured .feat li { color: var(--grey-300); }
.plan.featured .feat .check { background: rgba(22, 163, 74, 0.18); color: var(--green); }
.plan.featured .btn-primary { background: var(--green); color: var(--white); }
.plan.featured .btn-primary:hover { background: var(--green-dark); }

.plan-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(22, 163, 74, 0.15);
  padding: 4px 10px; border-radius: var(--radius-pill);
}

.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.plan-meta { font-size: 13.5px; color: var(--grey-500); margin-top: 4px; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.price-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--black); }
.price-per { font-size: 14px; color: var(--grey-500); }

.feat { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feat li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--grey-700); line-height: 1.5;
}
.feat .check {
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; margin-top: 2px;
}
.feat .check svg { width: 10px; height: 10px; }

.plan .btn { width: 100%; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}
.faq-q {
  width: 100%;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--grey-200);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--t-fast), background var(--t-fast);
}
.faq-icon svg { width: 12px; height: 12px; transition: transform var(--t-fast); }
.faq-item.open .faq-icon { background: var(--black); color: var(--white); border-color: var(--black); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med);
  color: var(--grey-600);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-a-inner { padding: 0 0 24px 0; padding-right: 40px; }

/* CTA banner */
.cta-banner {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 100% 0%, rgba(22, 163, 74, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: var(--grey-400); }
.cta-banner .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-self: end; }
.cta-banner .btn-primary { background: var(--white); color: var(--black); }
.cta-banner .btn-primary:hover { background: var(--grey-100); }
.cta-banner .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.cta-banner .btn-secondary:hover { border-color: var(--white); }
@media (max-width: 800px) {
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .ctas { justify-self: start; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--grey-200);
  padding: 64px 0 32px;
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 14.5px;
  color: var(--grey-700);
  transition: color var(--t-fast);
}
.footer ul a:hover { color: var(--black); }
.footer-about p { font-size: 14.5px; color: var(--grey-600); line-height: 1.6; max-width: 320px; margin-top: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--grey-150);
  font-size: 13.5px;
  color: var(--grey-500);
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--black); }

/* Page header (sub-pages) */
.page-head {
  padding: clamp(56px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--grey-150);
  text-align: center;
  background: var(--grey-50);
}
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }
.page-head p { color: var(--grey-600); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Legal/document layout */
.doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: clamp(48px, 6vw, 72px) 0;
  align-items: start;
}
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } }
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 14px;
}
.toc h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  margin-bottom: 14px;
  font-weight: 600;
}
.toc ul { display: flex; flex-direction: column; gap: 4px; }
.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--grey-700);
  border-left: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.toc a:hover { background: var(--grey-100); color: var(--black); }
.toc a.active { color: var(--black); border-left-color: var(--green); background: var(--grey-100); }
@media (max-width: 900px) { .toc { position: static; } }

.doc-body { font-size: 15.5px; color: var(--grey-700); line-height: 1.75; max-width: 760px; }
.doc-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--black);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; margin-top: 24px; margin-bottom: 8px; color: var(--black); }
.doc-body p { margin-bottom: 14px; }
.doc-body ul, .doc-body ol { margin: 8px 0 18px 22px; }
.doc-body ul li { list-style: disc; margin-bottom: 6px; }
.doc-body ol li { list-style: decimal; margin-bottom: 6px; }
.doc-body strong { color: var(--black); }
.doc-body a { color: var(--green-dark); border-bottom: 1px solid var(--green-soft); }
.doc-body a:hover { border-bottom-color: var(--green-dark); }
.doc-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--grey-500);
  background: var(--grey-100);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { font-size: 15.5px; color: var(--grey-700); line-height: 1.65; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 24px; color: var(--grey-600); }
.info-card {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 14px;
  display: flex; gap: 16px;
  align-items: flex-start;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.info-card:hover { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.info-card .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-card .ico svg { width: 18px; height: 18px; }
.info-card .label { font-size: 13px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.info-card .val { font-size: 16px; font-weight: 600; color: var(--black); margin-top: 4px; }
.info-card .val a:hover { color: var(--green-dark); }
.info-card .sub { font-size: 13.5px; color: var(--grey-600); margin-top: 4px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grey-700);
}
.field-group input,
.field-group textarea,
.field-group select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
.field-group textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--grey-500); margin-top: -6px; margin-bottom: 14px; }

/* Compare table */
.compare {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14.5px;
  background: var(--white);
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey-150);
}
.compare th {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  background: var(--grey-50);
}
.compare th:first-child { width: 38%; }
.compare td.center, .compare th.center { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green-dark); font-weight: 600; }
.compare .no { color: var(--grey-400); }
.compare .val { color: var(--grey-700); }
.compare-wrap { overflow-x: auto; }

/* Pricing toggle */
.price-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--grey-700);
}
.toggle-pill {
  display: inline-flex;
  background: var(--grey-100);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.toggle-pill button {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grey-600);
  transition: background var(--t-fast), color var(--t-fast);
}
.toggle-pill button.active {
  background: var(--black); color: var(--white);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--t-slow), transform 700ms var(--t-slow);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  html { scroll-behavior: auto; }
}
