/* =========================================================
   prints16tb — shared design system
   Clean & light · Apple-ish · warm orange accent
   ========================================================= */

:root {
  /* Surfaces — warm off-whites */
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f5f3ef;
  --surface-3: #efece6;

  /* Lines */
  --line: #e7e3db;
  --line-strong: #d9d4ca;

  /* Ink — warm near-blacks */
  --text: #1b1916;
  --text-2: #4a463f;
  --muted: #807a70;
  --faint: #a8a297;

  /* Accent — refined brand orange */
  --accent: #ff7d1a;
  --accent-bright: #ff8a00;
  --accent-ink: #c1500a;      /* readable orange for text/links on white */
  --accent-deep: #a8430a;
  --accent-soft: #fff3e8;
  --accent-soft-2: #ffe8d4;
  --on-accent: #2a1607;        /* dark ink that sits on bright orange */

  /* WhatsApp */
  --wa: #25d366;
  --wa-deep: #128c4b;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — soft, low opacity */
  --sh-sm: 0 1px 2px rgba(31, 26, 18, 0.05), 0 1px 1px rgba(31, 26, 18, 0.04);
  --sh-md: 0 4px 14px rgba(31, 26, 18, 0.06), 0 2px 4px rgba(31, 26, 18, 0.04);
  --sh-lg: 0 24px 60px rgba(31, 26, 18, 0.10), 0 8px 20px rgba(31, 26, 18, 0.05);
  --sh-accent: 0 12px 30px rgba(255, 125, 26, 0.28);

  --maxw: 1140px;
  --maxw-prose: 760px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 660px;
  margin: 0 0 clamp(36px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.section-head p {
  font-size: 1.18rem;
  color: var(--muted);
}

.lede {
  font-size: 1.2rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, filter 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-accent);
}

.btn.primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 36px rgba(255, 125, 26, 0.34);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--sh-sm);
}

.btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  padding-left: 12px;
  padding-right: 12px;
}

.btn.ghost:hover {
  color: var(--accent-ink);
}

.btn.lg {
  --pad-y: 16px;
  --pad-x: 28px;
  font-size: 17px;
}

.btn.block {
  width: 100%;
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

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

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

/* layered-square logo mark */
.mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
}

.mark span {
  position: absolute;
  border-radius: 6px;
}

.mark span:nth-child(1) {
  inset: 4px 0 0 4px;
  background: var(--accent-soft-2);
  border: 1.5px solid var(--accent);
}

.mark span:nth-child(2) {
  inset: 0 4px 4px 0;
  background: var(--accent);
  box-shadow: var(--sh-sm);
}

.brand .tld {
  color: var(--accent-ink);
}

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

.nav-links a {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a.active {
  color: var(--accent-ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
}

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

/* ---------- Footer ---------- */
.foot {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.foot-brand .brand {
  margin-bottom: 16px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 15px;
  max-width: 280px;
}

.foot-col h4 {
  font-size: 12.5px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.foot-col a,
.foot-col span {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.foot-col a:hover {
  color: var(--accent-ink);
}

.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13.5px;
}

.foot-bottom .mono {
  font-family: var(--mono);
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}

.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.mono {
  font-family: var(--mono);
}

/* ---------- Cards ---------- */
.card-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

/* reveal on load / scroll (only hidden once JS arms it) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
