/* Trenchoor website. Graphite, the app's theme (docs/BRAND.md): near-black surfaces, 1px hairlines, one blue accent. */

:root {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #171a20;
  --line: #262a33;
  --text: #f2f4f7;
  --secondary: #9aa3b2;
  --accent: #5b8cff;
  --on-accent: #0b0d12;
  --up: #3ccb7f;
  --down: #ff6369;
  --warn: #f5b547;
  --violet: #9b7bff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --wrap: 1168px;
  --gutter: 24px;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

.kicker {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker.warn {
  color: var(--warn);
}

.lede {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--secondary);
}

.muted {
  color: var(--secondary);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: #7aa2ff;
}

.button-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.button-ghost:hover {
  border-color: #3a404c;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 550;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

/* Phone frame. The screenshots are 780 x 1695 (a 6.9" iPhone screen, scaled). */

.phone {
  --pw: 300px;
  --pad: calc(var(--pw) * 0.034);
  --iw: calc(var(--pw) - 2 * var(--pad) - 2px);
  position: relative;
  flex: none;
  width: var(--pw);
  padding: var(--pad);
  border: 1px solid #2c313b;
  border-radius: calc(var(--pw) * 0.168);
  background: #050608;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65);
}

.phone img {
  width: 100%;
  border-radius: calc(var(--pw) * 0.134);
  background: var(--bg);
}

/* The Dynamic Island, drawn the same on every screenshot (some captures have it, some don't). */
.phone::after {
  content: "";
  position: absolute;
  top: calc(var(--pad) + var(--iw) * 0.031);
  left: 50%;
  width: calc(var(--iw) * 0.218);
  height: calc(var(--iw) * 0.085);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Hero */

.hero {
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 72px;
}

.app-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.app-lockup strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.app-lockup span {
  display: block;
  color: var(--secondary);
  font-size: 15px;
}

.hero h1 {
  max-width: 12ch;
  text-wrap: wrap;
}

.hero .lede {
  max-width: 34em;
  margin-top: 24px;
}

/* A status pill at the app's scale ("Heating up · 1h old"), not a button: it isn't a link until the app is live. */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.availability::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  font-size: 15px;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.hero-media {
  display: flex;
  justify-content: center;
  padding-right: 8px;
}

.hero-media .phone {
  --pw: 316px;
}

/* Sections */

.section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
}

.section-head h2 {
  margin-top: 14px;
}

.section-head .lede {
  margin-top: 18px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 22px;
}

.feature p {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.55;
}

.glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--line);
  color: var(--text);
}

.glyph svg {
  width: 24px;
  height: 24px;
}

.glyph.oracle {
  border-radius: 50%;
  background: rgba(155, 123, 255, 0.16);
  color: var(--violet);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Showcase rows */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.showcase + .showcase {
  margin-top: 104px;
}

.showcase-copy h2 {
  margin-top: 14px;
}

.showcase-copy .lede {
  margin-top: 18px;
}

.showcase-media {
  display: flex;
  justify-content: center;
  padding: 56px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.showcase-media .phone {
  --pw: 288px;
}

.showcase.reverse .showcase-media {
  order: -1;
}

.checks {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}

.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--line);
  color: var(--text);
}

.check svg {
  width: 14px;
  height: 14px;
}

/* Safety */

.safety-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.safety-intro h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 38px);
}

.safety-intro h2 + p {
  margin-top: 20px;
  color: var(--secondary);
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.safety-list li:nth-child(-n + 2) {
  padding-top: 4px;
  border-top: 0;
}

.safety-list h3 {
  font-size: 17px;
}

.safety-list p {
  margin-top: 6px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
}

.faq-intro h2 {
  margin-top: 14px;
}

.faq-intro h2 + p {
  margin-top: 18px;
  color: var(--secondary);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--secondary);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list summary:hover::before,
.faq-list summary:hover::after {
  background: var(--text);
}

.faq-list summary:focus-visible {
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 48px 24px 0;
  color: var(--secondary);
}

.faq-answer p + p {
  margin-top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list summary::after {
    transition: transform 0.2s ease;
  }
}

/* Closing */

.closing {
  padding: 104px 0;
  text-align: center;
}

.closing .app-icon {
  margin: 0 auto 28px;
}

.closing p {
  margin-top: 14px;
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 15px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
}

.footer-brand p {
  max-width: 30em;
  margin-top: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  font-weight: 550;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* Support page */

.page-hero {
  padding: 72px 0 56px;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 5vw, 56px);
}

.page-hero .lede {
  max-width: 38em;
  margin-top: 18px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.contact-card h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.contact-card p {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toc {
  margin-top: 32px;
}

/* The contact card and the chips line up with the 760px .doc sections below them. */
.page-hero .contact-card,
.page-hero .toc {
  max-width: 760px;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
}

.toc a:hover {
  background: var(--surface);
  text-decoration: none;
}

.doc-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.doc {
  max-width: 760px;
}

.doc h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.doc h3 {
  margin-top: 32px;
  font-size: 18px;
}

.doc p,
.doc li {
  font-size: 17px;
}

.doc > p,
.doc h3 + p {
  margin-top: 12px;
}

.doc h2 + p {
  margin-top: 16px;
}

.doc .muted {
  font-size: 16px;
}

.ui {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.steps {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: step;
}

.steps li + li {
  margin-top: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--line);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.bullets {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 22px;
}

.bullets li::marker {
  color: var(--secondary);
}

.callout {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.callout p {
  margin: 0;
  font-size: 16px;
}

.callout .glyph {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.callout .glyph svg {
  width: 16px;
  height: 16px;
}

.callout.warn .glyph {
  background: rgba(245, 181, 71, 0.16);
  color: var(--warn);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.link-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
}

.link-card:hover {
  border-color: #3a404c;
  text-decoration: none;
}

.link-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
}

.link-card strong svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.link-card span {
  display: block;
  margin-top: 6px;
  color: var(--secondary);
  font-size: 15px;
}

/* 404 */

.not-found {
  padding: 120px 0 128px;
  text-align: center;
}

/* Sarge, dizzy, in a surface circle: the app's error state (HUDEmptyState, SargePose.dizzy). */
.not-found .mascot {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.not-found .mascot img {
  width: 84px;
  height: 84px;
}

.not-found h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 52px);
}

.not-found .lede {
  max-width: 30em;
  margin: 18px auto 0;
}

.not-found .contact-actions {
  justify-content: center;
  margin-top: 36px;
}

/* Responsive */

@media (max-width: 1060px) {
  .hero-grid {
    gap: 48px;
  }

  .hero-media .phone {
    --pw: 290px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase {
    gap: 48px;
  }

  .safety-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 56px 0 72px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-media {
    padding-right: 0;
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .showcase.reverse .showcase-media {
    order: 0;
  }

  .showcase + .showcase {
    margin-top: 80px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .nav-optional {
    display: none;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .app-lockup {
    margin-bottom: 24px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .hero-media .phone {
    --pw: min(280px, 78vw);
  }

  .section {
    padding: 72px 0;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 40px;
  }

  .feature {
    padding: 24px;
  }

  .showcase-media {
    padding: 40px 16px;
    border-radius: 20px;
  }

  .showcase-media .phone {
    --pw: min(264px, 72vw);
  }

  .safety-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .safety-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .safety-list li:nth-child(2) {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .faq-list summary {
    padding: 20px 40px 20px 0;
    font-size: 17px;
  }

  .faq-answer {
    padding-right: 8px;
  }

  .closing {
    padding: 72px 0;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 22px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .doc-section {
    padding: 44px 0;
  }

  .doc p,
  .doc li {
    font-size: 16px;
  }

  .link-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .not-found {
    padding: 72px 0 88px;
  }
}
