/* Bris.Social client portal shell. Rules: Master Designer Section 0.
   White page, ink type, Archivo in sentence case, Xanh Mono for one display moment per page,
   hot yellow once as a field, real photography, Dimi-Regular for the one real signature.
   No eyebrow labels, no arrows, no numbering, no entrance animations, no shadows. */
@font-face { font-family: "Dimi"; src: url("/fonts/Dimi-Regular.otf") format("opentype"); font-display: swap; }
:root { --ink: #141414; --ink-2: #4a4a48; --paper: #ffffff; --yellow: #fffb55; --line: #d9d9d6; --body: "Archivo", "Helvetica Neue", Arial, sans-serif; --display: "Xanh Mono", "Courier New", monospace; --g: clamp(16px, 4vw, 48px); }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; transition: background-color .45s ease, color .45s ease; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--g); }

/* Top bar */
.top { display: flex; align-items: center; gap: 20px; padding: 18px var(--g); background: var(--paper); color: var(--ink); }
.top__brand img { height: 22px; width: auto; }
.top__client { font-size: 15px; color: var(--ink-2); }
.top__out { margin-left: auto; font-size: 15px; color: var(--ink-2); }

/* Welcome: the client's site, their name on the one yellow field */
.cover { position: relative; height: min(46vh, 460px); min-height: 280px; background: #888 center/cover; display: flex; align-items: flex-end; }
.cover__name { background: var(--yellow); color: var(--ink); font: 400 clamp(38px, 6vw, 80px)/.95 var(--display); letter-spacing: -.01em; padding: 22px 28px 26px var(--g); max-width: min(92%, 980px); }
.cover__credit { font-size: 13px; line-height: 1.4; color: var(--ink-2); padding: 10px var(--g) 0; }
.letter { width: auto; padding-top: 64px; padding-bottom: 56px; max-width: 760px; margin-left: max(var(--g), calc((100vw - 1120px) / 2 + var(--g))); }
.letter p { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; margin-bottom: 18px; }
.letter__sign { font-family: "Dimi", cursive; font-size: 64px !important; line-height: 1 !important; margin-top: 8px; }

.stages { list-style: none; margin-bottom: 96px; }
.stage { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 20px; }
.stage + .stage { border-top: 1px solid var(--line); }
.stage__label { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.2; }
.stage__label a { text-underline-offset: 5px; text-decoration-thickness: 2px; }
.stage__when { font-size: 15px; color: var(--ink-2); align-self: center; }
.stage__note { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }
.stage--current { background: var(--ink); color: #fff; border-top-color: transparent !important; }
.stage--current .stage__when, .stage--current .stage__note { color: #e6e6e3; }
.stage--current + .stage { border-top-color: transparent; }
.stage--done .stage__label { color: var(--ink-2); font-weight: 500; }

/* Directions: tabs. The chip is the route's own colour, not a number. */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; overflow-x: auto; background: var(--paper); color: var(--ink); padding: 0 var(--g); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 16px 18px 13px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab__chip { width: 12px; height: 12px; display: inline-block; }
.js .panel, .js .route { display: none; }
.js .panel.is-active, .js .route.is-active { display: block; }

/* What we heard / Your call */
.heard { width: auto; padding-top: clamp(48px, 8vw, 96px); padding-bottom: 96px; max-width: 900px; margin-left: max(var(--g), calc((100vw - 1120px) / 2 + var(--g))); }
.heard__title { font: 400 clamp(44px, 7vw, 84px)/1 var(--display); margin-bottom: 24px; }
.heard__lede { font-size: clamp(18px, 1.9vw, 21px); max-width: 640px; }
.heard__list { list-style: none; margin: 40px 0; }
.heard__list li { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.4; padding: 18px 0; border-top: 1px solid var(--line); }
.heard__ask { font-size: 20px; font-weight: 600; max-width: 640px; }
.heard__next { margin-top: 16px; font-size: 18px; }
.heard__next a { font-weight: 600; text-underline-offset: 4px; }
.tally { margin: 32px 0; display: grid; gap: 8px; font-size: 18px; }

/* End of each route */
.route__end { max-width: 1400px; margin: 0 auto; padding: 72px var(--g) 96px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pick { background: currentColor; border: 2px solid currentColor; padding: 18px 26px; font-size: 18px; font-weight: 600; cursor: pointer; }
.pick > * , .pick { color: inherit; }
.route .pick { color: var(--paper); background: #141414; border-color: #141414; }
.route .pick:hover { background: transparent; color: #141414; }
.route .pick[aria-pressed="true"] { background: transparent; color: #141414; }
.pick__who { font-size: 16px; }

/* Notes, attached under whichever block they're about */
.notes-list { list-style: none; display: grid; gap: 8px; margin: 14px 0 0; grid-column: 1 / -1; flex-basis: 100%; }
.notes-list:empty { display: none; }
.notes-list li { font-size: 15px; line-height: 1.45; padding: 12px 16px; background: rgba(20, 20, 20, .07); max-width: 640px; }
.notes-list b { font-weight: 600; margin-right: 6px; }
.note-btn { cursor: pointer; font-size: 16px; font-weight: 600; padding: 14px 20px; border: 2px solid var(--ink); background: var(--ink); color: #fff; }
.note-btn--float { position: fixed; right: 20px; bottom: 20px; z-index: 6; }
.note-btn--float:hover, .note-btn--inline:hover { background: #fff; color: var(--ink); }
.is-directions:not(.has-route) .note-btn--float { display: none; }

.composer { margin: auto; border: 2px solid var(--ink); background: #fff; color: var(--ink); width: min(540px, calc(100vw - 32px)); }
.composer::backdrop { background: rgba(20, 20, 20, .55); }
.composer__form { display: grid; gap: 18px; padding: 28px; }
.composer label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.composer select, .composer textarea, .signin input { font-weight: 400; font-size: 16px; border: 1px solid #9a9a96; background: #fff; padding: 12px; width: 100%; }
.composer__actions { display: flex; justify-content: flex-end; gap: 10px; }
.composer__cancel { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 12px; cursor: pointer; }
.composer__send { background: var(--ink); color: #fff; border: 2px solid var(--ink); padding: 12px 20px; font-weight: 600; cursor: pointer; }

/* Sign in: the one full field of hot yellow */
.is-signin { background: var(--yellow); }
.is-signin .top { background: transparent; }
.signin { display: flex; align-items: center; padding: 48px var(--g) 96px; }
.signin__panel { width: 100%; max-width: 460px; margin-left: max(0px, calc((100vw - 1120px) / 2)); display: grid; gap: 16px; }
.signin__mark { width: 88px; height: auto; margin-bottom: 12px; }
.signin__title { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.signin__lede { font-size: 18px; margin-bottom: 12px; }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #1f1f1f; text-decoration: none; padding: 15px 20px; font-weight: 600; border: 2px solid var(--ink); }
.google-btn:hover { background: var(--ink); color: #fff; }
.email-btn { background: none; border: 2px solid var(--ink); padding: 13px 20px; font-weight: 600; cursor: pointer; }
.email-btn:hover { background: rgba(20, 20, 20, .08); }
.signin__form { display: grid; gap: 14px; margin-top: 8px; }
.signin__form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.signin__form button { justify-self: start; background: var(--ink); color: #fff; border: 2px solid var(--ink); padding: 13px 24px; font-weight: 600; cursor: pointer; }
.signin__err { font-size: 16px; background: var(--ink); color: #fff; padding: 14px 16px; }

.toast { position: fixed; left: 20px; bottom: 20px; background: var(--ink); color: #fff; padding: 12px 18px; font-size: 15px; z-index: 10; }
.foot { padding: 28px var(--g); font-size: 15px; color: var(--ink-2); background: var(--paper); }
.foot a { color: var(--ink); font-weight: 600; }
.is-directions .foot { border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; }
  .cover { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .note-btn--float { right: 12px; bottom: 12px; padding: 12px 16px; font-size: 15px; }
}

.stage__soon { font-weight: 400; font-size: .7em; color: var(--ink-2); white-space: nowrap; }
.stage__new { display: inline-block; vertical-align: middle; margin-left: 10px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; padding: 3px 8px; text-decoration: none; }
.stage--current a { text-decoration: none; }
.stage--current a .stage__label-text, .stage--current a:hover { text-decoration: underline; text-underline-offset: 5px; }
.stage--current { position: relative; cursor: pointer; }
.stage--current::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--yellow); pointer-events: none; }
.stage--current.is-lit::after { animation: lit 1.6s ease-out 2; }
@keyframes lit { 0% { border-width: 0; } 35% { border-width: 6px; } 100% { border-width: 0; } }
@media (prefers-reduced-motion: reduce) { .stage--current.is-lit::after { animation: none; border-width: 4px; } }
.route__which { max-width: 1400px; margin: 0 auto; padding: 20px var(--g) 0; font-size: 16px; }
.route__which b { font-weight: 700; }
.tab--home { color: var(--ink); font-weight: 600; padding-left: 0; margin-right: 6px; border-right: 1px solid var(--line); padding-right: 22px; border-bottom-color: transparent !important; }
