/* ==========================================================================
   Rep Llama Suite — marketing site (www.repllama.com)
   Design tokens copied verbatim from the portal design system
   (app/globals.css) so the static site matches the app 1:1.
   ========================================================================== */

:root {
  --brand: #2c6ad4;
  --brand-hover: #21539f;
  --brand-fg: #ffffff;
  --brand-subtle: #e6f0fe;

  --accent: #e8b338;
  --accent-fg: #002952;

  --background: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #e9edf2;

  --foreground: #002952;
  --muted: #5c6b79;
  --muted-2: #6a7681; /* darkened from #8b97a2 to pass WCAG AA on light bg */

  --border: #dee4ec;
  --border-strong: #c5cfda;

  --success: #1b9a66;
  --success-subtle: #e3f4ec;
  --warning: #b5840f;
  --warning-subtle: #fbf0d4;
  --danger: #d8493c;
  --danger-subtle: #fbe7e4;

  --ring: #508ff7;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(2 41 82 / 0.05);
  --shadow: 0 1px 3px 0 rgb(2 41 82 / 0.08), 0 1px 2px -1px rgb(2 41 82 / 0.08);
  --shadow-lg: 0 10px 30px -12px rgb(2 41 82 / 0.22);
}

/* Dark mode follows the device / OS setting automatically — no toggle. */
@media (prefers-color-scheme: dark) {
  :root {
  --brand: #6fa6ff;
  --brand-hover: #8fbaff;
  --brand-fg: #06223f;
  --brand-subtle: #15294a;

  --accent: #e8b338;
  --accent-fg: #1a1410;

  --background: #0b1622;
  --surface: #122033;
  --surface-2: #1a2b40;

  --foreground: #e8eef5;
  --muted: #9db0c2;
  --muted-2: #6f8298;

  --border: #26384f;
  --border-strong: #38506b;

  --success: #34c58a;
  --success-subtle: #0f3325;
  --warning: #e0a52e;
  --warning-subtle: #3a2d10;
  --danger: #f0625a;
  --danger-subtle: #3a1a18;

  --ring: #6fa6ff;

  /* dark-mode elevation: navy shadows vanish on dark surfaces, use black */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 30px -12px rgb(0 0 0 / 0.6);
  }
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--foreground);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

/* on-brand, consistent keyboard focus everywhere (fields set their own) */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 3px;
}

/* in-page anchors clear the 64px sticky header */
[id] {
  scroll-margin-top: 84px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--muted);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-fg);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-fg);
}
.btn-secondary {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--foreground);
}
.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  color: var(--foreground);
}
.brand-name {
  /* Set SOLID in the lockup: RepLlama, no space. Two words need a hierarchy —
     Rep lighter and slightly opened up, Llama carrying the weight — and the
     pair is tracked back in by .brand-lockup so it still reads as one word.
     Running text, titles and alt copy stay two words: "Rep Llama". */
  white-space: nowrap;
}
.brand-name-rep {
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-name-llama {
  font-weight: 800;
}
.brand-lockup:hover {
  text-decoration: none;
  color: var(--foreground);
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.header-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1.5rem;
}
.header-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.header-nav a:hover {
  color: var(--foreground);
  text-decoration: none;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
@media (min-width: 860px) {
  .header-nav {
    display: flex;
  }
}
/* keep the header from overflowing on small phones */
@media (max-width: 420px) {
  .brand-lockup {
    font-size: 1.1rem;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .header-actions .btn-primary {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }
}


/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      60% 55% at 15% 0%,
      color-mix(in srgb, var(--brand) 16%, transparent),
      transparent 70%
    ),
    radial-gradient(
      50% 50% at 100% 10%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 65%
    );
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 940px) {
  .hero .container {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}
/* the manual line break in the H1 only helps on wider screens */
@media (max-width: 520px) {
  .hero h1 br {
    display: none;
  }
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* beta badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-subtle);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  margin-bottom: 1.25rem;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* hero art: the 2x2 suite grid, scaled up */
.hero-art {
  display: grid;
  place-items: center;
}
.suite-grid {
  width: min(340px, 80%);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2.2vw, 18px);
}
.suite-grid .tile {
  border-radius: clamp(14px, 3vw, 22px);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  color: var(--brand-fg);
}
.suite-grid .tile svg {
  width: 42%;
  height: 42%;
  opacity: 0.92;
}
.suite-grid .tile.brand {
  background: var(--brand);
}
.suite-grid .tile.accent {
  background: var(--accent);
  color: var(--accent-fg);
}

/* ---------------------------------------------------------------- section */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}
.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

/* beta band */
.beta-band {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 12%, var(--surface)),
    var(--surface)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 780px) {
  .beta-band {
    grid-template-columns: 1fr auto;
  }
}
.beta-band h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.beta-band p {
  color: var(--muted);
  margin: 0;
  max-width: 44rem;
}

/* feature cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease,
    border-color 0.15s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--brand-subtle);
  color: var(--brand);
}
.card .icon.accent {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-fg);
}
@media (prefers-color-scheme: dark) {
  .card .icon.accent {
    color: var(--accent);
  }
}
.card .icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.card .tag {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* steps */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 3.25rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  font-family: var(--font-display);
  font-weight: 800;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* support / contributions */
.support-wrap {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) {
  .support-wrap {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.price-card .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--foreground);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}
.price-card .currency {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--foreground);
  font-size: 0.98rem;
}
.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

/* --------------------------------------------------------------- the form */
.form-section {
  scroll-margin-top: 80px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin-inline: auto;
}
.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field.full {
  grid-column: 1 / -1;
}
@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field {
    grid-column: 1 / -1;
  }
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
}
.field .req {
  color: var(--danger);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--muted-2);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 35%, transparent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}
.form-consent {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1.1rem 0 1.25rem;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-status {
  font-size: 0.9rem;
  font-weight: 500;
}
.form-status.ok {
  color: var(--success);
}
.form-status.err {
  color: var(--danger);
}
.form-success {
  text-align: center;
  padding: 1rem 0;
}
.form-success .check {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--success-subtle);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}
.form-success .check svg {
  width: 28px;
  height: 28px;
}
[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 800px;
  margin-inline: auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 0.96rem;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
.footer-brand p {
  color: var(--muted);
  max-width: 26rem;
  margin-top: 0.85rem;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-col a,
.footer-col address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}
.footer-col a:hover {
  color: var(--foreground);
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.82rem;
}

/* --------------------------------------------------------- legal / policy */
.legal {
  padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
}
.legal .container {
  max-width: 820px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.legal .updated {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}
.legal p,
.legal li {
  color: var(--foreground);
  opacity: 0.9;
}
.legal ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.legal .callout {
  background: var(--brand-subtle);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.legal .callout p:last-child {
  margin-bottom: 0;
}

/* skip link (a11y) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-fg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}
