:root {
  --paper: #f7f5ef;
  --surface: #ffffff;
  --alt: #eeebe1;
  --ink: #15201b;
  --muted: #5b665f;
  --line: #dcd8cb;
  --accent: #1d6a4d;
  --accent-ink: #ffffff;
  --accent-2: #e0a43a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 30 25 / .06), 0 8px 24px rgb(20 30 25 / .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tint-l: 94%;
  --tint-s: 60%;
  --tone-l: 38%;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101613;
    --surface: #18201c;
    --alt: #141b17;
    --ink: #e9ece6;
    --muted: #a0aaa3;
    --line: #2b3530;
    --accent: #4fb589;
    --accent-ink: #0c1310;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    --tint-l: 20%;
    --tint-s: 35%;
    --tone-l: 72%;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.narrow { max-width: 56ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; font-weight: 650; color: var(--accent); margin-bottom: .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: .8em 1.3em; border-radius: 999px; border: 2px solid var(--accent); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { padding: .45em 1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* header */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.logo-mark { width: 32px; height: 32px; color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } .brand span { font-size: .95rem; } }

/* hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.hero-tiles li { --c: hsl(var(--h) var(--tint-s) var(--tint-l)); background: var(--c); color: hsl(var(--h) 55% var(--tone-l)); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: 1.4rem; font-weight: 650; font-size: .92rem; }
.hero-tiles li:nth-child(odd) { transform: translateY(1.2rem); }
.hero-tiles .icon { width: 30px; height: 30px; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-tiles { display: none; } }

/* sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--alt); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-size: .9rem; padding: .4em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.3rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 30 25 / .08), 0 16px 40px rgb(20 30 25 / .12); }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-art { position: relative; height: 150px; display: grid; place-items: center; color: hsl(var(--h) 55% var(--tone-l));
  background:
    radial-gradient(circle at 80% 20%, hsl(var(--h) 70% 70% / .35), transparent 55%),
    linear-gradient(135deg, hsl(var(--h) var(--tint-s) var(--tint-l)), hsl(calc(var(--h) + 25) var(--tint-s) calc(var(--tint-l) - 5%))); }
.card-art .pill { position: absolute; left: 1rem; bottom: .9rem; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p:not(.eyebrow) { color: var(--muted); font-size: .97rem; }
.card-body .eyebrow { color: hsl(var(--h) 55% var(--tone-l)); }
.more { margin-top: auto; font-weight: 600; font-size: .93rem; color: hsl(var(--h) 55% var(--tone-l)); }
.icon { width: 24px; height: 24px; }
.icon-lg { width: 58px; height: 58px; }
.icon-xl { width: 120px; height: 120px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pill-solid { background: hsl(var(--h) 55% var(--tone-l)); color: var(--paper); border: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 2rem; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--accent-2); margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* contact band */
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact .lead { margin: 0; }

/* product page */
.product-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 85% 30%, hsl(var(--h) 70% 65% / .22), transparent 60%), var(--paper); }
.product-hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: center; }
.product-art { aspect-ratio: 1; max-width: 320px; justify-self: end; width: 100%; border-radius: 28px; display: grid; place-items: center; color: hsl(var(--h) 55% var(--tone-l));
  background: linear-gradient(135deg, hsl(var(--h) var(--tint-s) var(--tint-l)), hsl(calc(var(--h) + 25) var(--tint-s) calc(var(--tint-l) - 6%))); box-shadow: var(--shadow); }
@media (max-width: 760px) { .product-hero-inner { grid-template-columns: 1fr; } .product-art { display: none; } }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta { margin: 0; }
.intro { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; max-width: 62ch; margin-bottom: 2.5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.features li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid hsl(var(--h) 55% var(--tone-l)); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.features p { color: var(--muted); margin: 0; font-size: .97rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.ticks li { padding: .45rem 0 .45rem 1.8rem; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .7rem; height: .4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .35em .85em; border-radius: 8px; background: var(--alt); border: 1px solid var(--line); font-size: .9rem; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.mini-grid a { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.mini-grid a:hover { border-color: hsl(var(--h) 55% var(--tone-l)); }
.mini-grid .icon { color: hsl(var(--h) 55% var(--tone-l)); flex: none; }
.mini-grid span { display: flex; flex-direction: column; }
.mini-grid small { color: var(--muted); }

/* partner */
.partner-logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.partner-logo-sm { width: 22px; height: 22px; }
.partner-logo-lg { width: 120px; height: 120px; object-fit: contain; }
.partner-strip { display: flex; align-items: center; gap: .9rem; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: .9rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .97rem; }
.partner-strip strong { color: var(--ink); }
.partner-inline { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink); vertical-align: middle; }
.partner-inline:hover span { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.partner-panel { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.partner-panel .lead { max-width: 64ch; }
@media (max-width: 640px) { .partner-panel { grid-template-columns: 1fr; } .partner-logo-lg { width: 80px; height: 80px; } }
.footer-sub { margin-top: 1.4rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; background: var(--alt); }
.footer-inner { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 2rem; }
.footer p { margin-top: .8rem; font-size: .93rem; }
.footer h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-links ul { display: grid; gap: .35rem; font-size: .93rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal { margin-top: 2.5rem; font-size: .85rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

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