/* Kailuz studio site. System fonts only, no third-party requests. */

:root {
  --brand: #12312a;
  --brand-2: #1d4a3e;
  --brand-soft: #e6eee9;
  --accent: #d9962b;
  --accent-soft: #f6e7cb;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --alt: #efece4;
  --ink: #15201c;
  --muted: #4a5651;
  --line: #ddd8cc;
  --dark: #10221d;
  --dark-ink: #eef2ef;
  --dark-muted: #b9c6c0;

  /* spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;

  /* type scale */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.1875rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-2xl: clamp(2.1rem, 1.3rem + 2.6vw, 3.05rem);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(18 49 42 / 6%), 0 8px 24px rgb(18 49 42 / 8%);
  --wrap: 72rem;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-zh: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:lang(zh-Hant) body,
body:lang(zh-Hant) {
  font-family: var(--font-zh);
  line-height: 1.85;
  letter-spacing: 0.02em;
  line-break: strict;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:lang(zh-Hant) h1,
:lang(zh-Hant) h2,
:lang(zh-Hant) h3,
:lang(zh-Hant) h4 {
  line-height: 1.35;
  letter-spacing: 0.01em;
  /* Break Chinese headings at punctuation, never mid-word; fall back to any point only if needed. */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0;
}

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

a {
  color: var(--brand-2);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  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;
  left: var(--s4);
  top: -4rem;
  z-index: 100;
  padding: var(--s2) var(--s4);
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--s4);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s5);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 2.75rem;
  padding: var(--s3) var(--s5);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-2);
  color: #fff;
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-ghost {
  color: var(--brand);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-sm {
  min-height: 2.5rem;
  padding: var(--s2) var(--s4);
  font-size: var(--t-sm);
}

.btn-lg {
  min-height: 3.25rem;
  padding: var(--s3) var(--s6);
  font-size: var(--t-md);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.text-link {
  font-weight: 650;
  color: var(--brand-2);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 244 238 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--brand);
  flex-shrink: 0;
}

.brand-wordmark {
  width: 98px;
  height: 32px;
}

.brand-zh {
  font-family: var(--font-zh);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  padding-left: var(--s2);
  border-left: 1.5px solid var(--line);
}

.primary-nav {
  display: flex;
  gap: var(--s5);
  margin-left: auto;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 550;
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

.header-cta {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}

.lang-switch a {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--s3);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 1060px) {
  .primary-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 var(--s4);
  }
  .header-inner {
    gap: var(--s3);
  }
  .header-actions {
    gap: var(--s2);
  }
  .brand-wordmark {
    width: 80px;
    height: 26px;
  }
  .brand-zh {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }
  .lang-switch a {
    padding: 0 0.55rem;
  }
  .header-cta {
    padding: var(--s2) var(--s3);
  }
}

@media (max-width: 440px) {
  .site-header .brand-zh {
    display: none;
  }
}

@media (max-width: 340px) {
  .header-cta {
    display: none;
  }
}

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

.section {
  padding: var(--s9) 0;
}

.section-alt {
  background: var(--alt);
}

.section-dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.eyebrow {
  margin-bottom: var(--s3);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
}

:lang(zh-Hant) .eyebrow {
  letter-spacing: 0.12em;
}

.section-dark .eyebrow {
  color: var(--accent);
}

.section-title {
  font-size: var(--t-xl);
  max-width: 24ch;
}

:lang(zh-Hant) .section-title {
  max-width: 20em;
}

.section-intro {
  margin-top: var(--s4);
  max-width: 44rem;
  font-size: var(--t-md);
  color: var(--muted);
}

.section-dark .section-intro {
  color: var(--dark-muted);
}

.subhead {
  font-size: var(--t-lg);
}

.fine-print {
  margin-top: var(--s5);
  font-size: var(--t-sm);
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  padding: var(--s7) 0 var(--s8);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s8);
  align-items: center;
}

.hero h1 {
  font-size: var(--t-2xl);
  letter-spacing: -0.03em;
  color: var(--brand);
}

.hero h1 .seg {
  /* Phrase segments (marked with | in the copy) never split; lines break between them. */
  display: inline-block;
}

:lang(zh-Hant) .hero h1 {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.55rem);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.hero-lead {
  margin-top: var(--s5);
  max-width: 36rem;
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin: var(--s6) 0 0;
  padding: var(--s5) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.hero-facts strong {
  font-size: var(--t-md);
  color: var(--brand);
  line-height: 1.25;
}

.hero-facts li > span {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.4;
}

.hero-person {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s6);
  max-width: 36rem;
  font-size: var(--t-sm);
  color: var(--muted);
}

.mono-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: var(--s6) 0 var(--s7) var(--s6);
}

.shot {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shot-front {
  position: relative;
  z-index: 2;
}

.shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.shot-back {
  position: absolute;
  width: 62%;
  opacity: 0.96;
}

.shot-a {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
}

.shot-b {
  right: -6%;
  bottom: 0;
  z-index: 3;
  width: 46%;
  transform: rotate(2.5deg);
}

.hero-visual figcaption {
  position: absolute;
  left: var(--s6);
  bottom: 0;
  font-size: var(--t-sm);
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero {
    padding-top: var(--s7);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
  }
  .hero-visual {
    max-width: 34rem;
    padding-left: var(--s4);
  }
}

@media (max-width: 640px) {
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s5) var(--s4);
  }
  .hero .cta-row .btn {
    flex: 1 1 100%;
  }
  .hero-visual {
    padding: 0;
  }
  .shot-back {
    display: none;
  }
  .hero-visual figcaption {
    position: static;
    margin-top: var(--s3);
  }
  :lang(zh-Hant) .hero h1 {
    font-size: 1.75rem;
  }
}

/* ---------- includes ---------- */

.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  margin: var(--s7) 0 0;
  padding: 0;
  list-style: none;
}

.include {
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.include h3 {
  margin-top: var(--s3);
  font-size: var(--t-md);
}

.include p {
  margin-top: var(--s2);
  color: var(--muted);
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--brand-soft);
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-lg {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .includes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .includes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }
}

/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  margin: var(--s7) 0 0;
  padding: 0;
  list-style: none;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  flex: 1;
  padding: var(--s5);
}

.work-body h3 {
  font-size: var(--t-lg);
}

.work-body .text-link {
  margin-top: auto;
  padding-top: var(--s3);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 0.8125rem;
}

.tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #5c3c07;
  font-weight: 650;
}

.langs {
  color: var(--muted);
  font-weight: 600;
}

.work-sector {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--brand-2);
}

.work-body p:not(.work-meta):not(.work-sector) {
  color: var(--muted);
}

.apps-head {
  margin-top: var(--s9);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-card h4 {
  font-size: var(--t-md);
}

.app-cat {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--brand-2);
}

.app-sum {
  margin-top: var(--s2);
  font-size: 0.9375rem;
  color: var(--muted);
}

.app-platforms {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--muted);
}

.app-privacy {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-2);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s4);
  margin-top: auto;
  padding-top: var(--s4);
  font-size: var(--t-sm);
}

.store-badge {
  display: inline-block;
  border-radius: 8px;
}

.store-badge img {
  width: 120px;
  height: 40px;
}

@media (max-width: 1060px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
  }
}

@media (max-width: 560px) {
  .apps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- pricing ---------- */

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
}

.market-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

.market-switch[hidden] {
  display: none;
}

.market-label {
  margin-right: var(--s1);
  font-size: var(--t-sm);
  color: var(--muted);
}

.market-switch button {
  min-height: 2.5rem;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
}

.market-switch button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  align-items: stretch;
  margin: var(--s7) 0 0;
  padding: 0;
  list-style: none;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s6) var(--s5) var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-popular {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.plan-flag {
  position: absolute;
  top: 0;
  left: var(--s5);
  transform: translateY(-50%);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #241500;
  font-size: 0.8125rem;
  font-weight: 700;
}

.plan h3 {
  font-size: var(--t-lg);
}

.plan-price {
  margin-top: var(--s3);
  font-size: 2.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.plan-time {
  margin-top: var(--s2);
  font-weight: 650;
  color: var(--brand-2);
}

.plan-audience {
  margin-top: var(--s2);
  font-size: 0.9375rem;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: var(--s2);
  margin: var(--s5) 0 var(--s6);
  padding: var(--s5) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.plan .btn {
  margin-top: auto;
}

.pricing-notes {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.pricing-notes strong {
  color: var(--ink);
}

.rust-teaser {
  margin-top: var(--s4);
  color: var(--muted);
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
    gap: var(--s6);
  }
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  margin: var(--s7) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.step h3 {
  margin-top: var(--s4);
  font-size: var(--t-md);
}

.step p {
  margin-top: var(--s2);
  color: var(--muted);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: var(--s7);
  align-items: start;
}

.about-mono {
  display: grid;
  place-items: center;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 25%, var(--accent) 0 9%, transparent 9.5%), var(--brand);
}

.about-mono span {
  color: #fff;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-role {
  margin-top: var(--s2);
  font-weight: 650;
  color: var(--brand-2);
}

.about-copy > p:not(.eyebrow):not(.about-role) {
  margin-top: var(--s4);
  max-width: 44rem;
  font-size: var(--t-md);
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

.about-facts li {
  padding: var(--s1) var(--s3);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--t-sm);
  font-weight: 600;
}

.about-copy .about-story {
  color: var(--muted);
  font-size: var(--t-base);
}

@media (max-width: 760px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }
  .about-mono {
    width: 7rem;
    height: 7rem;
  }
  .about-mono span {
    font-size: 2rem;
  }
}

/* ---------- rust ---------- */

.section-dark .section-title {
  color: #fff;
}

.rust-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  margin-top: var(--s7);
}

.rust-offer,
.proof {
  padding: var(--s6);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
}

.rust-offer h3,
.proof h3 {
  color: #fff;
  font-size: var(--t-lg);
}

.rust-price {
  margin: var(--s2) 0 var(--s3);
  font-size: 1.875rem;
  font-weight: 750;
  color: var(--accent);
}

.rust-offer p:not(.rust-price),
.proof p {
  color: var(--dark-muted);
}

.rust-note {
  margin-top: var(--s4);
  font-size: var(--t-sm);
  color: var(--dark-muted);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  margin-top: var(--s7);
}

.proof p {
  margin-top: var(--s3);
}

.proof .proof-summary {
  color: #fff;
  font-weight: 650;
}

.table-scroll {
  margin-top: var(--s5);
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.bench {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--t-sm);
}

.bench tbody th {
  min-width: 14rem;
}

.bench th,
.bench td {
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  text-align: left;
  color: var(--dark-ink);
}

.bench thead th {
  color: var(--dark-muted);
  font-weight: 600;
}

.bench .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bench .strong {
  color: var(--accent);
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s5);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding-left: var(--s4);
  border-left: 3px solid var(--accent);
  color: var(--dark-ink);
}

@media (max-width: 900px) {
  .rust-offers,
  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rust-offer,
  .proof {
    padding: var(--s5);
  }
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench tbody th {
    min-width: 10rem;
  }
}

/* ---------- faq ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s7);
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) 0;
  cursor: pointer;
  list-style: none;
}

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

.faq summary h3 {
  font-size: var(--t-md);
  letter-spacing: -0.01em;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 600;
}

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

.faq p {
  padding: 0 0 var(--s5);
  max-width: 42rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s7);
  align-items: start;
}

.next-title {
  margin-top: var(--s6);
  font-size: var(--t-md);
}

.next-steps {
  display: grid;
  gap: var(--s3);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next-steps li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: next;
}

.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
}

.contact-mail {
  margin-top: var(--s6);
  color: var(--muted);
}

.contact-mail a {
  font-weight: 650;
}

.form-card {
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: var(--s4);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.field {
  display: grid;
  gap: var(--s1);
}

.field label {
  font-size: var(--t-sm);
  font-weight: 650;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: var(--s2) var(--s3);
  border: 1px solid #b8b2a5;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--brand);
}

.hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-promise {
  font-size: var(--t-sm);
  color: var(--muted);
  text-align: center;
}

.form-status {
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm);
  background: #fbe9e7;
  color: #8a1c0f;
  font-weight: 600;
}

.form-success {
  display: grid;
  gap: var(--s3);
  justify-items: start;
  padding: var(--s5) 0;
}

.form-success[hidden] {
  display: none;
}

.form-success h3 {
  font-size: var(--t-lg);
  color: var(--brand);
}

.form-success p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-card {
    padding: var(--s5) var(--s4);
  }
}

/* ---------- footer ---------- */

.site-footer {
  padding: var(--s8) 0 var(--s6);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: var(--s6);
}

.footer-brand p {
  margin-top: var(--s3);
  max-width: 26rem;
  color: var(--muted);
}

.footer-email {
  font-weight: 650;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: var(--s2);
}

.footer-links a,
.footer-langs a {
  color: var(--ink);
}

.footer-meta {
  display: grid;
  align-content: start;
  gap: var(--s3);
}

.footer-privacy {
  font-weight: 650;
  color: var(--brand-2);
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.footer-fine {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }
}

/* ---------- legal + 404 ---------- */

.legal-main {
  padding: var(--s7) 0 var(--s9);
}

.legal-wrap {
  max-width: 48rem;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.legal-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}

.legal-tabs a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.legal-main h1 {
  font-size: var(--t-xl);
  color: var(--brand);
}

.legal-updated {
  margin-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--muted);
}

.legal-body {
  display: grid;
  gap: var(--s5);
  margin: var(--s6) 0;
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-body h2 {
  font-size: var(--t-md);
}

.legal-body p,
.legal-body ul {
  margin-top: var(--s2);
  color: #2f3a36;
}

.legal-body ul {
  display: grid;
  gap: var(--s2);
  padding-left: 1.25rem;
}

.legal-contact {
  margin-bottom: var(--s4);
}

@media (max-width: 560px) {
  .legal-body {
    padding: var(--s5) var(--s4);
  }
}

.not-found {
  padding: var(--s9) var(--s5);
  min-height: 55vh;
}

.not-found h1 {
  font-size: var(--t-2xl);
  color: var(--brand);
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}
