:root {
  --bg: #f1f4f8;
  --paper: #ffffff;
  --ink: #0d1117;
  --muted: #64676c;
  --dim: #8d9095;
  --rule: #d1d4d8;
  --rule-soft: #e1e4e8;
  --accent: #1e50ff;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: "DM Sans", "Instrument Sans", sans-serif; font-variation-settings: "opsz" 40; letter-spacing: -0.022em; line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(32px, 5vw, 54px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 240, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav .mark { display: inline-flex; align-items: center; }
.nav .logo { height: 20px; width: auto; flex: none; display: block; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav .btn-sm {
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 6px; transition: opacity .15s ease;
}
.nav .btn-sm:hover { opacity: .85; }

/* ---------- section furniture ---------- */
section { padding: 130px 0; position: relative; }
.rule-top { border-top: 1px solid var(--rule); }

.marker {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 30px;
}
.marker .n { color: var(--accent); font-variant-numeric: tabular-nums; }

/* editorial two-column section head */
.head-2col {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: end;
  padding-bottom: 44px; margin-bottom: 56px; border-bottom: 1px solid var(--rule);
}
.head-2col .lead { color: var(--muted); font-size: 17px; }

.lead { color: var(--muted); font-size: 17px; max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 6px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 90px; }
.hero h1 { font-size: clamp(46px, 8.2vw, 92px); margin-bottom: 32px; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-foot {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end;
  padding-top: 40px; border-top: 1px solid var(--rule);
}
.hero .lead { font-size: 19px; }

/* ---------- client strip ---------- */
.strip { padding: 40px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.strip .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.strip li a { font-family: "DM Sans", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; color: var(--muted); transition: color .15s ease; }
.strip li a:hover { color: var(--accent); }

/* ---------- capability rows (rule-based, not cards) ---------- */
.cap { border-top: 1px solid var(--rule); }
.cap-row {
  display: grid; grid-template-columns: 60px 1.1fr 1.4fr; gap: 40px;
  padding: 44px 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.cap-row .idx { font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 4px; }
.cap-row h3 { font-size: 26px; }
.cap-row .body p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.cap-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cap-row ul li {
  font-size: 13px; color: var(--muted); background: var(--paper);
  border: 1px solid var(--rule-soft); border-radius: 100px; padding: 5px 13px;
}

/* ---------- product cards ---------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.pcard { background: var(--paper); padding: 34px 30px; transition: background .18s ease; display: block; }
a.pcard:hover { background: #fbfaf8; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.pcard p { color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 100px; white-space: nowrap;
  border: 1px solid var(--rule); color: var(--dim); background: var(--bg);
}
.tag.live { color: #15803d; border-color: #b6e0c2; background: #eaf7ee; }
.tag.soon { color: var(--accent); border-color: #cfc4fb; background: #f0ecff; }

/* ---------- work ---------- */
.work { border-top: 1px solid var(--rule); }
.work-row {
  display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 30px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--rule);
  transition: padding .2s ease;
}
.work-row:hover { padding-left: 14px; }
.work-row .name { font-family: "DM Sans", sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.work-row .what { color: var(--muted); font-size: 16px; }
.work-row .arrow { color: var(--dim); font-size: 20px; transition: color .2s ease, transform .2s ease; }
.work-row:hover .name { color: var(--accent); }
.work-row:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.step { background: var(--paper); padding: 34px 30px; }
.step .num { font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative;
  font-family: "DM Sans", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--dim); transition: color .2s ease;
}
.faq details[open] summary::after { content: "\2212"; color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 20% 30px 0; color: var(--muted); font-size: 16px; }

/* ---------- cta ---------- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 10px; padding: 80px 56px; }
.cta-band h2 { margin-bottom: 18px; max-width: 18ch; }
.cta-band .lead { color: #a8a8b2; margin-bottom: 34px; }
.cta-band .btn { background: var(--bg); color: var(--ink); }
.cta-band .btn.ghost { background: transparent; color: var(--bg); border-color: #3a3a42; }
.cta-band .btn.ghost:hover { border-color: var(--bg); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.contact-card { background: var(--paper); padding: 34px 30px; }
.contact-card .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.contact-card .value { font-family: "DM Sans", sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; word-break: break-word; }
.contact-card .value a:hover { color: var(--accent); }
.contact-card address { font-style: normal; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--rule); padding: 70px 0 40px; position: relative; overflow: hidden; }
footer .wrap { position: relative; z-index: 1; }

/* Oversized watermark lockup bleeding off both edges, on graph paper.
   The lockup is 10.53:1, so bleeding it wide keeps it a band rather than a slab. */
.foot-art { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.foot-mesh {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 34px 34px; opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
          mask-image: linear-gradient(to bottom, transparent, #000 40%);
}
.foot-mark {
  /* anchored to the same left edge as the real logo above it, bleeding off the
     right and cropped by the footer's bottom */
  position: absolute; left: 32px; bottom: -6%; width: 165%;
  aspect-ratio: 1348 / 128;
  background: url("/logo-lockup.svg") left center / contain no-repeat;
  opacity: 0.075;
}
.foot-grain {
  position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
/* A 10.5:1 lockup cannot fill a stacked mobile footer — it lands at ~9% of the
   height and reads as a mistake. Use the square mark instead. */
/* Paper Shaders grainGradient. Sits above the grid and watermark; the CSS grain
   below is removed once this mounts so the two don't stack. */
.foot-shader { position: absolute; inset: 0; mix-blend-mode: multiply; }
.foot-shader canvas { display: block; width: 100%; height: 100%; }
footer.has-shader .foot-grain { display: none; }

@media (max-width: 760px) {
  .foot-mark {
    left: 18px; bottom: -7%; width: auto; height: 44%; aspect-ratio: 1 / 1;
    background-image: url("/logo-mark.svg");
    background-position: left bottom;
  }
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.foot-brand .mark { display: inline-flex; align-items: center; margin-bottom: 0; }
.foot-brand .logo { height: 26px; width: auto; flex: none; display: block; margin-bottom: 18px; }
.foot-brand address { font-style: normal; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 32ch; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 18px; }
.foot-col ul { list-style: none; display: grid; gap: 11px; }
.foot-col a { color: var(--muted); font-size: 15px; }
.foot-col a:hover { color: var(--accent); }
.foot-legal {
  border-top: 1px solid var(--rule); padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  color: var(--dim); font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .wrap, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .head-2col, .hero-foot { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .grid-3, .steps, .foot-grid, .contact-grid { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 16px; padding: 34px 0; }
  .cap-row .idx { padding-top: 0; }
  .nav-links { display: none; }
  .work-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .work-row .what { grid-column: 1 / -1; }
  .cta-band { padding: 48px 26px; }
  .faq .answer { padding-right: 0; }
  .hero { padding: 70px 0 60px; }
}

/* ---------- long-form documents (privacy / terms / support) ---------- */
.doc-hero { padding: 100px 0 40px; }
.doc-hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 24px; max-width: 18ch; }
.doc-hero .lead { font-size: 19px; }
.doc-hero .updated {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
}
.doc { padding: 60px 0 120px; }
.prose { max-width: 68ch; }
.prose h2 {
  font-size: 26px; letter-spacing: -0.025em; margin: 56px 0 16px;
  padding-top: 26px; border-top: 1px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.prose ul { list-style: none; margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul li {
  color: var(--muted); font-size: 17px; padding-left: 22px; position: relative;
}
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .doc-hero { padding: 60px 0 30px; }
  .doc { padding: 40px 0 80px; }
  .prose h2 { font-size: 22px; margin-top: 40px; }
}
