/* UC Integrator public site.
   Palette taken from the operations console so the product looks like one system:
   white surfaces, deep purple accent, dark slate text, 12px radii, hairline borders.
   Mobile-first: base styles are the phone layout, media queries add the larger ones.
   No CDN, no webfonts, no third-party anything. */

:root {
  --bg:#ffffff; --canvas:#f4f5fa; --deep:#3d1a6e; --deep-2:#4a2382;
  --accent:#7c3aed; --accent-600:#6d28d9;
  --text:#1f2430; --muted:#6b7280; --line:#e8eaf1; --card:#ffffff;
  --ok:#16a34a; --warn:#b45309; --radius:12px;
  --maxw:1080px;
}
* { box-sizing:border-box; }
html,body { margin:0; }
body {
  font:16px/1.6 system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--text); -webkit-text-size-adjust:100%;
}
img { max-width:100%; }
a { color:var(--accent-600); }
.wrap { max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.muted { color:var(--muted); }
.center { text-align:center; }

/* ---------- header ---------- */
.site-head {
  position:sticky; top:0; z-index:20; background:#fff;
  border-bottom:1px solid var(--line);
}
.head-inner { display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 20px; max-width:var(--maxw); margin:0 auto; }
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; color:inherit; }
.brand-mark {
  display:grid; place-items:center; width:40px; height:40px; border-radius:11px;
  background:linear-gradient(135deg,var(--accent),#a855f7);
  color:#fff; font-weight:800; letter-spacing:.5px; flex:0 0 auto;
}
.brand h1 { font-size:16px; margin:0; line-height:1.15; }
.brand .by { font-size:11px; color:var(--muted); }
.head-nav { display:flex; align-items:center; gap:8px; }
.head-nav a.navlink { display:none; }

/* ---------- buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 20px; border-radius:10px; font-weight:600;
  text-decoration:none; cursor:pointer; border:1px solid transparent; font:inherit;
  font-weight:600;
}
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:var(--accent-600); }
.btn-ghost { background:#fff; color:var(--accent-600); border-color:var(--line); }
.btn-ghost:hover { border-color:var(--accent); }
.btn-block { width:100%; }

/* ---------- hero ---------- */
.hero { padding:56px 0 46px; background:
  radial-gradient(1100px 380px at 50% -170px, #f3ecff 0%, #ffffff 70%); }
.hero h2 { font-size:34px; line-height:1.15; margin:0 0 18px; letter-spacing:-.03em;
  max-width:14ch; }
.hero .lede { font-size:18px; color:#3d4351; margin:0 0 26px; max-width:46ch; }
.hero .cta { display:flex; flex-direction:column; gap:10px; }
.eyebrow {
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent-600); background:#f3ecff;
  padding:6px 12px; border-radius:999px; margin:0 0 16px;
}

/* ---------- sections ---------- */
section { padding:48px 0; }
section.alt { background:var(--canvas); border-block:1px solid var(--line); }
.sec-head { margin:0 0 26px; max-width:34ch; }
.sec-head h3 { font-size:25px; margin:0 0 8px; letter-spacing:-.02em; line-height:1.2; }
.sec-head p { margin:0; color:var(--muted); }

/* ---------- cards ---------- */
.grid { display:grid; gap:16px; }
.card {
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px;
}
.card h4 { margin:0 0 8px; font-size:17px; }
.card p { margin:0; color:#3d4351; max-width:42ch; }
.card .tag {
  display:inline-block; font-size:12px; font-weight:700; color:var(--accent-600);
  background:#f3ecff; padding:4px 10px; border-radius:999px; margin-bottom:10px;
}
.card.feature h4 { font-size:16px; }

/* numbered "what you supply" list */
.steps { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.steps li {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:16px 16px 16px 56px; position:relative;
}
.steps li .n {
  position:absolute; left:16px; top:16px; width:26px; height:26px; border-radius:8px;
  background:var(--deep); color:#fff; display:grid; place-items:center;
  font-size:13px; font-weight:700;
}
.steps li strong { display:block; margin-bottom:3px; }
.steps li span { color:#3d4351; font-size:15px; }

.callout {
  border-left:4px solid var(--accent); background:#faf8ff; padding:14px 16px;
  border-radius:0 var(--radius) var(--radius) 0; margin-top:18px;
}
.callout p { margin:0; }

/* ---------- form ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:20px; }
.field { margin-bottom:16px; }
.field label { display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.field .hint { display:block; font-weight:400; color:var(--muted); font-size:13px;
  margin-top:2px; }
.field input, .field select, .field textarea {
  width:100%; font:inherit; color:var(--text); background:#fff;
  border:1px solid var(--line); border-radius:10px; padding:11px 12px; min-height:46px;
}
.field textarea { min-height:120px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px #ede9fe;
}
.field.err input, .field.err select { border-color:#dc2626; background:#fff7f7; }
.field .err-msg { display:none; color:#dc2626; font-size:13px; margin-top:5px; }
.field.err .err-msg { display:block; }
.req { color:var(--accent-600); }

/* Honeypot: visually hidden, still reachable by a naive bot. Not display:none —
   some bots skip those; this stays in the layout but off-screen. */
.hp { position:absolute !important; left:-9999px !important; width:1px; height:1px;
  overflow:hidden; }

.form-note { font-size:13px; color:var(--muted); margin:14px 0 0; }
.error-banner {
  display:none; background:#fef2f2; border:1px solid #fecaca; color:#991b1b;
  padding:11px 13px; border-radius:10px; margin-bottom:16px; font-size:14px;
}
.error-banner.show { display:block; }

/* ---------- contract page ---------- */
.doc { padding:32px 0 56px; }
.doc h2 { font-size:26px; margin:0 0 6px; }
.doc h3 { font-size:19px; margin:34px 0 10px; padding-top:18px;
  border-top:1px solid var(--line); }
.doc h4 { font-size:16px; margin:22px 0 8px; }
.doc p { color:#3d4351; }
.version-pill {
  display:inline-block; background:var(--deep); color:#fff; font-weight:700;
  font-size:12px; letter-spacing:.06em; padding:5px 12px; border-radius:999px;
}
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch;
  border:1px solid var(--line); border-radius:var(--radius); margin:12px 0; }
table.spec { width:100%; border-collapse:collapse; min-width:640px; background:#fff; }
table.spec th, table.spec td {
  text-align:left; padding:10px 12px; border-bottom:1px solid var(--line);
  font-size:14px; vertical-align:top;
}
table.spec th { background:#faf9ff; color:var(--deep-2); font-weight:700;
  white-space:nowrap; }
table.spec tr:last-child td { border-bottom:none; }
table.spec code { font-size:13px; background:#f4f5fa; padding:2px 6px; border-radius:5px; }
.cite { color:var(--muted); font-size:13px; }
.pill-req { color:var(--accent-600); font-weight:700; font-size:12px; }
.pill-opt { color:var(--muted); font-size:12px; }

/* ---------- footer ---------- */
.site-foot { background:var(--deep); color:#cfc4e6; padding:30px 0; margin-top:10px; }
.site-foot a { color:#fff; }
.site-foot .cols { display:grid; gap:18px; }
.site-foot h5 { color:#fff; font-size:14px; margin:0 0 8px; }
.site-foot p, .site-foot li { font-size:14px; margin:0 0 6px; }
.site-foot ul { list-style:none; padding:0; margin:0; }
.foot-legal { border-top:1px solid rgba(255,255,255,.15); margin-top:20px;
  padding-top:16px; font-size:13px; }

/* ---------- tablet ---------- */
@media (min-width:640px) {
  .hero { padding:64px 0 52px; }
  .hero h2 { font-size:40px; }
  .hero .lede { font-size:19px; max-width:60ch; }
  .hero .cta { flex-direction:row; }
  section { padding:52px 0; }
  .sec-head h3 { font-size:27px; }
  .grid.two { grid-template-columns:repeat(2,1fr); }
  .grid.three { grid-template-columns:repeat(3,1fr); }
  .form-card { padding:28px; }
  .row2 { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
  .site-foot .cols { grid-template-columns:2fr 1fr 1fr; }
}

/* ---------- desktop ---------- */
@media (min-width:960px) {
  .head-nav a.navlink {
    display:inline-flex; align-items:center; min-height:40px; padding:0 12px;
    text-decoration:none; color:var(--text); font-weight:600; font-size:15px;
    border-radius:8px;
  }
  .head-nav a.navlink:hover { background:var(--canvas); color:var(--accent-600); }
  .hero h2 { font-size:46px; max-width:19ch; }
  .grid.four { grid-template-columns:repeat(3,1fr); }
}

@media (prefers-reduced-motion:reduce) {
  * { transition:none !important; animation:none !important; }
}


/* ================= PROOF STRIP ================= */
.proof-band { padding:0; background:var(--canvas); border-block:1px solid var(--line); }
.proof { list-style:none; margin:0; padding:22px 0; display:grid; gap:16px;
  grid-template-columns:repeat(3,1fr); text-align:center; }
.proof li { display:flex; flex-direction:column; align-items:center; gap:2px; }
.proof .n { font-size:34px; font-weight:800; line-height:1; color:var(--accent-600);
  letter-spacing:-.03em; }
.proof .l { font-size:12px; color:var(--muted); max-width:14ch; line-height:1.3; }

/* ================= FLOW DIAGRAM =================
   Inline SVG, styled from here so no inline style attribute is needed and the CSP
   can forbid inline styles outright. */
.flow-sec { padding:34px 0 10px; }
.flow { width:100%; height:auto; display:block; }
/* Mobile-first: the stacked form is the default, so a phone never gets shrunken text.
   The horizontal form appears only when there is room for it (see the 600px query). */
.flow-v { max-width:340px; margin:0 auto; }
.flow-h { display:none; }
.fbox { fill:#fff; stroke:var(--line); stroke-width:1.5; }
.fbox-mid { fill:#faf7ff; stroke:var(--accent); stroke-width:2; }
.ftitle { font:600 15px system-ui,"Segoe UI",Roboto,sans-serif; fill:var(--text);
  text-anchor:middle; }
.ftitle-mid { fill:var(--deep); font-weight:700; }
.fsub { font:500 12px system-ui,"Segoe UI",Roboto,sans-serif; fill:var(--accent-600);
  text-anchor:middle; }
.fcap { font:400 12px system-ui,"Segoe UI",Roboto,sans-serif; fill:var(--muted);
  text-anchor:middle; }
.farrow { fill:none; stroke:var(--accent); stroke-width:2; stroke-linecap:round;
  stroke-linejoin:round; }

/* ================= LINE ICONS ================= */
.icon { width:26px; height:26px; display:block; margin:0 0 12px;
  fill:none; stroke:var(--accent); stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round; }

/* ================= SMALL UTILITIES (replace inline styles) ================= */
.note-line { margin:18px 0 0; color:var(--muted); font-size:14px; }
.mt-lg { margin-top:28px; }
.foot-legal.bare { border:0; margin:0; padding:0; }
.lede-sub { margin:-8px 0 18px; }

/* ================= DEVELOPER STRIP ================= */
.dev-strip { padding:26px 0; }
.dev-line { margin:0; padding:18px 20px; background:var(--canvas);
  border:1px solid var(--line); border-radius:var(--radius); font-size:15px; }
.dev-line strong { display:block; margin-bottom:2px; }
.dev-line a { font-weight:600; white-space:nowrap; }

/* One box beside another needs ~600px to stay legible; below that the stacked form
   wins. This breakpoint is about the diagram, not the page grid, so it is deliberately
   its own query rather than folded into the 640px one. */
@media (min-width:600px) {
  .flow-v { display:none; }
  .flow-h { display:block; }
}

@media (min-width:640px) {
  .hero h2 { font-size:46px; }
  .hero .lede { font-size:20px; }
  .proof { padding:28px 0; }
  .proof .n { font-size:44px; }
  .proof .l { font-size:13px; }
  .sec-head h3 { font-size:30px; }
  .flow-sec { padding:44px 0 14px; }
  .dev-line { display:flex; align-items:baseline; gap:10px; }
  .dev-line strong { display:inline; margin:0; }
}
@media (min-width:960px) {
  .hero h2 { font-size:54px; max-width:15ch; }
  .grid.three { gap:20px; }
}
