/* The Sealed Channel — employee-facing styles.
   Optima brand identity, Brand Guidelines v2.0 (July 2026).

   No web fonts and no external assets of any kind: every request this page makes
   goes to our own server. That is partly a design choice and partly a privacy
   claim we can make honestly because of it — and it is why the brand typeface
   (Wix Madefor, which is Google-hosted) is replaced here by the guide's own
   documented fallback. On an anonymous feedback page, not calling Google on an
   employee's behalf matters more than the exact letterforms.

   Colour: Binary Blue #0E1C42 carries the chrome and the primary actions.
   Bitstream Blue #55C8E8 is the accent — but it fails contrast as text on
   white, so text and small marks use the guide's Dark Bitstream Blue #0E5568
   and the cyan is kept for fills, rules, and dark-mode accents where it works. */

:root{
  /* Optima primary */
  --binary-blue:#0E1C42;
  --bitstream:#55C8E8;
  /* Guide's contrast-adjusted darks, for text use */
  --bitstream-text:#0E5568;
  /* Accent safe for TEXT and small marks. The dark cyan reads on a light
     ground; on a dark ground it disappears, so dark mode flips it to the
     bright Bitstream, which measures 9.8:1 there. */
  --accent-text:#0E5568;
  /* The guide's Dark Odyssey Orange #B85F00 measures 4.49:1 on white — a hair
     under the 4.5 minimum the guide itself states. Darkened just enough to
     clear it, same hue. Worth flagging to marketing. */
  --odyssey-text:#A85700;

  --ground:#F4F6FA;
  --surface:#FFFFFF;
  --surface-2:#E8EDF5;
  --ink:#000000;
  --ink-2:#3A4560;
  --ink-3:#656F8A;   /* darkened from #6B7590, which was 4.24:1 on the ground */
  --rule:#D7DEEA;
  --rule-strong:#B4BFD2;
  --accent:var(--binary-blue);
  --accent-ink:#FFFFFF;
  --accent-soft:#E4F4FA;
  --accent-line:var(--bitstream);
  --caution:var(--odyssey-text);
  --caution-soft:#FDF0DE;
  --error:#8A2F27;
  --error-soft:#F7E5E2;
  --radius:8px;
  --shadow:0 1px 2px rgba(14,28,66,.06), 0 10px 30px -22px rgba(14,28,66,.45);
  /* Standing in for Wix Madefor without a single third-party request.
     Wix Madefor is a low-contrast neo-grotesque with a tall x-height and fairly
     open apertures.

     Helvetica Neue leads because Francine reviewed the candidates side by side
     and chose it (2026-08-26). It is on every Mac, and the canonical
     neo-grotesque — the same structural family as Madefor. Everything after it
     is the fallback chain for machines that do not have it:

       Inter                  the guide's own named fallback; closest match of
                              anything free, where it happens to be installed
       Aptos                  ships with current Microsoft 365, so this is what
                              most Optima staff on Windows will actually see —
                              Helvetica Neue does not exist on Windows
       Segoe UI (Variable)    on every Windows machine; humanist, a step further
                              off but ubiquitous
       Helvetica / Arial      the floor — still neo-grotesques, so the page never
                              falls back to something structurally wrong
       system-ui / sans-serif last resort

     Not Avenir Next or Futura, though both are installed on Francine's Mac:
     they are geometric sans, and swapping a geometric face for a grotesque
     changes the brand's voice more than dropping down this list does.

     Display and Text are two optical sizes of the same design. With system
     faces there is no optical-size axis to use, so headings approximate the
     Display cut through weight and tighter tracking instead. */
  --sans:"Helvetica Neue",Inter,Aptos,"Segoe UI Variable Text","Segoe UI",Helvetica,Arial,system-ui,sans-serif;
  --display:var(--sans);
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
}
@media (prefers-color-scheme: dark){
  :root{
    --ground:#080F22;
    --surface:#0E1C42;
    --surface-2:#16264F;
    --ink:#F2F6FC;
    --ink-2:#BECBE2;
    --ink-3:#8B9AB8;
    --rule:#1E2F5C;
    --rule-strong:#31456F;
    --accent:var(--bitstream);
    --accent-ink:#08172B;
    --accent-soft:#12314A;
    --accent-line:var(--bitstream);
    --accent-text:var(--bitstream);
    --caution:#F7B15E;
    --caution-soft:#2C2313;
    --error:#E39189;
    --error-soft:#33191A;
    --shadow:0 1px 2px rgba(0,0,0,.5), 0 10px 30px -22px rgba(0,0,0,.95);
  }
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.hidden{display:none !important}
.mono{font-family:var(--mono);font-size:.94em}

.skiplink{
  position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--accent-ink);
  padding:10px 16px;z-index:10;
}
.skiplink:focus{left:8px;top:8px}

/* ---------- chrome ---------- */
/* The guide's documented pattern for HTML: a Binary Blue header bar with the
   white logo, and a Bitstream Blue rule beneath it. Using the white lockup here
   rather than swapping variants per theme also means the header uses the
   high-resolution asset (1213px wide) instead of the 250px signature file,
   whose tagline is illegible at any header size. One bar, both themes. */
.topbar{
  background:var(--binary-blue);
  border-bottom:3px solid var(--bitstream);
}
.topbar-inner{
  max-width:720px;margin:0 auto;padding:18px 22px;
  display:flex;align-items:center;gap:0;flex-wrap:wrap;
}
/* Logo clear space: the guide requires at least the width of the "a" in
   "Optima" on all sides. In this lockup that "a" is about 1/11th of the total
   width, so at 180px it is ~16px — the 22px of bar padding and the 22px gutter
   before the label both clear it. */
.logo{display:block;width:180px;height:auto}
.mark-sub{
  font-size:11px;letter-spacing:.15em;text-transform:uppercase;
  color:var(--bitstream);
  margin-left:22px;padding-left:22px;
  border-left:1px solid rgba(255,255,255,.28);
}
@media (max-width:460px){
  .mark-sub{margin-left:0;padding-left:0;border-left:0;margin-top:10px;flex-basis:100%}
}

main{max-width:720px;margin:0 auto;padding:38px 22px 20px}
.panel{display:flex;flex-direction:column;gap:20px}

h1{
  font-family:var(--display);font-weight:700;
  font-size:clamp(1.8rem,5vw,2.4rem);line-height:1.14;letter-spacing:-.02em;
  text-wrap:balance;margin:0;
}
h2{
  font-size:12px;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-3);font-weight:600;margin:0;
}
p{margin:0;max-width:62ch}
.lede{font-size:1.06rem;color:var(--ink-2)}
.footnote{font-size:14.5px;color:var(--ink-3)}
.tiny{font-size:13px;color:var(--ink-3)}

/* ---------- the promise block ---------- */
.promise{
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:22px;display:flex;flex-direction:column;gap:14px;
}
.yes-no{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.yes-no li{
  position:relative;padding-left:30px;font-size:15.5px;color:var(--ink-2);
  max-width:60ch;
}
.yes-no li::before{
  position:absolute;left:0;top:0;font-family:var(--mono);font-size:15px;font-weight:600;
}
.yes-no li.no::before{content:"\2013";color:var(--ink-3)}
.yes-no li.yes::before{content:"\2713";color:var(--accent-text)}
.yes-no strong{color:var(--ink)}

/* ---------- buttons ---------- */
.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.btn{
  font-family:inherit;font-size:15.5px;font-weight:500;
  padding:11px 20px;border-radius:var(--radius);border:1px solid transparent;
  cursor:pointer;transition:background-color .12s ease,border-color .12s ease;
}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.quiet{background:transparent;color:var(--ink-2);border-color:var(--rule-strong)}
.btn.quiet:hover{background:var(--surface-2);color:var(--ink)}
.btn.small{padding:7px 14px;font-size:14px}
.btn:disabled{opacity:.5;cursor:default}
.btn:focus-visible,.input:focus-visible,.chip:focus-visible,a:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px;
}

/* ---------- progress ---------- */
.progress{height:2px;background:var(--rule);border-radius:2px;overflow:hidden}
.progress .bar{display:block;height:100%;width:0;background:var(--accent);transition:width .3s ease}
.progress .bar.w1{width:11%} .progress .bar.w2{width:22%}
.progress .bar.w3{width:33%} .progress .bar.w4{width:44%}
.progress .bar.w5{width:55%} .progress .bar.w6{width:66%}
.progress .bar.w7{width:77%} .progress .bar.w8{width:88%}
.progress .bar.w9{width:100%}

/* ---------- conversation ---------- */
.log{display:flex;flex-direction:column;gap:14px}
.turn{display:flex;flex-direction:column;gap:4px;max-width:min(100%,48ch)}
.turn.mine{align-self:flex-end;align-items:flex-end}
.who{
  font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-3);
  font-family:var(--mono);
}
.bubble{
  background:var(--surface);border:1px solid var(--rule);
  padding:12px 16px;border-radius:2px 14px 14px 14px;
  font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;
  box-shadow:var(--shadow);
}
.turn.mine .bubble{
  background:var(--accent-soft);border-color:transparent;
  border-radius:14px 2px 14px 14px;
}
.bubble .hint{display:block;margin-top:7px;font-size:14px;color:var(--ink-3)}

/* ---------- composer ---------- */
.composer{
  display:flex;flex-direction:column;gap:14px;
  border-top:1px solid var(--rule);padding-top:18px;
}
.chips{display:flex;flex-wrap:wrap;gap:9px}
.chip{
  font-family:inherit;font-size:15px;padding:9px 16px;cursor:pointer;
  background:var(--surface);color:var(--ink);
  border:1px solid var(--rule-strong);border-radius:20px;
  transition:background-color .12s ease,border-color .12s ease;
}
.chip:hover{border-color:var(--accent);background:var(--accent-soft)}
.chip.skip{color:var(--ink-3);border-style:dashed}

.field{display:flex;flex-direction:column;gap:7px}
.field-label{font-size:14px;color:var(--ink-2);font-weight:500}
.input{
  font-family:inherit;font-size:16.5px;color:var(--ink);
  background:var(--surface);border:1px solid var(--rule-strong);
  border-radius:var(--radius);padding:12px 14px;width:100%;
}
.input::placeholder{color:var(--ink-3)}
.area{resize:vertical;min-height:130px;line-height:1.55}
.counter{font-size:13px;color:var(--ink-3);font-family:var(--mono)}

.checkline{
  display:flex;gap:12px;align-items:flex-start;
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);
  padding:14px 16px;cursor:pointer;
}
.checkline input{margin:3px 0 0;width:18px;height:18px;accent-color:var(--accent);flex:none}
.checkline .cl-text{display:flex;flex-direction:column;gap:3px}
.checkline .cl-title{font-size:15.5px;font-weight:500}
.checkline .cl-help{font-size:14px;color:var(--ink-3)}

/* ---------- review-before-send ---------- */
.summary{
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);
  padding:6px 0;box-shadow:var(--shadow);
}
.summary dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:0}
.summary dt,.summary dd{
  margin:0;padding:9px 18px;border-bottom:1px solid var(--rule);font-size:15px;
}
.summary dt{color:var(--ink-3);white-space:nowrap}
.summary dd{color:var(--ink);overflow-wrap:anywhere}
.summary dl > dt:nth-last-of-type(1),.summary dl > dd:nth-last-of-type(1){border-bottom:none}
.summary .quote{white-space:pre-wrap}
@media (max-width:560px){
  .summary dl{grid-template-columns:1fr}
  .summary dt{padding-bottom:0;border-bottom:none}
}

/* ---------- code ---------- */
.code-block{
  background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:22px;display:flex;flex-direction:column;gap:12px;
  align-items:flex-start;
}
.code-label{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.code{
  font-family:var(--mono);font-size:clamp(1.3rem,4.5vw,1.75rem);letter-spacing:.06em;
  color:var(--accent-text);border:1px dashed var(--rule-strong);border-radius:var(--radius);
  padding:14px 20px;width:100%;text-align:center;overflow-wrap:anywhere;
}
.code-help{font-size:14.5px;color:var(--ink-2)}
.copied{font-size:13.5px;color:var(--accent-text);font-family:var(--mono)}

/* ---------- errors ---------- */
.error{
  background:var(--error-soft);border-left:3px solid var(--error);
  padding:11px 15px;font-size:15px;color:var(--ink);max-width:60ch;
}

/* ---------- thread ---------- */
.thread-form{display:flex;flex-direction:column;gap:14px;
  border-top:1px solid var(--rule);padding-top:18px}

/* ---------- footer ---------- */
.pagefoot{
  max-width:720px;margin:0 auto;padding:30px 22px 70px;
  border-top:1px solid var(--rule);margin-top:34px;
  display:flex;flex-direction:column;gap:12px;
}
.pagefoot p{font-size:14px;color:var(--ink-3)}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important;animation:none !important;scroll-behavior:auto !important}
}
