/* ==========================================================================
   Kirbie — design system
   Monochrome editorial layout with a single terracotta accent.
   ========================================================================== */

/* --- Fonts (self-hosted variable Instrument Sans) ------------------------ */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/InstrumentSans-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 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/InstrumentSans-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 {
  --bg: #ffffff;
  --ink: #17191a;
  --ink-soft: #303234;
  --muted: #65696c;
  --muted-2: #73777b;
  --rule: #e6e7e8;
  --rule-strong: #d9dbdc;
  --panel: #f7f8f8;
  --accent: #b85c38;
  --accent-hover: #8f4527;
  --accent-tint: #faf1eb;
  --accent-line: #e4c7b8;
  --maxw: 1120px;
  --pad: 36px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
a:hover {
  opacity: 0.7;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
::selection {
  background: var(--accent-tint);
}

/* --- Type ---------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}
h2 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
em,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: -0.045em;
}
strong {
  font-weight: 500;
  color: var(--ink);
}
.lead {
  font-size: 19px;
  max-width: 500px;
}
.small {
  font-size: 14px;
  line-height: 1.55;
}
.tiny {
  font-size: 12px;
  color: var(--muted-2);
}
.mono-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}

/* --- Layout -------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--rule);
}
.section.tight {
  padding: 44px 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 50;
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 12px;
}

/* --- Header / nav -------------------------------------------------------- */
.site-head {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-head.scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 30px rgba(23, 25, 26, 0.05);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--ink);
}
.brand:hover {
  opacity: 1;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-soft);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent-line);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule-strong);
  background: #fff;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}
.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
  content: "";
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease);
}
.nav-toggle i::before {
  position: absolute;
  top: -5px;
}
.nav-toggle i::after {
  position: absolute;
  top: 5px;
}
.nav-toggle[aria-expanded="true"] i {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] i::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] i::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* --- Buttons ------------------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.cta:hover {
  opacity: 1;
  background: #000;
}
.cta.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cta.accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.site-nav a.cta,
.site-nav a.cta:hover {
  color: #fff;
  opacity: 1;
}
.cta.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.cta.ghost:hover {
  background: var(--panel);
}
.cta:active {
  transform: translateY(1px);
}
.textlink {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid var(--muted-2);
  padding-bottom: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}
.textlink:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 74px 0 62px;
}
.hero-copy {
  max-width: 560px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-hover);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  margin-bottom: 26px;
}
.hero h1 em {
  color: var(--accent);
}
.hero .lead {
  margin-bottom: 28px;
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
}

/* --- Proof strip --------------------------------------------------------- */
.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  padding: 44px 0 54px;
  border-bottom: 1px solid var(--rule);
}
.proof strong {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.proof strong em {
  color: var(--accent);
}
.proof p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 250px;
}

/* --- Two-column about ---------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 68px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.about h2 {
  margin-bottom: 20px;
}
.about p {
  font-size: 16px;
}
.about p + p {
  margin-top: 16px;
}

/* --- Feature schematic (layer stack) ------------------------------------- */
.stack-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.schematic {
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #fcfcfc, #f7f8f8);
  padding: 22px 24px;
}
.schematic-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 14px;
}
.schematic-row {
  border-top: 1px solid #e3e5e4;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.schematic-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 15px;
}
.schematic-row h3 {
  font-size: 15px;
}
.schematic-row svg {
  width: 23px;
  height: 23px;
  color: var(--accent);
  flex: none;
}
.signal {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 24px;
}
.signal i {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.3;
  animation: signal 3.6s infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
.signal-1 i {
  animation-delay: calc(1s + var(--i) * 0.12s);
}
.signal-2 i {
  animation-delay: calc(2s + var(--i) * 0.12s);
}
@keyframes signal {
  0%,
  65%,
  100% {
    height: 6px;
    opacity: 0.25;
  }
  30% {
    height: 21px;
    opacity: 1;
  }
}

/* --- Phone / inbox mock -------------------------------------------------- */
.mock {
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 25, 26, 0.09);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  background: #fbfbfb;
}
.mock-bar .dotrow {
  display: flex;
  gap: 6px;
}
.mock-bar .dotrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcdedd;
}
.mock-bar .title {
  font-size: 12px;
  color: var(--muted-2);
  margin-left: 6px;
}
.mock-body {
  padding: 18px 16px;
  display: grid;
  gap: 14px;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--ink-soft);
}
.avatar.alt {
  background: var(--accent);
}
.bubble {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 290px;
}
.bubble .meta {
  display: block;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 5px;
}
.msg.right {
  flex-direction: row-reverse;
}
.msg.right .bubble {
  background: var(--accent-tint);
  border-color: var(--accent-line);
  color: #5c2e1c;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 18px;
}
.chip {
  font-size: 12px;
  padding: 6px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--muted);
  background: #fff;
}
.chip.on {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-hover);
}

/* --- Sleep AI section ---------------------------------------------------- */
.sleep-ai {
  background: #fafafa;
}
.sleep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.matcher {
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(23, 25, 26, 0.06);
}
.matcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.matcher-head .badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 9px;
  border-radius: 4px;
}
.matcher-field {
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.matcher-field:last-of-type {
  border-bottom: 0;
}
.matcher-field .k {
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}
.matcher-field .k b {
  font-weight: 500;
  color: var(--ink-soft);
}
.bar {
  height: 6px;
  border-radius: 100px;
  background: #eee;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  width: 0;
  transition: width 1.1s var(--ease);
}
.match-result {
  margin-top: 18px;
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  border-radius: 10px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.match-result .score {
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--accent-hover);
}
.match-result p {
  font-size: 13px;
  color: #6b3823;
}
.sleep-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.sleep-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}
.sleep-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

/* --- Feature grid -------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.card {
  background: #fff;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  transition: background 0.2s var(--ease);
}
.card:hover {
  background: #fcfcfc;
}
.card svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 4px;
}
.card h3 {
  font-size: 17px;
}
.card p {
  font-size: 14.5px;
  line-height: 1.55;
}
.card .tag {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Industry cards ------------------------------------------------------ */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.industry-card {
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.industry-card:hover {
  opacity: 1;
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(23, 25, 26, 0.07);
}
.industry-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.industry-card .icon svg {
  width: 24px;
  height: 24px;
}
.industry-card h3 {
  font-size: 21px;
}
.industry-card p {
  font-size: 15px;
}
.industry-card .textlink {
  margin-top: 6px;
}

/* --- Integrations -------------------------------------------------------- */
.integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.integrations li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: #fff;
}
.integrations ul {
  display: contents;
}
.integrations .swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
}

/* --- Closing CTA --------------------------------------------------------- */
.close {
  padding: 72px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.close h2 {
  max-width: 520px;
}
.close .cta-row {
  flex: none;
}

/* --- Footer -------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 44px 0 40px;
  font-size: 13px;
  color: var(--muted-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.foot-brand .brand {
  font-size: 19px;
  margin-bottom: 12px;
}
.foot-brand p {
  font-size: 13px;
  max-width: 260px;
}
.foot-col h4 {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.foot-col a:hover {
  color: var(--accent);
  opacity: 1;
}
.foot-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}

/* --- Interior page hero -------------------------------------------------- */
.page-hero {
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  max-width: 860px;
  margin-bottom: 20px;
}
.page-hero h1 em {
  color: var(--accent);
}
.page-hero .lead {
  max-width: 620px;
}
.page-hero .eyebrow {
  margin-bottom: 20px;
}

/* --- Feature detail rows ------------------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
}
.detail:last-child {
  border-bottom: 0;
}
.detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.detail-head svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}
.detail h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
.detail p + p {
  margin-top: 14px;
}
.detail ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.detail li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--muted);
}
.detail li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  font-size: 15.5px;
  padding: 0 0 24px;
  max-width: 760px;
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 60px 0;
  align-items: start;
}
.form {
  display: grid;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form .cta {
  justify-content: center;
}
.form-status {
  font-size: 14px;
  min-height: 20px;
}
.form-status.ok {
  color: var(--accent-hover);
}
.form-status.err {
  color: #b3261e;
}
.contact-aside {
  display: grid;
  gap: 22px;
}
.contact-aside .box {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px;
}
.contact-aside h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.contact-aside p {
  font-size: 14px;
}
.contact-aside a {
  color: var(--accent);
}

/* --- 404 ----------------------------------------------------------------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.notfound h1 {
  font-size: clamp(64px, 12vw, 130px);
  margin-bottom: 8px;
}
.notfound p {
  margin-bottom: 26px;
}

/* --- Reveal animation (only when JS is available) ------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero,
  .about,
  .stack-split,
  .sleep-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero {
    padding: 44px 0 40px;
  }
  .mock {
    margin-left: 0;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 700px) {
  :root {
    --pad: 22px;
  }
  .site-head {
    height: 86px;
  }
  .brand {
    font-size: 19px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 40px rgba(23, 25, 26, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--pad) 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    z-index: 45;
  }
  .site-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
  }
  .site-nav .cta {
    margin-top: 16px;
    justify-content: center;
  }
  .proof {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0 40px;
  }
  .proof > div {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    align-items: baseline;
  }
  .proof strong {
    font-size: 28px;
    margin: 0;
    white-space: nowrap;
  }
  .proof p {
    font-size: 13px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 0;
  }
  .close {
    display: block;
    padding: 52px 0;
  }
  .close .cta-row {
    margin-top: 24px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section {
    padding: 46px 0;
  }
  .page-hero {
    padding: 46px 0 38px;
  }
  h2 {
    font-size: 28px;
  }
  .field.two {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .signal i {
    animation: none;
    height: 12px;
    opacity: 0.6;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }  .bar i {
    transition: none;
  }
}
