/*
 * DrumLatch premium refresh.
 * Loaded after the main stylesheet. Warm graphite + brass palette drawn from
 * the hero photography, a single grotesque typeface, a full-bleed hero, more air,
 * fewer rules, and consistent focus states.
 */

:root {
  --background: 40 23% 97%;
  --foreground: 30 8% 9%;
  --card: 40 30% 99%;
  --card-foreground: 30 8% 9%;
  --popover: 40 30% 99%;
  --popover-foreground: 30 8% 9%;
  --primary: 30 7% 9%;
  --primary-foreground: 40 25% 96%;
  --secondary: 38 16% 93%;
  --secondary-foreground: 30 8% 12%;
  --muted: 38 14% 93%;
  --muted-foreground: 30 5% 37%;
  --accent: 31 66% 37%;
  --accent-foreground: 0 0% 100%;
  --border: 35 14% 87%;
  --input: 35 14% 84%;
  --ring: 31 66% 40%;
  --radius: .5rem;
  --surface: 38 20% 94.5%;
  --surface-strong: 36 16% 90%;
  --hairline: 35 14% 86%;
  --signal: 31 66% 37%;
  --signal-glow: 32 70% 43%;
  --gradient-graphite: linear-gradient(180deg, hsl(30 7% 11%) 0%, hsl(30 8% 5%) 100%);
  --gradient-steel: linear-gradient(135deg, hsl(30 5% 22%) 0%, hsl(30 7% 10%) 100%);
  --gradient-signal: linear-gradient(135deg, hsl(31 66% 37%), hsl(33 72% 48%));
  --shadow-precision: 0 1px 0 0 hsl(0 0% 100% / .04) inset, 0 30px 60px -24px hsl(30 10% 4% / .35);
  --shadow-soft: 0 1px 2px hsl(30 10% 10% / .04), 0 12px 32px -14px hsl(30 10% 10% / .14);
  --shadow-signal: 0 1px 0 0 hsl(0 0% 100% / .14) inset, 0 10px 28px -14px hsl(31 66% 25% / .55);
  --sidebar-background: 38 20% 95%;
  --sidebar-foreground: 30 8% 16%;
  --sidebar-primary: 30 7% 9%;
  --sidebar-primary-foreground: 40 25% 96%;
  --sidebar-accent: 36 16% 90%;
  --sidebar-accent-foreground: 30 7% 9%;
  --sidebar-border: 35 14% 86%;
  --sidebar-ring: 31 66% 40%;
}

.dark {
  --background: 30 8% 6%;
  --foreground: 40 25% 96%;
  --card: 30 7% 9%;
  --card-foreground: 40 25% 96%;
  --popover: 30 7% 9%;
  --popover-foreground: 40 25% 96%;
  --primary: 40 25% 96%;
  --primary-foreground: 30 8% 6%;
  --secondary: 30 6% 14%;
  --secondary-foreground: 40 25% 96%;
  --muted: 30 6% 14%;
  --muted-foreground: 35 8% 64%;
  --accent: 33 74% 55%;
  --accent-foreground: 30 8% 7%;
  --border: 30 6% 17%;
  --input: 30 6% 17%;
  --ring: 33 74% 55%;
  --surface: 30 7% 10%;
  --surface-strong: 30 6% 13%;
  --hairline: 30 6% 18%;
  --signal: 33 74% 55%;
  --signal-glow: 34 80% 62%;
}

/* Dark marketing bands (FAQ, pilot request, footer): brighter brass, dark text on brass. */
section.bg-primary,
footer.bg-primary,
.dl-hero {
  --signal: 33 74% 55%;
  --signal-glow: 34 80% 63%;
  --accent-foreground: 30 8% 7%;
  --ring: 33 74% 58%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: hsl(33 74% 55% / .28);
}

/* ---------- Typography ---------- */

/*
 * One sturdy, slightly industrial grotesque (Archivo) for everything, instead
 * of the airy sans + editorial serif + tiny spaced-out monospace mix.
 * Headings use a narrower width and real weight; small labels are set in
 * plain sentence case; numbers stay aligned with tabular figures.
 */
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format("woff2");
}

:root {
  --font-sans: Archivo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html,
body,
:host {
  font-family: var(--font-sans);
  font-feature-settings: normal;
}

body {
  font-size: 16px;
  letter-spacing: 0;
}

p {
  line-height: 1.6;
}

/* Headings: condensed-ish, solid weight, tight but not crushed. */
.display,
.display.font-semibold,
.display.font-bold,
.font-display,
h1, h2, h3 {
  font-family: var(--font-sans);
  font-stretch: 88%;
  font-weight: 650;
  font-style: normal;
  letter-spacing: -.022em;
}

.display,
h1, h2 {
  line-height: 1.04;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -.01em;
}

.font-display.font-semibold { font-weight: 650; }

/* Accent words in headlines: colour only, no decorative italic. */
.display em,
h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: inherit;
}

/* Former monospace labels become plain sans labels with aligned numbers. */
.font-mono {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

code, kbd, samp, pre {
  font-family: IBM Plex Mono, ui-monospace, monospace;
}

/* Section eyebrows and small caps labels: sentence case, readable size. */
.eyebrow,
.font-mono.uppercase,
.uppercase[class*="tracking-[0."] {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 560;
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 640px) {
  .eyebrow { font-size: 13.5px; letter-spacing: 0; }
}

.tabular-nums,
td, th {
  font-variant-numeric: tabular-nums;
}

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

header.fixed.inset-x-0.top-0.z-50 {
  background-color: hsl(var(--background) / .82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: hsl(var(--hairline) / .7);
}

/* ---------- Buttons & focus ---------- */

.dl-cta {
  height: 3.25rem;
  padding-left: 1.75rem;
  padding-right: 1.5rem;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: -.005em;
}

.dl-cta-arrow {
  transition: transform .35s var(--ease-precision);
}

.group:hover .dl-cta-arrow,
.group:focus-visible .dl-cta-arrow {
  transform: translateX(3px);
}

a:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
  border-radius: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid hsl(var(--ring) / .7);
  outline-offset: 1px;
}

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

.dl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 980px);
  padding-top: 4rem;
  background: hsl(30 8% 5%);
  color: hsl(40 25% 96%);
}

.dl-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.dl-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform-origin: 50% 40%;
  animation: dl-hero-zoom 2.8s var(--ease-precision) both;
}

.dl-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, hsl(30 8% 5% / .35) 0%, hsl(30 8% 5% / 0) 30%),
    linear-gradient(0deg, hsl(30 8% 5% / .96) 0%, hsl(30 8% 5% / .72) 32%, hsl(30 8% 5% / 0) 68%);
}

.dl-hero-inner {
  padding-top: 6rem;
  padding-bottom: 3.5rem;
}

.dl-hero-inner > * {
  animation: dl-rise 1s var(--ease-precision) both;
}
.dl-hero-inner > :nth-child(2) { animation-delay: .08s; }
.dl-hero-inner > :nth-child(3) { animation-delay: .16s; }
.dl-hero-inner > :nth-child(4) { animation-delay: .24s; }
.dl-hero-inner > :nth-child(5) { animation-delay: .4s; }

.dl-hero .eyebrow {
  color: hsl(40 20% 92% / .62);
}

.dl-hero h1 {
  margin-top: 1.25rem;
  max-width: 14ch;
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  line-height: .98;
  text-wrap: balance;
}

.dl-hero h1 em {
  color: hsl(34 70% 66%);
}

.dl-hero-lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: hsl(40 20% 92% / .72);
}

.dl-hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.75rem;
}

.dl-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  font-size: .875rem;
  font-weight: 600;
  color: hsl(40 25% 96% / .86);
  text-decoration: underline;
  text-decoration-color: hsl(40 25% 96% / .3);
  text-underline-offset: 6px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.dl-link:hover {
  color: hsl(40 25% 98%);
  text-decoration-color: hsl(34 70% 66%);
}

.dl-trust {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(40 25% 96% / .12);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  list-style: none;
  padding-left: 0;
  font-size: 14px;
  color: hsl(40 20% 92% / .6);
}

.dl-trust strong {
  font-weight: 500;
  color: hsl(40 25% 96% / .88);
}

@media (min-width: 768px) {
  .dl-hero-inner { padding-bottom: 4.5rem; }
  .dl-hero-lede { font-size: 1.1875rem; }
}

@keyframes dl-hero-zoom {
  from { transform: scale(1.07); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes dl-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Home page rhythm: more space, fewer rules ---------- */

.dl-home > section {
  border-top-color: transparent;
  border-bottom-color: transparent;
}

@media (min-width: 768px) {
  .dl-home > section.md\:py-20 { padding-top: 7.5rem; padding-bottom: 7.5rem; }
  .dl-home > section.md\:py-28 { padding-top: 8.5rem; padding-bottom: 8.5rem; }
}

@media (min-width: 1024px) {
  .dl-home > section.md\:py-20 { padding-top: 9rem; padding-bottom: 9rem; }
  .dl-home > section.md\:py-28 { padding-top: 10rem; padding-bottom: 10rem; }
}

.dl-media {
  box-shadow: var(--shadow-precision);
}

.dl-features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .dl-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-hero-img,
  .dl-hero-inner > * {
    animation: none;
  }
  .dl-cta-arrow { transition: none; }
}
