/* solacebrowser.com: the one stylesheet. Tokens are recorded in DESIGN.md;
   scripts/design_lint.py fails the deploy on a colour or font outside them.
   (This file is public: no internal document paths here.) */
:root{
  --bg:#0E1520; --fg:#F4EFE4; --dim:#B7A894; --line:#2A3340;
  --card:rgba(14,21,32,.72); --accent:#C4A574; --accent-2:#E0C792;
  --accent-fg:#0E1520; --soon:#9d97ab; --ok:#5be5a8; --no:#ff7a92;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg); color:var(--fg);
  font:16px/1.65 ui-sans-serif,-apple-system,"Segoe UI",Inter,Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:60rem;margin:0 auto;padding:0 1.5rem;position:relative}
.skip{position:absolute;left:-999px;top:0;z-index:10;background:var(--fg);color:var(--bg);padding:.6rem 1rem;border-radius:6px}
.skip:focus{left:1rem;top:1rem}
a{color:inherit}
/* Colour alone is not a focus indicator: one ring for every control. */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

header{display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding:1.6rem 0 0;flex-wrap:wrap;position:relative}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:650;
  letter-spacing:-.01em;text-decoration:none;color:inherit;min-height:44px}
.brand img{width:1.75rem;height:1.75rem;border-radius:.5rem;display:block}
/* Nav rules shared with solacebuzz.com and solaceagi.com: identical
   behaviour across the three sites; only colour and type are ours. */
nav{display:flex;align-items:center;gap:1.25rem;font-size:.92rem;color:var(--dim);flex-wrap:wrap}
nav a{text-decoration:none;display:inline-flex;align-items:center;min-height:24px}
nav a:hover{color:var(--fg);text-decoration:underline;text-underline-offset:6px}
nav a[aria-current="page"]{color:var(--fg);box-shadow:inset 0 -2px 0 var(--accent)}
/* The language menu: a <details>, so it opens with no script. The summary
   names the page's language in its own words; the list names every language
   the same way and links to this page in it. */
details.lang{position:relative;color:var(--fg)}
details.lang summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;
  border:1px solid var(--line);border-radius:99px;padding:.1rem .7rem;min-height:28px;white-space:nowrap}
details.lang summary::-webkit-details-marker{display:none}
details.lang summary::after{content:"";width:.4rem;height:.4rem;border-right:1.5px solid var(--dim);
  border-bottom:1.5px solid var(--dim);transform:rotate(45deg) translateY(-.12rem)}
details.lang summary:hover,details.lang[open] summary{border-color:var(--accent)}
details.lang ul{position:absolute;z-index:30;top:calc(100% + .4rem);left:0;margin:0;padding:.4rem;list-style:none;
  min-width:11.5rem;background:var(--bg);border:1px solid var(--line);border-radius:.7rem;
  box-shadow:0 12px 32px rgba(0,0,0,.5);display:grid;grid-template-columns:1fr 1fr;gap:0 .2rem}
details.lang li a{display:flex;min-height:32px;padding:.2rem .6rem;border-radius:.4rem;white-space:nowrap;color:var(--dim)}
details.lang li a:hover{color:var(--fg);background:var(--line);text-decoration:none}
details.lang li a[aria-current="true"]{color:var(--fg);box-shadow:inset 2px 0 0 var(--accent)}
/* The sister sites sit after this site's own links, behind a hairline:
   leaving Solace Browser is a different move from going to Trust. */
.nav-sep{width:1px;height:1.1rem;background:var(--dim);opacity:.35;flex:none}
/* Every Solace site carries exactly one filled CTA, flush right. */
.nav-cta{background:var(--accent);color:var(--accent-fg);text-decoration:none;
  font-weight:620;font-size:.9rem;padding:.55rem 1.05rem;border-radius:99px;
  min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
nav a.nav-cta:hover{color:var(--accent-fg);background:var(--accent-2);text-decoration:none}

.hero{padding:4.5rem 0 0}
.hero.sub{padding:3rem 0 0}
.motif{width:3.4rem;height:.55rem;background:var(--accent);border-radius:99px;
  box-shadow:1.4rem 0 0 var(--accent);margin:0 0 1.2rem}
h1{font-family:"Iowan Old Style","Palatino Linotype",Palatino,"Times New Roman",serif;
  font-size:clamp(2.1rem,5vw,3.2rem);line-height:1.14;letter-spacing:-.02em;
  margin:.6rem 0 0;font-weight:600;max-width:20ch;text-wrap:balance}
.lede{font-size:clamp(1.05rem,2.3vw,1.28rem);color:var(--fg);
  max-width:46ch;margin:1.25rem 0 0}
.lede-more{color:var(--dim);max-width:60ch;margin:.9rem 0 0}
.lede-more strong{color:var(--fg);font-weight:620}
.cta{display:flex;flex-wrap:wrap;gap:.75rem;margin:2rem 0 0}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:.6rem 1.35rem;border-radius:.6rem;
  text-decoration:none;font-weight:620;font-size:.95rem;
  border:1px solid var(--line);transition:transform .16s,border-color .16s}
.btn:hover{transform:translateY(-1px)}
.btn.pri{background:var(--accent);color:var(--accent-fg);border-color:transparent}
.btn.pri:hover{background:var(--accent-2)}
.btn.sec:hover{border-color:var(--accent)}
/* Desktop hero: the words on the left, the builds a visitor can download
   today on the right. One column on a phone. */
.hero.split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:3rem;align-items:center}
.builds{background:var(--card);border:1px solid var(--line);border-radius:.9rem;padding:1.5rem}
.builds ul{list-style:none;margin:0 0 1rem;padding:0}
.builds li{padding:.8rem 0;border-bottom:1px solid var(--line);color:var(--dim);font-variant-numeric:tabular-nums}
.builds li strong{display:block;color:var(--fg);font-family:"Iowan Old Style","Palatino Linotype",Palatino,"Times New Roman",serif;font-size:1.35rem;font-weight:600}
.builds li small{display:block;font-size:.8rem}
.builds a{display:inline-flex;align-items:center;min-height:32px;color:var(--accent);text-underline-offset:3px}
.shot+.shot{margin-top:2rem}

/* The product shot sits on a stage. The stage's own gradient is the
   picture when there is no script, no WebGL2, reduced motion or data saver;
   the canvas only adds moving light in the margin around the screenshot,
   never behind text. */
.stage{position:relative;margin:0;padding:clamp(.9rem,4.5vw,3rem);
  border:1px solid var(--line);border-radius:16px;overflow:hidden;
  background:
    radial-gradient(120% 90% at 88% 6%,rgba(196,165,116,.24),rgba(14,21,32,0) 60%),
    radial-gradient(90% 80% at 6% 100%,rgba(224,199,146,.14),rgba(14,21,32,0) 55%),
    #05070a}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;
  pointer-events:none;opacity:0;transition:opacity .7s ease}
.stage canvas.on{opacity:1}
.stage picture{position:relative;display:block}
.stage img,.stage video{position:relative;display:block;width:100%;height:auto;
  border-radius:10px;border:1px solid var(--line);background:#05070a;
  box-shadow:0 18px 50px rgba(0,0,0,.5)}
.shot{margin:0}
.shot figcaption{color:var(--dim);font-size:.88rem;margin:.8rem 0 0;max-width:70ch}

.rule{height:1px;background:var(--line);margin:4rem 0}
h2{font-family:"Iowan Old Style","Palatino Linotype",Palatino,"Times New Roman",serif;
  font-size:clamp(1.45rem,3.2vw,1.9rem);line-height:1.2;letter-spacing:-.015em;
  color:var(--fg);font-weight:600;margin:0 0 1.2rem;text-wrap:balance}
.kicker{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.74rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--accent);margin:0 0 .5rem}
.sec-lede{color:var(--dim);max-width:62ch;margin:-.4rem 0 1.5rem}
main p{max-width:68ch}
.grid{display:grid;gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:.9rem;
  padding:1.35rem;transition:border-color .2s,transform .2s}
.card:hover{border-color:var(--accent);transform:translateY(-2px)}
.card h3{margin:0 0 .5rem;font-size:1.02rem;font-weight:640;
  letter-spacing:-.01em}
.card p{margin:0;color:var(--dim);font-size:.94rem}
.card p+p{margin-top:.6rem}
/* Status lists: what works and what is not built, side by side. */
.status{list-style:none;margin:0;padding:0;color:var(--dim);font-size:.94rem}
.status li{position:relative;padding:.3rem 0 .3rem 1.5rem}
.status li::before{content:"";position:absolute;left:.15rem;top:.85rem;width:.55rem;height:.55rem;border-radius:99px;background:var(--ok)}
.status.todo li::before{background:transparent;border:1.5px solid var(--dim)}
h3.sub{font-size:1.05rem;font-weight:640;margin:2.4rem 0 1rem}

/* the planned-check illustration + scenario bar */
.gatebox{border:1px solid var(--line);border-radius:.9rem;overflow:hidden;
  background:var(--card)}
.sim-bar{padding:.9rem 1.15rem;border-bottom:1px solid var(--line)}
.sim-kicker{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--dim);margin:0 0 .55rem}
.sim-tabs{display:flex;flex-wrap:wrap;gap:.5rem}
.sim-tab{appearance:none;background:transparent;color:var(--dim);
  border:1px solid var(--line);border-radius:99px;padding:.42rem .85rem;
  font:600 .82rem/1.2 ui-sans-serif,-apple-system,"Segoe UI",Inter,Roboto,sans-serif;
  cursor:pointer;min-height:34px;transition:border-color .16s,color .16s,background .16s}
.sim-tab:hover{border-color:var(--accent);color:var(--fg)}
.sim-tab.active{background:var(--accent-2);color:var(--accent-fg);border-color:var(--accent-2)}
.sim-readout{margin:.75rem 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.82rem;line-height:1.55;color:var(--fg);min-height:3.9em}
#gate{display:block;width:100%;height:190px}
.gatefoot{display:flex;flex-wrap:wrap;gap:1.25rem;justify-content:space-between;
  padding:.85rem 1.15rem;border-top:1px solid var(--line);
  font-size:.85rem;color:var(--dim)}
.tally{display:flex;gap:1.15rem;font-variant-numeric:tabular-nums}
.tally b{font-weight:620}
.tally .a{color:var(--ok)} .tally .d{color:var(--no)}

.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:.9rem;
  background:var(--card)}
table{border-collapse:collapse;width:100%;min-width:28rem}
th,td{text-align:left;padding:.85rem 1.1rem;border-bottom:1px solid var(--line);
  font-size:.95rem}
th{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--dim);font-weight:600}
tr:last-child td{border-bottom:0}
.arch{color:var(--dim)}
.arch small{display:block;font-size:.8rem;font-variant-numeric:tabular-nums}
.act{text-align:right;white-space:nowrap}
.soon{display:inline-block;padding:.15rem .55rem;border-radius:.4rem;
  border:1px solid var(--line);color:var(--soon);font-size:.8rem;
  letter-spacing:.06em;text-transform:uppercase}
.dl{display:inline-flex;align-items:center;min-height:32px;padding:.3rem .85rem;border-radius:.45rem;
  background:var(--accent);color:var(--accent-fg);text-decoration:none;
  font-weight:600;font-size:.88rem}
.dl:hover{background:var(--accent-2)}
.manifest{display:inline-flex;align-items:center;min-height:32px;margin-left:.6rem;
  color:var(--dim);font-size:.82rem;text-decoration:underline;text-underline-offset:2px}
.manifest:hover{color:var(--fg)}
.note{color:var(--dim);font-size:.9rem;margin:1rem 0 0;max-width:68ch}
.note a,.lede a,.sec-lede a,.card a,main p a{text-underline-offset:3px}
.links{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.5rem 0 0}
.links a{display:inline-flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;
  border:1px solid var(--line);background:var(--card);border-radius:.7rem;
  padding:.8rem 1.1rem;text-decoration:none;font-weight:600;font-size:.95rem;
  transition:border-color .2s,transform .2s}
.links a:hover{border-color:var(--accent);transform:translateY(-2px)}
.links a span{color:var(--dim);font-weight:400;font-size:.88rem}
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;padding:.9rem 0;font-weight:620;min-height:44px}
.faq details p{margin:0 0 1rem;color:var(--dim)}
footer{color:var(--dim);font-size:.86rem;padding:3rem 0 3.5rem;
  border-top:1px solid var(--line);margin-top:4rem;
  display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between}
/* WCAG 2.5.8: these are standalone navigation links, not links inside a
   sentence, so the 15px line box was the whole target. Audited 2026-09-15. */
footer a{display:inline-block;padding:.3rem .1rem;min-height:24px}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}

/* Scroll reveal. Nothing is hidden unless the script itself marks an
   element that is still below the fold, so the page reads in full with no
   script and under reduced motion. */
.reveal.pre{opacity:0;transform:translateY(18px)}
.reveal.pre,.reveal.in{transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* The analytics question. It sits at the foot of the viewport and stays
   short enough that it never covers the hero's buttons on a phone. */
.consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:20;max-width:560px;margin:0 auto;
  background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:12px;
  padding:12px 14px;font-size:.88rem;line-height:1.45;box-shadow:0 8px 32px rgba(0,0,0,.4);
  display:flex;gap:10px 12px;align-items:center;flex-wrap:wrap}
.consent p{margin:0;flex:1 1 240px}
.consent a{color:var(--accent)}
.consent button{font:inherit;cursor:pointer;border-radius:10px;padding:6px 12px;min-height:32px;
  border:1px solid var(--line);background:transparent;color:inherit}
.consent button.yes{background:var(--accent);color:var(--accent-fg);font-weight:600;border-color:transparent}

/* ── scripts other than Latin ─────────────────────────────────────────
   Each uses fonts the visitor already has (no download). Headings take the
   same family as the body: the Latin display serif has no glyphs for them.
   No letter-spacing and no uppercase on these scripts; Thai and Devanagari
   get more line height for their marks above and below the line. */
html:lang(zh-Hans) body,details.lang :lang(zh-Hans){font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC",sans-serif}
html:lang(ja) body,details.lang :lang(ja){font-family:"Hiragino Sans","Yu Gothic","Noto Sans JP","Noto Sans CJK JP",sans-serif}
html:lang(ja) body{line-break:strict}
html:lang(ko) body,details.lang :lang(ko){font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR","Noto Sans CJK KR",sans-serif}
html:lang(th) body,details.lang :lang(th){font-family:"Thonburi","Leelawadee UI","Noto Sans Thai",sans-serif}
html:lang(hi) body,details.lang :lang(hi){font-family:"Kohinoor Devanagari","Nirmala UI","Noto Sans Devanagari",sans-serif}
html:is(:lang(zh-Hans),:lang(ja),:lang(ko),:lang(th),:lang(hi)) :is(h1,h2,.builds li strong){
  font-family:inherit;font-weight:700;letter-spacing:0}
html:is(:lang(zh-Hans),:lang(ja),:lang(ko),:lang(th),:lang(hi)) :is(.kicker,.sim-kicker,th,.soon,.brand,.card h3){
  letter-spacing:0;text-transform:none}
html:is(:lang(zh-Hans),:lang(ja),:lang(ko),:lang(th),:lang(hi)) :is(.kicker,.sim-kicker,.sim-readout){font-family:inherit}
html:is(:lang(zh-Hans),:lang(ja),:lang(ko)) h1{font-size:clamp(1.8rem,3.8vw,2.45rem);line-height:1.35;max-width:16em}
/* Japanese has no spaces: break lines between phrases, not inside a word. */
html:lang(ja) :is(h1,h2,h3,.lede,.btn){word-break:auto-phrase}
html:is(:lang(zh-Hans),:lang(ja),:lang(ko)) h2{line-height:1.35}
html:lang(ko) :is(h1,h2,h3,.btn,nav a,summary){word-break:keep-all}
/* Korean breaks lines between words, never inside one. */
html:lang(ko) body{word-break:keep-all;overflow-wrap:break-word}
html:is(:lang(th),:lang(hi)) body{line-height:1.85}
html:is(:lang(th),:lang(hi)) h1{font-size:clamp(1.9rem,4.4vw,2.8rem);line-height:1.45;max-width:18em}
html:is(:lang(th),:lang(hi)) h2{line-height:1.5}
/* Labels run longer in the ten newer languages than in English, so their
   header carries this site's links, the language menu and Download only; the
   sister sites are in the footer of every page. One row from 961px up. */
html:not(:lang(en)):not(:lang(vi)) :is(.nav-sep,.nav-out){display:none}
html:not(:lang(en)) nav :is(a,summary){white-space:nowrap}
/* The serif is Latin: these languages keep it, with room for long words. */
html:is(:lang(de),:lang(id),:lang(fr),:lang(es),:lang(pt-BR)) h1{hyphens:auto;overflow-wrap:break-word}

@media print{
  .reveal.pre{opacity:1;transform:none}
  .consent,.stage canvas{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.card,.links a,.sim-tab,.stage canvas,.reveal.pre,.reveal.in{transition:none}
  .reveal.pre{opacity:1;transform:none}
}

/* Found 2026-09-12: at 390px `nav` (flex, nowrap by default) held 6 links at
   full size and ran 474px wide, and `table{min-width:28rem}` ran 448px wide,
   both wider than the viewport. Every nav link and Download button must stay
   visible and usable, so the nav wraps and the table sheds its min-width.
   2026-11-17: the phone header is two rows: brand and Download on the first,
   this site's own links and the language switch on the second. The sister
   sites move to the footer, where they are on every page. */
/* Between a phone and 960px the one-row header does not fit: it used to break
   into three rows with Download alone on the last. It takes the phone's
   two-row shape instead (brand and Download; this site's links and the
   language switch), and the sister sites stay in the footer. */
@media (max-width:960px){
  /* The language list opens across the header's width, so it cannot run off
     either edge whatever the pill's position in the row. */
  details.lang{position:static}
  details.lang ul{left:0;right:0;top:100%}
  header{gap:.35rem 1rem}
  nav{flex:1 0 100%;justify-content:flex-start}
  .nav-sep,.nav-out{display:none}
  .nav-cta{position:absolute;top:1.6rem;right:0}
}
@media (max-width:640px){
  /* Vietnamese labels run longer; keep the links and the switch on one row. */
  html[lang="vi"] nav{gap:.2rem .7rem;font-size:.84rem}
  html:not(:lang(en)):not(:lang(vi)) nav{gap:.2rem .6rem;font-size:.82rem}
  html:not(:lang(en)):not(:lang(vi)) details.lang summary{padding:.1rem .5rem;gap:.3rem}
  /* Longer words: a slightly smaller phone hero keeps both buttons clear of
     the consent banner at 390x844. */
  html:not(:lang(en)):not(:lang(vi)) h1{font-size:1.85rem}
  html:not(:lang(en)):not(:lang(vi)) .lede{font-size:1rem;margin-top:.8rem}
  html:not(:lang(en)):not(:lang(vi)) .lede-more{font-size:.95rem;margin-top:.6rem}
  html:not(:lang(en)):not(:lang(vi)) .cta{margin-top:1.1rem}
  header{padding-top:1.1rem;gap:.35rem 1rem}
  nav{flex-wrap:wrap;gap:.2rem 1.05rem;justify-content:flex-start;flex:1 0 100%;font-size:.9rem}
  nav a{min-height:32px}
  .nav-sep,.nav-out{display:none}
  .nav-cta{position:absolute;top:1.1rem;right:0}
  .hero{padding-top:1.5rem}
  .hero.split{grid-template-columns:1fr;gap:1.6rem}
  .motif{margin-bottom:.8rem}
  .lede{margin-top:1rem}
  .hero.sub{padding-top:2rem}
  .cta{margin-top:1.5rem;gap:.5rem}
  /* Both hero buttons share one row, so the consent banner clears them. */
  .cta .btn{flex:1 1 auto;justify-content:center;padding:.6rem .7rem;font-size:.86rem;white-space:nowrap}
  .rule{margin:3rem 0}
  .sim-tab{font-size:.78rem;padding:.38rem .7rem}
  table{min-width:0;table-layout:fixed}
  th,td{padding:.6rem .55rem;font-size:.86rem}
  .act{white-space:normal}
  .dl{padding:.28rem .6rem;font-size:.8rem}
  .manifest{font-size:.76rem;margin-left:0}
  .soon{padding:.12rem .4rem;font-size:.72rem}
  .consent{left:10px;right:10px;bottom:10px;padding:9px 11px;font-size:.8rem;gap:6px 8px}
  .consent p{flex:1 1 100%}
  .consent button{padding:4px 12px;flex:1 1 auto}
}
