/* Destilado Labs site styles.
   Plain CSS, no build step. Edit this file and reload.

   Contents
   1. Fonts and tokens
   2. Reset and base
   3. Layout: shell, bands, section padding, grids
   4. Type: display, eyebrow, headings, helpers
   5. Components: header, footer, buttons, links, screenshot frame, cards,
      diagram, form
   6. Small helpers: spacing, color, width

   Breakpoints: 640px (sm), 768px (md), 1024px (lg). */

/* 1. Fonts and tokens ------------------------------------------------------ */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Metric-matched fallbacks, so text does not jump when the real fonts load. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 89.79%;
  descent-override: 22.36%;
  line-gap-override: 0%;
  size-adjust: 107.89%;
}

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  ascent-override: 85.41%;
  descent-override: 20.43%;
  line-gap-override: 0%;
  size-adjust: 102.8%;
}

:root {
  /* Dark ground */
  --ink: #0f1b26;
  --ink-soft: #182a39;
  --ink-line: #2b4052;
  /* Light ground */
  --paper: #f4f5f1;
  --paper-deep: #e8ebe4;
  --paper-line: #d3d9d0;
  /* Text */
  --text: #17222c;
  --muted: #55636e;
  /* One accent: amber on dark, copper on light */
  --amber: #f2a93b;
  --amber-hover: #f7ba5c;
  --copper: #a44e1b;

  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Archivo Fallback", "Inter", "Inter Fallback", system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 6px;
  --ease: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset and base -------------------------------------------------------- */

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

html {
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

/* The body is a column so the footer sits at the bottom on short pages. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
  text-wrap: balance;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

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

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

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
}

/* 3. Layout ---------------------------------------------------------------- */

/* The page column. */
.shell {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Full-width bands. Pages alternate: dark hero, light sections, dark close. */
.band-ink {
  background: var(--ink);
  color: var(--paper);
}

.band-deep {
  border-block: 1px solid var(--paper-line);
  background: var(--paper-deep);
}

.band-deep--top {
  border-bottom: 0;
}

/* Vertical padding for a section. */
.pad-sm {
  padding-block: 4rem;
}

.pad-md,
.pad-lg {
  padding-block: 5rem;
}

.hero,
.page-hero {
  padding-block: 3rem 4rem;
}

/* Two columns from 768px up. The modifiers set the column ratio. */
.split {
  display: grid;
  gap: 2.5rem;
}

.split--even,
.split--about,
.split--contact {
  gap: 3rem;
}

/* Equal columns that stack on small screens. */
.cols {
  display: grid;
  gap: 2rem;
}

.cols--builds,
.cols--stack {
  gap: 2.5rem;
}

.cols--cards {
  gap: 1.5rem;
}

.cols--rules {
  gap: 2rem 2.5rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.align-start {
  align-self: start;
}

#proof {
  scroll-margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .shell {
    padding-inline: 2rem;
  }

  .actions {
    flex-direction: row;
  }

  .cols--rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .pad-sm {
    padding-block: 5rem;
  }

  .pad-md {
    padding-block: 6rem;
  }

  .pad-lg {
    padding-block: 7rem;
  }

  .hero {
    padding-block: 5rem 6rem;
  }

  .page-hero {
    padding-block: 4rem 5rem;
  }

  .split {
    gap: 4rem;
    grid-template-columns: 1fr 1fr;
  }

  .split--lead {
    grid-template-columns: 1.15fr 1fr;
  }

  .split--trail {
    grid-template-columns: 1fr 1.2fr;
  }

  .split--trail-sm {
    grid-template-columns: 1fr 1.1fr;
  }

  .split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--about {
    gap: 5rem;
    grid-template-columns: 1.3fr 1fr;
  }

  .split--contact {
    grid-template-columns: 1.6fr 1fr;
  }

  .cols--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cols--3,
  .cols--builds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cols--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cols--rules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 4. Type ------------------------------------------------------------------ */

/* Headlines: Archivo, extra bold, tight. */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Small uppercase label above a heading or value. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--tiny {
  font-size: 0.65rem;
}

/* Size helpers: font size with its default line height. */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

/* Running copy: larger and looser than the base size. */
.lede {
  font-size: 1.125rem;
  line-height: 1.625;
}

/* Line-height helpers. Keep these after the size helpers so they win. */
.leading-tight {
  line-height: 1.25;
}

.leading-snug {
  line-height: 1.375;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Headings, one class per role. */
.h-hero {
  font-size: 2.6rem;
  line-height: 1.02;
}

.h-page {
  font-size: 2.5rem;
  line-height: 1.04;
}

.h-section,
.h-closing {
  font-size: 2.25rem;
  line-height: 1.05;
}

.h-sub {
  font-size: 1.875rem;
  line-height: 1.25;
}

.tagline {
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--amber);
}

.prose p + p {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .h-hero {
    font-size: 3.75rem;
    line-height: 1;
  }

  .h-page {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .h-hero {
    font-size: 4.5rem;
  }

  .h-page,
  .h-closing {
    font-size: 3.75rem;
    line-height: 1;
  }

  .h-section {
    font-size: 3rem;
    line-height: 1;
  }

  .h-sub {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .tagline {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

/* 5. Components ------------------------------------------------------------ */

/* Header */
.site-header {
  background: var(--ink);
  color: var(--paper);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--paper);
}

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(244 245 241 / 0.75);
  transition: color var(--ease), background-color var(--ease);
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline 2px var(--amber);
  text-underline-offset: 8px;
}

.site-nav .nav-cta,
.mobile-nav .nav-cta {
  border-radius: var(--radius);
  background: var(--amber);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.site-nav .nav-cta {
  padding: 0.625rem 1rem;
}

.site-nav .nav-cta:hover {
  background: var(--amber-hover);
  color: var(--ink);
}

.menu-toggle {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.mobile-nav {
  border-top: 1px solid var(--ink-line);
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}

.mobile-nav a {
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: rgb(244 245 241 / 0.85);
}

.mobile-nav .nav-cta {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgb(244 245 241 / 0.7);
}

.site-footer__main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3rem;
}

.site-footer .brand__mark {
  width: 1.5rem;
  height: 1.5rem;
}

.site-footer .brand__name {
  font-size: 1rem;
  line-height: 1.5rem;
}

.site-footer__tagline {
  max-width: 24rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.site-footer__nav a:hover {
  color: var(--paper);
}

.site-footer__legal {
  border-top: 1px solid var(--ink-line);
}

.site-footer__legal .shell {
  padding-block: 1.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

@media (min-width: 768px) {
  .site-footer__main {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ink-soft);
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
}

.btn--amber:hover {
  background: var(--amber-hover);
}

.btn--ghost {
  border: 1px solid var(--ink-line);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: rgb(244 245 241 / 0.6);
}

.btn--submit {
  width: 100%;
  font-size: 1rem;
  letter-spacing: normal;
}

.btn:disabled {
  opacity: 0.6;
}

@media (min-width: 640px) {
  .btn--submit {
    width: auto;
  }
}

/* Text link with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--copper);
  text-decoration: underline rgb(164 78 27 / 0.3);
  text-underline-offset: 4px;
}

.link-arrow:hover {
  text-decoration-color: var(--copper);
}

.link-arrow--amber {
  color: var(--amber);
  text-decoration-color: rgb(242 169 59 / 0.4);
}

.link-arrow--amber:hover {
  text-decoration-color: var(--amber);
}

/* Screenshot in a plain window frame, always labelled as demo data. */
.shot {
  min-width: 0;
}

.shot__frame {
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 24px 60px -28px rgb(0 0 0 / 0.55);
}

.shot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper-deep);
}

.shot__dots {
  display: flex;
  gap: 0.375rem;
}

.shot__dots i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--paper-line);
}

/* On phones the image is shown at twice the width and cropped to its left
   half, so it stays legible. */
.shot__crop {
  overflow: hidden;
}

.shot__crop img {
  width: 200%;
  max-width: none;
  height: auto;
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.7;
}

@media (min-width: 640px) {
  .shot__crop img {
    width: 100%;
  }
}

/* A block with a heavy rule on top. */
.topped {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

/* A list with hairlines between items. */
.rule-list > li {
  padding-block: 0.875rem;
}

.rule-list > li + li {
  border-top: 1px solid var(--paper-line);
}

.rule-list--framed {
  border-block: 1px solid var(--paper-line);
}

/* White card */
.card {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.card--pad {
  padding: 1.75rem;
}

.card--roomy {
  padding: 2rem;
}

@media (min-width: 768px) {
  .card--pad {
    padding: 2.25rem;
  }
}

/* An agent's job description (What we build) */
.job-card {
  display: flex;
  flex-direction: column;
}

.job-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px dashed var(--paper-line);
}

.job-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}

.job-card__body dd {
  margin-top: 0.375rem;
  line-height: 1.625;
}

.job-card__gate {
  margin-top: auto;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--paper-deep);
}

/* Dark panel (About) */
.belief {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
}

.belief__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .belief {
    padding: 2.5rem;
  }
}

/* Diagram: inputs on the left, one database in the middle, agents and
   automations out the right. */
.diagram__flow {
  display: grid;
  align-items: stretch;
  gap: 1rem;
}

.diagram__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.diagram__in,
.diagram__out {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #fff;
}

.diagram__in {
  border: 1px solid var(--paper-line);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.diagram__out {
  display: flex;
  align-items: center;
  border: 2px solid var(--copper);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
}

.diagram__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
}

.diagram__arrow svg {
  width: 2.5rem;
  height: 1rem;
  transform: rotate(90deg);
}

.diagram__core {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.diagram figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .diagram__flow {
    grid-template-columns: 1fr auto 1.1fr auto 1fr;
  }

  .diagram__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .diagram__arrow svg {
    transform: none;
  }
}

/* Contact form */
.form {
  display: grid;
  gap: 1.25rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.form .optional {
  font-weight: 400;
  color: var(--muted);
}

.field {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--text);
}

.field::placeholder {
  color: rgb(85 99 110 / 0.7);
  opacity: 1;
}

.field:focus {
  border-color: var(--copper);
}

.notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--paper-deep);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.notice--error {
  background: #fbeceb;
  color: #8a1f17;
}

.email-address {
  font-family: var(--font-display);
  font-weight: 700;
  overflow-wrap: break-word;
  user-select: all;
}

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

  .form__full {
    grid-column: span 2;
  }
}

/* 6. Small helpers --------------------------------------------------------- */

/* Space above. The number is quarter-rems: mt-6 is 1.5rem. */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }

/* Color */
.muted { color: var(--muted); }
.copper { color: var(--copper); }
.amber { color: var(--amber); }

/* Softer text on the dark ground */
.tone-85 { color: rgb(244 245 241 / 0.85); }
.tone-80 { color: rgb(244 245 241 / 0.8); }
.tone-65 { color: rgb(244 245 241 / 0.65); }

/* Line length */
.measure-sm { max-width: 42rem; }
.measure { max-width: 48rem; }
.measure-lg { max-width: 56rem; }
