/* DeskForeman — shared design system.
   One stylesheet for every public page. Edit here, not in per-page <style> blocks. */

/* ---------- Typefaces (self-hosted; no third-party request) ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #101214;
  --ink-soft: #1a1e22;
  --ink-line: #2a3036;
  --text: #14171a;
  --muted: #5f666e;
  --muted-soft: #838b94;
  --paper: #ffffff;
  --sand: #f6f4f0;
  --sand-deep: #edeae3;
  --line: #e4e0d9;
  --line-soft: #efece6;

  --clay: #c0512b;
  --clay-deep: #a34120;
  --clay-tint: #fbf0eb;
  --pine: #1f5140;
  --pine-tint: #eaf2ee;
  --brass: #8a6a17;
  --brass-tint: #faf3df;

  --on-dark: #f4f2ee;
  --on-dark-muted: #9aa3ab;
  --on-dark-line: rgba(255, 255, 255, 0.11);

  --display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 20, 0.05), 0 4px 12px rgba(16, 18, 20, 0.04);
  --shadow: 0 2px 4px rgba(16, 18, 20, 0.04), 0 12px 32px rgba(16, 18, 20, 0.07);
  --shadow-lg: 0 4px 8px rgba(16, 18, 20, 0.05), 0 28px 64px rgba(16, 18, 20, 0.12);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  font-feature-settings: "cv05" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.55rem, 5vw, 4.1rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  letter-spacing: -0.032em;
}
h3 {
  font-size: 1.14rem;
  letter-spacing: -0.017em;
}
h4 {
  font-size: 1rem;
  letter-spacing: -0.012em;
}
strong,
b {
  font-weight: 600;
}
::selection {
  background: #f4d9cd;
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}
section {
  padding: clamp(72px, 9vw, 124px) 0;
}
.sand {
  background: var(--sand);
}
.dark {
  background: var(--ink);
  color: var(--on-dark);
}
.dark h1,
.dark h2,
.dark h3 {
  color: var(--on-dark);
}
.hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

/* Faint blueprint grid, for dark panels only. */
.gridlines {
  position: relative;
  isolation: isolate;
}
.gridlines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--clay);
  font-family: var(--body);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dark .eyebrow {
  color: #e08a5f;
}
.lede {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}
.dark .lede {
  color: var(--on-dark-muted);
}
.section-head {
  max-width: 46rem;
}
.fine {
  color: var(--muted-soft);
  font-size: 0.87rem;
  line-height: 1.55;
}
.dark .fine {
  color: #78828c;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  flex: none;
  width: 15px;
  height: 15px;
}
.btn .label-short {
  display: none;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clay-deep);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: #cfc9bf;
  background: var(--sand);
}
.dark .btn-ghost {
  border-color: var(--on-dark-line);
  background: transparent;
  color: var(--on-dark);
}
.dark .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.textlink {
  color: var(--clay);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 3px;
  border-bottom: 1px solid rgba(192, 81, 43, 0.32);
}
.textlink:hover {
  border-bottom-color: var(--clay);
}

/* ---------- SMS signup CTA (the primary call to action) ----------
   Styled as a message being composed to the signup line. Tapping it opens the
   builder's SMS app with the draft prefilled; on desktop the number still reads. */
.cta-stack {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-top: 34px;
}
.sms-cta {
  display: block;
  width: min(100%, 430px);
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: left;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.sms-cta:hover {
  border-color: #cbc4b9;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.sms-cta-to {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.86rem;
}
.sms-cta-to svg {
  align-self: center;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--clay);
}
.sms-cta-number {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.sms-cta-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
}
.sms-cta-draft {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.94rem;
}
.sms-cta-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  transition: background-color 0.16s ease;
}
.sms-cta-send svg {
  width: 15px;
  height: 15px;
}
.sms-cta:hover .sms-cta-send {
  background: var(--clay-deep);
}
.sms-cta-hint {
  display: block;
  margin-top: 11px;
  padding: 0 2px;
  color: var(--muted-soft);
  font-size: 0.82rem;
}
.dark .sms-cta {
  border-color: var(--on-dark-line);
  background: rgba(255, 255, 255, 0.05);
}
.dark .sms-cta:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.dark .sms-cta-to {
  border-bottom-color: var(--on-dark-line);
  color: var(--on-dark-muted);
}
.dark .sms-cta-to svg {
  color: #e08a5f;
}
.dark .sms-cta-number {
  color: var(--on-dark);
}
.dark .sms-cta-compose {
  border-color: var(--on-dark-line);
  background: rgba(255, 255, 255, 0.06);
}
.dark .sms-cta-draft {
  color: var(--on-dark);
}
.dark .sms-cta-hint {
  color: #78828c;
}

/* Quiet second row under the SMS CTA: web form and demo links. */
.subactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.subactions a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #cbc4b9;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.16s ease;
}
.subactions a:hover {
  text-decoration-color: var(--muted);
}
.dark .subactions {
  color: var(--on-dark-muted);
}
.dark .subactions a {
  color: var(--on-dark);
  text-decoration-color: rgba(255, 255, 255, 0.32);
}
.dark .subactions a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Centered variant for closing sections. */
.closing .cta-stack {
  justify-items: center;
}
.closing .subactions {
  justify-content: center;
}

/* ---------- Exclusion chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.dark .chip,
.excluded .chip {
  border-color: var(--on-dark-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark-muted);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links .btn {
  color: #fff;
}

/* Logo lockup: SVG mark + live text wordmark. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo svg {
  flex: none;
  width: 30px;
  height: 30px;
}
.logo span {
  font-family: var(--display);
  font-size: 1.19rem;
  font-weight: 600;
  letter-spacing: -0.033em;
}
.dark .logo,
footer .logo {
  color: var(--on-dark);
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 90;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 14px;
}

/* ---------- Surfaces ---------- */
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.dark .card {
  border-color: var(--on-dark-line);
  background: rgba(255, 255, 255, 0.035);
}
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.dark .card p {
  color: var(--on-dark-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.tag-live {
  background: var(--pine-tint);
  color: var(--pine);
}
.tag-manual {
  background: var(--brass-tint);
  color: var(--brass);
}
.tag-off {
  background: var(--sand-deep);
  color: var(--muted);
}

/* ---------- Message bubbles (the product artifact) ---------- */
.thread {
  display: grid;
  gap: 9px;
}
.thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.thread-who {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.thread-meta {
  color: var(--muted-soft);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bubble {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 17px;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-line;
}
.bubble b {
  font-weight: 600;
}
.bubble-in {
  justify-self: start;
  border-bottom-left-radius: 5px;
  background: var(--sand-deep);
  color: var(--text);
}
.bubble-out {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: var(--ink);
  color: var(--on-dark);
}
.bubble-brief {
  justify-self: start;
  max-width: 100%;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  background: var(--paper);
  color: var(--text);
}
.bubble-you {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: var(--pine);
  color: #eef5f1;
}
.dark .bubble-in {
  background: rgba(255, 255, 255, 0.09);
  color: var(--on-dark);
}
.dark .bubble-brief {
  border-color: var(--on-dark-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
}
.dark .bubble-out {
  background: var(--on-dark);
  color: var(--ink);
}
.bubble-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
.receipt {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  border-radius: var(--r);
  background: var(--pine-tint);
  color: var(--pine);
  font-size: 0.84rem;
  font-weight: 500;
}
.receipt svg {
  flex: none;
  margin-top: 2px;
  width: 14px;
  height: 14px;
}
.dark .receipt {
  background: rgba(87, 178, 141, 0.14);
  color: #8fd6b4;
}

/* ---------- Footer ---------- */
footer {
  padding: 56px 0 44px;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--on-dark-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--on-dark);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-line);
  color: #6f7881;
  font-size: 0.84rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap,
  .wrap-narrow {
    width: calc(100% - 36px);
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .nav .btn .label-full {
    display: none;
  }
  .nav .btn .label-short {
    display: inline;
  }
  .actions .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
