/* Aroh marketing site — one shared stylesheet, no build step. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f8;
  --panel: #ffffff;
  --panel-border: #e3e0e8;
  --text: #1a1520;
  --text-muted: #55505c;
  --accent: #c8006f;       /* deep pink/magenta — 4.5:1+ on white */
  --accent-strong: #9c0057;
  --accent-contrast: #ffffff;
  --code-bg: #f1eef4;
  --shadow: 0 1px 2px rgba(20, 10, 20, 0.06), 0 8px 24px rgba(20, 10, 20, 0.06);
  --radius: 14px;
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17121a;
    --bg-alt: #1e1822;
    --panel: #221b27;
    --panel-border: #382e40;
    --text: #f2eef5;
    --text-muted: #c3b9c9;
    --accent: #ff4fa8;      /* pink/magenta accent, matches app chat panel */
    --accent-strong: #ff7ec0;
    --accent-contrast: #1a0d14;
    --code-bg: #291f2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  flex: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.header-cta {
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
  color: var(--accent-contrast);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--panel-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 48px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.screenshot-frame {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  padding: 10px;
}

.screenshot-frame img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
}

.screenshot-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 10px 0 0;
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 60ch;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Differentiator banner ---------- */

.differentiator {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel), var(--bg-alt));
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.differentiator h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.differentiator p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.differentiator-figures {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.figure {
  text-align: center;
}

.figure strong {
  display: block;
  font-size: 1.7rem;
  color: var(--accent);
}

.figure span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--panel);
}

caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px 0;
  font-weight: 700;
}

th,
td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.95rem;
}

thead th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

tbody tr:last-child td {
  border-bottom: none;
}

td.highlight,
th.highlight {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card.featured {
  border-color: var(--accent);
  position: relative;
}

.price-card .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card .pack-name {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0;
}

.price-amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-points {
  margin: 0;
  color: var(--text-muted);
}

.price-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.free-credit {
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  margin-top: 32px;
  background: var(--bg-alt);
}

.free-credit strong {
  color: var(--accent);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 48px;
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.cta-banner p {
  margin: 0 0 24px;
  opacity: 0.92;
}

.cta-banner .btn-primary {
  background: var(--accent-contrast);
  color: var(--accent-strong);
}

.cta-banner .btn-primary:hover {
  opacity: 0.9;
}

/* ---------- Legal / content pages ---------- */

.page-header {
  padding: 48px 0 8px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.page-header .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal {
  padding: 32px 0 72px;
}

.legal .container {
  max-width: 780px;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

.legal h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.fill-in {
  background: var(--code-bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
}

.contact-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

.contact-card dt {
  font-weight: 700;
  margin-top: 16px;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 4px 0 0;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--panel-border);
  background: var(--bg-alt);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .differentiator {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .main-nav ul {
    gap: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner,
  .differentiator {
    padding: 28px;
  }
}
