/* Glasstie's public site: a ledger. Rule lines, tables and record numbers, set like an annual report.
   Same palette as the app: paper, fjord teal (A), slate violet (B), amber only for possible conflicts. */
:root {
  --paper: #f6f7f5; --card: #ffffff; --ink: #14202a; --ink-2: #3c4b56; --muted: #66747e; --rule: #dfe4e6; --rule-2: #c9d1d5;
  --a: #1d6b78; --b: #4b55b8; --line: #2b5f73; --flag: #9a5a09; --flag-bg: #fbf3e6; --flag-rule: #efd9b4; --ok: #2f7a4a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); font-feature-settings: "tnum" 1; overflow-x: hidden; }
a { color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.018em; margin: 0 0 .5em; font-weight: 640; }
h1 { font-size: clamp(34px, 6vw, 60px); max-width: 17em; }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .25em 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.mono, .no { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 40em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }

/* header */
.top { border-bottom: 1px solid var(--rule-2); background: rgba(246, 247, 245, .94); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 660; font-size: 19px; letter-spacing: -0.01em; flex: none; }
.brand svg { width: 36px; height: 15px; }
.beta { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--flag); background: var(--flag-bg); border: 1px solid var(--flag-rule); border-radius: 99px; padding: 2px 8px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a.on { background: #e8edef; color: var(--ink); }
.nav a.lang { font-family: var(--mono); font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; border: 0; border-radius: 10px; padding: 13px 20px; font: inherit; font-weight: 620; font-size: 16px; cursor: pointer; }
.btn:hover { background: #24384a; color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }
.btn.ghost:hover { background: #e8edef; }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: #24384a; color: #fff; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--rule-2); border-radius: 8px; padding: 6px 12px; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu .sheet { position: absolute; right: 0; top: 44px; width: min(280px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--rule-2); border-radius: 12px; padding: 8px; box-shadow: 0 8px 30px rgba(20, 32, 42, .12); display: grid; }
.menu .sheet a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.menu .sheet a:hover { background: #eef2f3; }
.menu .sheet .btn { color: #fff; justify-content: center; margin-top: 6px; }
@media (max-width: 940px) { .nav { display: none; } .menu { display: block; } }

/* hero */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); border-bottom: 2px solid var(--ink); }
.hero .kick { margin-bottom: 22px; color: var(--muted); }
.hero h1 { margin-bottom: 34px; }
.hero-line { display: block; width: 100%; height: 30px; margin-top: clamp(40px, 7vw, 70px); }

/* ledger sections */
.sec { padding: clamp(44px, 7vw, 80px) 0; border-bottom: 1px solid var(--rule-2); }
.sec:last-of-type { border-bottom: 0; }
.sec-head { display: grid; grid-template-columns: 120px 1fr; gap: 0 24px; margin-bottom: 26px; align-items: baseline; }
.sec-head .no { color: var(--muted); padding-top: 6px; }
.sec-head h2 { margin: 0; }
.sec-head p { grid-column: 2; margin: 10px 0 0; color: var(--ink-2); max-width: 44em; }
.body { margin-left: 144px; }
@media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { grid-column: 1; } .body { margin-left: 0; } }

/* ledger table */
.ledger { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 16px; }
.ledger th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.ledger td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.ledger td.no { color: var(--muted); width: 3.5em; padding-top: 17px; }
.ledger td b { font-weight: 620; }
.ledger .limit { color: var(--ink-2); font-size: 15px; }
.ledger .limit::before { content: "Limit"; display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--flag); border: 1px solid var(--flag-rule); background: var(--flag-bg); border-radius: 4px; padding: 0 5px; margin-right: 7px; vertical-align: 1px; }
html[lang="da"] .ledger .limit::before { content: "Grænse"; }
.ledger .none { color: var(--muted); }
@media (max-width: 720px) {
  .ledger.stack thead { display: none; }
  .ledger.stack tr { display: grid; grid-template-columns: 3em 1fr; border-bottom: 1px solid var(--rule-2); padding: 12px 0; }
  .ledger.stack td { border: 0; padding: 3px 0; }
  .ledger.stack td.no { grid-row: span 3; padding-top: 6px; }
  .ledger.stack td:not(.no) { grid-column: 2; }
}

/* inline limit note beside a claim */
.limit-note { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.limit-note::before { content: "Limit"; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--flag); border: 1px solid var(--flag-rule); background: var(--flag-bg); border-radius: 4px; padding: 0 5px; margin-right: 7px; vertical-align: 1px; }
html[lang="da"] .limit-note::before { content: "Grænse"; }

/* index of audiences */
.index { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.index a { display: block; padding: 20px 20px 22px 0; border-bottom: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; }
.index a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.index .no { color: var(--muted); display: block; margin-bottom: 8px; }
.index h3 { margin-bottom: 6px; }
.index p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .index { grid-template-columns: 1fr; } }

/* two-column facts */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.facts { border-top: 2px solid var(--ink); margin: 0; }
.facts div { display: grid; grid-template-columns: 11em 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.facts dt { font-weight: 620; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* the worked example: a search record */
.record { background: var(--card); border: 1px solid var(--rule-2); border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; padding: 0 22px 22px; }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); color: var(--muted); }
.illus { color: var(--flag); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 22px 0 18px; }
.pair .side { font-weight: 620; font-size: 19px; }
.pair .side small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.pair .side.b { text-align: right; }
.pair svg { width: clamp(60px, 16vw, 200px); height: 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--a); margin-right: 7px; vertical-align: 0; }
.dot.b { border-color: var(--b); }
.claim { border-top: 1px solid var(--rule-2); padding: 14px 0; display: grid; grid-template-columns: 2.6em 1fr; gap: 0 10px; }
.claim .no { color: var(--muted); padding-top: 3px; }
.claim .rel { font-weight: 600; }
.claim blockquote { margin: 8px 0; padding: 4px 0 4px 12px; border-left: 3px solid var(--rule-2); color: var(--ink-2); font-size: 15px; }
.claim .src { font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.claim .tag:first-child { margin-left: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 620; border-radius: 4px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.tag.ok { color: var(--ok); background: #eaf5ee; border: 1px solid #c6e3d0; }
.tag.src-p { color: var(--line); background: #e8f1f3; border: 1px solid #c8dde2; }
.flagbox { margin-top: 10px; background: var(--flag-bg); border: 1px solid var(--flag-rule); border-radius: 10px; padding: 14px 16px; color: #5e3a08; }
.flagbox b { color: var(--flag); }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } .pair .side.b { text-align: left; } .pair { gap: 8px; } .pair svg { display: none; } .pair .side.b { border-top: 1px dashed var(--rule-2); padding-top: 8px; } .record { padding: 0 14px 16px; } }

/* call to action */
.cta { padding: clamp(50px, 8vw, 90px) 0; border-top: 2px solid var(--ink); }
.cta h2 { max-width: 20em; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

/* form */
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--a); outline-offset: 1px; border-color: var(--a); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 1px solid #c6e3d0; background: #eaf5ee; color: #1f5232; border-radius: 10px; padding: 14px 16px; max-width: 620px; margin-bottom: 18px; }
.notice.err { border-color: #e7c3c3; background: #fbeeee; color: #7a2626; }
[hidden] { display: none !important; }

/* footer */
.foot { border-top: 2px solid var(--ink); padding: 34px 0 46px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.foot a { color: var(--ink-2); text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
@media print { .top, .cta, .foot { display: none; } body { background: #fff; } }

section[id] { scroll-margin-top: 72px; }

/* one answer vs a list of possible matches vs a register path (W1, W2) */
.compare th.us, .compare td.us { color: var(--ink); font-weight: 560; }
.compare td.us { background: #eef4f5; padding-left: 12px; }
.compare th.us { padding-left: 12px; color: var(--line); }
@media (max-width: 720px) {
  .ledger.stack.compare tr { grid-template-columns: 1fr; }
  .ledger.stack.compare td { grid-column: 1; }
  .ledger.stack.compare td[data-col]::before { content: attr(data-col); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .ledger.stack.compare td.us { padding: 6px 10px; border-radius: 6px; margin-top: 4px; }
}

/* pricing (W4) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--rule-2); border-top: 2px solid var(--ink); border-radius: 0 0 10px 10px; padding: 18px; display: flex; flex-direction: column; }
.plan.free { border-top-color: var(--ok); }
.plan h3 { margin: 0 0 6px; }
.plan .price { font-size: 22px; font-weight: 650; margin-bottom: 8px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { font-size: 15px; color: var(--ink-2); flex: 1; }
.plan .btn { align-self: flex-start; }

/* code (developers page) */
.code { background: #14202a; color: #e6edf0; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: 13px/1.55 var(--mono); margin: 0 0 16px; max-width: 100%; }

/* the real worked example (W5), filled by the server */
.showcase .claim .basis { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.showcase .summary { color: var(--ink-2); margin: 12px 0; }
.showcase .asof { color: var(--muted); font-size: 14px; margin-top: 12px; }
.plan .price.ask { font-size: 17px; font-weight: 600; color: var(--ink-2); }

/* country pages (A30) */
.countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 18px; border-top: 2px solid var(--ink); }
.countries li { border-bottom: 1px solid var(--rule-2); }
.countries a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0; text-decoration: none; color: inherit; }
.countries a:hover b { text-decoration: underline; }
.countries .mono { color: var(--muted); white-space: nowrap; }
.ledger td a { overflow-wrap: anywhere; }
