/* Sealbook website. Plain CSS, no framework. Colours match the app. */
:root {
  --paper: #f5f7fa; --surface: #fff; --ink: #18212d; --ink-2: #4a5566; --ink-3: #5d6776; --line: #e1e6ed;
  --firm: #1f5f8b; --firm-2: #174a6d; --client: #6a46a3; --agreed: #2b7a55; --warn: #95580a; --warn-bg: #fdf3e3;
  --dark: #121a24; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--firm); text-underline-offset: 3px; }
a:hover { color: var(--firm-2); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(245, 247, 250, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: #fff; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 10px; text-align: center; border-bottom: 0; }
  .menu { display: block; }
  .top.open .nav { display: flex; }
}
.menu { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); line-height: 1.2; }
.btn.primary { background: var(--firm); border-color: var(--firm); color: #fff; }
.btn.primary:hover { background: var(--firm-2); color: #fff; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Type */
h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
h1 span, h2 span { color: var(--firm); }
h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin: 0 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 10px; }
.small { font-size: 14px; color: var(--ink-3); }
.muted { color: var(--ink-2); }
@media (max-width: 760px) { h1 { font-size: 34px; } h2 { font-size: 25px; } .lede { font-size: 17px; } }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 56px 0 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 36px; } }
.page-head { padding: 52px 0 12px; }
.dark { background: var(--dark); color: #e9eef5; border-top: 0 !important; }
.dark h2 { color: #fff; } .dark .muted, .dark .small { color: #b7c3d2; } .dark a { color: #9cc8ef; }
.shot, video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 34px rgba(15, 25, 40, .09); }
figure { margin: 0; } figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* Grids and cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card p + p { margin-top: 8px; }
.card .n { font-size: 30px; font-weight: 700; color: var(--firm); line-height: 1; margin-bottom: 10px; }
.card.c .n { color: var(--client); } .card.g .n { color: var(--agreed); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.stat b { font-size: 38px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.stat cite { font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: auto; }
.dark .stat { background: #1b2633; border-color: #2a3646; } .dark .stat b { color: #fff; } .dark .stat p { color: #c8d3e0; } .dark .stat cite { color: #93a2b4; }
.seals { display: flex; gap: 6px; margin-top: 12px; }
.seal { width: 22px; height: 22px; border-radius: 50%; }
.seal.f { background: var(--firm); } .seal.cl { background: var(--client); }

/* Quote */
blockquote { margin: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--client); }
blockquote p { font-size: 24px; line-height: 1.35; margin: 0 0 10px; letter-spacing: -.01em; }
blockquote footer { font-size: 14px; color: var(--ink-3); }
.dark blockquote footer { color: #93a2b4; }

/* Story timeline */
.story { display: grid; gap: 12px; }
.story div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #2a3646; }
.story b { color: #9cc8ef; font-weight: 600; }
.story p { margin: 0; color: #d6dee8; }
@media (max-width: 560px) { .story div { grid-template-columns: 1fr; gap: 4px; } }

/* Lists, tables, prose */
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 36px; } .prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; } .prose li { margin-bottom: 6px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--agreed); border-bottom: 2.5px solid var(--agreed); transform: rotate(-45deg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; background: #fafbfd; }
tr:last-child td { border-bottom: 0; }
td.y { color: var(--agreed); font-weight: 600; }
.note { background: var(--warn-bg); border: 1px solid #f0d9b0; border-radius: 12px; padding: 14px 16px; color: #5a3a08; font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; }
.steps > li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--firm); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps h3 { margin-bottom: 4px; } .steps p { margin: 0; color: var(--ink-2); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--ink-2); margin: 10px 0 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #eef1f5; padding: 1px 5px; border-radius: 5px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; margin-bottom: 14px; align-content: start; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field input, .field select { font: inherit; padding: 10px 12px; border: 1px solid #c9d1dc; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--firm); outline-offset: 1px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 480px) { .two-up { grid-template-columns: 1fr; } }
.result { position: sticky; top: 84px; }
.result .big { font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; color: var(--agreed); margin: 4px 0 2px; }
.result .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.result .row span:last-child { font-weight: 600; text-align: right; }
.result .row.bad span:last-child { color: #a3361f; }
.result .row.good span:last-child { color: var(--agreed); }
.assume { border-left: 3px solid var(--warn); padding-left: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; }
legend { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.model { margin-top: 18px; }
.model pre { white-space: pre; background: #0f1720; color: #dbe5f0; padding: 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.55; overflow-x: auto; }

/* Footer */
.foot { background: var(--dark); color: #b7c3d2; padding: 44px 0 36px; margin-top: 0; font-size: 14.5px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.foot a { color: #b7c3d2; text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot .fine { border-top: 1px solid #2a3646; margin-top: 28px; padding-top: 18px; font-size: 13px; color: #8796a8; }
