/* Quillora marketing site (quillora.co.uk). Shares the app's fonts and colours. */
:root {
  --desk: #eceef3; --surface: #ffffff; --ink: #17213d; --muted: #5b6480; --line: #d6dae4;
  --accent: #2b3fa8; --accent-ink: #ffffff; --accent-soft: #e3e7fa;
  --flag: #f2b631; --flag-soft: rgba(242, 182, 49, 0.18);
  --ok: #1f7a4d; --ok-soft: #dff2e8;
  --paper: #ffffff; --paper-line: #e3e6ee;
  --shadow: 0 1px 2px rgba(23, 33, 61, 0.08), 0 12px 40px rgba(23, 33, 61, 0.12);
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #12151d; --surface: #1b1f2a; --ink: #e7e9f0; --muted: #9aa2b8; --line: #2d3344;
    --accent: #93a3ff; --accent-ink: #10142a; --accent-soft: #232a4a;
    --flag-soft: rgba(242, 182, 49, 0.22); --ok: #57c993; --ok-soft: #173326;
    --paper: #f7f7f4; --paper-line: #e2e2dc;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 48px rgba(0, 0, 0, .45);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 11px 18px; font: 500 15px/1.2 var(--f-body); text-decoration: none; white-space: nowrap; transition: border-color .15s, filter .15s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--line); }
.btn.small { padding: 8px 13px; font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: inherit; text-decoration: none; }
.brand .mark { font-family: var(--f-script); font-size: 36px; line-height: .6; color: var(--accent); }
.brand b { font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.top .acts { display: flex; gap: 6px; }

/* Hero */
.hero { padding-block: 72px 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero .small-print { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Hero illustration: a document with fields and its signing record */
.stage { position: relative; padding: 8px 8px 112px; }
.sheet { background: var(--paper); color: #17213d; border-radius: 6px; box-shadow: var(--shadow); padding: 36px 36px 40px; transform: rotate(-1.2deg); max-width: 440px; margin-left: auto; }
.sheet .ttl { font-family: var(--f-display); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.sheet .ln { height: 8px; border-radius: 4px; background: var(--paper-line); margin-bottom: 10px; }
.sheet .ln.s { width: 62%; } .sheet .ln.m { width: 84%; }
.sheet .sign { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 30px; }
.sheet .slot { border-bottom: 1.5px solid #17213d; padding-bottom: 4px; min-height: 52px; display: flex; align-items: flex-end; position: relative; }
.sheet .slot small { position: absolute; bottom: -20px; left: 0; font-size: 11px; color: #5b6480; letter-spacing: .04em; text-transform: uppercase; }
.sheet .sig { font-family: var(--f-script); font-size: 44px; line-height: .9; color: #1b2a6b; }
.sheet .date { font-size: 15px; }
.sheet .flag { background: var(--flag-soft); border: 1.5px dashed var(--flag); border-radius: 6px; width: 100%; height: 46px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #3a2a00; letter-spacing: .04em; text-transform: uppercase; }
.record { position: absolute; left: 0; bottom: 0; width: min(300px, 78%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 13px; transform: rotate(1.5deg); }
.record .h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.record .chip { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); }
.record dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; color: var(--muted); }
.record dt { color: var(--muted); }
.record dd { margin: 0; color: var(--ink); font-family: var(--f-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sections */
section.block { padding-block: 88px; border-top: 1px solid var(--line); }
section.block.alt { background: var(--surface); }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 4vw, 42px); }
.head p { color: var(--muted); font-size: 18px; margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; counter-increment: step; }
.alt .steps li { background: var(--desk); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.features h3 { font-size: 20px; margin-bottom: 8px; }
.features h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--flag); margin-bottom: 14px; }
.features p { color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 18px; align-content: start; position: relative; }
.plan.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; }
.plan h3 { font-size: 24px; }
.plan .price { color: var(--muted); }
.plan .price strong { font-family: var(--f-display); font-size: 48px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plans-note { color: var(--muted); font-size: 14px; margin-top: 20px; }

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.alt .faq details { background: var(--desk); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 12px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.contact h2 { font-size: clamp(28px, 3.6vw, 38px); }
.contact p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.contact .mail { font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact .mail:hover { text-decoration: underline; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 760px; padding-block: 56px 88px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.legal .tablewrap { overflow-x: auto; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-top: 16px; }

@media (max-width: 900px) {
  .hero { padding-block: 48px 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sheet { margin-inline: auto; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 28px; }
  .top nav { display: none; }
  .top .acts { margin-left: auto; }
}
@media (max-width: 640px) {
  section.block { padding-block: 64px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .sheet { padding: 26px 24px 32px; }
  .top .acts .ghost { display: none; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
