/*
  Raysep Liquidation Radar landing page.
  Translated from design/Main.dc.html. The design's @container page queries are
  plain viewport media queries here, at the same 1100 / 900 / 720 / 360 widths.
  Inline design styles live on classes so no breakpoint rule fights an inline size.
*/

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #090C12;
  color: #E6EDF3;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
img { display: block; }
svg { flex-shrink: 0; }

/* Elements hidden by the script must stay hidden whatever display a class sets. */
[hidden] { display: none !important; }

a { color: #A0F0FF; text-decoration: none; }
a:hover { color: #D6F8FF; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible,
[role="tabpanel"]:focus-visible {
  outline: 2px solid #A0F0FF;
  outline-offset: 4px;
}

/* Skip and section-link destinations are containers, not controls. */
main:focus,
section[tabindex="-1"]:focus { outline: none; }

.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.accent { color: #A0F0FF; }

/* ---------- Layout and type tokens ---------- */

.shell { max-width: 1280px; margin-inline: auto; padding-inline: 80px; }
.section { padding-block: 112px; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A0F0FF;
  line-height: 1.6;
}
.eyebrow-section { margin-bottom: 24px; }

.tag {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8595A7;
  border: 1px solid #334155;
  padding: 4px 8px;
  line-height: 1.4;
  white-space: nowrap;
}

.h1 { font-size: 72px; line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.h2 { font-size: 48px; line-height: 1.08; letter-spacing: -.03em; font-weight: 500; }
.h3 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.h2-closing { font-size: 40px; max-width: 640px; }
.h2-muted { color: #A7B4C2; }
.lede { font-size: 19px; line-height: 1.6; color: #C3CDD8; }
.body-copy { font-size: 16px; line-height: 1.75; color: #A7B4C2; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: #A0F0FF; color: #06131A; border-color: #A0F0FF; }
.btn-primary:hover { background: #C6F6FF; border-color: #C6F6FF; color: #06131A; }
.btn-quiet { border-color: #334155; color: #D5DEE7; background: transparent; }
.btn-quiet:hover { background: #0F172A; color: #FFFFFF; border-color: #475569; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: #A0F0FF;
}
.tlink:hover { color: #D6F8FF; text-decoration: underline; text-underline-offset: 4px; }

/*
  Skip link. The generic a:hover rule would turn this text #D6F8FF on #A0F0FF
  (about 1.14:1), so every link state pins the on-accent foreground.
*/
.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 20;
  background: #A0F0FF;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 4px;
}
.skip,
.skip:link,
.skip:visited,
.skip:hover,
.skip:focus,
.skip:active { color: #06131A; }
.skip:focus { top: 12px; }

/* ---------- Header and navigation ---------- */

.hdr { height: 88px; border-bottom: 1px solid #1E293B; }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #E6EDF3; white-space: nowrap; }
.brand:hover { color: #FFFFFF; }
.brand-text { display: block; }
.brand-name { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.brand-name-foot { font-size: 15px; letter-spacing: 0; }
.brand-sub { display: block; font-size: 10px; letter-spacing: .2em; color: #8595A7; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: #C3CDD8; }
.nav a:hover { color: #FFFFFF; }
.nav .nav-cta { color: #A0F0FF; border-left: 1px solid #1E293B; padding-left: 32px; }
.nav .nav-cta:hover { color: #D6F8FF; }

/* The toggle only exists for scripted pages; without script the compact nav stays open. */
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #E6EDF3;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.menu-btn:hover { border-color: #475569; background: #0F172A; }

.mnav { display: none; background: #0F172A; border-bottom: 1px solid #334155; }
.mnav-in { padding-block: 8px 16px; }
.mnav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: 16px;
  color: #E6EDF3;
  border-top: 1px solid #1E293B;
}
.mnav a:hover { color: #FFFFFF; }
.mnav a:first-child { border-top: 0; }
.mnav .mnav-cta { color: #A0F0FF; }
.mnav .mnav-cta:hover { color: #D6F8FF; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  padding-block: 96px 88px;
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-dot { width: 6px; height: 6px; background: #A0F0FF; flex-shrink: 0; }
.hero-title { margin: 28px 0; }
.hero-lede { max-width: 460px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-note { font-size: 12px; color: #8595A7; margin-top: 18px; letter-spacing: .04em; }

.hero-fig { border-top: 1px solid #1E293B; padding-top: 20px; }
.inst-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inst-title { font-size: 12px; letter-spacing: .14em; color: #C3CDD8; }

.inst-field {
  position: relative;
  height: 380px;
  margin-top: 20px;
  border: 1px solid #1E293B;
  background: #0B1119;
  overflow: hidden;
}
.inst-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, #131B27 0 1px, transparent 1px 38px);
}
.inst-axis { position: absolute; left: 44px; top: 16px; bottom: 16px; border-left: 1px dashed #334155; }

.inst-rule { position: absolute; left: 24px; right: 24px; display: flex; align-items: center; gap: 16px; }
.inst-rule-entry { top: 20%; }
.inst-rule-stop { top: 50%; }
.inst-rule-limit { top: 80%; }
.inst-idx { font-size: 11px; color: #8595A7; width: 20px; }
.inst-line { flex: 1; height: 2px; background: #A0F0FF; }
.inst-rule-stop .inst-line { height: 0; background: none; border-top: 2px dashed #7FA3BD; }
.inst-rule-limit .inst-line { background: #D69E2E; }
.inst-name { font-size: 12px; color: #E6EDF3; background: #0B1119; padding-left: 8px; }
.inst-rule-stop .inst-name { color: #C3CDD8; }
.inst-rule-limit .inst-name { color: #F0C96A; }

.inst-gap {
  position: absolute;
  left: 60px;
  top: 33%;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8595A7;
}

.inst-foot {
  border-top: 1px solid #1E293B;
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.inst-foot-label { font-size: 11px; letter-spacing: .12em; color: #8595A7; }
.inst-foot p { font-size: 14px; color: #C3CDD8; }
.inst-caption { font-size: 13px; color: #8595A7; line-height: 1.6; margin-top: 14px; }

/* ---------- Principles band ---------- */

.band-wrap { border-top: 1px solid #1E293B; border-bottom: 1px solid #1E293B; background: #0B1119; }
.band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 24px; }
.band p { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #C3CDD8; }
.band p span { white-space: nowrap; }
.band-idx { font-size: 12px; color: #8595A7; }

/* ---------- Two-column sections ---------- */

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.two.faq-sec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; border-top: 1px solid #1E293B; }

.approach-body { padding-top: 12px; max-width: 520px; }
.approach-copy { margin-top: 20px; }
.approach-link { margin-top: 16px; }

/* ---------- Workflow ---------- */

.alt-band { border-top: 1px solid #1E293B; border-bottom: 1px solid #1E293B; background: #0B1119; }

.wf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.wf-intro { max-width: 340px; font-size: 15px; line-height: 1.7; color: #A7B4C2; }
.wf-note { font-size: 14px; line-height: 1.7; color: #8595A7; margin-top: 24px; max-width: 360px; }

.wf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }

.tabs { display: flex; flex-direction: column; }
.tab {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 24px 8px 26px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #1E293B;
  color: #A7B4C2;
  font: inherit;
  cursor: pointer;
  min-height: 112px;
}
.tab:last-of-type { border-bottom: 1px solid #1E293B; }
.tab:hover { color: #E6EDF3; }
.tab .tab-num { font-size: 12px; color: #8595A7; padding-top: 6px; width: 24px; flex-shrink: 0; }
.tab strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; }
.tab small { display: block; font-size: 14px; color: #8595A7; margin-top: 6px; line-height: 1.5; }

/* Before the script finishes, the default Understand tab already looks selected. */
.tab.is-selected,
.js:not(.js-ready) .tab:first-child { border-top: 2px solid #A0F0FF; padding-top: 23px; color: #E6EDF3; }
.tab.is-selected .tab-num,
.js:not(.js-ready) .tab:first-child .tab-num { color: #A0F0FF; }

.panel {
  border: 1px solid #334155;
  background: #0F172A;
  border-radius: 6px;
  padding: 28px 36px 32px;
  min-height: 460px;
}
/* Without script every panel is shown, stacked. With script, only the selected one. */
html:not(.js) .panel + .panel { margin-top: 24px; }
.js:not(.js-ready) .panel:not(:first-child) { display: none; }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.panel-kicker { font-size: 12px; letter-spacing: .14em; color: #A0F0FF; }
.panel-copy { font-size: 16px; line-height: 1.75; color: #A7B4C2; margin-top: 16px; max-width: 520px; }

.steps {
  list-style: none;
  border-left: 1px solid #475569;
  margin: 28px 0 20px 8px;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
}
.steps li { display: flex; gap: 20px; align-items: center; padding: 8px 0; font-size: 15px; }
.steps strong { font-weight: 500; }
.steps-idx { font-size: 12px; color: #A0F0FF; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 24px; }
.pair > div { padding: 20px 18px; background: #0B1119; border-top: 1px solid #475569; }
.pair-label { display: block; font-size: 11px; letter-spacing: .12em; color: #8595A7; margin-bottom: 12px; }
.pair-value { display: block; font-size: 15px; font-weight: 500; }
.pair-value-lg { font-size: 17px; }

/* ---------- Boundary ---------- */

.boundary-intro { margin-top: 24px; max-width: 400px; }
.bounds { padding-top: 12px; }
.bounds > div { display: flex; gap: 28px; border-bottom: 1px solid #1E293B; padding: 24px 0; }
.bounds > div:first-child { padding-top: 0; }
.bounds > div:last-child { border-bottom: 0; }
.bounds-idx { font-size: 12px; color: #A0F0FF; white-space: nowrap; padding-top: 6px; }
.bounds-title { font-size: 19px; font-weight: 500; line-height: 1.4; }
.bounds-copy { font-size: 15px; line-height: 1.7; color: #A7B4C2; margin-top: 8px; max-width: 420px; }

/* ---------- FAQ ---------- */

.faq-intro { font-size: 15px; color: #A7B4C2; margin-top: 24px; }
.faq details { border-bottom: 1px solid #1E293B; }
.faq details:first-child { border-top: 1px solid #1E293B; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 18px 0;
  font-size: 17px;
  line-height: 1.5;
  color: #D5DEE7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #FFFFFF; }
.faq .plus { width: 24px; height: 24px; flex-shrink: 0; color: #8595A7; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { font-size: 16px; line-height: 1.7; color: #A7B4C2; padding-right: 44px; margin: 0 0 24px; }
.faq .faq-link { margin-bottom: 20px; }

/* ---------- Closing ---------- */

.closing-band { border-top: 1px solid #334155; border-bottom: 1px solid #334155; background: #0F172A; }
.closing { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding-block: 80px; }
.closing-eyebrow { margin-bottom: 20px; }
.closing-copy { font-size: 15px; color: #A7B4C2; margin-top: 18px; }
.closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.closing-link { font-size: 14px; }

/* ---------- Footer ---------- */

.foot { padding-top: 48px; padding-bottom: 32px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 32px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: #A7B4C2; }
.foot-nav a:hover { color: #FFFFFF; }
.foot-bottom { border-top: 1px solid #1E293B; display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; }
.foot-legal { font-size: 13px; color: #8595A7; line-height: 1.7; max-width: 640px; }
.foot-copy { font-size: 12px; color: #8595A7; white-space: nowrap; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; flex-shrink: 0; }
.foot-made {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border: 1px solid #1E293B;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.4;
  color: #C3CDD8;
  white-space: nowrap;
}
.flag-no { display: block; width: 18px; height: 13px; }

/* ---------- Motion guard (the page has no motion) ---------- */

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

/* ---------- 1100 and below: stacked hero, three-up tab row ---------- */

@media (max-width: 1100px) {
  .shell { padding-inline: 40px; }
  .section { padding-block: 88px; }
  .h1 { font-size: 60px; }
  .h2 { font-size: 40px; }
  .h2-closing { font-size: 36px; }
  .hero { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 56px; padding-block: 72px 64px; }
  .hero-fig { max-width: 600px; }
  .two,
  .two.faq-sec { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 40px; }
  .wf { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 32px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .tab { min-height: 0; padding-right: 0; }
  .tab:last-of-type { border-bottom: 0; }
  .nav { gap: 24px; }
  .nav .nav-cta { padding-left: 24px; }
  .closing { padding-block: 64px; }
}

/* ---------- 900 and below: compact navigation, stacked band ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .js .menu-btn { display: inline-flex; }
  .mnav { display: block; }
  .js:not(.js-ready) .mnav { display: none; }
  .band { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0; padding-block: 8px; }
  .band p { min-height: 48px; border-top: 1px solid #1E293B; }
  .band p:first-child { border-top: 0; }
}

/* ---------- 720 and below: mobile ---------- */

@media (max-width: 720px) {
  .shell { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .hdr { height: 72px; }
  .h1 { font-size: 46px; }
  .h2 { font-size: 34px; }
  .h2-closing { font-size: 32px; }
  .h3 { font-size: 22px; }
  .lede { font-size: 17px; }
  .hero { padding-block: 48px 56px; gap: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .tabs { display: flex; flex-direction: column; gap: 0; }
  .tab { min-height: 0; }
  .tab:last-of-type { border-bottom: 1px solid #1E293B; }
  .panel { padding: 24px 20px; min-height: 0; }
  .pair { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .bounds > div { gap: 16px; }
  .faq summary { font-size: 16px; }
  .faq details p { padding-right: 16px; }
  .closing { flex-direction: column; align-items: flex-start; gap: 32px; padding-block: 56px; }
  .closing .btn { width: 100%; }
  .closing-actions { align-self: stretch; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-bottom { flex-direction: column; gap: 12px; }
  .inst-field { height: 320px; }
  .inst-head { flex-direction: column; align-items: flex-start; }
  .tag { white-space: normal; }
  .hdr-in { gap: 16px; }
}

/* ---------- 360 and below: smallest phones ---------- */

@media (max-width: 360px) {
  .shell { padding-inline: 16px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .h2-closing { font-size: 28px; }
  .inst-field { height: 300px; }
  .hdr-in { gap: 12px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 15px; }
  .menu-btn { padding: 8px 10px; }
  .bounds > div { flex-direction: column; gap: 8px; }
}
