/*
 * Word Mill: components
 * Built only from tokens.css. Load tokens.css first.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.wm {
  margin: 0;
  background: var(--wm-paper);
  color: var(--wm-ink-soft);
  font-family: var(--wm-sans);
  font-size: var(--wm-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.wm img, .wm svg { max-width: 100%; display: block; }
.wm a { color: inherit; }
.wm ::selection { background: var(--wm-orange-soft); color: var(--wm-ink); }

.wm-container { width: 100%; max-width: var(--wm-container); margin: 0 auto; padding: 0 var(--wm-space-5); }
.wm-narrow { max-width: var(--wm-narrow); margin-left: auto; margin-right: auto; }
.wm-center { text-align: center; }
.wm-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wm-space-8); align-items: center; }
.wm-split--wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) {
  .wm-split, .wm-split--wide-left { grid-template-columns: 1fr; gap: var(--wm-space-7); }
}

/* ---------- Nav ---------- */
.wm-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  box-shadow: var(--wm-shadow-nav);
}
.wm-nav__inner { display: flex; align-items: center; gap: var(--wm-space-6); height: var(--wm-nav-height); }
.wm-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wm-ink); font-family: var(--wm-sans); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.wm-logo__mark { width: 22px; height: 22px; flex-shrink: 0; }
.wm-nav__links { display: flex; gap: var(--wm-space-5); list-style: none; margin: 0; padding: 0; }
.wm-nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--wm-ink-soft); white-space: nowrap; }
.wm-nav__links a:hover, .wm-nav__links a[aria-current] { color: var(--wm-orange); }
.wm-nav__end { margin-left: auto; display: flex; align-items: center; gap: var(--wm-space-3); }
.wm-search { display: inline-flex; align-items: center; gap: var(--wm-space-2); height: 34px; padding: 0 6px 0 12px; min-width: 190px; border-radius: var(--wm-pill); background: var(--wm-haze); color: var(--wm-faint); font-size: 14px; }
.wm-search svg { width: 14px; height: 14px; }
.wm-kbd { margin-left: auto; font-family: var(--wm-mono); font-size: 11px; color: var(--wm-soft); background: var(--wm-card); border: var(--wm-border); border-radius: var(--wm-radius-xs); padding: 1px 6px; }
.wm-icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: var(--wm-border); border-radius: var(--wm-radius-sm); background: var(--wm-card); color: var(--wm-ink); }
.wm-icon-btn svg { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .wm-nav__links, .wm-search { display: none; }
}

/* ---------- Type ---------- */
.wm-display, .wm-h2, .wm-h3-serif {
  font-family: var(--wm-serif);
  font-weight: 700;
  color: var(--wm-ink);
  letter-spacing: var(--wm-tracking-display);
  margin: 0;
}
.wm-display { font-size: var(--wm-text-hero); line-height: 1.04; text-transform: lowercase; }
.wm-h2 { font-size: var(--wm-text-h2); line-height: 1.08; }
.wm-h3-serif { font-size: 26px; line-height: 1.2; }
.wm-h3 { font-family: var(--wm-sans); font-weight: 700; font-size: var(--wm-text-h3); line-height: 1.3; color: var(--wm-ink); margin: 0; }
.wm-lead { font-size: var(--wm-text-lead); line-height: 1.6; color: var(--wm-soft); max-width: 560px; margin: var(--wm-space-4) 0 0; }
.wm-center .wm-lead { margin-left: auto; margin-right: auto; }
.wm-label { display: inline-block; font-family: var(--wm-mono); font-size: 12px; font-weight: 600; letter-spacing: var(--wm-tracking-caps); text-transform: uppercase; color: var(--wm-orange); margin-bottom: var(--wm-space-3); }
.wm-small { font-size: var(--wm-text-small); color: var(--wm-soft); }
.wm-mono { font-family: var(--wm-mono); font-size: 14px; }
.wm-orange { color: var(--wm-orange); }

/* The dictionary entry: the signature heading */
.wm-entry { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--wm-space-3) var(--wm-space-4); margin: 0; }
.wm-entry__word { font-family: var(--wm-serif); font-weight: 400; font-size: var(--wm-text-word); line-height: 1; color: var(--wm-orange); letter-spacing: -0.01em; white-space: nowrap; }
.wm-entry__pos { font-family: var(--wm-mono); font-size: 11px; font-weight: 600; letter-spacing: var(--wm-tracking-caps); text-transform: uppercase; background: var(--wm-ink); color: var(--wm-on-dark); padding: 3px 7px; border-radius: var(--wm-radius-xs); transform: translateY(-0.6em); }
.wm-entry__gloss { font-size: var(--wm-text-body); color: var(--wm-ink-soft); transform: translateY(-0.6em); }
.wm-entry--sm .wm-entry__word { font-size: clamp(32px, 3.6vw, 46px); }

/* ---------- Buttons and links ---------- */
.wm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--wm-radius-sm);
  font-family: var(--wm-sans); font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.wm-btn:focus-visible { outline: none; box-shadow: var(--wm-focus); }
.wm-btn--orange { background: var(--wm-orange); color: var(--wm-card); }
.wm-btn--orange:hover { background: var(--wm-orange-deep); }
.wm-btn--ink { background: var(--wm-ink); color: var(--wm-on-dark); }
.wm-btn--ink:hover { background: var(--wm-ink-soft); }
.wm-btn--outline { background: var(--wm-card); color: var(--wm-ink); border-color: var(--wm-line-strong); }
.wm-btn--outline:hover { border-color: var(--wm-ink); }
.wm-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.wm-btn--block { width: 100%; }
.wm-btn svg { width: 16px; height: 16px; }

.wm-go { display: inline-flex; align-items: center; gap: 6px; font-family: var(--wm-sans); font-size: 15px; font-weight: 600; letter-spacing: var(--wm-tracking-caps); text-transform: uppercase; color: var(--wm-orange); text-decoration: none; white-space: nowrap; }
.wm-go::after { content: "\2192"; transition: transform .15s ease; }
.wm-go:hover::after { transform: translateX(4px); }
.wm-go--ink { color: var(--wm-ink); }
.wm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wm-space-5); margin-top: var(--wm-space-6); }
.wm-center .wm-actions { justify-content: center; }

/* ---------- Hero ---------- */
.wm-hero { position: relative; background: var(--wm-haze-gradient); overflow: hidden; }
.wm-hero__body { position: relative; z-index: 2; padding-top: var(--wm-space-9); padding-bottom: var(--wm-space-6); }
.wm-hero__belt { position: relative; z-index: 1; }
@media (min-width: 760px) { .wm-hero__belt { margin-top: calc(var(--wm-space-8) * -1); } }
.wm-hero__belt svg { width: 100%; height: auto; }
@media (min-width: 1000px) {
  .wm-hero--side .wm-hero__body { padding-bottom: var(--wm-space-9); max-width: 560px; margin-left: max(0px, calc((100% - var(--wm-container)) / 2)); }
  .wm-hero--side .wm-hero__belt { position: absolute; inset: 40px -40px 0 30%; margin: 0; }
  .wm-hero--side .wm-hero__belt svg { height: 100%; }
}

/* The conveyor (inline SVG, see demo.html) */
.wm-belt-top { fill: var(--wm-steel-light); }
.wm-belt-side { fill: var(--wm-steel); }
.wm-belt-slat { stroke: var(--wm-steel); stroke-width: 1.5; }
.wm-belt-leg { fill: var(--wm-steel-dark); }
.wm-machine-front { fill: var(--wm-orange); }
.wm-machine-side { fill: var(--wm-orange-deep); }
.wm-machine-top { fill: var(--wm-orange-light); }
.wm-machine-mouth { fill: var(--wm-graphite); }
.wm-machine-text { fill: var(--wm-card); font-family: var(--wm-sans); font-weight: 700; font-size: 15px; letter-spacing: .24em; }
.wm-parcel-top { fill: var(--wm-orange-light); }
.wm-parcel-front { fill: var(--wm-orange); }
.wm-parcel-side { fill: var(--wm-orange-deep); }
.wm-parcel--plain .wm-parcel-top { fill: var(--wm-card); }
.wm-parcel--plain .wm-parcel-front { fill: var(--wm-haze); }
.wm-parcel--plain .wm-parcel-side { fill: var(--wm-steel-light); }
.wm-parcel { animation: wm-ride 14s linear infinite; }
@keyframes wm-ride {
  from { transform: translate(-120px, 30px); }
  to { transform: translate(920px, -230px); }
}
.wm-light { fill: var(--wm-card); animation: wm-blink 1.6s steps(2, start) infinite; }
@keyframes wm-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  .wm-parcel, .wm-light, .wm-rise { animation: none !important; }
}

/* ---------- Sections ---------- */
.wm-section { padding: var(--wm-space-9) 0; }
.wm-section--tight { padding: var(--wm-space-8) 0; }
.wm-section--white { background: var(--wm-card); border-top: var(--wm-border); border-bottom: var(--wm-border); }
.wm-section--haze { background: var(--wm-haze); }
.wm-head { max-width: 640px; margin-bottom: var(--wm-space-7); }
.wm-center.wm-head, .wm-head.wm-center { margin-left: auto; margin-right: auto; }
.wm-rule { border: 0; border-top: var(--wm-border); margin: var(--wm-space-6) 0; }

.wm-grid-2, .wm-grid-3, .wm-grid-4 { display: grid; gap: var(--wm-space-5); }
.wm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.wm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wm-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .wm-grid-3, .wm-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .wm-grid-2, .wm-grid-3, .wm-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.wm-card { background: var(--wm-card); border: var(--wm-border); border-radius: var(--wm-radius-lg); padding: var(--wm-space-6); }
.wm-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--wm-radius); background: var(--wm-orange-soft); color: var(--wm-orange); margin-bottom: var(--wm-space-5); }
.wm-card__icon svg { width: 20px; height: 20px; }
.wm-card__title { font-family: var(--wm-sans); font-weight: 700; font-size: 19px; color: var(--wm-ink); margin: 0 0 var(--wm-space-2); }
.wm-card__text { margin: 0; color: var(--wm-soft); font-size: 16px; }
.wm-card--lift { box-shadow: var(--wm-shadow-card); border-color: transparent; }

/* Paper over graphite: the layered chart composition */
.wm-stack { position: relative; padding: 0 0 var(--wm-space-7) var(--wm-space-7); }
.wm-panel { background: var(--wm-graphite); color: var(--wm-on-dark); border-radius: var(--wm-radius-lg); padding: var(--wm-space-5); box-shadow: var(--wm-shadow-lift); }
.wm-panel__top { display: flex; justify-content: space-between; gap: var(--wm-space-3); font-family: var(--wm-mono); font-size: 12px; color: var(--wm-graphite-soft); margin-bottom: var(--wm-space-4); }
.wm-panel__tabs { display: flex; gap: 6px; }
.wm-panel__tabs span { padding: 2px 8px; border: 1px solid var(--wm-graphite-line); border-radius: var(--wm-radius-xs); }
.wm-panel__tabs span[aria-current] { background: var(--wm-on-dark); color: var(--wm-graphite); border-color: var(--wm-on-dark); }
.wm-panel svg { width: 100%; height: auto; }
.wm-chart-grid { stroke: var(--wm-graphite-line); stroke-width: 1; }
.wm-chart-line { fill: none; stroke: var(--wm-on-dark); stroke-width: 2; }
.wm-chart-line--orange { stroke: var(--wm-orange); stroke-width: 2.5; }
.wm-chart-dot { fill: var(--wm-graphite); stroke: var(--wm-on-dark); stroke-width: 2; }
.wm-chart-label { fill: var(--wm-graphite-soft); font-family: var(--wm-mono); font-size: 11px; }
.wm-sheet { position: absolute; left: 0; bottom: 0; width: min(300px, 62%); background: var(--wm-card); color: var(--wm-ink-soft); border-radius: var(--wm-radius); padding: var(--wm-space-5); box-shadow: var(--wm-shadow-lift); font-size: 13px; line-height: 1.5; }
.wm-sheet__title { font-family: var(--wm-serif); font-weight: 700; font-size: 18px; color: var(--wm-ink); margin: 0 0 var(--wm-space-2); line-height: 1.2; }
.wm-sheet__row { display: flex; justify-content: space-between; gap: var(--wm-space-2); padding: 6px 0; border-top: var(--wm-border); font-family: var(--wm-mono); font-size: 12px; }
.wm-sheet__row b { color: var(--wm-orange); font-weight: 600; }
@media (max-width: 620px) {
  .wm-stack { padding: 0; }
  .wm-sheet { position: relative; width: auto; margin: calc(var(--wm-space-6) * -1) var(--wm-space-4) 0; }
}

/* ---------- Badges ---------- */
.wm-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--wm-pill); font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--wm-card); border: var(--wm-border); color: var(--wm-ink-soft); }
.wm-badge--orange { background: var(--wm-orange-soft); border-color: transparent; color: var(--wm-orange-deep); }
.wm-badge--ink { background: var(--wm-ink); border-color: transparent; color: var(--wm-on-dark); }
.wm-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wm-orange); }

/* ---------- Steps, stats, quote ---------- */
.wm-steps { counter-reset: wm-step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wm-space-6); list-style: none; margin: 0; padding: 0; }
.wm-steps li { counter-increment: wm-step; border-top: 2px solid var(--wm-ink); padding-top: var(--wm-space-5); }
.wm-steps li::before { content: "0" counter(wm-step); display: block; font-family: var(--wm-mono); font-size: 13px; font-weight: 600; color: var(--wm-orange); margin-bottom: var(--wm-space-3); }
.wm-steps h3 { font-family: var(--wm-serif); font-size: 24px; font-weight: 700; color: var(--wm-ink); margin: 0 0 var(--wm-space-2); letter-spacing: var(--wm-tracking-display); }
.wm-steps p { margin: 0; color: var(--wm-soft); }
@media (max-width: 800px) { .wm-steps { grid-template-columns: 1fr; } }

.wm-stats { display: flex; flex-wrap: wrap; gap: var(--wm-space-7); }
.wm-stat__num { font-family: var(--wm-serif); font-weight: 700; font-size: 44px; line-height: 1; color: var(--wm-ink); letter-spacing: var(--wm-tracking-display); }
.wm-stat__num em { font-style: normal; color: var(--wm-orange); }
.wm-stat__label { font-size: 14px; color: var(--wm-soft); margin-top: 6px; }

.wm-quote { font-family: var(--wm-serif); font-weight: 400; font-style: italic; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.35; color: var(--wm-ink); margin: 0; }
.wm-quote-by { display: flex; align-items: center; gap: var(--wm-space-3); margin-top: var(--wm-space-5); font-size: 15px; }
.wm-quote-by b { color: var(--wm-ink); }
.wm-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--wm-orange-soft); color: var(--wm-orange-deep); font-weight: 700; font-size: 14px; }
.wm-avatar--ink { background: var(--wm-ink); color: var(--wm-on-dark); }

/* ---------- Pricing ---------- */
.wm-segment { display: inline-flex; padding: 3px; border-radius: var(--wm-radius-sm); background: var(--wm-haze); border: var(--wm-border); }
.wm-segment button { border: 0; background: transparent; font: 600 14px var(--wm-sans); color: var(--wm-soft); padding: 7px 14px; border-radius: var(--wm-radius-xs); cursor: pointer; white-space: nowrap; }
.wm-segment button[aria-pressed="true"] { background: var(--wm-card); color: var(--wm-ink); box-shadow: 0 1px 2px rgba(34, 32, 30, .12); }

.wm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wm-space-5); align-items: stretch; }
@media (max-width: 900px) { .wm-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.wm-plan { display: flex; flex-direction: column; background: var(--wm-card); border: var(--wm-border); border-radius: var(--wm-radius-lg); padding: var(--wm-space-6); }
.wm-plan--featured { border: 2px solid var(--wm-ink); box-shadow: var(--wm-shadow-lift); }
.wm-plan__top { display: flex; justify-content: space-between; align-items: center; gap: var(--wm-space-2); }
.wm-plan__name { font-family: var(--wm-serif); font-weight: 700; font-size: 26px; color: var(--wm-ink); margin: 0; letter-spacing: var(--wm-tracking-display); }
.wm-plan__pos { font-family: var(--wm-mono); font-size: 12px; color: var(--wm-faint); margin-top: 2px; }
.wm-plan__price { font-family: var(--wm-serif); font-weight: 700; font-size: 52px; line-height: 1; color: var(--wm-ink); margin: var(--wm-space-5) 0 var(--wm-space-1); letter-spacing: var(--wm-tracking-display); }
.wm-plan__price small { font-family: var(--wm-sans); font-weight: 500; font-size: 15px; color: var(--wm-soft); letter-spacing: 0; }
.wm-plan__desc { color: var(--wm-soft); font-size: 15px; margin: var(--wm-space-2) 0 var(--wm-space-5); }
.wm-plan__list { list-style: none; margin: 0 0 var(--wm-space-6); padding: var(--wm-space-5) 0 0; border-top: var(--wm-border); display: grid; gap: 10px; font-size: 15px; flex: 1; }
.wm-plan__list li { display: flex; gap: 10px; align-items: baseline; }
.wm-plan__list li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; background: var(--wm-orange); transform: translateY(-1px) rotate(45deg); }

.wm-table-wrap { overflow-x: auto; border: var(--wm-border); border-radius: var(--wm-radius-lg); background: var(--wm-card); }
.wm-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.wm-table th, .wm-table td { padding: 14px 18px; text-align: left; border-bottom: var(--wm-border); }
.wm-table thead th { font-family: var(--wm-mono); font-size: 12px; font-weight: 600; letter-spacing: var(--wm-tracking-caps); text-transform: uppercase; color: var(--wm-soft); background: var(--wm-paper); }
.wm-table tr:last-child td { border-bottom: 0; }
.wm-table td:not(:first-child), .wm-table th:not(:first-child) { text-align: center; }
.wm-yes { color: var(--wm-orange); font-weight: 700; }
.wm-no { color: var(--wm-faint); }

.wm-faq { border-top: var(--wm-border); }
.wm-faq details { border-bottom: var(--wm-border); }
.wm-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--wm-space-4); padding: 20px 0; font-weight: 600; font-size: 18px; color: var(--wm-ink); }
.wm-faq summary::-webkit-details-marker { display: none; }
.wm-faq summary::after { content: "+"; font-family: var(--wm-mono); color: var(--wm-orange); font-size: 20px; line-height: 1; }
.wm-faq details[open] summary::after { content: "\2212"; }
.wm-faq p { margin: 0 0 20px; color: var(--wm-soft); max-width: 620px; }

/* ---------- Article ---------- */
.wm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wm-space-3); font-family: var(--wm-mono); font-size: 13px; color: var(--wm-soft); }
.wm-author { display: flex; align-items: center; gap: var(--wm-space-3); font-size: 15px; }
.wm-author b { display: block; color: var(--wm-ink); }
.wm-author--card { background: var(--wm-card); border: var(--wm-border); border-radius: var(--wm-radius-lg); padding: var(--wm-space-5); align-items: flex-start; }
.wm-cover { border-radius: var(--wm-radius-lg); background: var(--wm-haze-gradient); border: var(--wm-border); overflow: hidden; }
.wm-cover svg { width: 100%; height: auto; }

.wm-prose { font-size: 18px; line-height: 1.75; color: var(--wm-ink-soft); }
.wm-prose > * { margin: 0; }
.wm-prose > * + * { margin-top: var(--wm-space-5); }
.wm-prose h2 { font-family: var(--wm-serif); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--wm-ink); letter-spacing: var(--wm-tracking-display); margin: var(--wm-space-7) 0 0; }
.wm-prose a { color: var(--wm-orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wm-prose ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.wm-prose ul li { display: flex; gap: 12px; align-items: baseline; }
.wm-prose ul li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; background: var(--wm-orange); transform: translateY(-2px) rotate(45deg); }
.wm-prose blockquote { margin: var(--wm-space-7) 0; padding: 0 0 0 var(--wm-space-5); border-left: 3px solid var(--wm-orange); font-family: var(--wm-serif); font-style: italic; font-size: 24px; line-height: 1.45; color: var(--wm-ink); }
.wm-prose code { font-family: var(--wm-mono); font-size: .85em; background: var(--wm-haze); padding: 2px 6px; border-radius: var(--wm-radius-xs); }
.wm-callout { background: var(--wm-card); border: var(--wm-border); border-left: 3px solid var(--wm-ink); border-radius: var(--wm-radius-sm); padding: var(--wm-space-5); font-size: 16px; }
.wm-callout .wm-entry { margin-bottom: var(--wm-space-2); }
.wm-callout .wm-entry__word { font-size: 28px; }
.wm-figure { margin: var(--wm-space-7) 0; }
.wm-figure figcaption { margin-top: var(--wm-space-3); font-family: var(--wm-mono); font-size: 13px; color: var(--wm-soft); }

.wm-post { display: block; text-decoration: none; background: var(--wm-card); border: var(--wm-border); border-radius: var(--wm-radius-lg); overflow: hidden; transition: box-shadow .15s ease; }
.wm-post:hover { box-shadow: var(--wm-shadow-card); }
.wm-post__art { aspect-ratio: 16 / 9; background: var(--wm-haze-gradient); border-bottom: var(--wm-border); display: grid; place-items: center; overflow: hidden; }
.wm-post__art svg { width: 70%; height: auto; }
.wm-post__body { padding: var(--wm-space-5); }
.wm-post__title { font-family: var(--wm-serif); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--wm-ink); margin: var(--wm-space-2) 0 0; letter-spacing: var(--wm-tracking-display); }

/* ---------- Forms ---------- */
.wm-form { display: grid; gap: var(--wm-space-5); }
.wm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wm-space-4); }
@media (max-width: 520px) { .wm-row-2 { grid-template-columns: 1fr; } }
.wm-field { display: grid; gap: 6px; }
.wm-field-label { font-size: 14px; font-weight: 600; color: var(--wm-ink); }
.wm-input, .wm-select {
  width: 100%; height: 46px; padding: 0 14px;
  font: 400 16px var(--wm-sans); color: var(--wm-ink);
  background: var(--wm-card); border: 1px solid var(--wm-line-strong); border-radius: var(--wm-radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wm-input::placeholder { color: var(--wm-faint); }
.wm-input:focus, .wm-select:focus { outline: none; border-color: var(--wm-orange); box-shadow: var(--wm-focus); }
.wm-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--wm-soft) 50%), linear-gradient(-45deg, transparent 50%, var(--wm-soft) 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.wm-input-wrap { position: relative; }
.wm-input-wrap .wm-input { padding-right: 70px; }
.wm-input-toggle { position: absolute; right: 8px; top: 8px; height: 30px; padding: 0 10px; border: 0; background: var(--wm-haze); border-radius: var(--wm-radius-xs); font: 600 12px var(--wm-mono); color: var(--wm-ink-soft); cursor: pointer; text-transform: uppercase; letter-spacing: var(--wm-tracking-caps); }
.wm-help { font-size: 13px; color: var(--wm-soft); }
.wm-error { font-size: 13px; color: var(--wm-alert); font-weight: 600; }
.wm-field--error .wm-input { border-color: var(--wm-alert); }
.wm-chips { display: flex; flex-wrap: wrap; gap: var(--wm-space-2); }
.wm-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--wm-pill); border: 1px solid var(--wm-line-strong); background: var(--wm-card); font: 500 14px var(--wm-sans); color: var(--wm-ink-soft); cursor: pointer; white-space: nowrap; }
.wm-chip[aria-pressed="true"] { background: var(--wm-orange-soft); border-color: var(--wm-orange); color: var(--wm-orange-deep); }
.wm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--wm-soft); }
.wm-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wm-orange); flex-shrink: 0; }
.wm-divider-text { display: flex; align-items: center; gap: var(--wm-space-3); font-family: var(--wm-mono); font-size: 12px; color: var(--wm-faint); text-transform: uppercase; letter-spacing: var(--wm-tracking-caps); }
.wm-divider-text::before, .wm-divider-text::after { content: ""; flex: 1; border-top: var(--wm-border); }

/* ---------- Footer ---------- */
.wm-footer { background: var(--wm-card); border-top: var(--wm-border); padding: var(--wm-space-8) 0 var(--wm-space-6); font-size: 15px; }
.wm-footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--wm-space-6); }
.wm-footer h4 { font-family: var(--wm-mono); font-size: 12px; font-weight: 600; letter-spacing: var(--wm-tracking-caps); text-transform: uppercase; color: var(--wm-faint); margin: 0 0 var(--wm-space-4); }
.wm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wm-footer a { text-decoration: none; color: var(--wm-ink-soft); }
.wm-footer a:hover { color: var(--wm-orange); }
.wm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--wm-space-3); margin-top: var(--wm-space-7); padding-top: var(--wm-space-5); border-top: var(--wm-border); font-size: 13px; color: var(--wm-faint); }
@media (max-width: 800px) { .wm-footer__cols { grid-template-columns: 1fr 1fr; } .wm-footer__cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Helpers ---------- */
.wm-fill-orange { fill: var(--wm-orange); }
.wm-fill-ink { fill: var(--wm-ink); }
.wm-fill-steel { fill: var(--wm-steel-light); }
.wm-fill-card { fill: var(--wm-card); }
.wm-fill-faded { fill: var(--wm-card); opacity: .5; }
.wm-stroke-steel { stroke: var(--wm-steel-dark); stroke-width: 2; }
.wm-stroke-ink { stroke: var(--wm-ink); }
.wm-rise { animation: wm-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
