@charset "UTF-8";

/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --c-bg-card: #ffffff;
  --c-border: #e2e8f0;
  --c-border-strong: #cbd5e1;

  --c-text: #0f172a;
  --c-text-soft: #475569;
  --c-text-muted: #94a3b8;

  --c-brand: #6366f1;
  --c-brand-dark: #4f46e5;
  --c-brand-soft: #eef2ff;

  --c-accent: #f59e0b;
  --c-success: #10b981;
  --c-danger: #ef4444;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  --container: 1120px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--c-brand-dark);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

p {
  margin: 0 0 1em;
}

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

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand);
  background: var(--c-brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 1.0625rem;
  color: var(--c-text-soft);
  margin: 0;
}

/* ─── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.brand img {
  /* Logo IS a wordmark — sized large enough that the "[hermesita]"
   * inside it is legible. Footer keeps the same width on a dark bg. */
  width: 100px;
  height: auto;
  display: block;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: inherit;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px;  }

@media (max-width: 880px) {
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav.open .nav-links a {
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--c-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--c-brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}

.btn-ghost:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 64px;
  background: radial-gradient(1200px 600px at 50% -10%, var(--c-brand-soft), transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--c-bg-alt) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--c-brand), #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--c-text-soft);
  max-width: 680px;
  margin: 0 auto;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: 8px;
}

.hero-meta span::before {
  /* `\2713` = ✓ (CHECK MARK). Using the unicode escape rather than the
   * literal glyph so the file's encoding can't cause mojibake (âœ") if
   * the server forgets to send `Content-Type: text/css; charset=utf-8`. */
  content: '\2713';
  color: var(--c-success);
  margin-right: 6px;
  font-weight: 700;
}

/* ─── Feature grid ──────────────────────────────────────────────────── */
.features {
  background: var(--c-bg);
}

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

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature {
  padding: 28px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--c-brand);
  box-shadow: var(--shadow);
}

.feature .icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  margin: 0;
}

/* ─── How it works ──────────────────────────────────────────────────── */
.steps {
  background: var(--c-bg-alt);
}

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

@media (max-width: 880px) {
  .step-grid { grid-template-columns: 1fr; }
}

.step {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 28px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.step h3 {
  font-size: 1.125rem;
  margin: 12px 0 8px;
}

.step p {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  margin: 0;
}

/* ─── Pricing ───────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.plan:hover {
  border-color: var(--c-brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.plan.featured {
  border-color: var(--c-brand);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.plan h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.plan .price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan .price .unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
}

.plan .label {
  color: var(--c-text-soft);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.plan-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
}

.plan-specs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--c-text-soft);
}

.plan-specs li::before {
  content: '\2713';
  color: var(--c-success);
  font-weight: 700;
  flex-shrink: 0;
}

.plan .plan-cta {
  margin-top: auto;
}

/* ─── FAQ ───────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  /* NOT flex — flex was turning every inline child (text fragments,
   * `<code>` tags) into separate flex items and `space-between` was
   * spreading them out across the row. Absolute-positioning the +
   * lets the question text flow naturally. */
  cursor: pointer;
  list-style: none;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-text-muted);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  /* Combine the centring translate with the 45° rotation so it
   * stays vertically aligned when open. */
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--c-text-soft);
}

/* ─── Testimonials ──────────────────────────────────────────────────── */
.testimonials {
  background: var(--c-bg-alt);
}

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

@media (max-width: 880px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.65;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial .name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial .role {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* ─── CTA banner (full-bleed coloured strip near footer) ────────────── */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--c-brand) 0%, #7c3aed 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 24px 80px;
  padding: 64px 24px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  margin-bottom: 28px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--c-brand);
}

.cta-banner .btn-primary:hover {
  background: var(--c-bg-alt);
}

.cta-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 32px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 880px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }
}

.site-footer .brand,
.site-footer .brand:hover {
  color: #fff;
}

.site-footer .tagline {
  font-size: 0.9375rem;
  color: #94a3b8;
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.footer-col a {
  color: #cbd5e1;
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid #1e293b;
  font-size: 0.8125rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Legal pages ───────────────────────────────────────────────────── */
.legal {
  padding: 64px 0 96px;
  background: var(--c-bg);
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.legal .meta {
  color: var(--c-text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}

.legal h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 1.0625rem;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  color: var(--c-text-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}

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

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--c-brand);
  text-decoration: underline;
  text-decoration-color: var(--c-border-strong);
  text-underline-offset: 3px;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ─── Utility ───────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
