/* OK Aimee — Calm Command Center mockup */

:root {
  --ink: #0a0f18;
  --ink-elevated: #111827;
  --ink-muted: #1e293b;
  --slate: #334155;
  --mist: #94a3b8;
  --fog: #cbd5e1;
  --paper: #f1f5f9;
  --white: #f8fafc;
  --teal: #2eb8a6;
  --teal-dim: rgba(46, 184, 166, 0.15);
  --teal-glow: rgba(46, 184, 166, 0.35);
  --violet: #8b7ec8;
  --violet-dim: rgba(139, 126, 200, 0.12);
  --radius-pill: 9999px;
  --radius-card: 14px;
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --tracking-tight: -0.03em;
  --tracking-head: -0.04em;
  --section-pad: clamp(4.5rem, 10vw, 7.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fog);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

/* —— Nav —— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.nav-brand img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.nav-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--mist);
  line-height: 1.3;
  max-width: 11rem;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  padding-left: 0.85rem;
}

@media (max-width: 520px) {
  .nav-tagline {
    display: none;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mist);
}

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

@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--ink);
  border: 1px solid var(--teal);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: transparent;
  color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal-glow);
}

/* —— Sections & rhythm —— */
.section {
  position: relative;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
}

.section--dark {
  background: var(--ink);
  color: var(--fog);
}

.section--elevated {
  background: var(--ink-elevated);
  color: var(--fog);
}

.section--light {
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  color: var(--slate);
}

.section--light .section-label,
.section--light h2,
.section--light h3 {
  color: var(--ink);
}

.section--light p {
  color: var(--slate);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-head {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: var(--tracking-head);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 28ch;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 2.5rem;
  opacity: 0.92;
}

/* —— Watermark —— */
.watermark {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  opacity: 0.04;
  width: min(90vw, 520px);
  height: auto;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  filter: grayscale(0.3);
}

.section--light .watermark {
  opacity: 0.06;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--section-pad) + 3.5rem);
  display: flex;
  align-items: center;
}

.hero .section-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero .section-inner {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero-watermark {
  top: 42%;
  right: -12%;
  width: min(100vw, 640px);
  opacity: 0.035;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: var(--tracking-head);
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.hero-copy p.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--mist);
  max-width: 38ch;
  margin: 0 0 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--teal);
  color: var(--ink);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: transparent;
  color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--fog);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn--ghost:hover {
  border-color: var(--violet);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--violet-dim);
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.6) 0%,
    rgba(15, 23, 42, 0.85) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-typing-wrap {
  position: absolute;
  inset: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-typing-wrap.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.hero-terminal {
  width: 100%;
  max-width: 380px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--fog);
}

.hero-terminal .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--teal);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-diagram-wrap {
  position: absolute;
  inset: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.hero-diagram-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-diagram {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  padding: 1.5rem 1.5rem 1.65rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(17, 24, 39, 0.45);
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s, background 0.35s;
}

.section--light .card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 184, 166, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    155deg,
    rgba(46, 184, 166, 0.06) 0%,
    rgba(139, 126, 200, 0.05) 100%
  );
}

.section--light .card:hover {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(241, 245, 249, 0.9) 100%
  );
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--teal);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5rem;
  color: var(--white);
}

.section--light .card h3 {
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.88;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— How it works —— */
.flow-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .flow-block {
    grid-template-columns: 1.1fr 1fr;
  }
}

.flow-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-copy li {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.95rem;
}

.flow-copy li:last-child {
  border-bottom: 0;
}

.flow-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-svg-wrap {
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.5rem;
  background: rgba(10, 15, 24, 0.5);
}

.section--light .flow-svg-wrap {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

/* —— Split feature rows —— */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-row {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.feature-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
  }

  .feature-row h3 {
    grid-column: 1;
  }

  .feature-row > p,
  .feature-row > ul {
    grid-column: 2;
  }
}

.feature-row h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0;
}

.feature-row p {
  margin: 0;
  font-size: 1rem;
  max-width: 60ch;
}

.feature-row > ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 60ch;
}

.feature-row > ul li + li {
  margin-top: 0.35rem;
}

.section--light .feature-row > ul {
  color: var(--slate);
}

.section--light .feature-row h3 {
  color: #6d5a9c;
}

#the-catch .section-label {
  text-align: center;
}

#the-catch .section-head {
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#the-catch .feature-row {
  display: block;
  padding-bottom: 0;
  border-bottom: 0;
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 1280px) {
  .pricing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(17, 24, 39, 0.5);
  transition: transform 0.35s ease, border-color 0.35s;
}

.price-card--featured {
  border-color: rgba(46, 184, 166, 0.45);
  background: linear-gradient(
    160deg,
    rgba(46, 184, 166, 0.08) 0%,
    rgba(139, 126, 200, 0.06) 100%
  );
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 126, 200, 0.4);
}

.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  flex-shrink: 0;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin: 0.5rem 0;
}

.price-card .amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mist);
}

.price-tier-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.45;
  margin: 0.15rem 0 1rem;
  max-width: 28ch;
}

.price-card ul {
  flex: 1 1 auto;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--mist);
  min-height: 0;
}

.price-card > .btn {
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
  white-space: nowrap;
}

.price-card > .price-tier-label,
.price-card > .amount {
  flex-shrink: 0;
}

.price-card li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.7;
}

.pricing-watermark {
  right: -6%;
  top: 40%;
  width: min(85vw, 480px);
  opacity: 0.045;
}

/* —— Competitive comparison table —— */
.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;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.compare-table thead th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  vertical-align: bottom;
}

.compare-table thead th:first-child {
  padding-left: 0;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  padding: 1.1rem 1.25rem 1.1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
  white-space: nowrap;
}

.compare-table td {
  text-align: left;
  color: var(--slate);
  padding: 1.1rem 1.25rem 1.1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

/* —— Download —— */
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

.download-platform-btn {
  min-width: 12rem;
  text-align: center;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  padding: 1.5rem 1.5rem 1.65rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(17, 24, 39, 0.45);
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 184, 166, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5rem;
  color: var(--white);
}

.contact-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mist);
}

.contact-email {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  word-break: break-all;
}

.contact-email:hover {
  text-decoration: underline;
}

/* —— Agent workflow strip —— */
.agent-flow-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem 0.35rem;
  margin-top: 2rem;
}

.flow-step {
  flex: 1 1 140px;
  max-width: 200px;
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: var(--radius-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}

.flow-step:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 184, 166, 0.25);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.flow-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.flow-step h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.flow-step p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--slate);
}

.flow-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--mist);
  min-width: 1.25rem;
  align-self: center;
}

@media (max-width: 720px) {
  .agent-flow-container {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.35rem 0;
    align-self: center;
  }

  .flow-step {
    max-width: none;
    width: 100%;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mist);
}

.site-footer a {
  color: var(--teal);
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-bottom: 1.25rem;
}

.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.footer-legal li {
  display: inline-flex;
}

.footer-legal a {
  font-size: 0.8125rem;
}

.site-footer .tagline {
  margin: 0;
}

.site-footer .footer-company {
  margin-top: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  color: var(--mist);
}

.site-footer .footer-company strong {
  color: var(--fog);
  font-weight: 600;
}

/* —— Standalone legal pages —— */
.page-legal {
  min-height: 100vh;
  background: var(--paper);
  color: var(--slate);
}

.legal-top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem clamp(1.25rem, 4vw, 2rem);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-back {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.legal-back:hover {
  color: var(--teal);
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem) 3rem;
  line-height: 1.65;
}

.legal-doc h1 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: var(--tracking-head);
}

.legal-updated {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 2rem;
}

.legal-doc h2 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.65rem;
  letter-spacing: var(--tracking-tight);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.9375rem;
  margin: 0 0 0.85rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

.legal-doc a {
  color: #0d9488;
  font-weight: 500;
}

.legal-doc a:hover {
  text-decoration: underline;
}

.page-legal .site-footer {
  background: var(--ink);
  color: var(--mist);
}

.page-legal .site-footer .footer-legal a {
  color: var(--teal);
}
