/* MOCHI CHARMS site styles.
   Baloo 2 and Figtree are self-hosted under the SIL Open Font License 1.1.
   Chinese text uses the system fonts (PingFang SC, Microsoft YaHei, Noto Sans CJK). */

@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  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;
}

:root {
  --ink: #1e2546;
  --ink-2: #4b5272;
  --ink-3: #737992;
  --paper: #fff;
  --mist: #f5f3fc;
  --mist-2: #ebe6fb;
  --line: #e2ddf1;
  --lilac: #c5b6ff;
  --hole: #9b87ee;
  --violet: #5b45c9;
  --display: "Baloo 2", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --wrap: 74rem;
  --measure: 42rem;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang^="zh"] body { font-size: 1rem; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.012em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem); line-height: 1.08; }
h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
html[lang^="zh"] h1, html[lang^="zh"] h2 { letter-spacing: 0; line-height: 1.25; }
html[lang^="zh"] h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { word-break: keep-all; overflow-wrap: anywhere; }
p, ul, ol, dl, figure { margin: 0; }
table { border-collapse: collapse; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  font-family: "Baloo 2", var(--body); font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: .01em;
  white-space: nowrap;
}
.brand svg { width: 2.15rem; height: 2.15rem; flex: none; }
.brand span { padding-top: .18em; }
.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a {
  padding: .5rem .72rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .97rem; color: var(--ink-2); white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--mist-2); }
.header-actions { display: flex; align-items: center; gap: .9rem; margin-left: .5rem; }
.lang { font-weight: 600; font-size: .95rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.lang:hover { color: var(--ink); text-decoration: underline; }
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1.5px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 1.1rem; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
}
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(30, 37, 70, .35);
  padding: .75rem var(--gutter) 1.25rem;
  display: grid; gap: .1rem;
}
.menu-panel a { padding: .8rem .25rem; border-bottom: 1px solid var(--mist-2); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.menu-panel a[aria-current="page"] { color: var(--violet); }
.menu-panel .btn { margin-top: .9rem; border-bottom: 0; }
@media (max-width: 1080px) {
  .nav, .header-actions { display: none; }
  .menu { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #2c3566; border-color: #2c3566; }
.btn-light { background: transparent; color: var(--ink); }
.btn-light:hover { background: var(--mist); border-color: var(--ink); }
.btn-sm { min-height: 2.4rem; padding: .45rem 1rem; font-size: .95rem; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--mist-2); border-color: var(--mist-2); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .lede { margin-top: 1.15rem; font-size: 1.2rem; color: var(--ink-2); max-width: 33rem; }
.hero .actions { margin-top: 1.8rem; }
.facts {
  list-style: none; padding: 1.25rem 0 0; margin-top: 2.1rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.75rem;
}
.facts li { font-size: .97rem; color: var(--ink-2); line-height: 1.4; }
.facts strong { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 700; margin-bottom: .1rem; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the clog: a shoe upper with holes, real charms plugged into some of them */
.clog {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  background: var(--lilac); border-radius: clamp(28px, 5vw, 56px);
}
.clog .hole {
  position: absolute; width: 8.6%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--hole);
  box-shadow: inset 0 .32rem .45rem rgba(30, 37, 70, .30), 0 1px 0 rgba(255, 255, 255, .45);
}
.clog .charm {
  position: absolute; width: var(--w, 24%); height: auto;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  filter: drop-shadow(0 .55rem .5rem rgba(30, 37, 70, .28));
  animation: plug .6s cubic-bezier(.2, .9, .3, 1.25) both;
  animation-delay: calc(var(--i, 0) * 85ms + 120ms);
}
@keyframes plug {
  from { opacity: 0; transform: translate(-50%, -62%) rotate(var(--r, 0deg)) scale(.7); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .clog .charm { animation: none; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-mist { background: var(--mist); }
.section-tight { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.6rem); }
.section-head p { margin-top: .85rem; font-size: 1.12rem; color: var(--ink-2); }
.section-foot { margin-top: 2.1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- inner page head ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .9rem; color: var(--ink-3); margin-bottom: 1.1rem; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.page-head .lede { margin-top: 1.05rem; font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; }
.page-head .facts { max-width: 60rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .page-head .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- charm tiles ---------- */
.charm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); gap: 1rem; }
.charm-grid.large { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
@media (max-width: 600px) { .charm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; } .charm-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); } .charm-card .cap { font-size: .82rem; } }
.charm-card { display: block; text-decoration: none; }
.charm-card .tile { aspect-ratio: 1; background: var(--mist); border-radius: var(--r-m); display: grid; place-items: center; padding: 11%; }
.section-mist .charm-card .tile { background: #fff; }
.charm-card img { width: 100%; filter: drop-shadow(0 .35rem .35rem rgba(30, 37, 70, .16)); }
.charm-card figcaption, .charm-card .cap { display: block; margin-top: .55rem; font-size: .93rem; font-weight: 600; color: var(--ink-2); }
a.charm-card:hover .cap { color: var(--ink); text-decoration: underline; }

/* ---------- series cards ---------- */
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .series-grid { grid-template-columns: 1fr; } }
.series-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.series-card .covers { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: 1.1rem; background: var(--mist); }
.series-card .covers img { filter: drop-shadow(0 .25rem .25rem rgba(30, 37, 70, .14)); }
.series-card .body { padding: 1rem 1.2rem 1.25rem; }
.series-card h3 { font-size: 1.12rem; }
.series-card p { margin-top: .3rem; font-size: .95rem; color: var(--ink-2); }
.series-card .code { display: block; margin-top: .55rem; font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
a.series-card:hover { border-color: var(--hole); }
a.series-card:hover h3 { text-decoration: underline; }
.series-block + .series-block { margin-top: clamp(2.5rem, 5vw, 4rem); }
.series-block h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.series-block > p { margin-top: .4rem; color: var(--ink-2); }
.series-block .charm-grid { margin-top: 1.1rem; }
@media (max-width: 600px) { .series-block .charm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.7rem; height: 2.7rem; border-radius: 50%; margin-bottom: .95rem;
  background: var(--hole); color: #fff; font: 800 1.25rem/1 "Baloo 2", var(--body);
  box-shadow: inset 0 .25rem .35rem rgba(30, 37, 70, .30);
  padding-top: .12em;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.35rem; left: 3.4rem; right: -1rem; height: 2px; background: var(--line); }
.steps h3 { font-size: 1.05rem; }
.steps p { margin-top: .35rem; color: var(--ink-2); font-size: .97rem; }
.steps .time { display: block; margin-top: .6rem; font-weight: 700; font-size: .92rem; color: var(--violet); }
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2.25rem; }
.steps.steps-4 li:nth-child(4n)::after { display: none; }
@media (max-width: 1000px) {
  .steps, .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
}
@media (max-width: 560px) { .steps, .steps.steps-4 { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: .5rem 1.5rem 1.25rem; }
.price { width: 100%; font-variant-numeric: tabular-nums; }
.price th, .price td { text-align: left; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.price thead th { font-size: .9rem; font-weight: 600; color: var(--ink-3); padding-block: .9rem .7rem; }
.price td:last-child, .price th:last-child { text-align: right; }
.price td { font-size: 1.05rem; }
.price .usd { font: 800 1.6rem/1 "Baloo 2", var(--body); }
.price tr:last-child td { border-bottom: 0; }
.price-card .note { margin-top: .4rem; font-size: .92rem; color: var(--ink-2); }
.terms h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.terms h3:not(:first-child) { margin-top: 1.5rem; }
.terms ul { padding-left: 1.15rem; color: var(--ink-2); }
.terms li + li { margin-top: .3rem; }
.terms li::marker { color: var(--hole); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- spec list and options ---------- */
.spec { display: grid; grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; padding-right: 1.25rem; }
.spec dd { color: var(--ink-2); }
@media (max-width: 600px) {
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: 0; padding-bottom: .1rem; }
  .spec dd { padding-top: 0; }
}
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.options h3 { font-size: 1.08rem; }
.options p { margin-top: .4rem; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.numbers div { border-top: 2px solid var(--ink); padding-top: .8rem; }
.numbers strong { display: block; font: 800 2rem/1 "Baloo 2", var(--body); }
.numbers span { display: block; margin-top: .45rem; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 560px) { .numbers { grid-template-columns: 1fr; } }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2.1em; }
.prose h3 { margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--hole); }
.prose strong { font-weight: 700; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; font-size: .96rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }
.prose blockquote { margin-left: 0; padding-left: 1.1rem; border-left: 3px solid var(--lilac); color: var(--ink-2); }
.lead-p { font-size: 1.15rem; color: var(--ink-2); }
.note { background: var(--mist); border-radius: var(--r-s); padding: 1rem 1.2rem; font-size: .97rem; color: var(--ink-2); }
.section-mist .note { background: #fff; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.compare { width: 100%; font-size: .98rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.compare tbody th { font-weight: 700; }
.compare td { color: var(--ink-2); }

/* ---------- related links ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.related a { display: block; height: 100%; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; background: #fff; }
.related a:hover { border-color: var(--hole); }
.related strong { display: block; font-size: 1.02rem; }
.related span { display: block; margin-top: .3rem; font-size: .93rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 3rem 1.15rem 0; font-weight: 700; font-size: 1.08rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .2rem; top: 50%; width: 1.75rem; height: 1.75rem; margin-top: -.875rem; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / .75rem 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px .75rem no-repeat,
    var(--mist-2);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-2); max-width: var(--measure); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- call to action ---------- */
.cta {
  background: var(--ink); color: #d6d9ea; border-radius: var(--r-l);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { margin-top: .85rem; font-size: 1.08rem; }
.cta .actions { margin-top: 1.6rem; }
.cta dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem 1.25rem; font-size: 1rem; }
.cta dt { color: #a9aecb; }
.cta dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.cta dd a { text-decoration: none; }
.cta dd a:hover { text-decoration: underline; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.field .hint { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.95rem; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #cdc7e3; border-radius: var(--r-s);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: 3px solid rgba(91, 69, 201, .18); outline-offset: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label { margin: 0; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: .5rem 1rem; cursor: pointer;
  border: 1.5px solid #cdc7e3; border-radius: 999px; font-weight: 600; font-size: .95rem; background: #fff;
}
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choices input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .3rem; }
.form-note { font-size: .92rem; color: var(--ink-2); }
.form-status { display: none; background: var(--mist); border-radius: var(--r-m); padding: 1.2rem 1.3rem; }
.form-status.is-shown { display: block; }
.form-status h3 { font-size: 1.05rem; }
.form-status p { margin-top: .4rem; color: var(--ink-2); font-size: .97rem; }
.form-status pre { margin: .8rem 0 0; white-space: pre-wrap; font: .9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border-radius: var(--r-s); padding: .9rem 1rem; max-height: 16rem; overflow: auto; }
.form-status .actions { margin-top: .9rem; }
.direct { background: var(--mist); border-radius: var(--r-m); padding: 1.5rem; }
.direct h2 { font: 700 1.1rem/1.3 var(--body); }
.direct dl { margin-top: 1rem; display: grid; gap: .9rem; }
.direct dt { font-size: .9rem; color: var(--ink-3); }
.direct dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.direct p { margin-top: 1.1rem; font-size: .95rem; color: var(--ink-2); }
.direct + .direct { margin-top: 1rem; }
.direct ol { margin-top: .8rem; padding-left: 1.2rem; color: var(--ink-2); font-size: .97rem; }
.direct ol li + li { margin-top: .35rem; }

/* Budget calculator on the prices page (assets/quote.js) */
.calc { display: grid; gap: 1.1rem; max-width: 46rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(1.1rem, 3vw, 1.75rem); }
.calc[hidden] { display: none; }
.calc-rows { display: grid; gap: .9rem; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 2.95rem; gap: .75rem; align-items: end; }
.calc-remove { width: 2.95rem; height: 2.95rem; border: 1.5px solid #cdc7e3; border-radius: var(--r-s); background: #fff; color: var(--ink-2); font: 400 1.5rem/1 var(--body); cursor: pointer; }
.calc-remove:hover { border-color: var(--ink); color: var(--ink); }
.calc-msg, .calc-error { color: #a3264b; font-size: .95rem; }
.calc-msg { grid-column: 1 / -1; }
.calc-msg:empty { display: none; }
.calc-row input[aria-invalid="true"] { border-color: #c2416b; }
.calc-out:empty { display: none; }
.calc-table { width: 100%; font-variant-numeric: tabular-nums; }
.calc-table th, .calc-table td { text-align: left; vertical-align: top; padding: .6rem .6rem .6rem 0; border-bottom: 1px solid var(--line); }
.calc-table thead th { font-size: .88rem; font-weight: 600; color: var(--ink-3); }
.calc-table th:not(:first-child), .calc-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.calc-table th:last-child, .calc-table td:last-child { padding-right: 0; }
.calc-sum { display: grid; gap: .55rem; margin-top: 1rem; }
.calc-sum div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; }
.calc-sum dt { color: var(--ink-2); }
.calc-sum dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc-sum dd span { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-3); }
.calc-sum .calc-total { border-top: 2px solid var(--ink); padding-top: .65rem; }
.calc-sum .calc-total dt { color: var(--ink); font-weight: 700; }
.calc-sum .calc-total dd { font: 800 1.4rem/1.2 var(--display); }
.calc-out h3 { margin-top: 1.5rem; font-size: 1.02rem; }
.calc-small, .calc-note { font-size: .92rem; color: var(--ink-2); margin-top: .7rem; }
.calc-note { margin-top: 0; }
.calc-link { margin-bottom: 1.5rem; }
.note-title { font: 700 1.05rem/1.35 var(--body); color: var(--ink); margin-bottom: .35rem; }
.form .calc-added { font-size: .95rem; }
@media (max-width: 480px) { .calc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.95rem; gap: .5rem; } .calc-row label { font-size: .88rem; } }

/* ---------- blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 2.25rem 1.5rem; }
.post-card a { text-decoration: none; display: block; }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-m); background: var(--mist); }
.post-card time { display: block; margin-top: .95rem; font-size: .87rem; color: var(--ink-3); }
.post-card h2 { margin-top: .25rem; font: 700 1.17rem/1.35 var(--body); letter-spacing: 0; }
.post-card p { margin-top: .45rem; font-size: .97rem; color: var(--ink-2); }
.post-card a:hover h2 { text-decoration: underline; }
.article-head { max-width: 46rem; }
.article-head time { display: block; margin-top: 1rem; color: var(--ink-3); font-size: .95rem; }
.article-cover { margin-top: 2rem; max-width: 58rem; }
.article-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-l); }
.article .prose { margin-top: clamp(2rem, 4vw, 3rem); }
.article h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.08; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c4c8de; padding-block: 3.5rem 2rem; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.footer-brand address { margin-top: 1rem; font-style: normal; max-width: 22rem; }
.footer-brand dl { margin-top: 1rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; }
.footer-brand dt { color: #9599b8; }
.footer-brand dd { margin: 0; overflow-wrap: anywhere; }
.site-footer h2 { font: 700 .95rem/1.3 var(--body); color: #fff; letter-spacing: 0; margin-bottom: .85rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #e3e6f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .87rem; color: #9599b8; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- not found ---------- */
.not-found { padding-block: clamp(4rem, 10vw, 8rem); }
.not-found .clog { max-width: 26rem; margin-top: 2.5rem; aspect-ratio: 5 / 3; }
