/* ═══════════════════════════════════════════════════════════════
   Qew — shared design system
   Typeface: Inter only. No monospace anywhere.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --night:      #08090C;
  --night-2:    #101217;
  --night-3:    #171A21;
  --paper:      #FFFFFF;
  --paper-2:    #F7F8FA;
  --paper-3:    #EFF1F4;
  --ink:        #0B0D12;
  --muted:      #5C6470;
  --soft:       #858D9A;
  --hair:       #E4E7EB;
  --hair-2:     #D6DAE0;
  --hair-dk:    rgba(255, 255, 255, 0.10);
  --dim:        #9AA1AC;
  --orange:     #FE5700;
  --orange-ink: #C43F00;
  --orange-tint:#FFF1EA;
  --coral:      #E8896B;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shell: 1160px;
  --gut: 24px;
  --band: 120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--orange); color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { letter-spacing: -0.035em; line-height: 1.05; font-weight: 600; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }
.shell--tight { max-width: 900px; }

/* eyebrow — replaces every former monospace label */
.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.eyebrow--quiet { color: var(--muted); }
.eyebrow--warm { color: var(--coral); }

/* command / code chips — Inter, tabular, tinted. Not monospace. */
.cmd {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'ss01' 1;
  letter-spacing: -0.005em;
  font-weight: 500;
}

/* ══════════════════════ NAV ══════════════════════ */
.nav {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 0 var(--gut);
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(16, 18, 23, 0.7);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 7px 7px 7px 18px;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.nav--stuck .nav__pill {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--hair);
  box-shadow: 0 10px 34px -14px rgba(11, 13, 18, 0.25);
}

.nav__brand { display: flex; align-items: center; gap: 8px; }
.nav__brand img { width: 19px; height: 19px; }

.nav__brand span {
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.025em;
  color: #fff;
  transition: color 0.35s;
}

.nav--stuck .nav__brand span { color: var(--ink); }

.nav__links { display: flex; gap: 26px; }

.nav__links a {
  font-size: 14px;
  color: var(--dim);
  transition: color 0.2s;
}

.nav__links a:hover { color: #fff; }
.nav--stuck .nav__links a { color: var(--muted); }
.nav--stuck .nav__links a:hover { color: var(--ink); }

.nav__cta {
  background: var(--orange);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 17px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav__cta:hover { background: #ff6b1f; }

/* ══════════════════════ BUTTONS ══════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 47px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }

.btn--fill { background: var(--orange); color: #fff; box-shadow: 0 8px 24px -10px rgba(254, 87, 0, 0.7); }
.btn--fill:hover { background: #ff6b1f; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn--ink { background: var(--orange-ink); color: #fff; }
.btn--ink:hover { background: #a83600; }

.btn--line { border: 1px solid var(--hair); color: var(--ink); background: var(--paper); }
.btn--line:hover { border-color: var(--hair-2); background: var(--paper-2); }

/* ══════════════════════ SECTION HEADS ══════════════════════ */
.head { max-width: 46ch; margin-bottom: 54px; }
.head .eyebrow { margin-bottom: 15px; }
.head h2 { font-size: clamp(1.95rem, 3.5vw, 2.7rem); }
.head p { color: var(--muted); margin-top: 15px; font-size: 16.5px; }

/* ══════════════════════ PAGE HEADER (subpages) ══════════════════════ */
.masthead {
  position: relative;
  background: var(--night);
  color: #fff;
  padding: 148px 0 76px;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  top: -260px; left: 50%;
  width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(254, 87, 0, 0.15), transparent 72%);
  pointer-events: none;
}

.masthead__in { position: relative; }
.masthead .eyebrow { color: var(--coral); margin-bottom: 18px; }

.masthead h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: 16px;
}

.masthead p { color: var(--dim); font-size: 17px; max-width: 58ch; }

.masthead .masthead__meta {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--soft);
  letter-spacing: 0.01em;
}

/* ══════════════════════ PROSE (legal) ══════════════════════ */
.doc {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 72px;
  align-items: start;
  padding-top: 76px;
  padding-bottom: var(--band);
}

.toc { position: sticky; top: 104px; }

.toc__k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 6px;
  pointer-events: none;
}

.toc__k::-webkit-details-marker { display: none; }
.toc__k::after { content: none; }

.toc ol { list-style: none; counter-reset: toc; }

.toc a {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  transition: color 0.18s;
}

.toc a:hover { color: var(--orange-ink); }

.tldr {
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--paper-2);
  padding: 20px 24px;
  margin-bottom: 44px;
}

.prose .tldr p { font-size: 15.5px; line-height: 1.65; color: var(--ink); margin: 0; }
.prose .tldr strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.prose { max-width: 70ch; }

.prose h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin: 52px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--hair);
}

.prose > h2:first-child,
.prose > .tldr + h2 { margin-top: 0; padding-top: 0; border-top: 0; }

.prose p { color: var(--muted); font-size: 16px; line-height: 1.72; margin-bottom: 16px; }

.prose ul { list-style: none; margin: 0 0 18px; }

.prose li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 9px;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 1.5px;
  background: var(--hair-2);
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: var(--orange-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--orange); }

/* ══════════════════════ FAQ ══════════════════════ */
.faq { border-top: 1px solid var(--ink); }

.faq details {
  border-bottom: 1px solid var(--hair);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange-ink); }

.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq__a {
  padding: 0 60px 24px 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 68ch;
}

/* ══════════════════════ FOOTER ══════════════════════ */
.foot {
  border-top: 1px solid var(--hair);
  background: var(--paper-2);
  padding: 64px 0 40px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.foot__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.foot__brand img { width: 20px; height: 20px; }
.foot__brand span { font-weight: 600; font-size: 17px; letter-spacing: -0.025em; }

.foot__blurb { color: var(--muted); font-size: 14.5px; max-width: 34ch; }

.foot__k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.foot__list { list-style: none; }
.foot__list li { margin-bottom: 10px; }

.foot__list a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.18s;
}

.foot__list a:hover { color: var(--orange-ink); }

.foot__base {
  border-top: 1px solid var(--hair);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--soft);
}

/* studio sign-off, as in Fold: "Made by" + the Swish wordmark */
.made { display: inline-flex; align-items: center; gap: 7px; }
.made img { height: 14px; width: auto; display: block; }

/* ══════════════════════ REVEAL ══════════════════════ */
.up { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.up.on { opacity: 1; transform: none; }

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 1000px) {
  :root { --band: 84px; }
  .doc { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
  .toc { position: static; border: 1px solid var(--hair); border-radius: 12px; padding: 0 18px; }
  .toc__k { pointer-events: auto; cursor: pointer; padding: 16px 0; margin: 0; border-bottom: 0; }
  .toc__k::after {
    content: '';
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s var(--ease);
  }
  .toc details[open] .toc__k { border-bottom: 1px solid var(--hair); }
  .toc details[open] .toc__k::after { transform: rotate(-135deg) translateY(-2px); }
  .toc ol { columns: 2; column-gap: 28px; padding: 8px 0 12px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__pill { padding-left: 16px; gap: 14px; }
  :root { --gut: 20px; --band: 64px; }
  .masthead { padding: 112px 0 48px; }
  .masthead p { font-size: 16px; }
  .doc { padding-top: 32px; gap: 32px; }
  .tldr { padding: 18px 20px; margin-bottom: 36px; }
  .prose h2 { font-size: 1.2rem; margin: 40px 0 14px; padding-top: 26px; }
  .prose p, .prose li { font-size: 15.5px; }
  .toc ol { columns: 1; }
  .foot__grid { grid-template-columns: 1fr; gap: 30px; }
  .foot { padding-top: 48px; }
  .faq summary { font-size: 15.5px; padding-right: 34px; }
  .faq__a { padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .up { opacity: 1; transform: none; }
}
