/*
 * Muravix — shared stylesheet for every page.
 *
 * Mobile-first. Breakpoints: 640px (sm), 768px (md), 1024px (lg).
 * Dark is the default theme; `data-theme="light"` on <html> switches to light
 * (set by /assets/theme.js from the saved preference).
 */

/* ---------- Fonts (self-hosted Geist, latin + latin-ext) ---------- */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-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: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */

/* Change --accent-base to re-brand the site; every accent shade derives from it. */
:root {
  color-scheme: dark;
  --accent-base: #7059c9;
  --bg: #0b0b0d;
  --surface: #141418;
  --text: #ececef;
  --muted: #9c9ca6;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: color-mix(in oklab, var(--accent-base), white 30%);
  --accent-soft: color-mix(in oklab, var(--accent-base), transparent 85%);
  --on-accent: #0b0b0d;
  --header-bg: color-mix(in srgb, var(--bg), transparent 12%);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1120px;
  --gutter: 20px;
  --header-height: 64px;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #5f5f68;
  --line: rgba(17, 17, 20, 0.1);
  --line-strong: rgba(17, 17, 20, 0.2);
  --accent: var(--accent-base);
  --accent-soft: color-mix(in oklab, var(--accent-base), transparent 92%);
  --on-accent: #ffffff;
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
}

.text-link:hover {
  color: color-mix(in oklab, var(--accent), var(--text) 30%);
}

.arrow-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.arrow-link:hover {
  text-decoration: underline;
}

.page-title {
  margin-bottom: 14px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-lead {
  max-width: 560px;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

.section-title {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 46px;
  }

  .section-title {
    font-size: 36px;
  }
}

/* ---------- Buttons, chips, tags ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary:hover {
  filter: brightness(0.9);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-badge {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--on-accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.chip {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.chip:hover {
  border-color: var(--text);
}

.chip[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-size: 13px;
}

.check-list-lg {
  gap: 10px;
}

.check-list-lg li {
  font-size: 15.5px;
  line-height: 1.6;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark-dot {
  color: var(--accent);
}

.header-wordmark {
  font-size: 20px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--text);
}

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

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/*
 * Mobile menu. Without JavaScript it is always shown below the header bar so
 * every page stays reachable; with JavaScript (`js` class from theme.js) it
 * opens from the menu button.
 */
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.js .mobile-nav:not(.open) {
  display: none;
}

.mobile-nav .container {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 12px;
}

.mobile-nav .nav-link {
  padding: 10px 12px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
}

.js .nav-toggle {
  display: flex;
}

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

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

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

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-wordmark {
  font-size: 19px;
}

.footer-tagline {
  max-width: 260px;
  font-size: 13.5px;
  line-height: 1.625;
  color: var(--muted);
}

.footer-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text);
}

.footer-text {
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

a.footer-small:hover {
  color: var(--text);
}

.locale-switch {
  display: flex;
  gap: 6px;
}

.locale-switch a,
.locale-switch span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.locale-switch a {
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.locale-switch a:hover {
  border-color: var(--text);
  color: var(--text);
}

.locale-switch span {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---------- Page sections ---------- */

.page-head {
  padding-top: 80px;
  padding-bottom: 40px;
}

.page-body {
  padding-top: 80px;
  padding-bottom: 96px;
}

.page-end {
  padding-bottom: 96px;
}

.section-gap {
  padding-top: 48px;
}

.faq-block {
  padding-top: 72px;
  padding-bottom: 96px;
}

.section {
  border-top: 1px solid var(--line);
}

.section > .container {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-head {
  margin-bottom: 40px;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .section > .container {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

/* ---------- Home ---------- */

.hero {
  padding-top: 80px;
  padding-bottom: 64px;
}

.hero .eyebrow {
  margin-bottom: 18px;
}

.hero-title {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 34px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero .btn-row {
  margin-bottom: 26px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 112px;
    padding-bottom: 96px;
  }
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--line-strong);
}

.process-step h3 {
  font-size: 16px;
  font-weight: 650;
}

.process-step p {
  font-size: 13.5px;
  color: var(--muted);
  text-wrap: pretty;
}

.stats-block {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label,
.stack-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.stack-label {
  margin-right: 8px;
}

.stack-row .tag {
  padding: 7px 14px;
  font-size: 12.5px;
}

.closing > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.closing h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.closing p {
  max-width: 440px;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

.closing .btn {
  margin-top: 8px;
}

@media (min-width: 640px) {
  .closing > .container {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .closing h2 {
    font-size: 42px;
  }
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.project-card:hover {
  border-color: var(--line-strong);
}

.project-card-media {
  padding: 8px 8px 0;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px 20px;
}

.project-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.project-card h2,
.project-card h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.project-summary {
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}

.project-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.project-card .tags {
  margin-top: 2px;
}

.frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text), transparent 96%);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.frame-card {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.frame-hero {
  height: 260px;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
}

@media (min-width: 640px) {
  .frame-hero {
    height: 420px;
  }
}

.breadcrumbs {
  margin-bottom: 36px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover,
.breadcrumbs [aria-current] {
  color: var(--text);
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.project-head h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.project-head .project-year {
  font-size: 13px;
}

.detail-grid {
  display: grid;
  align-items: start;
  gap: 56px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.detail-main h2 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.detail-main h2 + .check-list {
  margin-top: 14px;
}

.prose-muted {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 12px;
}

.aside-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-item .label {
  font-size: 11px;
}

.aside-value {
  font-size: 15px;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}

.detail-aside .btn {
  margin-top: 4px;
  padding: 12px 20px;
  font-size: 14.5px;
}

@media (min-width: 640px) {
  .project-head h1 {
    font-size: 42px;
  }
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .detail-aside {
    position: sticky;
    top: 88px;
  }
}

/* ---------- Plans ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  gap: 24px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
}

.plan-card.highlighted {
  border-color: var(--accent);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h2 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 650;
}

.plan-tagline {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.plan-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-amount {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-unit {
  font-size: 15px;
  color: var(--muted);
}

.plan-card .check-list {
  flex: 1;
  margin-bottom: 26px;
}

.plan-card .btn {
  padding: 13px 20px;
  font-size: 15px;
}

.fine-print {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.faq {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 620px;
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.faq-title {
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* ---------- Pricing ---------- */

.rate-groups {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.group-title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.rate-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rate-name {
  font-size: 15px;
  font-weight: 600;
}

.rate-notes {
  font-size: 13px;
  color: var(--muted);
}

.rate-unit {
  order: 3;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.rate-price {
  order: 2;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
}

.rate-add {
  order: 4;
  justify-self: end;
  min-width: 88px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.rate-add:hover {
  border-color: var(--text);
}

.rate-add[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.rate-add .when-added,
.rate-add[aria-pressed="true"] .when-idle {
  display: none;
}

.rate-add[aria-pressed="true"] .when-added {
  display: inline;
}

@media (min-width: 640px) {
  .rate-row {
    grid-template-columns: minmax(0, 1fr) 110px 90px 110px;
  }

  .rate-unit,
  .rate-price,
  .rate-add {
    order: 0;
  }

  .rate-unit {
    text-align: right;
  }
}

.after-list {
  margin-top: 44px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Quote builder ---------- */

.quote-lead {
  margin-bottom: 48px;
}

.quote-grid {
  display: grid;
  align-items: start;
  gap: 48px;
}

.quote-steps {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.step-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-steps fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.base-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.base-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.base-option:hover {
  border-color: var(--line-strong);
}

.base-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.base-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.option-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-name {
  font-weight: 650;
}

.option-desc {
  font-size: 13.5px;
  color: var(--muted);
}

.option-price {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.extra-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.extra-group-title {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.extra-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.extra-option-main {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}

.extra-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* Native radios and checkboxes, restyled; they stay focusable and accessible. */
.base-option input,
.extra-option input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  display: grid;
  place-content: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--on-accent);
  font-size: 11px;
  cursor: pointer;
}

.base-option input {
  border-radius: 50%;
}

.base-option input:focus-visible {
  outline: none;
}

.extra-option input:checked,
.base-option input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.extra-option input:checked::before {
  content: "✓";
  line-height: 1;
}

.base-option input:checked::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on-accent);
}

.summary {
  padding: 26px 24px;
}

.summary-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.summary-head h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-text {
  font-size: 14px;
  color: var(--muted);
}

.summary-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-line-label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.summary-line-detail,
.summary-footnote {
  font-size: 12px;
  color: var(--muted);
}

.summary-amount {
  font-family: var(--font-mono);
  font-size: 13.5px;
  white-space: nowrap;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.summary-total-label {
  font-size: 15px;
  font-weight: 650;
}

.summary-total-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

.summary-note {
  font-size: 12.5px;
  color: var(--muted);
}

.summary .btn {
  padding: 13px 20px;
  font-size: 15px;
}

@media (min-width: 1024px) {
  .quote-lead {
  margin-bottom: 48px;
}

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

  .summary {
    position: sticky;
    top: 88px;
  }
}

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

.contact-grid {
  display: grid;
  align-items: start;
  gap: 56px;
  margin-top: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-value {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

a.info-value {
  transition: color 0.15s ease;
}

a.info-value:hover {
  color: var(--accent);
}

a.info-value.accent:hover {
  text-decoration: underline;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 28px;
}

.contact-card h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.contact-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.contact-card .btn-row {
  margin-top: 8px;
}

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

/* ---------- Privacy policy ---------- */

.updated {
  margin-bottom: 48px;
}

.policy {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 760px;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy h2 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.policy p,
.policy li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

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

.policy li {
  position: relative;
  padding-left: 24px;
  line-height: 1.7;
}

.policy li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.policy strong {
  font-weight: 600;
  color: var(--text);
}

.policy-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  padding: 24px 28px;
}

.policy-contact .info-value {
  font-size: 16px;
}

/* ---------- 404 ---------- */

.not-found {
  padding-top: 112px;
  padding-bottom: 96px;
}

.not-found .eyebrow {
  margin-bottom: 18px;
}

.not-found .page-title {
  margin-bottom: 22px;
}

.not-found .page-lead {
  max-width: 440px;
  margin-bottom: 34px;
}

.not-found-alt {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.not-found-alt h2 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 650;
}

.not-found-alt p {
  margin-bottom: 20px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
