/* Lexyron – lexyron.com
   Fonts are self-hosted (no requests to third parties). */
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/instrument-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0d1b3e;          /* logo navy, used for text */
  --ink-soft: #4a5672;
  --paper: #ffffff;
  --desk: #eef1f6;         /* the grey around a Word page */
  --rule: #d6dce6;
  --mark: #0b63e5;         /* logo blue: recognised terms, links, actions */
  --mark-deep: #0a3fa8;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 66ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ebf5; --ink-soft: #a7b1c6; --paper: #151c2c; --desk: #0e1422; --rule: #2a3449;
    --mark: #5b9bff; --mark-deep: #8db8ff; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--serif); }
img { max-width: 100%; height: auto; }
a { color: var(--mark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mark-deep); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 9; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 600 1.375rem/1 var(--serif); letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
@media (prefers-color-scheme: dark) {
  .brand img { background: #fff; border-radius: 7px; padding: 3px; box-sizing: border-box; }
}
.nav { margin-left: auto; display: flex; gap: 22px; font: 500 .95rem/1 var(--sans); flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mark); }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); padding: 14px 20px; border-radius: 6px;
  text-decoration: none; border: 1px solid var(--mark); }
.btn-primary { background: var(--mark); color: #fff; }
.btn-primary:hover { background: var(--mark-deep); border-color: var(--mark-deep); color: #fff; }
.btn-quiet { color: var(--mark); background: transparent; }
.btn-quiet:hover { background: color-mix(in srgb, var(--mark) 8%, transparent); }

/* ---------- hero ---------- */
.hero { background: var(--desk); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font: 600 clamp(2.1rem, 4.2vw, 3.1rem)/1.12 var(--serif); margin: 0 0 20px; letter-spacing: -.01em; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 28px; max-width: 34ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { font: 400 .9rem/1.4 var(--sans); color: var(--ink-soft); margin-top: 16px; }

/* the document page: Lexyron's own way of marking terms */
.page { background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: 44px 48px 28px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(13, 27, 62, .35); font-size: 1.05rem; line-height: 1.7; }
.page .doc-title { font-weight: 600; font-size: 1.15rem; margin: 0 0 14px; }
.page p { margin: 0 0 14px; }
.term { all: unset; cursor: pointer; color: inherit; border-bottom: 2px dotted var(--mark); padding-bottom: 1px; }
.term:hover { background: color-mix(in srgb, var(--mark) 10%, transparent); }
.term:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.term[aria-pressed="true"] { border-bottom-style: solid; }
.fnref { font: 600 .7em/0 var(--sans); color: var(--mark); vertical-align: super; margin-left: 1px; }
.footnotes { margin-top: 26px; }
.footnotes::before { content: ""; display: block; width: 38%; border-top: 1px solid var(--ink); margin-bottom: 10px; }
.footnotes ol { list-style: none; margin: 0; padding: 0; font-size: .82rem; line-height: 1.5; }
.footnotes li { margin: 0 0 6px; color: var(--ink-soft); }
.footnotes li b { color: var(--ink); font-weight: 600; }
.footnotes li .n { font: 600 .75rem/1 var(--sans); color: var(--mark); margin-right: 6px; vertical-align: super; }
.footnotes li.new { animation: settle .5s ease-out; }
@keyframes settle { from { background: color-mix(in srgb, var(--mark) 18%, transparent); } to { background: transparent; } }
.page-hint { font: 400 .85rem/1.4 var(--sans); color: var(--ink-soft); margin: 12px 2px 0; }
@media (prefers-reduced-motion: reduce) { .footnotes li.new { animation: none; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; border-bottom: 1px solid var(--rule); }
.section h2 { font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--serif); margin: 0 0 14px; }
.section .intro { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 40px; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 48px; }
.prose h3 { font: 600 1.2rem/1.3 var(--serif); margin: 32px 0 8px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); font: 600 1rem/1 var(--sans); color: var(--mark); display: block; margin-bottom: 10px; }
.steps h3 { font: 600 1.15rem/1.3 var(--serif); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.uses div { border-top: 1px solid var(--rule); padding: 18px 0; }
.uses dt { font-weight: 600; }
.uses dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 1rem; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.format { width: 100%; border-collapse: collapse; font: 400 .95rem/1.4 var(--sans); }
.format th, .format td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.format th { font-weight: 600; white-space: nowrap; }
.format td { color: var(--ink-soft); }

/* ---------- pricing ---------- */
.price-table { width: 100%; border-collapse: collapse; font: 400 .98rem/1.45 var(--sans); }
.price-table th, .price-table td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.price-table thead th { font: 600 1.1rem/1.2 var(--serif); border-bottom: 2px solid var(--ink); }
.price-table thead th small { display: block; font: 400 .85rem/1.3 var(--sans); color: var(--ink-soft); margin-top: 4px; }
.price-table tbody th { font-weight: 600; width: 26%; }
.price-table .yes { color: var(--mark); font-weight: 600; }
.price-table .no { color: var(--ink-soft); }
.price-table .price td, .price-table .price th { font: 600 1.05rem/1.3 var(--sans); }
.price-table .price td span { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.price-note { font: 400 .92rem/1.5 var(--sans); color: var(--ink-soft); margin-top: 16px; max-width: var(--measure); }
.table-scroll { overflow-x: auto; }

/* ---------- faq ---------- */
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; max-width: var(--measure); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-foot { background: var(--desk); padding: 48px 0; font: 400 .92rem/1.6 var(--sans); color: var(--ink-soft); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.site-foot p { margin: 0 0 8px; }
.site-foot nav { display: flex; flex-direction: column; gap: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 1.05rem; }
  .nav { margin-left: 0; width: 100%; gap: 6px 16px; padding-bottom: 10px; font-size: .9rem; }
  .nav a[href="#how"], .nav a[href="/#how"], .nav a[href="./#how"] { display: none; }
  .page { padding: 28px 22px 20px; }
  .steps, .uses { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  /* pricing becomes one block per plan */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { border-top: 2px solid var(--ink); padding: 8px 0 16px; }
  .price-table tbody th { border: 0; padding: 8px 0 4px; width: 100%; }
  .price-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; }
  .price-table td::before { content: attr(data-plan); color: var(--ink-soft); font-weight: 400; }
  .price-table .price td { display: block; padding: 10px 0; }
  .price-table .price td::before { display: block; font-size: .9rem; margin-bottom: 2px; }
  .price-table .price td span { margin-top: 2px; }
}
kbd { font: 600 .85em/1 var(--sans); padding: 2px 5px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; }
