/* ---- Fonts ----
   Poppins (self-hosted static weights: 400 Regular, 500 Medium, 600 SemiBold, 800 ExtraBold) per
   the Technoitic brand guide - one type family for wordmark, headings, and body copy. Self-hosted
   rather than linked from Google Fonts so visitors' browsers only ever talk to technoitic.com,
   not a third party. Latin subset only (site is English-only), same approach as the Fraunces file
   it replaces. */
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ----
   Technoitic brand palette (product/brand kit, 2026-08): Deep Navy #0B1220, Vivid Blue #0066FF,
   Slate Gray #64748B, Light Gray #E5E7EB, White. Container/outline/shadow shades below are
   derived from those five brand colors to cover the full light/dark token set. */
:root {
  --primary: #0066ff;
  --primary-strong: #0047b3;
  --on-primary: #ffffff;
  --primary-container: #dce9ff;
  --on-primary-container: #0047b3;
  --secondary-container: #e5e7eb;
  --on-secondary-container: #0b1220;
  --surface: #ffffff;
  --surface-dim: #f5f6f8;
  --surface-variant: #e5e7eb;
  --on-surface: #0b1220;
  --on-surface-variant: #64748b;
  --outline: #dce1e8;
  --page-bg: #fafbfc;
  --ink: #0b1220;
  --ink-soft: #64748b;
  --link: #0066ff;
  --code-bg: #f1f3f6;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lift: 0 4px 10px rgba(11, 18, 32, 0.08), 0 16px 32px rgba(11, 18, 32, 0.1);
  --max-width: 1160px;
  --content-width: 700px;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4d94ff;
    --primary-strong: #2563eb;
    --on-primary: #0b1220;
    --primary-container: #12294d;
    --on-primary-container: #a9c6ff;
    --secondary-container: #1e293b;
    --on-secondary-container: #e2e8f0;
    --surface: #131c2e;
    --surface-dim: #0b1220;
    --surface-variant: #1e293b;
    --on-surface: #f5f6f8;
    --on-surface-variant: #94a3b8;
    --outline: #263042;
    --page-bg: #0b1220;
    --ink: #f5f6f8;
    --ink-soft: #94a3b8;
    --link: #4d94ff;
    --code-bg: #16202f;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

/* The theme toggle (assets/js/theme.js) stamps data-theme on <html> to override the OS
   preference above in either direction - these two blocks must win regardless of
   prefers-color-scheme, so they're plain :root[...] selectors, not nested in a media query. */
:root[data-theme="dark"] {
  --primary: #4d94ff;
  --primary-strong: #2563eb;
  --on-primary: #0b1220;
  --primary-container: #12294d;
  --on-primary-container: #a9c6ff;
  --secondary-container: #1e293b;
  --on-secondary-container: #e2e8f0;
  --surface: #131c2e;
  --surface-dim: #0b1220;
  --surface-variant: #1e293b;
  --on-surface: #f5f6f8;
  --on-surface-variant: #94a3b8;
  --outline: #263042;
  --page-bg: #0b1220;
  --ink: #f5f6f8;
  --ink-soft: #94a3b8;
  --link: #4d94ff;
  --code-bg: #16202f;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  --primary: #0066ff;
  --primary-strong: #0047b3;
  --on-primary: #ffffff;
  --primary-container: #dce9ff;
  --on-primary-container: #0047b3;
  --secondary-container: #e5e7eb;
  --on-secondary-container: #0b1220;
  --surface: #ffffff;
  --surface-dim: #f5f6f8;
  --surface-variant: #e5e7eb;
  --on-surface: #0b1220;
  --on-surface-variant: #64748b;
  --outline: #dce1e8;
  --page-bg: #fafbfc;
  --ink: #0b1220;
  --ink-soft: #64748b;
  --link: #0066ff;
  --code-bg: #f1f3f6;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lift: 0 4px 10px rgba(11, 18, 32, 0.08), 0 16px 32px rgba(11, 18, 32, 0.1);
}

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

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 0.9em;
}

/* ---- Layout ---- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.prose {
  max-width: var(--content-width);
  margin: 0 auto;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.6rem;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  border-left: 3px solid var(--primary);
  color: var(--ink-soft);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--outline);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logo lockup swaps per theme (light-mode file has navy wordmark text, dark-mode file has white
   wordmark text) - same show/hide pattern as the sun/moon theme-toggle icons below. */
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.brand-logo-dark {
  display: none;
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .brand-logo-light {
    display: none;
  }
  .brand-logo-dark {
    display: block;
  }
  :root[data-theme="light"] .brand-logo-light {
    display: block;
  }
  :root[data-theme="light"] .brand-logo-dark {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* :not(.btn) so this plain-nav-link color rule structurally never fights a .btn's own color in
   any state (hover, focus, aria-current) - a version of this that only excluded .btn from the
   base rule still lost to "a:hover"/"a[aria-current]" on those specific states, since a
   class+pseudo-class+element selector still out-specifies a two-class one. */
.site-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--primary);
}

.site-nav .btn {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* ---- Mobile nav toggle (hamburger) ----
   Hidden on wide screens where the full nav row fits; below the breakpoint it becomes the only
   way to open .site-nav, which turns into a full-width dropdown panel (see the media query near
   the bottom of this file). Icon swap mirrors the sun/moon theme-toggle pattern - CSS driven by a
   class the JS toggles, not two separately-shown/hidden elements picked by media query. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-menu {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .theme-toggle .icon-moon {
    display: none;
  }
  .theme-toggle .icon-sun {
    display: block;
  }
  :root[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
  }
  :root[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--outline);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
  }
  .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: radial-gradient(60% 60% at 30% 20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(45% 45% at 85% 60%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%);
  z-index: -1;
}

/* Faint dot-grid, faded out toward the edges via a radial mask so it reads as texture, not a
   hard-edged tile. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 60% at 32% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 60% at 32% 30%, #000 0%, transparent 75%);
  opacity: 0.5;
  z-index: -1;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

/* Single-column variant for pages with no hero visual (About) - same dot-grid/glow backdrop,
   centered content instead of the two-column product-hero layout. */
.hero .wrap.hero-center {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero .wrap.hero-center .hero-actions {
  justify-content: center;
}

.hero .wrap.hero-center .lede {
  margin-inline: auto;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 48px;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

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

.hero h1 .accent {
  background: linear-gradient(100deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #8ab4ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---- Phone frame ----
   Real device chrome (bezel, notch, side buttons) around an actual app screenshot, rather than
   an illustrated mockup. Bezel color is a fixed "device black," not a theme token - a real phone
   looks the same regardless of the site's light/dark mode. Sized in a wrapper via max-width. */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 720 / 1419;
  margin: 0 auto;
  background: #0b1220;
  border-radius: 15% / 7.5%;
  padding: 3.2%;
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.18), 0 30px 60px -20px rgba(11, 18, 32, 0.45), inset 0 0 0 1.5px
    rgba(255, 255, 255, 0.08);
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  background: #0b1220;
  border-radius: 3px 0 0 3px;
}

.phone-frame::before {
  left: -3px;
  top: 16%;
  width: 3px;
  height: 7%;
}

.phone-frame::after {
  right: -3px;
  top: 22%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
}

.phone-frame .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11% / 5.5%;
  overflow: hidden;
  background: #000;
}

.phone-frame .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-frame .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.phone-frame .notch {
  position: absolute;
  top: 3.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 3%;
  background: #0b1220;
  border-radius: 100px;
  z-index: 2;
}

@media (hover: hover) {
  @media (prefers-reduced-motion: no-preference) {
    .phone-frame {
      transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    }
    .phone-frame:hover {
      transform: perspective(900px) rotateY(-7deg) rotateX(2deg) translateY(-4px);
      box-shadow: 0 4px 10px rgba(11, 18, 32, 0.2), 0 40px 70px -20px rgba(11, 18, 32, 0.55), inset 0 0 0 1.5px
        rgba(255, 255, 255, 0.08);
    }
  }
}

.hero .phone-frame {
  filter: drop-shadow(var(--shadow-lift));
}

/* ---- Sections / cards ---- */
.section {
  padding: 64px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--outline));
  }
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card .icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.35em;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.section-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.section-cta h2 {
  color: #fff;
}

.section-cta p {
  color: color-mix(in srgb, #fff 82%, transparent);
  max-width: 480px;
  margin: 0 auto 26px;
}

.section-cta .btn-primary {
  background: #fff;
  color: var(--primary-strong);
}

.section-cta-email {
  margin: 16px 0 0;
}

.section-cta-email a {
  color: color-mix(in srgb, #fff 88%, transparent);
  font-size: 0.92rem;
}

/* ---- How it works (3-step) ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 0.4em;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ---- Company teaser ---- */
.teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .teaser {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.teaser p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 50ch;
}

.teaser-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.teaser-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
}

.teaser-card p {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
}

/* ---- Interactive screenshot viewer ---- */
.screen-viewer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.screen-viewer .phone-frame {
  width: 240px;
}

.screen-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.screen-thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1.5px solid var(--outline);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.screen-thumb:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--outline));
}

.screen-thumb.is-active {
  border-color: var(--primary);
  background: var(--primary-container);
}

.screen-thumb img {
  width: 34px;
  height: 67px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--outline);
  flex-shrink: 0;
}

.screen-thumb .label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.screen-thumb .sublabel {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 1px;
}

@media (max-width: 720px) {
  .screen-viewer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }
  .screen-thumbs {
    width: 100%;
    max-width: 380px;
  }
}

/* ---- Blog preview (homepage) ---- */
.blog-preview-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-preview-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--outline);
  text-decoration: none;
  color: var(--ink);
}

.blog-preview-list a:hover h3 {
  color: var(--primary);
}

.blog-preview-list h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.blog-preview-list .post-meta {
  flex-shrink: 0;
}

/* ---- Blog ---- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--content-width);
  margin-inline: auto;
}

.post-list li {
  border-bottom: 1px solid var(--outline);
  padding: 28px 0;
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list a {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.post-list h2 {
  font-size: 1.35rem;
  margin-bottom: 0.3em;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.post-excerpt {
  color: var(--ink-soft);
  margin-top: 0.5em;
  margin-bottom: 0;
  font-size: 0.98rem;
}

.post-header {
  max-width: var(--content-width);
  margin: 0 auto 10px;
}

.post-header h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--outline);
  margin-top: 72px;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand .brand-logo {
  height: 24px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--outline);
  padding-top: 24px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ---- Utility ---- */
.text-center {
  text-align: center;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
}

/* ---- Responsive header nav ----
   Below this width the nav row (Home/QRcode/Blog/About + theme toggle + Get-the-app button)
   doesn't fit next to the logo - rather than let flexbox squeeze the logo down to nothing, it
   collapses into a hamburger-triggered dropdown panel. */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a:not(.btn) {
    padding: 11px 2px;
    font-size: 1rem;
    border-bottom: 1px solid var(--outline);
  }
  .site-nav li {
    width: 100%;
  }
  .site-nav .theme-toggle {
    margin: 10px 0;
  }
  .site-nav .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
  }
}
