/* Archouse site, shared design system. General Sans, NO BOLD anywhere (400 +
   500 only). Two-tone headers, muted-purple accent, dark hero, mobile-first.
   All color tokens are CSS variables injected by src/site/shell.js from
   config/content.js. See SHELL.md section 1 for the token contract. */

@font-face {
  font-family: "General Sans";
  font-style: normal; font-weight: 400; font-display: block;
  src: url("/fonts/GeneralSans-400.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal; font-weight: 500; font-display: block;
  src: url("/fonts/GeneralSans-500.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
.rx-body {
  margin: 0; background: var(--d-section-light); color: var(--d-on-light);
  font-family: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; }
.rx-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.rx-center { text-align: center; }
.rx-center .rx-h2-line { justify-content: center; }
.rx-center .rx-h2-sub { margin-left: auto; margin-right: auto; }

/* Buttons */
.rx-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 0;
  transition: background .16s, box-shadow .16s, transform .16s; }
.rx-btn-accent { background: var(--d-accent); color: var(--d-accent-text); }
.rx-btn-accent:hover { box-shadow: 0 10px 30px var(--d-accent-soft); transform: translateY(-2px); }
.rx-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.rx-btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
.rx-btn svg { width: 16px; height: 16px; }

/* Eyebrow + two-tone header */
.rx-eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 500;
  color: var(--d-accent); margin: 0 0 16px; }
.rx-eyebrow-light { color: #cdc3ff; }
.rx-h2 { margin: 0 0 clamp(26px, 4vw, 44px); letter-spacing: -0.015em; line-height: 1.12; }
.rx-h2-line { display: block; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; }
.rx-h2-top { font-weight: 500; color: var(--d-header-top); }
.rx-h2-light { font-weight: 500; color: var(--d-header-sub); }
.rx-h2-sub { display: block; margin-top: 14px; font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  font-weight: 400; line-height: 1.5; color: var(--d-on-light-faint); max-width: 640px; }

.rx-section { padding: clamp(56px, 8vw, 100px) 0; }
.rx-section-light { background: var(--d-section-light); }
.rx-section-white { background: var(--d-section-white); }
.rx-section-dark { background: var(--d-base); color: var(--d-text); }
.rx-section-dark .rx-h2-top { color: #fff; }
.rx-section-dark .rx-h2-light { color: rgba(255,255,255,0.6); }
.rx-section-dark .rx-h2-sub { color: rgba(243,241,247,0.72); }

/* Nav */
.rx-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.rx-nav-inner { display: flex; align-items: center; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 16px clamp(20px, 5vw, 40px); }
.rx-brand { font-weight: 500; color: #fff; font-size: 1.05rem; }
.rx-nav-links { display: flex; gap: 26px; margin-left: auto; }
.rx-nav-links a { color: rgba(255,255,255,0.9); font-size: 0.92rem; }
.rx-nav-cta { background: var(--d-accent); color: var(--d-accent-text); font-weight: 500; font-size: 0.9rem; padding: 9px 20px; border-radius: 999px; }
.rx-nav-toggle { display: none; margin-left: auto; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.rx-nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.rx-nav.rx-scrolled { background: #fff; box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.rx-nav.rx-scrolled .rx-brand { color: var(--d-header-top); }
.rx-nav.rx-scrolled .rx-nav-links a { color: var(--d-on-light); }
.rx-nav.rx-scrolled .rx-nav-toggle span { background: var(--d-header-top); }
.rx-nav-mobile { display: none; }
.rx-nav-mobile.rx-open { display: flex; flex-direction: column; gap: 4px; background: #fff; padding: 12px clamp(20px, 5vw, 40px) 20px; }
.rx-nav-mobile a { color: var(--d-header-top); padding: 10px 0; font-size: 0.98rem; }
.rx-nav-cta-mobile { color: var(--d-accent) !important; font-weight: 500; }

/* Hero */
.rx-hero { position: relative; min-height: 92svh; display: grid; align-content: center;
  background: var(--d-base);
  padding: clamp(120px, 16vh, 190px) clamp(20px, 6vw, 88px) clamp(56px, 10vh, 110px); }
.rx-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 15% 0%, var(--d-accent-soft), transparent 60%); pointer-events: none; }
.rx-hero-inner { position: relative; width: 100%; max-width: 940px; min-width: 0; }
.rx-hero-title { margin: 0 0 22px; letter-spacing: -0.02em; line-height: 1.06; }
.rx-hero-title span { display: block; }
.rx-hero-top { font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 500; color: var(--d-text); }
.rx-hero-sub-line { font-size: clamp(1.5rem, 4.4vw, 3rem); font-weight: 400; color: var(--d-text-muted); }
.rx-hero-sub { margin: 0 0 34px; max-width: 600px; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--d-text-muted); }
.rx-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Capabilities */
.rx-cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; text-align: left; }
.rx-cap-card { background: var(--d-section-light); border: 1px solid var(--d-line-light); border-radius: 20px; padding: 26px 24px; }
.rx-cap-card .rx-icon { width: 26px; height: 26px; color: var(--d-accent); margin-bottom: 16px; }
.rx-cap-card h3 { font-size: 1.08rem; margin: 0 0 8px; color: var(--d-header-top); }
.rx-cap-card p { margin: 0; font-size: 0.94rem; color: var(--d-on-light); }

/* How it works */
.rx-step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; text-align: left; }
.rx-step-card { background: var(--d-section-white); border: 1px solid var(--d-line-light); border-radius: 20px; padding: 28px 24px; }
.rx-step-number { display: block; font-size: 0.82rem; font-weight: 500; color: var(--d-accent); letter-spacing: 0.1em; margin-bottom: 14px; }
.rx-step-card h3 { font-size: 1.1rem; margin: 0 0 8px; color: var(--d-header-top); }
.rx-step-card p { margin: 0; font-size: 0.94rem; color: var(--d-on-light); }

/* Case study */
.rx-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 44px; }
.rx-case-shot { margin: 0; background: var(--d-section-light); border: 1px solid var(--d-line-light); border-radius: 20px; padding: 16px; }
.rx-case-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--d-line-light); }
.rx-case-label { display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem;
  font-weight: 500; color: var(--d-on-light-faint); background: #fff; border-radius: 999px; padding: 6px 14px; margin-bottom: 12px; }
.rx-case-label-accent { color: var(--d-accent); background: var(--d-accent-soft); }
.rx-case-shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--d-on-light); }
.rx-case-results { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; max-width: 720px; margin-inline: auto; }
.rx-case-results li { font-size: 0.98rem; color: var(--d-on-light); padding-left: 26px; position: relative; }
.rx-case-results li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--d-accent); }
.rx-case-live { text-align: center; margin: 32px 0 0; }
.rx-case-live a { color: var(--d-accent); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.rx-case-live a svg { width: 16px; height: 16px; }

/* Contact form */
.rx-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.rx-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.rx-field label { font-size: 0.82rem; font-weight: 500; color: var(--d-text-muted); }
.rx-field input, .rx-field textarea {
  width: 100%; background: var(--d-surface); border: 1px solid var(--d-line); color: var(--d-text);
  border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 0.95rem;
}
.rx-field textarea { resize: vertical; min-height: 96px; }
.rx-field input:focus, .rx-field textarea:focus { outline: 2px solid var(--d-accent); outline-offset: 1px; border-color: transparent; }
.rx-form { max-width: 640px; margin: 0 auto; }
.rx-form .rx-btn { width: 100%; justify-content: center; }
.rx-form-status { margin: 16px 0 0; font-size: 0.92rem; }
.rx-form-status-error { color: #ff9d9d; }
.rx-form-success { text-align: center; padding: 20px 0; }
.rx-form-success h3 { font-size: 1.3rem; margin-bottom: 8px; color: #fff; }
.rx-form-alt { text-align: center; margin: 24px 0 0; font-size: 0.92rem; color: var(--d-text-muted); }
.rx-form-alt a { color: var(--d-accent); }

/* Footer */
.rx-footer { background: #fff; color: var(--d-on-light); border-top: 1px solid var(--d-line-light); padding: clamp(48px, 7vw, 76px) 0 32px; }
.rx-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.rx-foot-col h4 { margin: 0 0 14px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; color: var(--d-header-top); }
.rx-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rx-foot-col a { font-size: 0.9rem; color: var(--d-on-light); }
.rx-foot-col a:hover { color: var(--d-accent); }
.rx-foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--d-line-light); font-size: 0.82rem; color: var(--d-on-light-faint); }

/* Mobile */
@media (max-width: 780px) {
  .rx-nav-links { display: none; }
  .rx-nav-cta { display: none; }
  .rx-nav-toggle { display: flex; }
  .rx-svc-layout, .rx-consult-panel, .rx-quote-panel { grid-template-columns: 1fr; }
}
