/* Healthy Superhuman — brand-aligned static one-pager
   Tokens mirrored in BRAND-MATCH.md for Build landing parity. */

:root {
  /* Color */
  --violet: #6B4C9A;
  --violet-dark: #553a7c;
  --violet-soft: #efe8f7;
  --cream: #F7F4EF;
  --cream-deep: #efe9e0;
  --text: #1f1a24;
  --text-muted: #5a5263;
  --white: #ffffff;

  /* Shape */
  --radius: 12px;
  --radius-btn: 999px; /* pill — matches typical Grok Build / landing CTAs */
  --radius-icon: 10px;
  --shadow: 0 10px 30px rgba(31, 26, 36, 0.08);

  /* Layout */
  --max: 960px;
  --narrow: 640px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 3.25rem;

  /* Type — Inter (Google Fonts) + system fallback matching Build */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Type scale */
  --fs-xs: 0.8rem;     /* 12.8px — copyright, fine print */
  --fs-sm: 0.875rem;   /* 14px — notes, nav meta */
  --fs-base: 1rem;     /* 16px — body */
  --fs-md: 1.0625rem;  /* 17px — tagline */
  --fs-lg: 1.25rem;    /* 20px — section titles */
  --fs-xl: clamp(1.5rem, 4vw, 2.25rem); /* hero H1 */
  --lh-tight: 1.25;
  --lh-body: 1.55;
  --tracking-tight: -0.02em;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--cream);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--violet);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  z-index: 100;
  border-radius: var(--radius-btn);
  font-weight: var(--fw-semibold);
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107, 76, 154, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: var(--fw-semibold);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-icon);
}

.brand-name {
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  font-weight: var(--fw-semibold);
}

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

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

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

.nav-cta {
  background: var(--violet);
  color: var(--white) !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-btn);
  font-weight: var(--fw-semibold) !important;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: var(--violet-dark);
  color: var(--white) !important;
}

/* Hero */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--violet-soft), transparent 70%),
    var(--cream);
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero-logo {
  width: min(100%, 420px);
  margin: 0 auto var(--space-1);
}

.hero h1 {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  max-width: 22ch;
  color: var(--text);
}

.tagline {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.tagline-es {
  margin: 0;
  max-width: 36rem;
  color: var(--violet);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  padding: 0.85rem 1.4rem;
  min-height: 2.75rem;
  font-family: var(--font);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--violet);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--violet-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-muted);
  border-color: rgba(107, 76, 154, 0.25);
}

.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.cta-note {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 34rem;
  line-height: var(--lh-body);
}

/* About / Contact */
.about,
.contact {
  padding: var(--space-5) 0;
}

.about {
  background: var(--white);
  border-block: 1px solid rgba(107, 76, 154, 0.08);
}

.about h2,
.contact h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--violet);
  line-height: var(--lh-tight);
}

.about p,
.contact p {
  margin: 0 0 var(--space-3);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

.about-es {
  color: var(--text-muted) !important;
  font-size: var(--fs-sm);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-list a {
  font-weight: var(--fw-semibold);
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: var(--space-4) 0 var(--space-5);
  background: var(--cream-deep);
  border-top: 1px solid rgba(107, 76, 154, 0.1);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.disclaimer {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
  max-width: 36rem;
}

.copyright {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: var(--space-4);
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
