/* BOXDEV — static brand, privacy and terms site */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/archivo-400-700.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --paper: #e9edea;
  --paper-2: #f3f5f3;
  --ink: #0d1210;
  --ink-2: #26302b;
  --muted: #5b6861;
  --line: #b9c4bd;
  --accent: #1e3fff;
  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(13, 18, 16, 0.06);
  padding: 0.12em 0.32em;
  border-radius: 2px;
}

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

/* Header */

.site-header {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Shared page shell */

.page,
.doc-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Home hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.lede {
  max-width: 48ch;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.text-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.text-link:hover {
  color: var(--accent);
}

/* Box net drawing */

.hero-figure {
  min-width: 0;
  margin: 0;
  align-self: center;
}

.net {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}

.net-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

.net-fold {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  opacity: 0;
  animation: fade 0.7s ease 1.1s forwards;
}

.net-dim {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0;
  animation: fade 0.7s ease 1.4s forwards;
}

.net-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fade 0.7s ease 1.55s forwards;
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 540px;
  margin: 20px 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

/* Specs */

.specs {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.spec {
  padding: 0 clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.spec:first-child {
  padding-left: 0;
  border-left: 0;
}

.spec dt {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec dd {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

/* Statement */

.statement {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  padding: clamp(56px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.statement p:first-child {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.statement p:last-child {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 32px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 56px;
}

.brand--footer {
  color: var(--paper);
}

.brand--footer:hover {
  color: #fff;
}

.footer-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(233, 237, 234, 0.66);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.footer-nav a {
  color: rgba(233, 237, 234, 0.8);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(233, 237, 234, 0.16);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: rgba(233, 237, 234, 0.5);
}

/* Legal documents */

.doc-page {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.doc-header {
  padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.doc-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.doc-meta {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.doc-toc {
  position: sticky;
  top: 32px;
}

.toc-title {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-toc ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.doc-toc li {
  counter-increment: toc;
  font-size: 0.9rem;
  line-height: 1.35;
}

.doc-toc a {
  display: flex;
  gap: 8px;
  color: var(--ink-2);
  text-decoration: none;
}

.doc-toc a::before {
  content: counter(toc, decimal-leading-zero);
  padding-top: 0.18em;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}

.doc-toc a:hover {
  color: var(--accent);
}

.toc-contact {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.toc-contact a {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

.prose {
  max-width: 72ch;
  padding-bottom: 40px;
}

.summary {
  margin: 0 0 40px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
}

.summary p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.summary p + p {
  margin-top: 8px;
}

.prose section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.prose section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--ink-2);
}

.prose li {
  margin: 6px 0;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

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

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

.contact-block {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
}

.contact-block p {
  margin: 0;
}

.contact-block p + p {
  margin-top: 6px;
}

.contact-block a {
  font-family: var(--mono);
  font-size: 0.84rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-figure {
    max-width: 520px;
  }

  .spec-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .spec {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .spec:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .doc-toc {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .doc-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .doc-toc a::before {
    display: none;
  }

  .toc-contact {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 18px 20px;
  }

  .site-nav {
    gap: 18px;
  }

  .page,
  .doc-page {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .actions {
    gap: 16px;
  }

  .statement p:first-child {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .footer-inner {
    padding: 40px 20px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .doc-header {
    padding-top: 44px;
  }

  .summary {
    padding: 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .net-outline {
    stroke-dashoffset: 0;
  }

  .net-fold,
  .net-dim,
  .net-label {
    opacity: 1;
  }
}

@media print {
  .site-header,
  .site-footer,
  .doc-toc,
  .actions,
  .status {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .doc-page {
    max-width: none;
    padding: 0;
  }

  .doc-header {
    padding-top: 0;
  }

  .doc-layout {
    display: block;
  }

  .prose {
    max-width: none;
  }

  .prose section {
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
