/* ============ RaaS design system — stripe.com / superhuman.com direction ============ */
/* Palette distilled from superhuman.com: warm charcoal ink, cream surfaces,
   violet accent, lavender highlight, dusk-sky glows. */
:root {
  --bg: #f6f4ef;
  --bg-dark: #292827;
  --bg-dark-2: #33312e;
  --ink: #292827;
  --ink-soft: #5f5c56;
  --ink-inverse: #faf9f6;
  --ink-inverse-soft: #bab6af;
  --accent: #714cb6;
  --accent-2: #d4c7ff;
  --grad: linear-gradient(100deg, #6a45b5, #9d7ef0);
  --border: rgba(41, 40, 39, 0.1);
  --border-inverse: rgba(250, 249, 246, 0.14);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(41, 40, 39, 0.04), 0 8px 32px rgba(41, 40, 39, 0.07);
  --shadow-hover: 0 2px 4px rgba(41, 40, 39, 0.05), 0 16px 48px rgba(113, 76, 182, 0.16);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  display: inline-flex; align-items: center; gap: 9px; letter-spacing: -0.01em;
}
.logo-mark { width: 26px; height: auto; flex-shrink: 0; }
.main-nav { display: flex; gap: 26px; margin-left: 8px; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.main-nav a { position: relative; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang-switch a {
  font-size: 0.78rem; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  color: var(--ink-soft); transition: all 0.2s;
}
.lang-switch a[aria-current] { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; font-family: var(--font-body);
  border-radius: 999px; padding: 10px 22px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(113, 76, 182, 0.35); }
.btn-primary:hover { box-shadow: 0 6px 28px rgba(113, 76, 182, 0.5); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden;
  background: var(--bg-dark); color: var(--ink-inverse);
}
.hero { padding: 120px 0 100px; }
.page-hero { padding: 90px 0 70px; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; display: block;
}
/* With the live shader, repurpose the glow layer as a dark scrim so the
   left-aligned hero text stays readable over the vivid gradient. */
.has-canvas .hero-glow {
  opacity: 1; animation: none;
  background:
    linear-gradient(95deg, rgba(14,12,20,0.82) 0%, rgba(14,12,20,0.5) 34%, rgba(14,12,20,0.08) 62%, rgba(14,12,20,0) 80%),
    linear-gradient(0deg, rgba(14,12,20,0.7) 0%, rgba(14,12,20,0) 42%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 18% 0%, rgba(113, 76, 182, 0.4), transparent 65%),
    radial-gradient(640px 420px at 85% 15%, rgba(212, 199, 255, 0.16), transparent 65%),
    radial-gradient(500px 400px at 50% 110%, rgba(157, 126, 240, 0.2), transparent 70%);
  animation: glowShift 14s ease-in-out infinite alternate;
}
@keyframes glowShift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -28px, 0) scale(1.06); }
}
.hero-inner { position: relative; max-width: 860px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 22px;
  padding: 6px 14px; border: 1px solid var(--border-inverse); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 18px; }
.hero-sub { font-size: 1.18rem; color: var(--ink-inverse-soft); max-width: 620px; margin-bottom: 36px; }
.page-hero .hero-sub { margin-bottom: 0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero .btn-ghost { border-color: var(--border-inverse); color: var(--ink-inverse); }
.hero .btn-ghost:hover { border-color: var(--ink-inverse); }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.87rem; font-weight: 500;
  color: var(--ink-inverse-soft); padding: 7px 14px; border: 1px solid var(--border-inverse);
  border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}
.chip svg { width: 15px; height: 15px; color: var(--accent-2); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-dark-2); color: var(--ink-inverse); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); max-width: 560px; margin-bottom: 48px; font-size: 1.06rem; }
.section-dark .section-sub { color: var(--ink-inverse-soft); }
.section .section-title:only-of-type { margin-bottom: 40px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Single-page anchored sections ----------
   Offset is handled once by html{scroll-padding-top} = header height.
   Anchored sections use a smaller top padding so a jumped-to heading sits
   just under the header instead of far down the viewport. */
.section.anchor { padding-top: 52px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .section-title { margin-bottom: 12px; }
.section-head .section-sub { margin-bottom: 0; }
.incl-title { font-size: 1.15rem; margin: 48px 0 20px; }
.about-prose { max-width: 720px; }
.about-prose h3 { font-size: 1.3rem; margin-bottom: 12px; }
.founders-h { font-size: 1.3rem; margin: 56px 0 24px; }
/* Dark-section text contrast for moved sections */
.section-dark .prose,
.section-dark .step p { color: var(--ink-inverse-soft); }
.band-note { color: var(--ink-soft); text-align: center; max-width: 520px; margin: 0 auto; }

/* ---------- Visitor flag ---------- */
.visitor-flag { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 18px; color: var(--ink-soft); }
.visitor-flag svg { display: block; border-radius: 3px; }
.visitor-flag.has-flag svg { box-shadow: 0 0 0 1px var(--border); }

/* ---------- Service step examples ---------- */
.step-examples { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.step-examples li { position: relative; padding-left: 20px; font-size: 0.96rem; color: var(--ink-inverse-soft); }
.step-examples li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.section-dark .step-examples li { color: var(--ink-inverse-soft); }

/* ---------- Robots: use-case blocks with illustration ---------- */
.robot-blocks { display: flex; flex-direction: column; gap: 28px; }
.robot-block {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
  border-bottom: none; padding: 0; scroll-margin-top: 90px;
}
.robot-block:nth-child(even) { grid-template-columns: 1fr 220px; }
.robot-block:nth-child(even) .robot-figure { order: 2; }
.robot-figure {
  aspect-ratio: 1/1; border-radius: 18px; overflow: hidden;
  background: linear-gradient(150deg, rgba(113, 76, 182, 0.1), rgba(212, 199, 255, 0.28));
  box-shadow: var(--shadow);
}
.robot-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.robot-body { min-width: 0; }
.robot-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: rgba(113, 76, 182, 0.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.robot-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.robot-photo-note { text-align: center; font-size: 0.8rem; color: var(--ink-soft); opacity: 0.7; margin-top: 22px; font-style: italic; }
.robots-cta { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.robots-cta .band-note { font-size: 1.15rem; font-weight: 500; color: var(--ink); }

/* ---------- Radio (financing) pills — share check-pill look ---------- */
.radio-pill { cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-block; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; transition: all 0.18s; background: var(--bg); color: var(--ink);
}
/* Form text on the dark Pricing section */
.section-dark .consent,
.section-dark .supplier-note,
.section-dark .phone-gate > p { color: var(--ink-inverse-soft); }
.section-dark .supplier-note a { color: var(--accent-2); }
.radio-pill input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 2px 12px rgba(113, 76, 182, 0.3); }
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(113, 76, 182, 0.3); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.section-dark .card {
  background: rgba(255, 255, 255, 0.035); border-color: var(--border-inverse); box-shadow: none;
}
.cat-card { position: relative; display: block; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(113, 76, 182, 0.35); }
.cat-card h3, .why-card h3, .founder-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cat-card p, .why-card p { font-size: 0.93rem; color: var(--ink-soft); }
.section-dark .why-card p { color: var(--ink-inverse-soft); }
.card-arrow { position: absolute; top: 24px; right: 22px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all 0.22s; }
.cat-card:hover .card-arrow { opacity: 1; transform: none; }
.cat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(113, 76, 182, 0.12), rgba(212, 199, 255, 0.22));
  color: var(--accent); margin-bottom: 18px;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-icon-lg { width: 54px; height: 54px; margin-bottom: 0; }

/* ---------- Steps ---------- */
.mini-steps { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.mini-step {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.93rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px 10px 10px; background: #fff;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.82rem; flex-shrink: 0;
  font-family: var(--font-display);
}
.steps { display: flex; flex-direction: column; gap: 40px; }
.step { display: flex; gap: 22px; align-items: flex-start; }
.step-num-lg { width: 40px; height: 40px; font-size: 1rem; margin-top: 2px; }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* ---------- Lists / robots ---------- */
.incl-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.incl-list li { display: flex; align-items: center; gap: 10px; font-size: 0.97rem; }
.incl-list svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.section-dark .incl-list svg { color: var(--accent-2); }
.robot-blocks { display: flex; flex-direction: column; gap: 56px; }
.robot-block { border-bottom: 1px solid var(--border); padding-bottom: 56px; scroll-margin-top: 90px; }
.robot-block:last-child { border-bottom: none; padding-bottom: 0; }
.robot-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.robot-head h2, .robot-head h3 { font-size: 1.7rem; }
.robot-desc { color: var(--ink-soft); max-width: 640px; margin-bottom: 22px; font-size: 1.04rem; }
.robot-block h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; padding: 88px 0;
  background: var(--bg-dark); color: var(--ink-inverse);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 120%, rgba(113, 76, 182, 0.4), transparent 70%);
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--ink-inverse-soft); margin-bottom: 28px; }
.cta-band .band-note { max-width: 520px; margin: 0 auto 28px; }

/* ---------- About ---------- */
.prose { color: var(--ink-soft); font-size: 1.05rem; max-width: 720px; }
.founders-grid { max-width: 880px; }
.founder-card { text-align: left; }
.founder-avatar {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 18px;
}
.founder-role { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-2); margin-bottom: 12px; font-weight: 600; }
.founder-card p { color: var(--ink-inverse-soft); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.quote-form { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px;
  font: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113, 76, 182, 0.15);
}
.check-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.check-pill { cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span {
  display: inline-block; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; transition: all 0.18s; background: var(--bg); color: var(--ink);
}
.check-pill input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 2px 12px rgba(113, 76, 182, 0.3); }
.check-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(113, 76, 182, 0.3); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 24px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-msg { margin-top: 16px; font-weight: 500; font-size: 0.95rem; display: none; }
.form-msg.ok { display: block; color: #0a8754; }
.form-msg.err { display: block; color: #d13438; }

.phone-gate { margin-top: 28px; padding: 32px 36px; scroll-margin-top: 90px; }
.phone-gate h2 { font-size: 1.3rem; margin-bottom: 8px; }
.phone-gate > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; max-width: 560px; }
.phone-row { display: flex; gap: 12px; }
.phone-row input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 0.95rem; background: var(--bg);
}
.phone-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113, 76, 182, 0.15); }
.supplier-note { margin-top: 40px; text-align: center; color: var(--ink-soft); font-size: 0.93rem; }
.supplier-note a { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--ink-inverse-soft); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--border-inverse); }
.footer-brand .logo { color: var(--ink-inverse); margin-bottom: 14px; display: inline-flex; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-loc { margin-top: 10px; font-size: 0.85rem; opacity: 0.7; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--ink-inverse); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink-inverse); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 0.8rem; opacity: 0.65; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.7s ease var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .hero { padding: 84px 0 70px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .robot-block, .robot-block:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .robot-block:nth-child(even) .robot-figure { order: 0; }
  .robot-figure { max-width: 180px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .incl-list { grid-template-columns: 1fr; }
  .phone-row { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 12px 24px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .lang-switch { display: none; }
  .main-nav.open + .header-right .lang-switch { display: flex; }
}
