/* Stoxdot app. Self-contained: no stylesheet from the site is loaded here.
   Navy ground, pale blue ink, cut-corner boxes, hairlines, a frame around the viewport.
   Sizes are in rem and the root size scales with the viewport, the same as the site. */

@font-face { font-family: 'Grotesk Regular'; font-style: normal; font-weight: 400; font-display: swap; src: url(/app/fonts/grotesk-regular.woff2) format('woff2'); }
@font-face { font-family: 'Grotesk Bold'; font-style: normal; font-weight: 700; font-display: swap; src: url(/app/fonts/grotesk-bold.woff2) format('woff2'); }
@font-face { font-family: 'Grotesk Light'; font-style: normal; font-weight: 300; font-display: swap; src: url(/app/fonts/grotesk-light.woff2) format('woff2'); }
@font-face { font-family: 'Commit Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/app/fonts/commit-mono.otf) format('opentype'); }
@font-face { font-family: 'Commit Mono Bold'; font-style: normal; font-weight: 700; font-display: swap; src: url(/app/fonts/commit-mono-bold.ttf) format('truetype'); }

:root {
  --navy: #020a19;
  --ink: #d5e0ff;
  --hair: rgba(213, 224, 255, .1);
  --fill: rgba(213, 224, 255, .05);
  --ink-30: rgba(213, 224, 255, .3);
  --bold: 'Grotesk Bold', sans-serif;
  --regular: 'Grotesk Regular', sans-serif;
  --light: 'Grotesk Light', sans-serif;
  --mono: 'Commit Mono', monospace;
  --mono-bold: 'Commit Mono Bold', monospace;
  --m: 2.5rem;        /* frame margin */
  --fc: 26px;         /* frame corner cut */
  --top: 5.4rem;      /* top bar height */
  --bot: 3.65rem;     /* bottom bar height */
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: rgba(213, 224, 255, .2) #020a19; }
@media (max-width: 767px) { html { font-size: clamp(12px, 3.8647342995vw, 20px); } :root { --m: .625rem; --fc: 24px; --top: 4.65rem; --bot: 4.4rem; } }
@media (min-width: 1024px) { html { font-size: clamp(12px, .8333333333vw, 24px); } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--regular); font-weight: 400; font-size: 1rem; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
::selection { background: var(--ink); color: var(--navy); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ---- type ---------------------------------------------------------------------------------- */
.mono, .tag, .sec_no, .app_row_num, .app_row_sub, .app_status, .app_msg_you, .app_msg_time, .app_nav_menu a, .hud_cell, .footer2_col_name, .app_dot_who {
  font-family: var(--mono); font-size: .6875rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; font-weight: 400;
}
.tag { display: inline-flex; align-items: center; gap: .375rem; letter-spacing: .16em; white-space: nowrap; }
.tag::before { content: ''; flex: none; width: .5rem; height: .5rem; background: currentColor; margin-bottom: .125rem; }
.text-medium { font-family: var(--regular); font-size: 1.125rem; line-height: 1.2; }
.text-small { font-family: var(--light); font-size: 1rem; line-height: 1.4; letter-spacing: -.02em; }
.text-tiny { font-size: .6875rem; }

/* ---- cut corners ---------------------------------------------------------------------------
   One rule draws every cut-corner box: the corner is clipped, and a hairline is drawn along
   the cut by a one-colour image in that corner. --tl/--tr/--br/--bl are the cut sizes. */
.cut, .card, .button, .app_pill, .app_input, .app_field, .app_token, .hud_frame, .hud_btn {
  --tl: 0px; --tr: 0px; --br: 0px; --bl: 0px; --ln: var(--hair); --bg: transparent;
  border: 1px solid var(--ln);
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom right, transparent 50%, var(--ln) 50%, var(--ln) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(to bottom left, transparent 50%, var(--ln) 50%, var(--ln) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(to top left, transparent 50%, var(--ln) 50%, var(--ln) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(to top right, transparent 50%, var(--ln) 50%, var(--ln) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  background-size: var(--tl) var(--tl), var(--tr) var(--tr), var(--br) var(--br), var(--bl) var(--bl);
  background-position: left top, right top, right bottom, left bottom;
  background-repeat: no-repeat;
  background-origin: border-box;
  clip-path: polygon(var(--tl) 0, calc(100% - var(--tr)) 0, 100% var(--tr), 100% calc(100% - var(--br)), calc(100% - var(--br)) 100%, var(--bl) 100%, 0 calc(100% - var(--bl)), 0 var(--tl));
}

/* ---- the frame around the viewport --------------------------------------------------------- */
.hud_mask { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: var(--navy);
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    calc(var(--m) + var(--fc)) var(--m), calc(100% - var(--m) - var(--fc)) var(--m), calc(100% - var(--m)) calc(var(--m) + var(--fc)),
    calc(100% - var(--m)) calc(100% - var(--m) - var(--fc)), calc(100% - var(--m) - var(--fc)) calc(100% - var(--m)), calc(var(--m) + var(--fc)) calc(100% - var(--m)),
    var(--m) calc(100% - var(--m) - var(--fc)), var(--m) calc(var(--m) + var(--fc)), calc(var(--m) + var(--fc)) var(--m), 0 0); }
.hud_frame { position: fixed; inset: var(--m); z-index: 31; pointer-events: none; --tl: var(--fc); --tr: var(--fc); --br: var(--fc); --bl: var(--fc); }

.hud_top { position: fixed; z-index: 20; top: var(--m); left: var(--m); right: var(--m); height: var(--top); background: var(--navy); border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; padding: 0 1rem 0 2rem; }
.app_logo { display: flex; align-items: center; gap: .875rem; color: var(--ink); }
.app_logo_mark { display: block; width: 1.75rem; height: 1.75rem; flex: none; }
.app_logo_name { font-family: var(--bold); font-size: 1.25rem; line-height: 1; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.hud_top_right { display: flex; align-items: center; }
.app_nav_menu { display: flex; gap: 1rem; margin-right: 1.5rem; }
.app_nav_menu a { font-size: .75rem; letter-spacing: .16em; white-space: nowrap; transition: opacity .33s linear; }
.app_nav_menu a:hover { opacity: .6; }
.hud_pair { display: flex; }

.hud_bot { position: fixed; z-index: 20; bottom: var(--m); left: var(--m); right: var(--m); height: var(--bot); background: var(--navy); border-top: 1px solid var(--hair); }
.app_stats { display: flex; align-items: stretch; height: 100%; }
.hud_cell { display: flex; align-items: center; padding: 0 2rem; line-height: 1.3; white-space: nowrap; position: relative; }
.hud_cell_mid { flex: 1; justify-content: center; }
.hud_cell_mid::before, .hud_cell_mid::after { content: ''; position: absolute; top: 1px; bottom: 1px; width: 1px; background: var(--hair); }
.hud_cell_mid::before { left: 0; }
.hud_cell_mid::after { right: 0; }

/* ---- buttons -------------------------------------------------------------------------------
   Primary: pale solid, dark text, four squares. Secondary: dark translucent, pale text, three. */
.button, .app_pill, .hud_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; white-space: nowrap;
  font-family: var(--bold); font-size: .75rem; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  padding: 1.25rem 1.75rem; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: color .3s, background-color .3s;
}
.button { --bg: var(--ink); --ln: var(--ink); --tr: 12px; --bl: 12px; color: var(--navy); }
.button::before { content: ''; flex: none; width: .75rem; height: .75rem;
  background: linear-gradient(currentColor, currentColor) 0 0 / .25rem .25rem no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / .25rem .25rem no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / .25rem .25rem no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / .25rem .25rem no-repeat; }
.button:hover:not(:disabled) { --bg: var(--navy); color: var(--ink); }
.button.is-ghost, .app_pill, .hud_btn_dark { --bg: var(--fill); --ln: var(--hair); color: var(--ink); }
.button.is-ghost::before, .app_pill::before, .hud_btn_dark::before { content: ''; flex: none; width: .5rem; height: .75rem;
  background: linear-gradient(currentColor, currentColor) 0 0 / .25rem .25rem no-repeat, linear-gradient(currentColor, currentColor) 100% 50% / .25rem .25rem no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / .25rem .25rem no-repeat; }
.button.is-ghost:hover:not(:disabled), .app_pill:hover:not(:disabled), .hud_btn_dark:hover { --bg: var(--ink); color: var(--navy); }
.app_pill { --tr: 8px; --bl: 8px; padding: .75rem 1rem; font-size: .6875rem; }
.button:disabled, .app_pill:disabled { opacity: .5; cursor: default; }
/* the header pair: dark with a cut bottom-left corner, joined to pale with a cut top-right corner */
.hud_btn { --tr: 0px; --bl: 0px; }
.hud_btn_dark { --bl: 15px; --ln: transparent; }
.button.hud_btn_light { --tr: 15px; --bl: 0px; }

/* ---- page ---------------------------------------------------------------------------------- */
.app_page { padding: calc(var(--m) + var(--top)) var(--m) calc(var(--m) + var(--bot)); }
.app_hero { padding: 9rem 2rem 2rem; }
.app_hero h1 { font-family: var(--bold); font-size: 8.75rem; line-height: .9; letter-spacing: 0; text-transform: uppercase; }
.app_hero_p { max-width: 28.125rem; margin-top: 2rem; }

.app_section { scroll-margin-top: calc(var(--m) + var(--top)); }
.sec_bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-height: 3rem; }
.sec_body { position: relative; display: flex; }
.sec_body::before { content: ''; position: absolute; z-index: 1; left: 50%; top: -1px; width: 7px; height: 7px; transform: translate(-50%, -50%);
  background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 7px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% 50% / 1px 7px no-repeat; }
.sec_side { width: 50%; flex: none; border-right: 1px solid var(--hair); padding: 8rem 2rem 6rem 7.25rem; }
.sec_side_in { position: sticky; top: calc(var(--m) + var(--top) + 4rem); display: flex; flex-direction: column; gap: 2rem; }
.made_h2 { font-family: var(--bold); font-size: 5rem; line-height: .9; letter-spacing: 0; text-transform: uppercase; }
.sec_note { max-width: 28.125rem; }
.sec_main { width: 50%; min-width: 0; padding: 4.625rem 4rem 8rem; display: flex; flex-direction: column; gap: 1rem; }

.card { --tr: 20px; --bg: var(--fill); padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.card_head { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: .5rem; }
.faq_h3 { font-family: var(--bold); font-size: 1rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }

/* rows: hairline list */
.app_rows { display: flex; flex-direction: column; }
.app_row { display: grid; grid-template-columns: 2rem 1.3fr 1.3fr 1fr auto; align-items: start; gap: .75rem 1rem; padding: 1.125rem 0; border-top: 1px solid var(--hair); font-family: var(--regular); font-size: 1.125rem; line-height: 1.2; }
.app_row > span { min-width: 0; overflow-wrap: anywhere; }
.app_row.is-off { color: rgba(213, 224, 255, .5); }
.app_row_num { padding-top: .25rem; }
.app_row_sub { display: block; opacity: .5; padding-top: .375rem; }
.app_row_actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.app_row_actions:empty { display: none; }
.app_status { display: inline-flex; align-items: center; gap: .375rem; padding-top: .25rem; white-space: nowrap; }
.app_status::before { content: ''; width: .5rem; height: .5rem; background: currentColor; border: 1px solid currentColor; }
.app_status.is-paused::before { background: transparent; }
.app_status.is-cancelled::before { background: transparent; opacity: .4; }
.app_empty { font-family: var(--light); font-size: 1rem; line-height: 1.4; letter-spacing: -.02em; opacity: .6; padding: .5rem 0; }
.app_row_slim { grid-template-columns: 2rem 1fr; }
.app_rows:empty { display: none; }

/* forms: the field is a cut box with its label inside */
.app_form { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.app_fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.app_field { --tl: 8px; --tr: 8px; --br: 8px; --bl: 8px; --bg: var(--fill); display: flex; flex-direction: column; gap: .5rem; padding: 1rem; min-width: 0; }
.app_field label { font-family: var(--bold); font-size: .75rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.app_input { --tl: 8px; --tr: 8px; --br: 8px; --bl: 8px; --bg: var(--fill); display: block; width: 100%; min-width: 0; padding: 1.375rem 1rem; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none;
  font-family: var(--light); font-size: 1rem; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.app_input::placeholder { color: var(--ink-30); opacity: 1; }
.app_input:focus { --ln: rgba(213, 224, 255, .5); }
.app_field .app_input { border: 0; background: none; clip-path: none; padding: 0; }
.app_field:focus-within { --ln: rgba(213, 224, 255, .5); }
select.app_input { cursor: pointer; padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath fill='%23d5e0ff' d='M4 6 .536 2.25h6.928zM4 11 .536 7.25h6.928z'/%3E%3C/svg%3E") !important;
  background-size: .5rem .75rem !important; background-position: right center !important; background-repeat: no-repeat !important; }
select.app_input option { color: #020a19; background: #d5e0ff; }
.app_hint { font-family: var(--light); font-size: 1rem; line-height: 1.4; letter-spacing: -.02em; color: rgba(213, 224, 255, .6); }
.app_hint:empty { display: none; }
.app_hint.is-ok { color: var(--ink); }
.app_hint.is-error { font-family: var(--regular); letter-spacing: 0; background: var(--ink); color: var(--navy); padding: .5rem .75rem; width: fit-content; max-width: 100%; }
.app_actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.app_actions:not(:has(> :not([hidden]))) { display: none; }
.app_chat_form { display: flex; align-items: stretch; gap: .5rem; }
.app_chat_form .app_input { flex: 1; }
.app_link { text-decoration: underline; text-underline-offset: .2em; color: var(--ink); }
.app_token { --tl: 8px; --tr: 8px; --br: 8px; --bl: 8px; --bg: var(--fill); font-family: var(--mono); font-size: .75rem; line-height: 1.4; letter-spacing: .04em; overflow-wrap: anywhere; word-break: break-all; padding: 1rem; user-select: all; }

/* the dot: a round, solid circle in the ink colour. Working = three small squares that pulse. */
.app_dot { display: inline-block; flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ink); }
.app_dot_who { display: inline-flex; align-items: center; gap: .5rem; }
.app_dot_who .app_dot { width: .5rem; height: .5rem; }
.app_chat { display: flex; flex-direction: column; max-height: 32rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(213, 224, 255, .2) transparent; }
.app_chat:empty { display: none; }
.app_msg { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: baseline; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--hair); font-family: var(--regular); font-size: 1.125rem; line-height: 1.2; }
.app_msg .app_dot { align-self: start; margin-top: .3rem; }
.app_msg.is-owner .app_msg_text { opacity: .6; }
.app_msg.is-pending { opacity: .6; }
.app_msg_you, .app_msg_time { opacity: .5; white-space: nowrap; }
.app_msg_text { overflow-wrap: anywhere; min-width: 0; }
.app_msg_actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .75rem; }
.app_msg_done { display: block; padding-top: .5rem; font-family: var(--mono); font-size: .6875rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.app_typing { align-items: center; }
.app_typing_dots { display: inline-flex; gap: .25rem; }
.app_typing_dots i { width: .25rem; height: .25rem; background: var(--ink); animation: app-pulse 1.2s ease-in-out infinite; }
.app_typing_dots i:nth-child(2) { animation-delay: .2s; }
.app_typing_dots i:nth-child(3) { animation-delay: .4s; }
@keyframes app-pulse { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app_typing_dots i { animation: none; opacity: .7; } }

/* ---- footer -------------------------------------------------------------------------------- */
.app_footer { border-top: 1px solid var(--hair); }
.footer2_top { display: flex; justify-content: space-between; gap: 4rem; padding: 8rem 2rem 6rem; }
.footer2_top h2 { font-family: var(--bold); font-size: 3.5rem; line-height: .9; text-transform: uppercase; }
.footer2_links_wrap { display: flex; gap: 4rem; }
.footer2_col { display: flex; flex-direction: column; gap: .75rem; max-width: 20rem; }
.footer2_col_name { opacity: .5; padding-bottom: .5rem; }
.footer2_link { font-family: var(--bold); font-size: 1rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
a.footer2_link { transition: opacity .33s linear; }
a.footer2_link:hover { opacity: .6; }
#token-ca { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: none; }
.footer2_bottom { border-top: 1px solid var(--hair); padding: 1rem 2rem; }
.footer2_bottom p { font-family: var(--mono); font-size: .6875rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }

/* ---- narrower ------------------------------------------------------------------------------ */
@media (max-width: 1023px) {
  .sec_side { padding-left: 2rem; }
  .sec_main { padding-left: 2rem; padding-right: 2rem; }
  .made_h2 { font-size: 3.5rem; }
  .app_hero h1 { font-size: 6rem; }
}
@media (max-width: 767px) {
  .app_nav_menu { display: none; }
  .hud_top { padding: 0 .625rem 0 1.75rem; }
  .button, .hud_btn { font-size: .6875rem; }
  .hud_btn_dark { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hud_btn_dark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .button.hud_btn_light { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hud_cell { padding: 0 1.125rem; }
  .app_hero { padding: 6rem 1.75rem 2rem; }
  .app_hero h1 { font-size: 3rem; }
  .sec_bar { padding: 1rem 1.75rem; }
  .sec_body { flex-direction: column; }
  .sec_body::before { display: none; }
  .sec_side { width: 100%; border-right: 0; padding: 2.5rem 1.75rem 0; }
  .sec_side_in { position: static; gap: 1rem; }
  .made_h2 { font-size: 3rem; }
  .sec_main { width: 100%; padding: 2rem 1.125rem 3.5rem; }
  .card { padding: 1rem 1rem 1.25rem; }
  .app_fields { grid-template-columns: 1fr; }
  .app_input { font-size: max(1rem, 16px); }
  .app_row { grid-template-columns: 1.75rem 1fr 1fr; }
  .app_row_next { grid-column: 2; }
  .app_row_status { grid-column: 3; }
  .app_row_slim { grid-template-columns: 1.75rem 1fr; }
  .app_msg { grid-template-columns: 2rem 1fr; }
  .app_msg_time { display: none; }
  .app_chat_form { flex-direction: column; }
  .app_actions .button { width: 100%; }
  .app_chat_form .button, .app_chat_form .app_pill { width: 100%; }
  .footer2_top { flex-direction: column; gap: 3rem; padding: 4rem 1.75rem 3rem; }
  .footer2_top h2 { font-size: 2.5rem; }
  .footer2_links_wrap { flex-wrap: wrap; gap: 2.5rem; }
  .footer2_bottom { padding: 1rem 1.75rem; }
}
@media (max-width: 639px) {
  .app_logo_name { display: none; }
  .app_logo_mark { width: 2rem; height: 2rem; }
}
