/* Moduflow: white, slate blue, and grey. One source for each component. */
:root {
  --ink: #263747;
  --heading: #263f57;
  --muted: #626d78;
  --line: #e1e6eb;
  --accent: #365f85;
  --surface: #f5f7f9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 Arial, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1100px, calc(100% - 48px)); margin: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 10px; background: #fff; padding: 10px; z-index: 9; }
header { display: flex; align-items: center; justify-content: space-between; padding: 27px 0; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { color: var(--heading); text-decoration: none; font-size: 25px; letter-spacing: -1px; font-weight: bold; }
nav { display: flex; align-items: center; gap: 27px; font-size: 14px; }
nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.btn { display: inline-block; text-decoration: none; background: var(--accent); color: #fff; padding: 13px 24px; border: 1px solid var(--accent); border-radius: 24px; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 44px; }
nav .btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.btn:hover { background: #294c6b; border-color: #294c6b; }
.btn:disabled { cursor: not-allowed; opacity: .65; }
.textlink { font-size: 14px; text-underline-offset: 5px; }
.textlink:hover, nav a:not(.btn):hover { color: var(--accent); }
.eyebrow { color: #476884; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: bold; margin: 0 0 18px; }
h1, h2 { color: var(--heading); font-family: Georgia, serif; font-weight: normal; line-height: 1.13; letter-spacing: -1.3px; }
h1 { font-size: clamp(38px, 4.5vw, 54px); margin: 0 0 25px; }
h2 { font-size: 35px; margin: 0 0 18px; }
h3 { color: var(--heading); font-size: 17px; line-height: 1.4; margin: 0 0 11px; }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 45px; align-items: center; padding: 68px 0 38px; }
.hero > *, .contactgrid > *, .twocol > * { min-width: 0; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 470px; margin: 0 0 25px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.small { font-size: 12px; color: var(--muted); }
.note { margin-top: 18px; line-height: 1.8; }
.optionalnote { display: inline-block; color: #344b60; font-size: 13px; margin-bottom: 3px; }
.real-example { border-radius: 12px; padding: 0 0 12px; background: var(--surface); overflow: hidden; border: 1px solid #dce3e9; }
.browser-top { height: 35px; display: flex; align-items: center; gap: 30px; padding: 0 14px; font-size: 10px; color: #667582; background: #e9edf1; }
.browser-top > span:first-child { letter-spacing: 3px; font-size: 8px; color: #667582; }
/* Responsive iframe fallback works without JS. preview.js progressively scales a desktop view. */
.demo-viewport { height: 393px; overflow: hidden; background: #fff; }
.demo-viewport iframe { border: 0; width: 100%; height: 100%; display: block; background: #fff; }
.real-example .examplecaption { padding: 0 14px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.examplecaption a { display: inline-block; margin-top: 4px; font-weight: bold; text-underline-offset: 3px; }
.local { padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 20px; }
.local span { color: var(--muted); }
.page { padding: 58px 0 65px; }
.pageintro { max-width: 660px; margin-bottom: 35px; }
.pageintro p { color: var(--muted); font-size: 17px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pricebox { border: 1px solid #dce3e9; background: #fff; padding: 30px; border-radius: 10px; }
.pricebox.optional { background: var(--surface); }
.pricebox .price { font: 52px/1.2 Georgia, serif; letter-spacing: -2px; margin: 15px 0; }
.price small { font: 14px Arial, sans-serif; letter-spacing: 0; color: var(--muted); }
.pricebox p, .pricebox li { color: var(--muted); font-size: 14px; }
.pricebox ul { padding-left: 19px; margin: 22px 0; }
.pricebox li { margin: 9px 0; }
.pricebox.optional .eyebrow { display: inline-block; background: #e8eef4; color: #36516a; padding: 5px 9px; font-weight: bold; }
.scope { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 25px; padding-top: 20px; max-width: 800px; }
#pricing { padding-top: 45px; border-bottom: 1px solid var(--line); }
#pricing .pageintro h2 { font-size: 37px; }
#faq { padding-top: 48px; padding-bottom: 35px; }
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); padding: 19px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
summary { font-weight: bold; font-size: 16px; cursor: pointer; list-style-position: outside; margin-left: 19px; padding-left: 6px; }
.faq p { color: var(--muted); font-size: 15px; margin: 13px 0 0 25px; }
.contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
.contactgrid h2 { font-size: 38px; }
.contactgrid p { color: var(--muted); }
#preview { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 10px; }
form { border: 1px solid #dce3e9; background: #f8fafc; padding: 27px; }
label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 6px; }
input, textarea { display: block; width: 100%; padding: 11px; border: 1px solid #c8d2db; background: #fff; color: var(--ink); margin-bottom: 18px; border-radius: 7px; }
form .btn { width: 100%; }
.demo { font-size: 12px !important; margin-bottom: 0; }
#status { white-space: pre-line; font-size: 14px; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px 0; font-size: 12px; color: #687785; }
footer .brand { font-size: 19px; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  header { align-items: start; padding: 20px 0; flex-direction: column; gap: 16px; }
  nav { gap: 22px; flex-wrap: wrap; width: 100%; justify-content: space-between; }
  nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 38px 0; }
  .hero h1 { font-size: 43px; }
  .real-example { width: 100%; max-width: 510px; }
  .browser-top { gap: 20px; }
  .local { flex-direction: column; gap: 4px; }
  .contactgrid { grid-template-columns: 1fr; gap: 25px; }
  .twocol { grid-template-columns: 1fr; }
  .page { padding-top: 35px; }
  #pricing .pageintro h2 { font-size: 33px; }
  footer { flex-wrap: wrap; }
  h2 { font-size: 30px; }
}
@media (max-width: 390px) { nav { gap: 16px; font-size: 13px; } .brand { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

textarea { resize: vertical; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
