/* FigurePages marketing — shared design system.
   Foundation + reusable components used across the subpages
   (how-it-works, integrations, pricing, contact). Values mirror the
   homepage's inline styles so every page reads as one site. */

:root {
  /* FigurePages brand tokens ("Forward Page") */
  --ink: #17203A;
  --body: #3A4256;
  --muted: #6B7280;
  --line: #E3E5E8;
  --paper: #F2F3F5;
  --card: #FFFFFF;
  --wash: #EEF1FB;
  --accent: #3557C7;
  --accent-ink: #23408F;
  --warm: #8FA6E8;
  --warm-soft: #EEF1FB;
  --mint: #E4F3EC;
  --mint-ink: #1E8A5F;
  --blush: #F7E7E1;
  --blush-ink: #C2542A;
  --round: 'Sora', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body); background: var(--paper); line-height: 1.62; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--round); color: var(--ink); letter-spacing: -0.015em; }
h1, h2 { font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }

/* Nav */
nav { position: sticky; top: 0; z-index: 20; background: rgba(242,243,245,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 26px; padding: 16px 0; }
.wordmark { font-family: var(--round); font-weight: 600; font-size: 1.3rem; color: var(--ink); display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; }
.wordmark b { font-weight: 700; color: var(--accent); }
.wordmark img { width: 24px; height: 24px; display: block; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 0.9rem; }
.nav-links a { color: var(--body); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav-links a.open {
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav-links a.open:hover { background: var(--accent-ink); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.open) { display: none; } }

/* Page hero (subpages — lighter than the homepage hero) */
.page-hero { padding: 66px 0 34px; }
.page-hero .eyebrow { font-family: var(--round); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.1; max-width: 15em; margin-bottom: 18px; }
.page-hero p { font-size: 1.1rem; max-width: 34em; color: var(--body); }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 14px 30px;
  border-radius: 999px; font-weight: 650; font-size: 1rem; box-shadow: 0 8px 20px -8px rgba(53,87,199,0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease; cursor: pointer; border: none;
}
.btn:hover { background: var(--accent-ink); text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(53,87,199,0.65); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--card); }
.quiet { font-size: 0.95rem; font-weight: 600; }
.actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fineprint { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* Sections */
section { padding: 40px 0; }
section.ruled { border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 10px; }
.section-intro { max-width: 42em; margin-bottom: 30px; font-size: 1.02rem; }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: 0 18px 40px -30px rgba(23,32,58,0.35); }
.panel.wash { background: linear-gradient(180deg, #fff 0%, var(--wash) 100%); }

/* Card grids */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card.feature { background: linear-gradient(180deg, #fff, #f3f7ff); border-color: #dbe6ff; }
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { font-size: 0.93rem; }
.card .ico { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.card code { font-family: var(--mono); font-size: 0.8rem; background: var(--wash); border-radius: 5px; padding: 1px 6px; }

/* Numbered steps */
.steps { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps.on-card li { background: var(--card); }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--wash); color: var(--accent);
  font-family: var(--round); font-weight: 700; font-size: 0.95rem; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 0.92rem; }
.steps code { font-family: var(--mono); font-size: 0.8rem; background: var(--wash); border-radius: 5px; padding: 1px 6px; }

/* Code block */
.code {
  background: #2b2d3a; border-radius: 16px; padding: 20px 22px; overflow-x: auto;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.85; color: #cbd1e0; margin: 8px 0;
}
.code .tok-cmd { color: #f2f0ea; }
.code .tok-dim { color: #7f869c; }
.code .tok-ok { color: #8fe0a4; }
.code .tok-url { color: #9db8ff; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.plan.pro { background: linear-gradient(180deg, #fff, #f3f7ff); border-color: #dbe6ff; }
.plan .price { font-family: var(--round); font-weight: 700; color: var(--ink); font-size: 2.2rem; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan .price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan h3 { font-family: var(--round); font-weight: 700; font-size: 1.35rem; margin-bottom: 2px; }
.plan .tag { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin-bottom: 24px; }
.plan li { font-size: 0.92rem; padding: 7px 0 7px 26px; position: relative; color: var(--ink); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--mint-ink); font-weight: 700; }
.plan.pro li::before { content: '○'; color: var(--accent); }
.plan .cta { font-size: 0.95rem; font-weight: 650; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { font-family: var(--round); font-weight: 650; color: var(--ink); font-size: 1rem; cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 0.94rem; padding: 0 0 18px; max-width: 46em; }

/* Contact form */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--round); font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--card); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53,87,199,0.14); }
.field textarea { min-height: 130px; resize: vertical; }

/* Split (contact) */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.contact-method { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: none; }
.contact-method h3 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-method p { font-size: 0.92rem; }

/* Final CTA band */
.cta-band { text-align: center; }
.cta-band .panel { background: linear-gradient(135deg, var(--accent), #6a4be0); border: none; color: #fff; padding: 54px 40px; box-shadow: 0 30px 60px -30px rgba(53,87,199,0.7); }
.cta-band h2 { color: #fff; margin-bottom: 22px; }
.cta-band .btn { background: #fff; color: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.4); }
.cta-band .btn:hover { background: #f2f2f2; }

/* Footer */
footer { padding: 40px 0 54px; margin-top: 20px; border-top: 1px solid var(--line); }
.foot { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); align-items: center; }
.foot a { color: var(--muted); }
.foot .spacer { flex: 1; }
.foot .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--round); font-weight: 600; }
.foot .brand img { width: 18px; height: 18px; }
