/* ============================================================
   ArcHive — marketing site
   Brand tokens mirror the app design system (dark-mode surface).
   Honey yellow is reserved for: primary CTA, active states,
   progress fill, completion. Never decorative.
   ============================================================ */

:root {
  --black: #050505;
  --charcoal: #1c1c1e;
  --dark-gray: #2c2c2e;
  --medium-gray: #8e8e93;
  --light-gray: #e5e5ea;
  --off-white: #f8f8f6;
  --white: #ffffff;
  --honey: #ffe58a;
  --wing-gray: #d8d8d8;

  --bg: var(--black);
  --surface: var(--charcoal);
  --border: var(--dark-gray);
  --text: var(--off-white);
  --text-secondary: var(--medium-gray);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  touch-action: manipulation;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--honey);
  color: var(--black);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--honey);
  color: var(--black);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

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

.brand img {
  width: 30px;
  height: 30px;
}

.brand .hive {
  color: var(--honey);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.18s ease-out, background-color 0.18s ease-out;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--charcoal);
}

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

.nav-cta {
  margin-left: 8px;
}

@media (max-width: 720px) {
  .nav-links .hide-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-cta {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
    margin-left: 0;
  }
  .nav-inner {
    height: 60px;
    gap: 12px;
  }
  .brand {
    font-size: 17px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .nav-links a:not(.btn) {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), background-color 0.18s ease-out,
    border-color 0.18s ease-out, color 0.18s ease-out;
}

.btn:active {
  transform: scale(0.97);
}

.btn-honey {
  background: var(--honey);
  color: var(--black);
}

.btn-honey:hover {
  background: #ffedaa;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--dark-gray);
}

.btn-ghost:hover {
  border-color: var(--medium-gray);
  background: var(--charcoal);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 15px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}

.hero-comb {
  position: absolute;
  top: -40px;
  right: -140px;
  width: 640px;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}

.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1 .becoming {
  color: var(--honey);
}

.hero .lede {
  margin: 24px 0 0;
  max-width: 33em;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.65;
}

.hero .lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 940px) {
  .hero {
    padding: 64px 0 56px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-comb {
    width: 480px;
    right: -200px;
  }
}

/* ---------- Phone frame (real app screenshots) ---------- */

.phone-col {
  display: flex;
  justify-content: center;
}

.phone {
  width: 320px;
  max-width: 100%;
  border-radius: 48px;
  border: 1px solid var(--dark-gray);
  background: #101012;
  padding: 12px;
  flex: none;
}

.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 16px 0 0;
}

/* Philosophy */

.philosophy {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--charcoal);
}

.philosophy blockquote {
  margin: 0 auto;
  max-width: 21em;
  text-align: center;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.philosophy .dim {
  color: var(--medium-gray);
}

.philosophy .lift {
  color: var(--honey);
}

.philosophy figcaption {
  margin-top: 28px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--dark-gray);
  background: var(--black);
  color: var(--honey);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.2s ease-out;
}

.feature:hover {
  border-color: #3f3f42;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--black);
  border: 1px solid var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--wing-gray);
}

.feature .icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

@media (max-width: 940px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Buzz */

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

.buzz-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.buzz-badge .bee {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buzz-badge .bee img {
  width: 36px;
  height: 36px;
}

.buzz-copy p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 16px 0 0;
}

.buzz-copy p strong {
  color: var(--text);
  font-weight: 600;
}

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

.buzz-points li {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.buzz-points .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--dark-gray);
  color: var(--honey);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.buzz-points .tick svg {
  width: 11px;
  height: 11px;
}

.buzz-points strong {
  color: var(--text);
  font-weight: 600;
}

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

/* Privacy */

.privacy {
  border-top: 1px solid var(--border);
  background: var(--charcoal);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.privacy-card {
  background: var(--black);
  border: 1px solid var(--dark-gray);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.privacy-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.privacy-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.privacy-foot {
  margin-top: 32px;
  color: var(--text-secondary);
  font-size: 14px;
}

.privacy-foot a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 3px;
}

@media (max-width: 940px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* Final CTA */

.cta-final {
  text-align: center;
}

.cta-final .mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
}

.cta-final h2 {
  max-width: 15em;
  margin: 0 auto;
}

.cta-final p {
  max-width: 36em;
  margin: 18px auto 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.cta-final .hero-actions {
  justify-content: center;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  font-size: 17px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin: 12px 0 0;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
}

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

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

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

.legal-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}

.legal-hero .lede {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 38em;
  margin: 16px 0 0;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.crumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs .sep {
  opacity: 0.5;
}

.legal-cards {
  padding: 64px 0 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.legal-card {
  display: block;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  text-decoration: none;
  transition: border-color 0.2s ease-out;
}

.legal-card:hover {
  border-color: #3f3f42;
}

.legal-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--black);
  border: 1px solid var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wing-gray);
  margin-bottom: 20px;
}

.legal-card .icon svg {
  width: 21px;
  height: 21px;
}

.legal-card h2 {
  font-size: 21px;
  margin: 0 0 8px;
}

.legal-card p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15px;
}

.legal-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

.legal-card .go svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease-out);
}

.legal-card:hover .go svg {
  transform: translateX(3px);
}

@media (max-width: 720px) {
  .legal-cards {
    grid-template-columns: 1fr;
  }
}

.legal-note {
  margin: -48px auto 96px;
  max-width: var(--maxw);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Legal document body */

.doc {
  padding: 56px 0 96px;
}

.doc-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc-meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 10px 0 0;
}

.doc h1 {
  font-size: clamp(32px, 4.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}

.doc h2 {
  font-size: 22px;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}

/* TOC anchor targets: land the section a third down the viewport,
   clear of the sticky nav, so the text reads centered after the jump */
.doc h2[id] {
  scroll-margin-top: max(96px, 33vh);
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 30px 0 10px;
}

.doc p,
.doc li {
  color: #c9c9cd;
  font-size: 15.5px;
  line-height: 1.75;
}

.doc p strong,
.doc li strong {
  color: var(--text);
}

.doc ul {
  padding-left: 22px;
  margin: 12px 0;
}

.doc li {
  margin: 8px 0;
}

.doc a {
  color: var(--text);
  text-underline-offset: 3px;
}

.doc-toc {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0 8px;
}

.doc-toc h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.doc-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 40px;
}

.doc-toc li {
  margin: 5px 0;
  font-size: 14.5px;
  break-inside: avoid;
}

.doc-toc a {
  color: #c9c9cd;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .doc-toc ol {
    columns: 1;
  }
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.doc th,
.doc td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: #c9c9cd;
  min-width: 120px;
}

.doc th {
  background: var(--charcoal);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doc td strong {
  color: var(--text);
}

.doc .summary {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-left: 4px solid var(--honey);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 36px 0 8px;
}

.doc .summary p {
  margin: 0;
  font-size: 15px;
}

.doc .contact-block {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}

.doc .contact-block p {
  margin: 4px 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .legal-card .go svg {
    transition: none;
  }
}
