/* ==========================================================================
   Destech LLC — destech.us
   One stylesheet, no dependencies, no web fonts. Edit freely.
   Palette taken from the Destech logo: orange mark on charcoal.

   Two oranges on purpose:
     --brand   #FF6B00  the true logo orange. Graphics, and text on dark only —
                        it is 2.9:1 on white, which fails accessibility for text.
     --accent  #C24E00  a deepened brand orange for links, buttons and small
                        text on white. 4.8:1, passes WCAG AA.
   ========================================================================== */

:root {
  --ink: #101115;         /* logo tile black */
  --ink-2: #2a2e36;
  --muted: #5c626e;
  --line: #e2e3e7;
  --line-soft: #eeeff2;
  --bg: #ffffff;
  --alt: #f7f7f9;
  --brand: #ff6b00;       /* logo orange — graphics + text on dark */
  --brand-deep: #f25f02;  /* lower stop of the logo gradient */
  --accent: #c24e00;      /* AA-safe orange for text/links on white */
  --accent-dark: #9c3e00;
  --accent-soft: #fff2e8;
  --wrap: 1100px;
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --wordmark: Arial, "Helvetica Neue", Helvetica, sans-serif; /* matches the logo file */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.021em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* Unfilled [PLACEHOLDER] markers ----------------------------------------- */
.ph {
  background: #fff3cd;
  border-bottom: 1px dashed #b48a00;
  border-radius: 3px;
  color: #6b5200;
  font-size: 0.94em;
  padding: 0 4px;
  white-space: nowrap;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  flex: none;
  display: block;
  border-radius: 6px;
}
.brand-name {
  font-family: var(--wordmark);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.005em;
  line-height: 1;
}
.wm-1 { color: var(--ink); }
.wm-2 { color: var(--brand-deep); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav > a {
  color: var(--ink-2);
  font-size: 0.945rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav > a:hover { color: var(--accent); }
.site-nav > a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 560;
}

/* Specificity matches ".site-nav > a" so the button keeps all four borders. */
.site-nav > a.btn-signin {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--ink);
  background: #fff;
  font-weight: 560;
}
.site-nav > a.btn-signin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 560;
  padding: 12px 22px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

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

.hero {
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.755rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.3rem);
  line-height: 1.06;
  max-width: 19ch;
}

.hero .lede {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 24px;
  max-width: 62ch;
}

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

.section { padding: 76px 0; }
.section.alt { background: var(--alt); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.section-intro { color: var(--muted); margin-top: 14px; }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: 20px; }
.prose p + p { margin-top: 18px; }
.prose p { color: var(--ink-2); }

/* Strip ------------------------------------------------------------------- */

.strip {
  background: var(--ink);
  color: #c3c6cf;
  padding: 22px 0;
  border-top: 3px solid var(--brand);
}
.strip p {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Cards ------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.card p { color: var(--muted); }

.card.is-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -18px rgba(16, 17, 21, 0.55);
}

.card-cta {
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 560;
  margin-top: auto;
  padding-top: 22px;
}
.card-cta::after { content: " \2192"; }

.ticks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.ticks li {
  color: var(--ink-2);
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
}
.ticks li + li { margin-top: 8px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

/* Points ------------------------------------------------------------------ */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}
.point h3 {
  font-size: 1.06rem;
  padding-top: 18px;
  border-top: 2px solid var(--accent);
  margin-bottom: 10px;
}
.point p { color: var(--muted); font-size: 0.97rem; }

/* Capabilities ------------------------------------------------------------ */

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.cap {
  display: flex;
  gap: 18px;
  background: #fff;
  padding: 28px 28px 30px;
}
.cap-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.cap h3 { font-size: 1.06rem; margin-bottom: 9px; }
.cap p { color: var(--muted); font-size: 0.97rem; }

/* Facts ------------------------------------------------------------------- */

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.fact {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fact dd { margin: 0; color: var(--ink); }

/* Contact ----------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h2 {
  font-size: 0.79rem;
  font-weight: 620;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.contact-card p { font-size: 1.02rem; }
.contact-card p + p { margin-top: 6px; }
.contact-card .muted { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.line-label { color: var(--muted); font-size: 0.92rem; margin-right: 6px; }

/* CTA --------------------------------------------------------------------- */

.cta {
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
  padding: 68px 0;
}
.cta h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.cta p { color: var(--ink-2); margin-top: 14px; max-width: 62ch; }
.cta .actions { margin-top: 28px; }
.cta .btn-ghost { border-color: #efd3bd; }

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

.site-footer {
  background: var(--ink);
  color: #9a9eaa;
  padding: 58px 0 0;
  margin-top: 0;
  border-top: 3px solid var(--brand);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 44px;
}
.footer-brand { max-width: 42ch; }
.footer-brand .wm-1 { color: #f4f4f6; }
.footer-brand .wm-2 { color: var(--brand); }  /* full-strength orange reads well on dark */
.footer-brand .mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.footer-brand p { margin-top: 14px; font-size: 0.93rem; line-height: 1.6; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 44px;
  align-content: start;
}
.footer-nav a {
  color: #d5d7dd;
  font-size: 0.93rem;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding-bottom: 26px;
}
.footer-legal p { font-size: 0.87rem; color: #868a96; }

/* Responsive -------------------------------------------------------------- */

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  html:not(.has-js) .site-nav { display: flex; position: static; padding: 0 0 16px; border: 0; }

  .header-inner { position: relative; }
  .site-nav > a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav > a[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--accent); }
  .site-nav > a.btn-signin {
    margin-top: 14px;
    padding: 11px 16px;
    text-align: center;
    justify-content: center;
  }

  .hero { padding: 60px 0 48px; }
  .hero h1 { max-width: none; }
  .section { padding: 56px 0; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .cta .actions { display: none; }
  body { font-size: 12pt; }
}
