/* talk.nossic.uk. Colours and type from the Nossic Branding Pack (v1). Base styles shared with notes.nossic.uk
   and apps.nossic.uk. Fonts are self-hosted (assets/OFL-*.txt); nothing is loaded from anywhere else. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/bricolage.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/atkinson-next.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --blue: #266BD9; --yellow: #FFCC33; --navy: #1F2438; --deep: #1A4FA8;
  --bg: #FFFFFF; --band: #EAF2FD; --surface: #FFFFFF; --surface-2: #F5F8FD; --fg: #1F2438; --muted: #5A6278; --line: #DCE3F0;
  --primary: #266BD9; --primary-fg: #FFFFFF; --primary-hover: #1A4FA8; --link: #1A4FA8;
  --shadow: 0 1px 3px rgba(31, 36, 56, .10), 0 16px 40px rgba(31, 36, 56, .12);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12162A; --band: #161B31; --surface: #1A2036; --surface-2: #20283F; --fg: #EEF2FA; --muted: #A3ADC6; --line: #2C3552;
    --primary: #5A93F0; --primary-fg: #0E1424; --primary-hover: #82AEF5; --link: #8DB4F5;
    --shadow: 0 2px 10px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 88px 20px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 10px; max-width: 60ch; }

.btn { font: inherit; font-weight: 700; font-size: .95rem; border-radius: 10px; padding: 10px 18px; background: var(--primary); color: var(--primary-fg); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1.5px solid transparent; }
.btn:hover { background: var(--primary-hover); }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--primary); }
/* "Open app" while nothing is live: no href, so it isn't a link and can't be focused or followed. */
.btn.off, .btn.off:hover { background: var(--surface-2); color: var(--muted); border: 1.5px dashed var(--line); cursor: not-allowed; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--primary); font-weight: 800; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { white-space: nowrap; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 10px; border-radius: 8px; }
.links a:hover { background: var(--surface-2); }
.links a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--yellow); }
@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; }
  .links { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; }
  .brand { font-size: 1.15rem; } .brand img { width: 28px; height: 28px; }
  .top .btn { padding: 8px 12px; font-size: .88rem; }
}

/* Hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 20px 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 48px; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--navy); background: var(--yellow); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1, .page-h h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
.hl { color: var(--primary); }
.lede { font-size: 1.18rem; color: var(--muted); margin-top: 22px; max-width: 52ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Page headers for the inner pages */
.page-h { max-width: 1120px; margin: 0 auto; padding: 64px 20px 8px; }
.page-h .lede { max-width: 64ch; }

/* Bands */
.band { background: var(--band); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 40px; }
.feat { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; background: var(--surface); }
.feat h3 { font-size: 1.12rem; }
.feat p { color: var(--muted); font-size: .98rem; }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: .98rem; }
.num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--primary); color: var(--primary-fg); }
.steps li:nth-child(3) .num { background: var(--yellow); color: var(--navy); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split.top-align { align-items: start; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li b { color: var(--fg); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ticks.seen li::before { background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2438' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 15px no-repeat; }
.term { margin: 0; background: #12162A; color: #EEF2FA; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #2C3552; }
.term figcaption { font-size: .8rem; color: #A3ADC6; padding: 10px 16px; border-bottom: 1px solid #2C3552; }
.term pre { margin: 0; padding: 18px 16px; overflow-x: auto; font-size: .82rem; line-height: 1.7; }
.term .p { color: #FFCC33; }
.term .c { color: #8DB4F5; }

.faq { display: grid; gap: 12px; margin-top: 32px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--display); font-size: 1.08rem; }
.faq details p { color: var(--muted); margin-top: 10px; }

.soon { white-space: nowrap; display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #FFF4D1; color: #7A5400; vertical-align: middle; font-family: var(--body); letter-spacing: 0; }
@media (prefers-color-scheme: dark) { .soon { background: #3A3216; color: #FFCC33; } }

.final { text-align: center; display: grid; justify-items: center; gap: 14px; }
.final .sub { margin: 0 0 12px; }
.foot { border-top: 1px solid var(--line); }
.foot-in { padding: 24px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* talk.nossic.uk: the chat mock in the hero */
.mock { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 150px minmax(0, 1fr); font-size: .8rem; line-height: 1.45; }
.mock-rooms { background: var(--surface); border-right: 1px solid var(--line); padding: 12px 8px; display: grid; gap: 2px; align-content: start; }
.mock-rooms b { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px 2px; }
.mock-rooms span { padding: 5px 8px; border-radius: 8px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-rooms span.on { background: color-mix(in srgb, var(--primary) 14%, transparent); font-weight: 700; }
.mock-chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 340px; }
.mock-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 700; }
.mock-head .lock { margin-left: auto; font-size: .7rem; font-weight: 700; color: #1E6B3A; background: #DDF3E4; border-radius: 99px; padding: 2px 9px; }
@media (prefers-color-scheme: dark) { .mock-head .lock { color: #9BE2B4; background: #17352A; } }
.mock-msgs { padding: 14px; display: grid; gap: 10px; align-content: end; }
.msg { max-width: 85%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 8px 11px; color: var(--fg); }
.msg small { display: block; font-weight: 700; color: var(--muted); font-size: .7rem; }
.msg.me { justify-self: end; background: var(--primary); color: var(--primary-fg); border-color: transparent; border-radius: 12px 12px 4px 12px; }
.msg.file { display: flex; gap: 10px; align-items: center; }
.msg.file i { width: 30px; height: 36px; border-radius: 6px; background: var(--yellow); flex: none; }
@media (max-width: 520px) { .mock { grid-template-columns: minmax(0, 1fr); } .mock-rooms { display: none; } }
.mock-input { margin: 0 14px 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); }

/* Tables: the Wickr comparison, the credits and the metadata list */
.table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
caption { text-align: left; padding: 16px 18px 0; color: var(--muted); font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 18px; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { font-family: var(--display); font-size: 1.02rem; background: var(--surface-2); }
tbody th { font-weight: 700; }
td { color: var(--muted); }
td b { color: var(--fg); }

/* Prose on the inner pages */
.prose { max-width: 760px; display: grid; gap: 16px; }
.wrap.prose { max-width: 1120px; } .wrap.prose > * { max-width: 760px; }
.prose h2 { margin-top: 24px; }
.prose h3 { font-size: 1.25rem; margin-top: 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.note { border-left: 4px solid var(--yellow); background: var(--surface-2); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--fg); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p, .card li { color: var(--muted); font-size: .98rem; }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap.tight { padding-top: 40px; }
.final.gap { margin-top: 56px; }
.h1-404 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
