:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --panel: #13100e;
  --line: #342c27;
  --dim: #aea39b;
  --text: #e9e4e0;
  --accent: #ffbf94;
  --green: #a7c7a3;
  --amber: #dfc39a;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #00000013 3px 4px);
  opacity: .38;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button, input, summary { outline-offset: 5px; }
:is(a, button, input, summary):focus-visible { outline: 2px solid var(--accent); }
::selection { background: #976646; color: white; }
.shell { max-width: 1320px; padding: 0 48px; margin: auto; }
.muted { color: var(--dim); }
.accent { color: var(--accent); }
.skip { position: fixed; top: -80px; left: 20px; z-index: 10; background: var(--accent); color: var(--bg); padding: 10px; }
.skip:focus { top: 12px; }

.site-header {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 700; letter-spacing: -1px; }
.wordmark-divider { width: 1px; height: 27px; flex: none; background: #7d5b45; }
.identity-avatar {
  display: inline-block;
  flex: none;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #0b0806;
  vertical-align: middle;
}
.identity-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.header-avatar { width: 38px; height: 38px; }
.owner-avatar { width: 28px; height: 28px; }
.site-header nav { display: flex; justify-content: flex-end; gap: 27px; margin-left: auto; font-size: .875rem; }
.nav-link { color: var(--dim); }
.nav-link:focus-visible { color: var(--accent); }

.terminal { border: 1px solid #4f4741; scroll-margin-top: 24px; }
.terminal-title { padding: 9px 17px; background: #171412; border-bottom: 1px solid #3f3731; display: flex; justify-content: space-between; gap: 15px; color: #cbc3be; font-size: .8125rem; }
.tiny-glyph { color: var(--accent); padding-right: 8px; }
.window-marks { color: #978b83; white-space: nowrap; }
.terminal-body { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: stretch; gap: 44px; padding: 35px 27px; overflow: hidden; }
.portrait-panel { position: relative; min-width: 0; }
.portrait { position: absolute; inset: 0; border: 0; border-radius: 0; overflow: hidden; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.welcome { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.command { color: var(--dim); font-size: .8125rem; margin: 0 0 23px; }
.command span { color: var(--accent); }
.eyebrow { color: #c5b3a7; font-size: .75rem; letter-spacing: 1.6px; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 3.65vw, 51px); line-height: 1.16; font-weight: 400; letter-spacing: -2.8px; margin: 0 0 21px; }
.cursor { color: var(--accent); animation: blink 1.4s steps(1, end) infinite; }
.intro { color: #c7bcb5; font-size: 1rem; line-height: 1.85; margin: 0 0 23px; }
.connection { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .75rem; }
.terminal-footer { border-top: 1px solid var(--line); padding: 8px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; font-size: .75rem; color: #b4a69d; background: var(--panel); }

.build-status { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: center; }
.section-label { font-size: .75rem; letter-spacing: 1.1px; color: var(--dim); }
.build-status-label > div { display: flex; gap: 12px; align-items: baseline; margin-top: 4px; }
.build-status-label strong { color: var(--accent); font-size: 27px; font-weight: 400; line-height: 1.2; }
.build-status-label .muted { font-size: .75rem; }
.progress-track { height: 10px; border: 1px solid #46362b; background: repeating-linear-gradient(90deg, #1d1713 0 5px, transparent 5px 8px); padding: 1px; }
.progress-track > div { height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 8px); transition: width .2s; }
.build-status-center p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; margin: 8px 0 0; color: var(--dim); font-size: .75rem; }

.roadmap-section { padding: 36px 0; }
h2 { font-weight: 400; font-size: 26px; letter-spacing: -1px; line-height: 1.3; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.channel { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; border: 1px solid #3f3731; border-radius: 12px; overflow: hidden; background: #100e0c; }
.channel-header { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 18px 24px; background: #161210; }
.channel-icon { overflow: hidden; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #2e1f15; color: var(--accent); }
.channel-icon img { width: 100%; height: 100%; object-fit: cover; }
.channel-heading { min-width: 0; }
.channel-heading h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.channel-heading p { color: var(--dim); font-size: .875rem; margin: 3px 0 0; }
.channel-menu { display: grid; place-items: center; width: 36px; height: 40px; flex: none; margin-left: auto; padding: 0; border: 0; background: transparent; color: #afa59e; font: 28px/1 system-ui, sans-serif; cursor: default; }
.channel-body { padding: 30px 24px; }
.channel-message { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
.message-avatar { width: 42px; height: 42px; }
.message-avatar img { object-position: center 35%; }
.message-content { min-width: 0; }
.channel-followup { margin-top: 28px; }
.channel-followup .message-text { margin-bottom: 0; }
.message-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; line-height: 1.4; }
.message-meta a { color: #f4f2f0; font-size: 1rem; font-weight: 700; }
.message-meta time { color: #9f9791; font-size: .8125rem; font-weight: 400; }
.message-text { font-size: 1rem; margin: 9px 0 22px; }
.step-list { padding: 8px 22px; margin: 0; border: 1px solid #373330; border-radius: 12px; list-style: none; background: #141210; }
.task-step { position: relative; padding-left: 48px; }
.task-step::before { content: ""; position: absolute; top: 0; bottom: 0; left: 13px; width: 1px; background: #494441; }
.task-step:first-child::before { top: 31px; }
.task-step:last-child::before { bottom: calc(100% - 31px); }
.task-step.is-complete::before { background: #397e57; }
.step-marker { position: absolute; z-index: 1; top: 17px; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #69615b; border-radius: 50%; background: #141210; color: #bab0a9; font-family: sans-serif; font-size: 19px; line-height: 1; }
.is-complete .step-marker { color: #7bdca1; border-color: #599d72; background: #12251b; }
.is-current .step-marker { border-color: var(--accent); background: #2e1f15; box-shadow: 0 0 0 4px #ffbf940b; }
.step-details { min-width: 0; }
.step-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; }
.step-copy { min-width: 0; }
.step-title { display: block; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.is-current .step-title { color: var(--accent); }
.is-pending .step-title { color: #afa8a3; }
.step-chevron { width: 8px; height: 8px; flex: none; margin-right: 3px; border-right: 1.5px solid #a59a92; border-bottom: 1.5px solid #a59a92; transform: rotate(45deg) translateY(-2px); }
.channel-composer { display: flex; align-items: center; gap: 12px; margin: 0 24px 24px; padding: 12px 14px; border: 1px solid #463f3b; border-radius: 10px; background: #13110f; color: #b0a095; }
.channel-composer textarea { display: block; flex: 1; width: 100%; min-width: 0; height: 28px; min-height: 28px; overflow: hidden; resize: none; border: 0; padding: 0; background: transparent; font: .875rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #afa59f; -webkit-text-fill-color: #afa59f; opacity: 1; cursor: not-allowed; }
.channel-composer textarea::placeholder { color: #afa59f; opacity: 1; }
.composer-actions { display: flex; align-items: center; flex: none; }
.locked-send { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #574940; border-radius: 50%; color: #b9a496; background: #2a2019; opacity: 1; cursor: not-allowed; }
.locked-send svg { width: 17px; height: 17px; }
.coming-soon { margin: 54px 0 64px; }
.coming-soon-content { padding: clamp(28px, 6vw, 72px); }
.coming-soon-content h1 { margin: 18px 0 24px; }
.coming-soon-content .intro { max-width: 650px; }
.coming-soon-content .eyebrow { color: var(--accent); }
.back-link { display: inline-block; padding: 9px 16px; border: 1px solid #8e6b53; color: var(--accent); margin: 8px 0 12px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 28px; }
.footer-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 0 0 34px;
}
.footer-column { flex: 1 1 max-content; min-width: 0; }
.footer-column .section-label {
  margin: 0 0 16px;
  padding: 0;
  color: #e2d5cc;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.65;
}
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links a {
  padding: 2px 0;
  color: #c4b4a9;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--dim);
  text-align: center;
  font-size: .875rem;
}
.footer-bottom p { margin: 0; text-align: center; }
.owner-link { display: inline-flex; align-items: center; gap: 7px; margin-left: 3px; vertical-align: middle; color: inherit; }
.site-footer .owner-link:focus-visible { color: inherit; text-decoration: underline; }
.rights-line { font-size: .8125rem; }

/* Touch browsers may keep :hover after a tap; reserve hover styles for a mouse. */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--accent); }
  .message-meta a:hover { text-decoration: underline; }
  .back-link:hover { background: #2e1f15; }
  .site-footer a:hover { color: var(--accent); text-decoration: underline; }
  .site-footer .owner-link:hover { color: inherit; text-decoration: underline; }
}

@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 1500px) {
  .shell { max-width: 1420px; }
  h1 { font-size: 55px; }
}
@media (max-width: 1050px) {
  .shell { padding: 0 28px; }
  .site-header nav { margin-left: auto; }
  .terminal-body { gap: 28px; padding: 28px 24px; }
  .connection { gap: 7px; }
  .build-status { grid-template-columns: 155px 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .shell { padding: 0 18px; }
  .site-header { min-height: 95px; gap: 12px; flex-wrap: wrap; align-content: center; margin-bottom: 20px; padding: 15px 0; }
  .site-header nav { margin: 0 0 0 auto; gap: 18px; }
  .terminal-title { font-size: .75rem; padding: 9px 11px; }
  .terminal-body { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .portrait-panel { aspect-ratio: 1176 / 912; }
  .command { font-size: .8125rem; }
  .eyebrow { font-size: .75rem; letter-spacing: 1px; }
  h1 { font-size: 41px; letter-spacing: -2.2px; margin-bottom: 17px; }
  .terminal-footer { padding: 8px 11px; gap: 9px; font-size: .75rem; }
  .build-status { padding: 22px 0; grid-template-columns: 1fr; gap: 14px; }
  .build-status-label { display: flex; justify-content: space-between; align-items: center; }
  .build-status-label > div { margin: 0; }
  .roadmap-section { padding: 28px 0; }
  .channel-header { padding: 15px; gap: 10px; }
  .channel-heading p { font-size: .8125rem; }
  .channel-body { padding: 20px 14px; }
  .channel-message { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .message-avatar { width: 30px; height: 30px; }
  .message-meta { gap: 10px; }
  .message-text { margin-bottom: 18px; }
  .step-list { padding: 5px 12px; margin-left: -40px; }
  .task-step { padding-left: 39px; }
  .step-marker { width: 24px; height: 24px; top: 17px; font-size: 17px; }
  .task-step::before { left: 11px; }
  .task-step:first-child::before { top: 29px; }
  .task-step:last-child::before { bottom: calc(100% - 29px); }
  .step-summary { gap: 12px; padding: 16px 0; }
  .channel-composer { margin: 0 14px 16px; padding: 12px; }
  .coming-soon { margin: 28px 0 36px; }
  h2 { font-size: 23px; }
  .footer-directory { gap: 24px; }
}
@media (max-width: 380px) {
  .site-header nav { width: 100%; margin: 0; }
  h1 { font-size: 35px; }
  .terminal-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Owner-supplied Ember identity; the Lainify owner avatar stays distinct. */
.ember-logo{display:inline-block;width:42px;height:42px;flex:none;overflow:visible;background:transparent;border:0;border-radius:0}
.ember-logo img{display:block;width:100%;height:100%;object-fit:contain}
[hidden]{display:none!important}

/* Ember orange palette, shared by public and authenticated screens. */
:root{--bg:#0c0a09;--panel:#15100d;--line:#3b2b22;--dim:#b8a69b;--text:#f1e8e1;--accent:#ff9a52}
::selection{background:#9c420e;color:#fff}
.wordmark-divider{background:#864019}
.progress-track>div{background:repeating-linear-gradient(90deg,var(--accent) 0 5px,transparent 5px 8px)}
.is-current .step-marker{border-color:var(--accent);background:#2e1a0e;box-shadow:0 0 0 4px #ff9a5214}
