@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* Fonts
     Note: font files are expected under public/assets/webfonts/{space-grotesk,departure-mono}/
     paths here are relative to the compiled CSS output. Adjust if your build outputs CSS
     to a different folder (e.g. ../public/assets/webfonts). Use font-display: swap for
     better perceived performance.
*/
@font-face {
  font-family: "Space Grotesk";
  src: url("../webfonts/space-grotesk/SpaceGrotesk-Regular.woff2") format("woff2"), url("../webfonts/space-grotesk/SpaceGrotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/webfonts/space-grotesk/SpaceGrotesk-Medium.woff2") format("woff2"), url("../webfonts/space-grotesk/SpaceGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Departure Mono";
  src: url("../webfonts/departure-mono/DepartureMono-Regular.woff2") format("woff2"), url("../webfonts/departure-mono/DepartureMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --step--2: clamp(0.6076rem, 0.5473rem + 0.3019vw, 0.7813rem);
  --step--1: clamp(0.7292rem, 0.6567rem + 0.3623vw, 0.9375rem);
  --step-0: clamp(0.875rem, 0.788rem + 0.4348vw, 1.125rem);
  --step-1: clamp(1.05rem, 0.9457rem + 0.5217vw, 1.35rem);
  --step-2: clamp(1.26rem, 1.1348rem + 0.6261vw, 1.62rem);
  --step-3: clamp(1.512rem, 1.3617rem + 0.7513vw, 1.944rem);
  --step-4: clamp(1.8144rem, 1.6341rem + 0.9016vw, 2.3328rem);
  --step-5: clamp(2.1773rem, 1.9609rem + 1.0819vw, 2.7994rem);
  --step-6: clamp(2.6127rem, 2.3531rem + 1.2983vw, 3.3592rem);
  --step-7: clamp(3.1353rem, 2.8237rem + 1.5579vw, 4.0311rem);
  --step-8: clamp(3.7623rem, 3.3884rem + 1.8695vw, 4.8373rem);
  --step-9: clamp(4.5148rem, 4.0661rem + 2.2434vw, 5.8048rem);
  --step-10: clamp(5.4178rem, 4.8794rem + 2.6921vw, 6.9657rem);
}

html {
  /* Utopia Fluid Type: define steps as CSS custom properties */
  /* Use step 0 as the root font-size (fallback to existing $font-size-base)
     This keeps rem-based sizes consistent while enabling fluid scaling. */
  font-size: var(--step-0, var(--step-0));
  /* Flexbox for sticky footer: html stretches to viewport height */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.5;
  color: #050508;
  background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Body-scroll layout: page scrolls naturally, sticky elements stay fixed */
  min-height: 100vh;
  /* Flexbox for sticky footer: body is a flex container */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  /* Ensure body takes full height */
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #050508;
}

h1 {
  font-size: var(--step-6, 1.5rem);
}

h2 {
  font-size: var(--step-4, 1.25rem);
}

h3 {
  font-size: var(--step-2, 1.125rem);
}

p {
  margin-bottom: 1rem;
  font-size: var(--step-0);
}
p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

a {
  color: #050508;
  text-decoration: none;
  -webkit-transition: color 200ms ease;
  transition: color 200ms ease;
}
a:hover {
  color: #71717C;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  /* light track for the new bright theme */
  background: #F4F4F6;
}

::-webkit-scrollbar-thumb {
  /* subtle dark thumb with a light border to match the theme */
  background: rgba(5, 5, 8, 0.85);
  border: 2px solid #F4F4F6;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #050508;
}

/* Firefox: use thin scrollbars and set thumb/track colors */
html {
  scrollbar-width: thin; /* auto | thin | none */
  scrollbar-color: rgba(5, 5, 8, 0.85) #F4F4F6;
}

/* ============================================
   BRUTALIST SHADOW EFFECT - For any elements
   ============================================ */
.brutalist-shadow {
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
  -webkit-transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.brutalist-shadow:hover {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
}

/* ============================================
   FORM ELEMENTS WITH BRUTALIST EFFECT
   ============================================ */
.form-brutalist input:not([type=checkbox]):not([type=radio]),
.form-brutalist textarea {
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
  -webkit-transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.form-brutalist input:not([type=checkbox]):not([type=radio]):focus,
.form-brutalist textarea:focus {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
  outline: none;
}
.form-brutalist button:not(.search-form button) {
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
  -webkit-transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.form-brutalist button:not(.search-form button):hover {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
}

/* ============================================
   BASE FORM STYLES
   ============================================ */
input[type=text],
input[type=email],
input[type=password],
input[type=search],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--step-0, var(--step-0));
  border: 3px solid #050508;
  border-radius: 0;
  background: white;
  font-family: inherit;
}

select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23000' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
  cursor: pointer;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
input[type=submit] {
  padding: 0.75rem 2rem;
  font-size: var(--step-0, var(--step-0));
  font-weight: 600;
  border: 3px solid #050508;
  background: #050508;
  color: white;
  cursor: pointer;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  border-radius: 0;
  text-transform: uppercase;
}

/* ============================================
   CHECKBOX & RADIO BUTTONS
   ============================================ */
.input-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

input[type=checkbox],
input[type=radio] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border: 3px solid #050508;
  cursor: pointer;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background: white;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
input[type=checkbox]::after,
input[type=radio]::after {
  content: "";
  width: 0.6em;
  height: 0.6em;
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
  background: #050508;
  display: block;
}
input[type=checkbox]:checked::after,
input[type=radio]:checked::after {
  -webkit-transform: scale(1);
          transform: scale(1);
}
input[type=checkbox]:focus, input[type=checkbox]:hover,
input[type=radio]:focus,
input[type=radio]:hover {
  -webkit-transform: none;
          transform: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  outline: none;
}

input[type=checkbox] {
  border-radius: 0;
}
input[type=checkbox]::after {
  border-radius: 0;
}

input[type=radio] {
  border-radius: 50%;
}
input[type=radio]::after {
  border-radius: 50%;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.5rem;
  position: relative;
}
.search-form input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.search-form button {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  -webkit-transition: none !important;
  transition: none !important;
  -webkit-transform: none !important;
          transform: none !important;
}

/* ============================================
   PREDEFINED BUTTON STYLES
   ============================================ */
.btn-style_primary {
  background: #FAFAFA;
  color: #050508;
  border-color: #050508;
  padding: 0.8em 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}
.btn-style_primary:hover {
  background: transparent;
  color: #050508;
  -webkit-box-shadow: 0.5em 0.5em 0 0 #050508;
          box-shadow: 0.5em 0.5em 0 0 #050508;
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
}

.btn-style_secondary {
  background: #050508;
  color: #FAFAFA;
  border-color: #050508;
  padding: 0.8em 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}
.btn-style_secondary:hover {
  background: transparent;
  color: #050508;
  -webkit-box-shadow: 0.5em 0.5em 0 0 #050508;
          box-shadow: 0.5em 0.5em 0 0 #050508;
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
}

/* ============================================
   FORM GROUPS AND LABELS
   ============================================ */
.form-group {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: var(--step-0, var(--step-0));
  color: #050508;
}

/* ============================================
   UI BUTTON PREVIEWS
   ============================================ */
.ui-btn {
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
  -webkit-transition: background 0.2s ease, color 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  display: inline-block;
}
.ui-btn:hover {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
}

.chat-container {
  /* Mobile-first: full width on small devices, constrained on larger screens */
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 160px; /* reserve space for sticky input + footer */
}
@media (min-width: 900px) {
  .chat-container {
    max-width: 1140px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.chat-messages {
  /* Natural flow: grows with content, no overflow */
  padding: 1.5rem;
  min-height: calc(100vh - 200px); /* ensure some minimum height */
}
@media (min-width: 768px) {
  .chat-messages {
    padding: 2rem;
  }
}

.send-button {
  position: relative;
}

.send-progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}

.suggestions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
}
.suggestions .suggestion-box {
  padding: 1rem 1.5rem;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  background: #F4F4F6;
  cursor: pointer;
  -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  transition: background 0.2s ease, border-color 0.2s ease;
  color: #050508;
  font-size: var(--step-0);
}
.suggestions .suggestion-box:hover {
  background: rgba(5, 5, 8, 0.1);
  border-color: hsl(240, 23.0769230769%, -7.4509803922%);
}
.suggestions .suggestion-box:focus {
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(5, 5, 8, 0.5);
          box-shadow: 0 0 0 3px rgba(5, 5, 8, 0.5);
}

.message {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
  /* author line above the message content */
}
.message .message-author {
  width: 100%;
  font-size: var(--step-0, 0.875rem);
  color: #71717C;
  margin-bottom: 0.25rem;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}
.message.user {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
  -webkit-animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
          animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.message.user .message-avatar {
  display: none;
}
.message.user .message-bubble {
  /* User message bubble: retro pixel style */
  background: #050508;
  color: #fff;
  border: 2px solid #050508;
  border-radius: 0;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem;
  /* offset shadow block behind the user bubble (retro brutalist) */
  /*&::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: $radius-lg;
      background: $color-primary;
      transform: translate(6px, 6px);
      z-index: -1;
      transition: transform $transition-base, background $transition-base, box-shadow $transition-base;
  }*/
}
.message.user .message-bubble::before {
  /* pixel arrow pointer using SVG mask */
  content: "";
  position: absolute;
  bottom: -18px;
  right: 16px;
  width: 18px;
  height: 18px;
  background: #050508;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon fill='black' points='8 0 6 0 4 0 2 0 0 0 0 2 2 2 2 4 4 4 4 6 6 6 6 8 8 8 8 10 10 10 10 8 10 6 10 4 10 2 10 0 8 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon fill='black' points='8 0 6 0 4 0 2 0 0 0 0 2 2 2 2 4 4 4 4 6 6 6 6 8 8 8 8 10 10 10 10 8 10 6 10 4 10 2 10 0 8 0'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  z-index: 2;
}
.message.user .message-content {
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}
.message.assistant {
  /* stack author above content and render assistant text directly on surface */
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.message.assistant .message-avatar {
  display: none;
}
.message.assistant .message-content {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  width: 100%;
}
.message.assistant .message-bubble {
  /* render inline/plain text without bubble visuals */
  background: transparent;
  color: #050508;
  border: none;
  border-radius: 0;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  position: relative;
  z-index: 1;
  padding: 0; /* no extra bubble padding */
}
.message.assistant .message-bubble::after {
  display: none;
}
.message.assistant .message-bubble::before {
  display: none;
}
.message.typing .message-bubble {
  padding: 1rem;
}

.message-avatar {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: #FAFAFA;
  border: 2px solid #050508;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: var(--step-2, 1.125rem);
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}

.message-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  gap: 0.25rem;
}
@media (min-width: 900px) {
  .message-content {
    max-width: 70%;
  }
}
@media (min-width: 768px) {
  .message-content {
    max-width: 80%;
  }
}

.message-bubble {
  padding: 1rem 1.5rem;
  border-radius: 0;
  word-wrap: break-word;
  /* Images rendered from markdown inside chat messages */
}
.message-bubble hr {
  height: 2px;
  min-height: 2px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
  background: #71717C;
  width: 100%;
}
.message-bubble h1, .message-bubble h2, .message-bubble h3, .message-bubble h4, .message-bubble h5, .message-bubble h6 {
  margin-top: var(--step-0, 1rem);
  margin-bottom: 0.5rem;
  color: #050508;
  line-height: 1.2;
}
.message-bubble h1 {
  font-size: var(--step-1, 1.25rem);
}
.message-bubble h2 {
  font-size: var(--step-1, 1.125rem);
}
.message-bubble h3 {
  font-size: var(--step-2, 1.125rem);
}
.message-bubble h4 {
  font-size: var(--step-3, var(--step-0));
}
.message-bubble h5 {
  font-size: var(--step-2, var(--step-0));
}
.message-bubble h6 {
  font-size: var(--step-0, 0.875rem);
}
.message-bubble p {
  margin-bottom: 0.5rem;
}
.message-bubble p:last-child {
  margin-bottom: 0;
}
.message-bubble .md-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 0;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  -webkit-transition: -webkit-box-shadow 0.2s ease;
  transition: -webkit-box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.message-bubble .md-image:hover {
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Center note used for transient info like session restore */
.message.center-note {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.message.center-note .message-content {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.message.center-note .message-content .message-bubble {
  background: transparent;
  color: #71717C;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: var(--step--1, 0.875rem);
  text-align: center;
  opacity: 0.9;
}

.message-time {
  display: none;
}

.typing-indicator {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.25rem;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #71717C;
  border-radius: 0;
  -webkit-animation: typing 1.4s infinite;
          animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

@-webkit-keyframes typing {
  0%, 60%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes typing {
  0%, 60%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
    opacity: 1;
  }
}
@-webkit-keyframes slideIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes popIn {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.8) translateY(10px);
            transform: scale(0.8) translateY(10px);
  }
  60% {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.8) translateY(10px);
            transform: scale(0.8) translateY(10px);
  }
  60% {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
.message.assistant .message-bubble.typing::after {
  content: "█";
  -webkit-animation: blink 1s infinite;
          animation: blink 1s infinite;
  color: #0f172a;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}

.no-js .message {
  opacity: 1 !important;
  -webkit-animation: none !important;
          animation: none !important;
}

.no-js .question-bubble {
  opacity: 1 !important;
  -webkit-animation: none !important;
          animation: none !important;
}

.chat-input-wrapper {
  /* Mobile-first: full width on small screens, centered constrained on larger screens */
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #FAFAFA;
  z-index: 100;
  padding: 0 0.5rem;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media (min-width: 900px) {
  .chat-input-wrapper {
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 100%;
    max-width: 1140px; /* match chat-container width */
  }
}

.chat-input-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .chat-input-form {
    padding: 2rem;
  }
}

.message-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0.75rem 1rem; /* match form field padding */
  border: 3px solid #050508;
  border-radius: 0;
  color: #050508;
  resize: none; /* JS will autosize; disable manual resize to avoid conflicts */
  min-height: 3em;
  max-height: 120px; /* limit max height */
  overflow: auto;
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
  -webkit-transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.message-input:focus {
  outline: none;
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
}
.message-input::-webkit-input-placeholder {
  color: #71717C;
}
.message-input::-moz-placeholder {
  color: #71717C;
}
.message-input:-ms-input-placeholder {
  color: #71717C;
}
.message-input::-ms-input-placeholder {
  color: #71717C;
}
.message-input::placeholder {
  color: #71717C;
}

.send-button {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-radius: 0;
  background: #050508;
  color: white;
  border: 3px solid #050508;
  /* Button sizing: match min-height and allow flexible width */
  width: auto;
  min-height: 3em;
  height: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
  position: relative;
  z-index: 1;
  /* Some provided SVGs use inline strokes/paths; normalize their color */
  /* Pixel-style cooldown bar at bottom */
}
.send-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
  -webkit-transition: background 200ms ease, -webkit-transform 200ms ease;
  transition: background 200ms ease, -webkit-transform 200ms ease;
  transition: transform 200ms ease, background 200ms ease;
  transition: transform 200ms ease, background 200ms ease, -webkit-transform 200ms ease;
  z-index: -1;
}
.send-button:hover:not(:disabled) {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
}
.send-button:hover:not(:disabled)::after {
  background: #050508;
  -webkit-transform: translate(0.5rem, 0.5rem);
          transform: translate(0.5rem, 0.5rem);
}
.send-button:active:not(:disabled) {
  -webkit-transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
          transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
}
.send-button:active:not(:disabled)::after {
  -webkit-transform: translate(calc(0.5rem / 2), calc(0.5rem / 2));
          transform: translate(calc(0.5rem / 2), calc(0.5rem / 2));
}
.send-button:disabled {
  background: #ccc;
  border-color: #ccc;
  color: #666;
}
.send-button svg {
  display: block;
  width: 1.2em;
  height: 1.2em;
  /* ensure the icon inherits currentColor where appropriate */
  fill: currentColor;
}
.send-button svg path {
  stroke: currentColor;
  fill: currentColor;
}
.send-button .cooldown-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #050508;
  /* match JS cooldown duration: 4s linear shrink */
  -webkit-transition: width 4s linear;
  transition: width 4s linear;
  pointer-events: none;
}

.input-hint {
  padding: 0.5rem 1.5rem;
  text-align: right;
  font-size: var(--step-0, 0.875rem);
  color: #64748b;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}
@media (min-width: 768px) {
  .input-hint {
    padding: 0.5rem 2rem;
  }
}

#charCount {
  font-variant-numeric: tabular-nums;
}

.chat-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 1.5rem;
  border-radius: 0;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  gap: 1rem;
  /* Sticky positioning: stays at top when scrolling */
  position: sticky;
  top: 0;
  background: #FAFAFA;
  z-index: 100;
}
@media (min-width: 768px) {
  .chat-header {
    padding: 2rem;
  }
}

/* Site header (global) */
.site-header {
  background: #FAFAFA;
  position: relative;
  z-index: 1020;
  -webkit-box-shadow: none;
          box-shadow: none;
  /* Hamburger icon animation on open state */
  /* Desktop layout */
}
.site-header .site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 1.5rem;
}
.site-header .brand-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.site-header .brand-link .brand-name {
  color: #050508;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: var(--step-3, 1.25rem);
  letter-spacing: 2px;
  white-space: nowrap;
}
.site-header .brand-link img {
  height: 36px;
  width: auto;
  display: block;
}
.site-header .main-nav {
  display: none; /* hidden on mobile by default */
}
.site-header .nav-toggle {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
  color: #050508;
  padding: 0.25rem 0.5rem;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  /* ensure toggle sits above offcanvas */
  position: relative;
  z-index: 1031;
}
.site-header .nav-toggle .hamburger-icon {
  width: 24px;
  height: 24px;
  -webkit-transition: -webkit-transform 200ms ease;
  transition: -webkit-transform 200ms ease;
  transition: transform 200ms ease;
  transition: transform 200ms ease, -webkit-transform 200ms ease;
}
.site-header .nav-toggle .hamburger-line {
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-transition: opacity 200ms ease, -webkit-transform 200ms ease;
  transition: opacity 200ms ease, -webkit-transform 200ms ease;
  transition: transform 200ms ease, opacity 200ms ease;
  transition: transform 200ms ease, opacity 200ms ease, -webkit-transform 200ms ease;
}
.site-header .nav-open .nav-toggle .hamburger-icon {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
.site-header .nav-open .hamburger-line-1 {
  -webkit-transform: rotate(45deg) translateY(10px);
          transform: rotate(45deg) translateY(10px);
}
.site-header .nav-open .hamburger-line-2 {
  opacity: 0;
}
.site-header .nav-open .hamburger-line-3 {
  -webkit-transform: rotate(-45deg) translateY(-10px);
          transform: rotate(-45deg) translateY(-10px);
}
@media (min-width: 768px) {
  .site-header .nav-toggle {
    display: none;
  }
  .site-header .main-nav {
    display: block;
  }
  .site-header .main-nav__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .site-header .main-nav__item {
    color: #050508;
    text-decoration: none;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0.25rem 0.5rem;
    -webkit-transition: color 200ms ease;
    transition: color 200ms ease;
  }
  .site-header .main-nav__item:hover {
    color: #D32F53;
  }
}

/* Off-canvas sidebar for mobile - global scope (created by nav-toggle.js directly in body) */
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 150ms ease, visibility 0s linear 150ms ease;
  transition: opacity 150ms ease, visibility 0s linear 150ms ease;
  z-index: 1029;
}

.offcanvas {
  position: fixed;
  top: 0;
  right: -320px; /* hidden by default */
  width: 280px;
  height: 100vh;
  background: #FAFAFA;
  -webkit-box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
          box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  -webkit-transition: right 200ms ease;
  transition: right 200ms ease;
  /* place offcanvas above header so it slides over */
  z-index: 1030;
  /* more generous padding for nav items */
  padding: 2rem 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1rem;
}

/* open states - toggled by a utility class on body `.nav-open` */
.nav-open .offcanvas {
  right: 0;
}

.nav-open .offcanvas-backdrop {
  opacity: 1;
  visibility: visible;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}

.offcanvas .main-nav__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0 0; /* small inner offset from top */
}

.offcanvas .main-nav__item {
  font-size: 1.125rem;
  color: #050508;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.header-content h1 {
  font-size: var(--step-4, 1.25rem);
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .header-content h1 {
    font-size: var(--step-6, 1.5rem);
  }
}
.header-content .subtitle {
  font-size: var(--step-0, 0.875rem);
  color: #71717C;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  margin: 0;
}

.header-status {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.status-indicator {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  background: #050508;
  color: #fff;
  border: 2px solid #050508;
  border-radius: 0;
  font-size: var(--step-0, 0.875rem);
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 0;
  -webkit-animation: pulse 2s infinite;
          animation: pulse 2s infinite;
}

@-webkit-keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.question-bubble {
  position: absolute;
  top: 80px;
  right: 32px;
  background: #050508;
  color: #fff;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: var(--step-0, 0.875rem);
  border: 2px solid #050508;
  border-radius: 0;
  padding: 0.25rem 1rem;
  z-index: 10;
  -webkit-animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
          animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
  opacity: 0;
}
.question-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: #050508;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon fill='black' points='0 0 2 0 2 2 4 2 4 4 6 4 6 6 8 6 8 8 10 8 10 10 8 10 8 8 6 8 6 6 4 6 4 4 2 4 2 2 0 2 0 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon fill='black' points='0 0 2 0 2 2 4 2 4 4 6 4 6 6 8 6 8 8 10 8 10 10 8 10 8 8 6 8 6 6 4 6 4 4 2 4 2 2 0 2 0 0'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
}

.info-banner,
.protected-notice,
.rate-limit-notice {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(113, 113, 124, 0.1);
  border-bottom: 1px solid rgba(113, 113, 124, 0.2);
  -webkit-animation: slideDown 0.3s ease;
          animation: slideDown 0.3s ease;
}
@media (min-width: 768px) {
  .info-banner,
  .protected-notice,
  .rate-limit-notice {
    padding: 1rem 2rem;
  }
}

.info-banner {
  background: rgba(113, 113, 124, 0.1);
}

.protected-notice {
  background: rgba(67, 160, 71, 0.1);
  border-bottom-color: rgba(67, 160, 71, 0.2);
}
.protected-notice .notice-icon {
  color: #43A047;
}

.rate-limit-notice {
  background: rgba(211, 47, 83, 0.1);
  border-bottom-color: rgba(211, 47, 83, 0.2);
  padding: 0.5rem 1.5rem;
}
@media (min-width: 768px) {
  .rate-limit-notice {
    padding: 0.5rem 2rem;
  }
}
.rate-limit-notice .notice-icon {
  color: #D32F53;
}

.info-content,
.notice-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}
.info-content p,
.notice-content p {
  margin: 0;
  font-size: var(--step-0, 0.875rem);
  color: #71717C;
}

info-icon,
notice-icon {
  font-size: var(--step-2, 1.125rem);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.info-close {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 0;
  color: #71717C;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: var(--step-4, 1.25rem);
  line-height: 1;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
}
.info-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #050508;
}

@-webkit-keyframes slideDown {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
.landing-page {
  background: #FAFAFA;
  min-height: 100vh;
  position: relative;
  /* Flexbox for sticky footer */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.landing-container {
  position: relative;
  width: 100%;
  padding: 0 1rem;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1; /* Take remaining space, push footer to bottom */
}
@media (min-width: 1140px) {
  .landing-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
  }
}

.landing-hero {
  /* Removed framed panel - content sits directly on the page */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2.5rem 1.25rem;
  -webkit-box-shadow: none;
          box-shadow: none;
}
@media (min-width: 769px) {
  .landing-hero {
    padding: 2.5rem 1.25rem;
  }
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  -webkit-animation: bounce 2s ease-in-out infinite;
          animation: bounce 2s ease-in-out infinite;
}
@media (min-width: 769px) {
  .hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
  }
}

@-webkit-keyframes bounce {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
.hero-title {
  font-size: var(--step-7);
  font-weight: 400;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #050508;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (min-width: 769px) {
  .hero-title {
    font-size: var(--step-10);
  }
}

.hero-subtitle {
  font-size: var(--step-1);
  font-family: "Space Grotesk", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #050508;
  margin-bottom: 3rem;
  line-height: 1.6;
}
@media (min-width: 769px) {
  .hero-subtitle {
    font-size: var(--step-1);
    margin-bottom: 3rem;
  }
}

.hero-features {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 3rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
@media (min-width: 769px) {
  .hero-features {
    gap: 1rem;
    margin-bottom: 3rem;
  }
}

.feature {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #FAFAFA;
  border: 2px solid #050508;
  border-radius: 0;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
}
.feature:hover {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text {
  font-size: 0.85rem;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #050508;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-cta {
  margin-bottom: 2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.75rem;
}

.cta-button, .btn-primary {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #fff;
  background: #050508;
  border: 3px solid #050508;
  border-radius: 0;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
  text-transform: uppercase;
  position: relative;
}
.cta-button:hover:not(:disabled), .btn-primary:hover:not(:disabled) {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
  background: transparent;
  color: #050508;
}
.cta-button:active:not(:disabled), .btn-primary:active:not(:disabled) {
  -webkit-transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
          transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
  -webkit-box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #050508;
          box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #050508;
}
.cta-button:disabled, .btn-primary:disabled {
  background: #71717C;
  border-color: #71717C;
  cursor: not-allowed;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: #FAFAFA;
  opacity: 0.6;
}
.cta-button.available, .available.btn-primary {
  background: #43A047;
  border-color: #43A047;
}
.cta-button.available:hover, .available.btn-primary:hover {
  -webkit-box-shadow: 0.5rem 0.5rem 0px #43A047;
          box-shadow: 0.5rem 0.5rem 0px #43A047;
  color: #43A047;
}
.cta-button.available:active, .available.btn-primary:active {
  -webkit-box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #43A047;
          box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #43A047;
}
.cta-button.unavailable, .unavailable.btn-primary {
  background: #D32F53;
  border-color: #D32F53;
}
.cta-button.unavailable:hover, .unavailable.btn-primary:hover {
  -webkit-box-shadow: 0.5rem 0.5rem 0px #D32F53;
          box-shadow: 0.5rem 0.5rem 0px #D32F53;
  color: #D32F53;
}
@media (min-width: 769px) {
  .cta-button, .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

.btn-primary.available {
  background: #050508;
  border-color: #050508;
}
.btn-primary.available:hover {
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
  color: #050508;
}
.btn-primary.available:active {
  -webkit-box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #050508;
          box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #050508;
}

.btn-icon {
  font-size: 1.3rem;
}

.availability-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #71717C;
  text-transform: uppercase;
  text-align: center;
}
.availability-status.available {
  color: #43A047;
}
.availability-status.unavailable {
  color: #D32F53;
}
.availability-status.error {
  color: #71717C;
}

.hero-info {
  padding-top: 2rem;
  border-top: 2px solid #050508;
  margin-top: 2rem;
}

.info-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #71717C;
  line-height: 1.6;
}

.info-icon {
  font-size: 1.1rem;
}

.landing-footer {
  margin-top: 2rem;
  text-align: center;
}

.footer-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}

.footer-link {
  color: #71717C;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
}
.footer-link:hover {
  color: #D32F53;
  border-bottom-color: #D32F53;
}

.footer-separator {
  color: #71717C;
}

.loading-screen-overlay,
.waiting-queue-overlay,
.ready-screen-overlay,
.error-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FAFAFA 0%, #F4F4F6 100%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 1040;
  -webkit-animation: fadeIn 0.4s ease;
          animation: fadeIn 0.4s ease;
  backdrop-filter: blur(2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.loading-screen-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: 1rem;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  border: 3px solid #050508;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  -webkit-animation: spin 1.2s linear infinite;
          animation: spin 1.2s linear infinite;
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.loading-title {
  font-size: var(--step-4);
  font-weight: 700;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #050508;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.loading-subtitle {
  font-size: var(--step-0);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #71717C;
  margin: 0;
  line-height: 1.6;
}

.waiting-queue-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
  max-width: 450px;
  background: #fff;
  border: 3px solid #050508;
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
  -webkit-animation: slideUp 0.4s ease;
          animation: slideUp 0.4s ease;
}

@-webkit-keyframes slideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
.queue-icon {
  font-size: 3rem;
  -webkit-animation: pulse 2s ease-in-out infinite;
          animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    opacity: 0.6;
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
}
.queue-title {
  font-size: var(--step-4);
  font-weight: 700;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #050508;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.queue-subtitle {
  font-size: var(--step-0);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #71717C;
  margin: 0;
  line-height: 1.6;
}

.queue-info {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #F4F4F6;
  border: 2px solid #050508;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: var(--step-0);
}

.queue-status,
.queue-timer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}

.queue-label {
  font-weight: 400;
  color: #71717C;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.queue-position,
.queue-countdown {
  font-weight: 700;
  color: #050508;
  font-size: var(--step-2);
}

.queue-progress {
  width: 100%;
  height: 8px;
  background: #F4F4F6;
  border: 2px solid #050508;
  overflow: hidden;
}

.progress-bar {
  width: 100%;
  height: 100%;
  background: #fff;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #050508;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
  width: 0%;
}

.queue-cancel-btn {
  padding: 0.75rem 1.5rem;
  font-size: var(--step-0);
  font-weight: 700;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #050508;
  background: transparent;
  border: 2px solid #050508;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  text-transform: uppercase;
  -webkit-box-shadow: 0px 0px 0px #050508;
          box-shadow: 0px 0px 0px #050508;
}
.queue-cancel-btn:hover {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #050508;
          box-shadow: 0.5rem 0.5rem 0px #050508;
}
.queue-cancel-btn:active {
  -webkit-transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
          transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
  -webkit-box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #050508;
          box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #050508;
}

.ready-screen-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
  max-width: 400px;
}

.ready-icon {
  font-size: 4rem;
  -webkit-animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
          animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@-webkit-keyframes scaleIn {
  from {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
.ready-title {
  font-size: var(--step-4);
  font-weight: 700;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #050508;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.ready-subtitle {
  font-size: var(--step-0);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #71717C;
  margin: 0;
  line-height: 1.6;
}

.ready-spinner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.5rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 1rem;
}

.spinner-dot {
  width: 10px;
  height: 10px;
  background: #050508;
  border-radius: 50%;
  -webkit-animation: bounce 1.4s infinite ease-in-out;
          animation: bounce 1.4s infinite ease-in-out;
}
.spinner-dot.spinner-dot-1 {
  -webkit-animation-delay: -0.32s;
          animation-delay: -0.32s;
}
.spinner-dot.spinner-dot-2 {
  -webkit-animation-delay: -0.16s;
          animation-delay: -0.16s;
}
.spinner-dot.spinner-dot-3 {
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
}

@keyframes bounce {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 0.5;
  }
  40% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
.error-screen-overlay {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.error-screen-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
  max-width: 450px;
  background: #fff;
  border: 3px solid #D32F53;
  -webkit-box-shadow: 0.5rem 0.5rem 0px #D32F53;
          box-shadow: 0.5rem 0.5rem 0px #D32F53;
  -webkit-animation: slideUp 0.4s ease;
          animation: slideUp 0.4s ease;
}

.error-icon {
  font-size: 3.5rem;
  -webkit-animation: shake 0.6s ease;
          animation: shake 0.6s ease;
}

@-webkit-keyframes shake {
  0%, 100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    -webkit-transform: translateX(-3px);
            transform: translateX(-3px);
  }
  20%, 40%, 60%, 80% {
    -webkit-transform: translateX(3px);
            transform: translateX(3px);
  }
}

@keyframes shake {
  0%, 100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    -webkit-transform: translateX(-3px);
            transform: translateX(-3px);
  }
  20%, 40%, 60%, 80% {
    -webkit-transform: translateX(3px);
            transform: translateX(3px);
  }
}
.error-title {
  font-size: var(--step-4);
  font-weight: 700;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #D32F53;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.error-subtitle {
  font-size: var(--step-0);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #71717C;
  margin: 0;
  line-height: 1.6;
}

.error-actions {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.error-retry-btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: var(--step-0);
  font-weight: 700;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  color: #fff;
  background: #D32F53;
  border: 2px solid #D32F53;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  text-transform: uppercase;
  -webkit-box-shadow: 0px 0px 0px #D32F53;
          box-shadow: 0px 0px 0px #D32F53;
}
.error-retry-btn:hover {
  -webkit-transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
          transform: translate(calc(-1 * 0.5rem), calc(-1 * 0.5rem));
  -webkit-box-shadow: 0.5rem 0.5rem 0px #D32F53;
          box-shadow: 0.5rem 0.5rem 0px #D32F53;
  background: transparent;
  color: #D32F53;
}
.error-retry-btn:active {
  -webkit-transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
          transform: translate(calc(-1 * 0.5rem / 2), calc(-1 * 0.5rem / 2));
  -webkit-box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #D32F53;
          box-shadow: calc(0.5rem / 2) calc(0.5rem / 2) 0px #D32F53;
}

@media (max-width: 640px) {
  .loading-screen-content,
  .waiting-queue-content,
  .ready-screen-content,
  .error-screen-content {
    padding: 1.5rem;
  }
  .loading-spinner {
    width: 60px;
    height: 60px;
  }
  .loading-title,
  .queue-title,
  .ready-title,
  .error-title {
    font-size: var(--step-3);
  }
  .queue-icon,
  .ready-icon,
  .error-icon {
    font-size: 2.5rem;
  }
  .waiting-queue-content,
  .error-screen-content {
    max-width: 100%;
  }
}
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* Flexbox for sticky footer: container grows to fill available space */
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

/* Site footer styling matching the provided design */
.site-footer {
  background: #050508; /* deep dark background */
  color: #FAFAFA;
  padding: 48px 0;
  font-size: 14px;
  /* Sticky footer: push to bottom when content is smaller than viewport */
  margin-top: auto;
}

.site-footer .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 24px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.site-footer a:hover {
  opacity: 1;
}

.site-footer .footer-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

@media (max-width: 640px) {
  .site-footer .container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
  }
  .site-footer .footer-links {
    margin-top: 12px;
    gap: 12px;
  }
}
/* Page section wrapper used for content pages */
.page-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .page-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
.cookie-notice {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #FAFAFA;
  border: 1px solid #e3e7f0;
  padding: 1rem;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 1040;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.5rem;
  min-width: 300px;
}
.cookie-notice__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
}
.cookie-notice__message {
  font-size: 0.875rem;
  color: #050508;
}
.cookie-notice__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.25rem;
}
.cookie-notice__actions button {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.875rem;
}
.cookie-notice__actions .btn-primary {
  background: #D32F53;
  color: #fff;
}
.cookie-notice__actions .btn-secondary {
  background: #F4F4F6;
  color: #050508;
}
.cookie-notice__actions .cookie-notice__config {
  font-size: 0.875rem;
  color: #71717C;
  text-decoration: underline;
  margin-left: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.cookie-notice__actions .cookie-notice__config:hover {
  color: #050508;
}

.cookie-settings {
  border-top: 1px solid #e3e7f0;
  margin-top: 0.5rem;
  padding-top: 1rem;
}
.cookie-settings__hint {
  font-size: 0.75rem;
  color: #71717C;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.cookie-settings__hint a {
  color: #050508;
  text-decoration: underline;
}
.cookie-settings__hint a:hover {
  color: #71717C;
}
.cookie-settings__content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  color: #050508;
}
.cookie-settings__content .cookie-config__service {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #F4F4F6;
  border-radius: 0;
}
.cookie-settings__content .cookie-config__service label {
  /* Use a two-column grid: checkbox (auto) + meta (1fr)
     so title and description stack vertically to the right */
  display: grid;
  grid-template-columns: auto 1fr;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  gap: 0.5rem;
  cursor: pointer;
  /* Title and description live in the second column and stack */
}
.cookie-settings__content .cookie-config__service label input[type=checkbox] {
  /* place checkbox in the first column */
  grid-column: 1;
  margin: 0.15rem 0 0 0;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.cookie-settings__content .cookie-config__service label input[type=checkbox]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-settings__content .cookie-config__service label strong,
.cookie-settings__content .cookie-config__service label span {
  grid-column: 2;
  display: block;
}
.cookie-settings__content .cookie-config__service label strong {
  font-size: 0.875rem;
  color: #050508;
}
.cookie-settings__content .cookie-config__service label span {
  font-size: 0.75rem;
  color: #71717C;
}
.cookie-settings__content .cookie-config__service .cookie-config__required-note {
  font-size: 0.75rem;
  color: #71717C;
  font-style: italic;
}
.cookie-settings__content button[type=button],
.cookie-settings__content button[type=submit] {
  padding: 0.25rem 1rem;
  border: 1px solid #e3e7f0;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.875rem;
  background: #FAFAFA;
  color: #050508;
  -webkit-transition: background-color 150ms ease;
  transition: background-color 150ms ease;
}
.cookie-settings__content button[type=button]:hover,
.cookie-settings__content button[type=submit]:hover {
  background: #F4F4F6;
}
.cookie-settings__content button[type=button][type=submit],
.cookie-settings__content button[type=submit][type=submit] {
  background: #D32F53;
  color: #fff;
  border-color: #D32F53;
}
.cookie-settings__content button[type=button][type=submit]:hover,
.cookie-settings__content button[type=submit][type=submit]:hover {
  background: rgb(191.9047619048, 40.5952380952, 73.8095238095);
}

@media (max-width: 768px) {
  .cookie-notice {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
  .cookie-notice__row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    gap: 0.5rem;
  }
  .cookie-notice .cookie-settings {
    margin-top: 0;
    padding-top: 1rem;
  }
}
.cookie-settings-inline {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #F4F4F6;
  border-radius: 0;
}
.cookie-settings-inline h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #050508;
  font-size: 1.125rem;
}
.cookie-settings-inline .cookie-settings__hint {
  margin-bottom: 1rem;
}
.cookie-settings-inline form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.5rem;
}
.cookie-settings-inline button[type=button],
.cookie-settings-inline button[type=submit] {
  padding: 0.25rem 1rem;
  border: 1px solid #e3e7f0;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.875rem;
  background: #FAFAFA;
  color: #050508;
  -webkit-transition: background-color 150ms ease;
  transition: background-color 150ms ease;
}
.cookie-settings-inline button[type=button]:hover,
.cookie-settings-inline button[type=submit]:hover {
  background: #F4F4F6;
}
.cookie-settings-inline button[type=button][type=submit],
.cookie-settings-inline button[type=submit][type=submit] {
  background: #D32F53;
  color: #fff;
  border-color: #D32F53;
}
.cookie-settings-inline button[type=button][type=submit]:hover,
.cookie-settings-inline button[type=submit][type=submit]:hover {
  background: rgb(191.9047619048, 40.5952380952, 73.8095238095);
}

.cookie-config-link {
  font-size: 0.875rem;
  color: #050508;
  text-decoration: underline;
  cursor: pointer;
}

.debug-think-container {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #e3e7f0;
  border-radius: 0;
  background: #F4F4F6;
  overflow: hidden;
}

.debug-think-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #F4F4F6;
  border-bottom: 1px solid #e3e7f0;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-transition: background 200ms ease;
  transition: background 200ms ease;
  font-size: var(--step-1, var(--step-0));
  font-weight: 500;
  color: #71717C;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}
.debug-think-header:hover {
  background: #F4F4F6;
}
.debug-think-header.collapsed {
  border-bottom: none;
}
.debug-think-header .toggle-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  -webkit-transition: -webkit-transform 200ms ease;
  transition: -webkit-transform 200ms ease;
  transition: transform 200ms ease;
  transition: transform 200ms ease, -webkit-transform 200ms ease;
  font-size: var(--step--1, 0.875rem);
}
.debug-think-header .toggle-icon.collapsed {
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

.debug-think-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  background: #FAFAFA;
  color: #050508;
  font-family: "Departure Mono", "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: var(--step--1, 0.875rem);
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.4;
  scrollbar-color: #71717C #F4F4F6;
  scrollbar-width: thin;
}
.debug-think-content::-webkit-scrollbar {
  width: 6px;
}
.debug-think-content::-webkit-scrollbar-track {
  background: #F4F4F6;
}
.debug-think-content::-webkit-scrollbar-thumb {
  background: #71717C;
  border-radius: 0;
}
.debug-think-content::-webkit-scrollbar-thumb:hover {
  background: rgb(88.6835443038, 88.6835443038, 97.3164556962);
}
.debug-think-content.collapsed {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  -webkit-transition: max-height 200ms ease, padding 200ms ease;
  transition: max-height 200ms ease, padding 200ms ease;
}
.debug-think-content.expanded {
  max-height: 500px;
  padding: 1rem;
  -webkit-transition: max-height 200ms ease, padding 200ms ease;
  transition: max-height 200ms ease, padding 200ms ease;
}

.message.assistant .debug-think-container {
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: #050508;
}

.text-secondary {
  color: #71717C;
}

.text-muted {
  color: #71717C;
}

.text-success {
  color: #43A047;
}

.text-warning {
  color: #D32F53;
}

.text-error {
  color: #D32F53;
}

.m-0 {
  margin: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.p-0 {
  padding: 0;
}

.pt-1 {
  padding-top: 0.5rem;
}

.pt-2 {
  padding-top: 1rem;
}

.pt-3 {
  padding-top: 1.5rem;
}

.pb-1 {
  padding-bottom: 0.5rem;
}

.pb-2 {
  padding-bottom: 1rem;
}

.pb-3 {
  padding-bottom: 1.5rem;
}