/* The Doc Store landing page and the Lucid Logic home page (#1231). One stylesheet for both
   sites. The palette is Lucid Logic's, as in docs/brochure/brochure.css (#1229): the logo's blue
   darkened for text contrast, its navy deepened for dark surfaces, its teal for rules. */
:root {
  --ink: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --paper: #ffffff;
  --wash: #f1f5f9;
  --brand: #0079b8;
  --brand-dark: #0a4e75;
  --brand-soft: #e8f6fd;
  --night: #16252d;
  --night-2: #1f3440;
  --teal: #2cd5c4;
  --ok: #047857;
  --bad: #b91c1c;
  --wrap: 1080px;
  --gutter: max(20px, calc((100% - var(--wrap)) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--ink); background: var(--wash); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; margin-bottom: 12px; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.005em; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px;
  font-weight: 650; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  font-family: inherit; line-height: 1.2; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); color: #fff; }
.btn.ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn.quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.quiet:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter); background: rgba(22, 37, 45, .97); color: #fff; }
.bar .mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.bar .mark img { height: 34px; width: auto; }
.bar .mark .product { font-size: 17px; font-weight: 600; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); white-space: nowrap; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a { color: #cbd5e1; text-decoration: none; font-size: 15px; font-weight: 500; }
.bar nav a:hover { color: #fff; }
.bar .btn { padding: 9px 14px; font-size: 15px; }

/* Hero */
.hero { background: var(--night); color: #fff; padding: 64px var(--gutter) 0; overflow: hidden; }
.hero.plain { padding-bottom: 64px; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 10px; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); font-weight: 800; letter-spacing: -0.025em; max-width: 820px; }
.hero .sub { font-size: clamp(18px, 2.2vw, 21px); color: #cbd5e1; max-width: 720px; margin: 18px 0 0; }
.hero .offer { margin: 26px 0 0; padding: 16px 20px; border-left: 4px solid var(--teal); background: var(--night-2); border-radius: 0 10px 10px 0;
  max-width: 720px; font-size: 18px; color: #e2e8f0; }
.hero .offer b { color: #fff; font-size: 21px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero .ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; color: #cbd5e1; font-size: 15px; }
.hero .ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 7px; }
/* Two first screens under test on the Doc Store page (#1231). The script in the page's <head> sets
   data-variant on <html>; with no script, version A shows. */
html[data-variant="b"] .only-a, html:not([data-variant="b"]) .only-b { display: none; }
/* Version B: what it does on the left, the price on the right. On a phone the price comes
   straight after the headline, ahead of the three steps. */
html[data-variant="b"] .hero .pitch { display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: auto 1fr; column-gap: 52px;
  grid-template-areas: "lead deal" "how deal"; align-items: start; }
.hero .pitch .lead { grid-area: lead; }
.hero .pitch .how { grid-area: how; }
html[data-variant="b"] .hero .pitch h1 { font-size: clamp(36px, 5vw, 54px); }
.hero .flow { list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 30px 0 0; }
.hero .flow li { counter-increment: flow; border-top: 3px solid var(--teal); padding-top: 12px; color: #cbd5e1; font-size: 15px; line-height: 1.45; }
.hero .flow b { display: block; color: #fff; font-size: 18px; line-height: 1.25; margin-bottom: 3px; }
.hero .flow b::before { content: counter(flow) ". "; color: var(--teal); }
.hero .proof { margin: 24px 0 0; color: #cbd5e1; font-size: 15px; }
.deal { grid-area: deal; background: #fff; color: var(--ink); border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.deal .amount { margin: 0; font-size: clamp(32px, 3.5vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
.deal .once { margin: 6px 0 0; font-size: 20px; font-weight: 750; color: var(--brand); }
.deal ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 16px; line-height: 1.4; }
.deal li { padding: 4px 0 4px 26px; position: relative; }
.deal li::before { content: "✓"; position: absolute; left: 0; color: #0d9488; font-weight: 800; }
.deal .versus { margin: 16px 0 18px; padding: 10px 12px; background: var(--brand-soft); border-radius: 8px; font-size: 15px; line-height: 1.4; color: var(--brand-dark); font-weight: 600; }
.deal .btn { width: 100%; }
.deal .btn + .btn { margin-top: 10px; }
.deal .run { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.hero .shot { margin: 44px 0 0; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 -8px 40px rgba(0, 0, 0, .45); max-width: 1000px; }

/* Sections */
main > section { padding: 72px var(--gutter); }
main > section.white { background: var(--paper); }
main > section.dark { background: var(--night); color: #fff; }
main > section.dark .lede { color: #cbd5e1; }
h2 + .grid, h2 + .faq, h2 + .step { margin-top: 26px; }
.lede { font-size: 19px; color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.small { font-size: 14.5px; color: var(--muted); }

/* How it works */
.steps { display: grid; gap: 56px; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.step:nth-child(odd):not(.wide) .words { order: 2; }
.step .words h3 { font-size: 24px; margin-bottom: 10px; }
.step .words h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px;
  margin-right: 12px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px; vertical-align: 3px; }
.step .words p { color: var(--muted); }
.step figure { margin: 0; }
.step figure img { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.step figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.step.wide { grid-template-columns: 1fr; gap: 18px; }
.ways { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ways li { background: var(--brand-soft); border-radius: 12px; padding: 18px 20px; font-size: 16.5px; color: var(--muted); }
.ways b { display: block; color: var(--brand-dark); font-size: 18px; margin-bottom: 4px; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
/* A section whose only heading is its small label: the label keeps its size and the cards sit a little lower. */
h2.eyebrow { font-size: 13px; line-height: 1.6; letter-spacing: .12em; margin: 0 0 18px; }
/* A product card: its button sits at the bottom, so two cards of unequal text still line up. */
.card.product { display: flex; flex-direction: column; }
.card.product p:last-child { margin-top: auto; padding-top: 6px; }
section.dark .card { background: var(--night-2); border-color: rgba(255, 255, 255, .12); }
section.dark .card p { color: #cbd5e1; }
section.dark .card h3 { color: #fff; }

/* What you get */
.offerbox { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.includes li { padding-left: 34px; position: relative; }
.includes li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 14px; }
.includes b { display: block; }
.includes span { color: var(--muted); font-size: 16px; }
.pricecard { background: var(--night); color: #fff; border-radius: 16px; padding: 28px; position: sticky; top: 84px; }
.pricecard .amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pricecard .amount small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: #cbd5e1; }
.pricecard .inc { color: #cbd5e1; margin: 6px 0 18px; font-size: 16px; }
.pricecard ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 16px; color: #e2e8f0; }
.pricecard li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.pricecard .btn { width: 100%; }
.pricecard .or { text-align: center; margin: 12px 0 0; font-size: 15px; color: #cbd5e1; }
.pricecard .or a { color: #fff; font-weight: 600; }

/* Running costs */
table.costs { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16.5px; background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); }
table.costs th, table.costs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.costs tr:last-child th, table.costs tr:last-child td { border-bottom: 0; }
table.costs thead th { background: #f8fafc; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.costs td.num, table.costs th.num { text-align: right; white-space: nowrap; font-weight: 650; }
table.costs tr.total th, table.costs tr.total td { background: var(--brand-soft); font-weight: 750; color: var(--brand-dark); }
table.costs .why { display: block; color: var(--muted); font-size: 15px; font-weight: 400; }
.note { background: #f8fafc; border-left: 4px solid var(--brand); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 15.5px; color: var(--muted); }

/* Questions */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 24px; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; max-width: 720px; }

/* Enquiry form */
.enquire { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.enquire .call { font-size: 30px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; display: inline-block; margin: 6px 0 4px; }
.enquire .call:hover { color: var(--teal); }
.enquire .contact p { color: #cbd5e1; }
.enquire .contact a.mail { color: #fff; }
form.enquiry { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; display: grid; gap: 16px; }
form.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.enquiry label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
form.enquiry label span.opt { font-weight: 400; color: var(--muted); }
form.enquiry input, form.enquiry select, form.enquiry textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid #cbd5e1; border-radius: 9px;
  background: #fff; color: var(--ink); width: 100%; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 121, 184, .18); }
form.enquiry textarea { min-height: 110px; resize: vertical; }
form.enquiry .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.enquiry .fine { font-size: 14px; color: var(--muted); margin: 0; }
form.enquiry .status { margin: 0; font-size: 15.5px; font-weight: 600; min-height: 1.2em; }
form.enquiry .status.bad { color: var(--bad); }

/* Plain pages (privacy, thank you) */
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 16px; }
.page h2 { font-size: 22px; margin: 30px 0 8px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.thanks { text-align: center; }
.thanks .tick { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center;
  font-size: 38px; font-weight: 800; }

/* Footer */
footer { background: var(--night); color: #cbd5e1; padding: 36px var(--gutter); font-size: 15px; display: flex; flex-wrap: wrap; gap: 14px 32px;
  justify-content: space-between; align-items: center; }
footer img { height: 30px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: #e2e8f0; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .legal { flex-basis: 100%; color: var(--faint); font-size: 14px; }

@media (max-width: 860px) {
  .bar nav a.link { display: none; }
  .step, .offerbox, .enquire { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(odd):not(.wide) .words { order: 0; }
  .ways { grid-template-columns: 1fr; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .pricecard { position: static; }
  main > section { padding: 52px var(--gutter); }
  .hero { padding-top: 44px; }
  html[data-variant="b"] .hero .pitch { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "lead" "deal" "how"; }
  .deal { margin-top: 26px; max-width: 520px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .bar .mark img { height: 26px; }
  .bar .mark .product { font-size: 14px; padding-left: 8px; }
  .bar .btn span.long { display: none; }
  form.enquiry { padding: 20px; }
  form.enquiry .row { grid-template-columns: 1fr; }
  .hero .cta .btn { width: 100%; }
  .hero .flow { grid-template-columns: 1fr; gap: 12px; }
  .deal { padding: 22px 20px 20px; }
  table.costs { font-size: 15.5px; }
  table.costs th, table.costs td { padding: 12px; }
  .enquire .call { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
