/* EK5 Tech site styles.

   The site has two divisions, Software and Integration, and one system:
   one typeface, one accent, a spacing scale, and surfaces instead of borders.

   1. Tokens and base      5. Home and Integration pages
   2. Type                 6. Store and product pages
   3. Buttons and links    7. Cart, checkout, account, admin
   4. Header and footer    8. Motion, small screens, print */

/* 1. Tokens and base ------------------------------------------------------------------------ */

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ink: #1d1d1f;
  --ink-2: #48484d;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ebebef;

  --brand: #4b1515;
  --brand-deep: #330c0c;
  --brand-tint: #f7efef;
  --on-brand: #ffffff;
  --on-brand-2: #e9cfcc;

  --warn-bg: #fff6e0;
  --warn-text: #6b4700;
  --ok-bg: #edf6ee;
  --ok-text: #1f5a2a;
  --error: #a11212;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --pill: 980px;

  --page: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 52px;
  --section: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Names used by earlier styles and inline markup. */
  --ek5-black: var(--ink);
  --ek5-dark-gray: var(--ink-3);
  --ek5-burgundy: var(--brand);
  --ek5-burgundy-dark: var(--brand-deep);
  --ek5-light-bg: var(--surface-2);
  --ek5-accent: var(--brand);
  --ek5-border: var(--line-soft);
  --ek5-border-strong: var(--line);
  --ek5-tint: var(--brand-tint);
  --ek5-warn-bg: var(--warn-bg);
  --ek5-warn-text: var(--warn-text);
  --ek5-ok-bg: var(--ok-bg);
  --ek5-ok-text: var(--ok-text);
  --max-width: var(--page);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 100; border-radius: var(--pill); box-shadow: var(--shadow); }
.skip-link:focus { left: 0.75rem; top: 0.75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { display: block; }
main:not(.bleed) { max-width: var(--page); margin: 0 auto; padding: 1.75rem var(--gutter) 6rem; }
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* 2. Type ----------------------------------------------------------------------------------- */

h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -0.028em; line-height: 1.06; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.19rem; letter-spacing: -0.012em; line-height: 1.25; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 600; }
small { font-size: 0.82em; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }

.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.h-plain { text-transform: none; letter-spacing: -0.012em; }

.eyebrow { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--brand); }
.headline { font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.05; }
/* A heading in two tones: the name in ink, the rest of the sentence in gray. */
.headline-duo { font-size: clamp(1.75rem, 3.6vw, 2.9rem); letter-spacing: -0.028em; line-height: 1.1; max-width: 22ch; }
.headline-duo span { color: var(--ink-3); }
.lede, .intro-lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-3); max-width: 60ch; }

/* 3. Buttons and links ---------------------------------------------------------------------- */

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s var(--ease);
}
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: var(--brand-deep); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #ffffff; text-decoration: none; }
.btn-primary:active, .btn-secondary:active { transform: scale(0.97); }
.btn-primary[disabled], .btn-secondary[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-small { min-height: 36px; padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--brand); cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; }

/* A text link that leads on, with a chevron that moves a little on hover. */
.link-more { display: inline-flex; align-items: center; gap: 0.3em; text-decoration: none; font-weight: 400; }
.link-more::after { content: ""; width: 0.42em; height: 0.42em; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: translate 0.25s var(--ease); margin-top: 0.08em; }
.link-more:hover { text-decoration: underline; }
a:hover > .link-more::after, .link-more:hover::after { translate: 0.2em 0; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

/* 4. Header and footer ---------------------------------------------------------------------- */

.demo-banner { background: var(--ink); color: #f5f5f7; font-size: 0.82rem; text-align: center; padding: 0.45rem 1rem; }
.demo-banner a { color: #ffffff; }
.store-notice { background: var(--brand-tint); color: var(--brand); font-size: 0.875rem; text-align: center; padding: 0.5rem 1rem; }

/* A sale. The banner runs across every page while a sale is on. Each sale price is written
   beside the regular price it goes back to: app.js adds .sale-over to the element that carries
   the end time once that time has passed, and the regular price takes over. */
.promo-banner { background: var(--ink); color: #f5f5f7; font-size: 0.875rem; line-height: 1.4; text-align: center; padding: 0.6rem 1rem; }
.promo-banner strong { color: #ffffff; font-weight: 600; }
.promo-banner a { color: #ffffff; white-space: nowrap; margin-left: 0.25em; }
[data-sale-ends] .when-regular, .sale-over .when-sale, .sale-only.sale-over, .promo-banner.sale-over { display: none; }
.sale-over .when-regular { display: revert; }
/* Positioned, so the hidden "Regular price" and "Sale price" labels stay inside a row of cards that scrolls sideways. */
.price-was, .price-now { position: relative; }
.price-was { color: var(--ink-3); font-weight: 400; font-size: 0.85em; text-decoration-thickness: 1px; }
.tag.tag-sale { background: var(--ink); color: #ffffff; }
.sale-note { background: var(--surface-2); border-radius: var(--radius-m); padding: 0.8rem 1rem; font-size: 0.85rem; line-height: 1.45; margin: 0 0 1.1rem; }
.plan-option .plan-price .price-was { display: block; }
.shelf-price .price-was { font-size: 0.8em; }
.sale-table td.num strong { font-weight: 600; }
.sale-page .cta-row { margin-top: 1.75rem; }
@media (max-width: 640px) {
  /* On a phone the table keeps to the screen: the saving column goes and each regular price sits above its sale price. */
  .sale-table th:nth-child(4), .sale-table td:nth-child(4) { display: none; }
  .sale-table .price-was { display: block; }
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.site-header { background: #ffffff; }
}
.nav-container { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 2.25rem; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 28px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 2rem; flex: 1; font-size: 0.875rem; }
.nav-links a { color: var(--ink); opacity: 0.8; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: opacity 0.18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-links .nav-phone { margin-left: auto; gap: 0.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-phone svg { width: 15px; height: 15px; }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; font-size: 0.875rem; flex: none; }
.nav-actions a { color: var(--ink); opacity: 0.8; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; transition: opacity 0.18s ease; }
.nav-actions a:hover { opacity: 1; }
.nav-actions svg { width: 19px; height: 19px; }
.nav-actions [data-testid="link-cart"] .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cart-count { background: var(--brand); color: #ffffff; border-radius: var(--pill); font-size: 0.7rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-store { display: none !important; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); margin-right: -0.6rem; }
.nav-toggle svg { width: 22px; height: 22px; overflow: visible; }
.nav-toggle path { transition: transform 0.3s var(--ease); transform-box: fill-box; transform-origin: center; }
.nav-toggle[aria-expanded="true"] path:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] path:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Each division's own bar, under the header on that division's pages. */
.local-nav { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.local-nav-inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); min-height: 56px; display: flex; align-items: center; gap: 2rem; }
.local-title { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; flex: none; }
.local-title:hover { text-decoration: none; }
.local-links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; font-size: 0.82rem; overflow-x: auto; scrollbar-width: none; }
.local-links::-webkit-scrollbar { display: none; }
.local-links a { color: var(--ink); opacity: 0.8; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.local-links a:hover, .local-links a[aria-current="page"] { opacity: 1; }
.local-links a[aria-current="page"] { font-weight: 600; }
.local-nav .btn-small { flex: none; min-height: 32px; padding: 0.3rem 0.9rem; font-size: 0.82rem; }

footer.site-footer { background: var(--surface-2); color: var(--ink-3); font-size: 0.8rem; line-height: 1.45; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 2.75rem var(--gutter) 2.25rem; }
.footer-help { font-size: 0.95rem; color: var(--ink); max-width: 62ch; padding-bottom: 2rem; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-title { color: var(--ink); font-weight: 600; margin-bottom: 0.6rem; }
.footer-links ul { list-style: none; display: grid; gap: 0.1rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { max-width: 96ch; padding-top: 1.5rem; }
.footer-legal { padding-top: 0.5rem; }

/* 5. Home and Integration pages ------------------------------------------------------------- */

/* The home page hero: Software, in the brand color. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; margin: 12px 12px 0; border-radius: var(--radius-xl); padding: clamp(3rem, 6vw, 4.75rem) 1.5rem 0; }
.hero-copy { width: min(100%, 54rem); display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -0.035em; line-height: 1.05; }
.hero .intro-lede { margin-top: 1.25rem; max-width: 40ch; }
.hero .cta-row { margin-top: 1.75rem; justify-content: center; }
.band .btn-secondary { color: #ffffff; border-color: #ffffff; }
.band .btn-secondary:hover { background: #ffffff; color: var(--brand-deep); }
.hero-art { padding-top: clamp(2.5rem, 5vw, 3.75rem); width: 100%; display: flex; justify-content: center; }
.check-callout { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; background: var(--surface-2); border-radius: var(--radius-l); padding: 1.25rem 1.4rem; margin: 1.25rem 0; }
.check-callout h2 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.35rem; }
.check-callout p { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .check-callout { flex-direction: row; align-items: center; justify-content: space-between; } .check-callout .btn-primary { flex: none; } }

/* The order in the hero, from payment to live licenses. */
.order-card { width: min(100%, 25rem); background: #ffffff; color: var(--ink); border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 1.4rem 1.5rem 1.9rem; text-align: left; box-shadow: 0 -2px 40px rgba(0, 0, 0, 0.07); font-size: 0.95rem; }
.order-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-soft); font-weight: 600; letter-spacing: -0.01em; }
.order-card-head span:last-child { color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.order-steps { list-style: none; display: grid; gap: 0.7rem; padding-top: 1rem; }
.order-steps li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; }
.order-steps li::before { content: ""; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.3 2.7 2.7L14 7.6'/%3E%3C/svg%3E") center / 100% no-repeat; }
.order-steps time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.875rem; }

/* Integration: from the office to the cloud. */
.migration { width: min(100%, 30rem); height: auto; display: block; margin-bottom: clamp(2rem, 4vw, 3rem); color: #ffffff; }
.migration text { font-family: var(--font); font-size: 13px; fill: var(--on-brand-2); letter-spacing: 0; }
.migration .m-line { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.migration .m-soft { opacity: 0.45; }
.migration .m-path { stroke-dasharray: 2 7; }
.migration .m-dot { fill: currentColor; }

/* Shelf of products on the home page. */
.shelf { padding: var(--section) 0; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.shelf-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shelf-row.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf-row.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shelf-item { position: relative; background: var(--surface-2); border-radius: var(--radius-l); padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column; min-height: 19rem; min-width: 0; transition: background-color 0.3s ease, transform 0.4s var(--ease); }
.shelf-item:hover { background: var(--surface-3); }
.shelf-item h3 { font-size: 1.4rem; letter-spacing: -0.022em; line-height: 1.14; }
.shelf-item h3 a { color: var(--ink); text-decoration: none; }
/* The whole tile opens the product. */
.shelf-item h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.shelf-item > p { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.4; color: var(--ink-3); }
.shelf-foot { margin-top: auto; padding-top: 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.shelf-price { font-size: 0.875rem; color: var(--ink-3); line-height: 1.3; }
.shelf-price strong { display: block; font-size: 1.19rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.shelf-buy { pointer-events: none; }

/* Burgundy bands: the home page hero and the Integration page header. */
.band { background: var(--brand-deep); color: var(--on-brand); }
.band .headline-duo span, .band .intro-lede, .band .lede { color: var(--on-brand-2); }
.band .eyebrow { color: var(--on-brand-2); }
.band a { color: #ffffff; }
.band .btn-primary { background: #ffffff; color: var(--brand-deep); }
.band .btn-primary:hover { background: var(--brand-tint); }
.band :focus-visible { outline-color: #ffffff; }

/* The email protection band above the cart: a dark band the width of the page content, not a modal. */
main:not(.bleed) section.protection-band { border-radius: var(--radius-l); padding: 1.5rem clamp(1.25rem, 3vw, 2rem); margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.protection-band[hidden] { display: none; }
.band.protection-band p { margin: 0; color: var(--on-brand); }
.protection-text { font-size: 1.1rem; line-height: 1.4; max-width: 60ch; }
.protection-band .cta-row { margin: 0; }
.band.protection-band .protection-skip { color: var(--on-brand-2); }

/* Free tools on the home page: equal cards. */
.tools { padding: 0 0 var(--section); }
.tool-row { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; min-width: 0; background: var(--surface-2); border-radius: var(--radius-l); padding: 1.6rem 1.5rem; }
.tool-card h3 { font-size: 1.4rem; letter-spacing: -0.022em; line-height: 1.14; }
.tool-card p { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.4; color: var(--ink-3); }

/* Integration on the home page: one quiet line and a button. */
.integration-band { background: var(--surface-2); padding: 1.75rem 0; }
.integration-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.integration-band h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.integration-band h2 span { font-weight: 400; color: var(--ink-3); }

/* Contact, shared by the home and Integration pages. */
.contact { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact .intro-lede { margin-top: 1rem; max-width: 34ch; }
.facts { margin-top: 2.25rem; display: grid; }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line-soft); font-size: 0.95rem; }
.facts dt { color: var(--ink-3); }
.contact-card { background: var(--surface-2); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact-card form { gap: 1rem; }
.contact-card .btn-primary { justify-self: start; margin-top: 0.25rem; }

/* Integration page */
.page-hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 9vw, 7rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero-art .migration { width: 100%; margin: 0; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.034em; line-height: 1.04; max-width: 17ch; margin-top: 0.75rem; }
.page-hero .intro-lede { margin-top: 1.5rem; max-width: 52ch; }
.page-hero .cta-row { margin-top: 2.25rem; }

.services { padding: var(--section) 0 calc(var(--section) - 3rem); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.25rem clamp(2rem, 6vw, 6rem); padding: clamp(2.25rem, 4vw, 3.25rem) 0; border-top: 1px solid var(--line-soft); }
.services .headline-duo { max-width: 28ch; }
.services .headline-duo + .service, .services .service:first-of-type { margin-top: clamp(2.5rem, 5vw, 4rem); }
.service h3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); letter-spacing: -0.028em; line-height: 1.1; }
.service-body { display: grid; gap: 1rem; color: var(--ink-2); max-width: 58ch; align-content: start; }
.service-body p:first-child { font-size: 1.19rem; line-height: 1.42; color: var(--ink); letter-spacing: -0.012em; }

.approach { background: var(--surface-2); padding: var(--section) 0; }
.approach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.approach-head { position: sticky; top: calc(var(--nav-h) + 3rem); }
.approach-head .intro-lede { margin-top: 1.1rem; max-width: 30ch; }
.approach-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.approach-steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.75rem; }
.approach-steps li::before { content: "0" counter(step); font-size: 0.95rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.approach-steps h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.024em; }
.approach-steps p { color: var(--ink-2); max-width: 56ch; }

/* 6. Store and product pages ---------------------------------------------------------------- */

.breadcrumb { font-size: 0.8rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 0.5rem; color: var(--line); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.page-head { padding: clamp(0.5rem, 2vw, 1.5rem) 0 0.5rem; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 1rem; }
.page-head .tag { margin-bottom: 0.9rem; }
main > [id$="-app"] { margin-top: 1.75rem; }
.page-head + .table-wrap, .page-head + .prose, .page-head + .notice { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.notice > span:empty { display: none; }
.notice:has(> span:empty) { grid-template-columns: minmax(0, 1fr); }

main:not(.bleed) section { padding-top: clamp(2.5rem, 5vw, 3.75rem); }
main:not(.bleed) section > h2 { margin-bottom: 0.9rem; }
main:not(.bleed) section p { margin-bottom: 0.8rem; color: var(--ink-2); }
main:not(.bleed) section p:last-child { margin-bottom: 0; }

.trust-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 1.6rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 0.875rem; line-height: 1.42; color: var(--ink-3); }
.trust-row li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.trust-row svg { width: 22px; height: 22px; color: var(--brand); margin-top: 0.05rem; }
.trust-row strong { color: var(--ink); display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }

.store-toolbar { display: grid; gap: 1rem; margin: clamp(2rem, 4vw, 3rem) 0 0.75rem; }
.store-toolbar input[type="search"] { max-width: 30rem; min-height: 48px; border-radius: var(--pill); border-color: transparent; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") 1rem center / 1.15rem no-repeat; padding: 0.6rem 1.1rem 0.6rem 2.75rem; }
.store-toolbar input[type="search"]:focus { background-color: #ffffff; border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { border: 0; background: var(--surface-2); color: var(--ink); border-radius: var(--pill); padding: 0.45rem 1rem; font-size: 0.875rem; cursor: pointer; min-height: 38px; transition: background-color 0.18s ease, color 0.18s ease; }
.chip:hover { background: var(--surface-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: #ffffff; }

main:not(.bleed) .category-block { padding-top: clamp(3rem, 6vw, 4.5rem); }
.category-block > h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.026em; margin-bottom: 0.4rem; }
.category-block > h2 a { color: inherit; text-decoration: none; }
.category-block > h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.category-block > p { color: var(--ink-3); max-width: 70ch; margin-bottom: 1.5rem; }
.category-block > .show-more { margin: 1.5rem 0 0; }
main:not(.bleed) .category-block.popular { background: var(--surface-2); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.25rem); margin-top: 1.75rem; }
.category-block.popular > p { margin-bottom: 1.25rem; }
.product-grid.popular-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.popular-grid .product-card { background: #ffffff; }
.popular-grid .product-card .card-foot { flex-direction: column; align-items: stretch; gap: 0.75rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }

/* Preset bundles (home, store, plan builder) and the plan builder itself. */
.bundles { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.bundles > h2, .bundles > .wrap > h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.026em; margin-bottom: 0.4rem; }
.bundles .lede { margin-bottom: 1.5rem; }
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 0 1rem; padding: 0; }
.bundle-card { background: var(--surface-2); border-radius: var(--radius-l); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.bundle-card h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.016em; }
.bundle-card p { margin: 0; font-size: 0.9rem; line-height: 1.42; color: var(--ink-3); }
.bundle-from { margin-top: 0.4rem; }
.bundle-foot { margin-top: auto; padding-top: 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.bundle-still { font-size: 0.95rem; color: var(--ink-2); margin: 0.5rem 0 0; }
.builder-presets-title { font-size: 1.1rem; margin-bottom: 0.75rem; }
.builder-headcount { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.builder-headcount input, .builder-head input[type="number"] { max-width: 7rem; }
.builder-group { border: 0; background: var(--surface-2); border-radius: var(--radius-l); padding: 1.25rem 1.4rem; margin: 0 0 12px; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.builder-head { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.builder-head label, .builder-calling { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.builder-needs-label { margin: 0; font-weight: 600; }
.builder-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.5rem; }
.builder-need { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; min-height: 44px; }
.builder-need input { margin-top: 0.25rem; flex: none; }
.builder-calling[hidden], .builder-emergency[hidden] { display: none; }
.builder-group > .btn-secondary { align-self: flex-start; }
.builder-result { background: var(--surface); border-radius: var(--radius-m); padding: 1rem 1.1rem; }
.builder-result h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.builder-lines { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.builder-lines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.builder-group-total, .builder-total { font-weight: 600; font-variant-numeric: tabular-nums; margin: 0; }
.builder-total { font-size: 1.2rem; margin: 1rem 0 0.5rem; }
@media (max-width: 900px) { .bundle-grid { grid-template-columns: 1fr; } .builder-needs { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .builder-group input, .builder-group select, .bundle-foot .btn-primary, .bundle-foot .btn-secondary { min-height: 44px; } }
.product-card { background: var(--surface-2); border-radius: var(--radius-l); padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; transition: background-color 0.3s ease; }
.product-card:hover { background: var(--surface-3); }
.popular-grid .product-card:hover { background: #ffffff; box-shadow: var(--shadow); }
.product-card h3 { font-size: 1.19rem; line-height: 1.2; letter-spacing: -0.016em; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
main:not(.bleed) .product-card p { font-size: 0.9rem; line-height: 1.42; color: var(--ink-3); margin: 0; }
.product-card .card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.price-from { font-size: 0.78rem; color: var(--ink-3); display: block; line-height: 1.2; }
.price-amount { font-size: 1.3rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -0.018em; }
.price-unit { font-size: 0.8rem; color: var(--ink-3); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0; color: var(--brand); background: var(--brand-tint); border-radius: var(--pill); padding: 0.2rem 0.7rem; align-self: flex-start; text-decoration: none; }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--ink-3); background: var(--surface-2); border-radius: var(--radius-xl); }
.empty-state h1, .empty-state h2, .empty-state h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.5rem; }

/* Product page */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: start; }
/* Wide screens: introduction and details on the left, the buy box beside both. */
.product-intro, .product-main { grid-column: 1; }
.product-intro { margin-bottom: 1rem; }
.product-intro > p { color: var(--ink-2); margin-top: 1rem; max-width: 62ch; }
.product-layout > .buy-box { grid-column: 2; grid-row: 1 / span 3; }
/* The next step follows "Before you buy" on a phone; beside the sticky buy box it waits below
   the questions. */
.product-layout > .product-next { order: 1; }
#buy-added { margin-top: 0.6rem; }
.product-main > section { border-top: 1px solid var(--line-soft); margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem) !important; max-width: 68ch; }
.check-list { list-style: none; display: grid; gap: 0.7rem; }
.check-list li { padding-left: 1.9rem; position: relative; color: var(--ink-2); }
.check-list li strong { color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.42em; width: 0.8rem; height: 0.42rem; border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg); }

.buy-box { background: var(--surface-2); border-radius: var(--radius-xl); padding: 1.6rem; position: sticky; top: calc(var(--nav-h) + 1.25rem); }
.buy-box h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.plan-options { display: grid; gap: 0.6rem; border: 0; margin-bottom: 1.2rem; }
.plan-options legend { font-weight: 600; margin-bottom: 0.6rem; font-size: 0.9rem; padding: 0; }
.plan-option { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; background: #ffffff; border-radius: var(--radius-m); padding: 0.85rem 1rem; cursor: pointer; font-weight: 400; margin: 0; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.18s ease; }
.plan-option:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.plan-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); }
.plan-option:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.plan-option .plan-name { font-size: 0.95rem; line-height: 1.3; font-weight: 500; }
.plan-option .plan-note { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-3); margin-top: 0.15rem; }
.plan-option .plan-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; font-size: 1rem; line-height: 1.3; }
.plan-option .plan-price small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; border-radius: var(--pill); overflow: hidden; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 60px; height: 44px; min-height: 0; border: 0; border-radius: 0; background: none; text-align: center; font-size: 1rem; font-variant-numeric: tabular-nums; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.2rem; }
.buy-row label { font-weight: 600; font-size: 0.9rem; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1.1rem; gap: 0.75rem; }
.buy-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fine-print { font-size: 0.8rem; line-height: 1.45; color: var(--ink-3); margin-top: 0.9rem; }

.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.3rem; top: 50%; width: 0.5rem; height: 0.5rem; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.2rem !important; max-width: 66ch; }

/* Notices */
.notice { border-radius: var(--radius-m); padding: 1rem 1.15rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; font-size: 0.92rem; line-height: 1.45; background: var(--surface-2); color: var(--ink); }
.notice + .notice { margin-top: 0.6rem; }
.notice svg { width: 20px; height: 20px; margin-top: 0.1rem; }
.notice strong { display: block; margin-bottom: 0.15rem; }
.notice p { margin: 0 !important; color: inherit !important; }
.notice .notice-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; display: block; }
.notice-block { background: var(--brand-tint); color: var(--brand-deep); }
.notice-warning { background: var(--warn-bg); color: var(--warn-text); }
.notice-success { background: var(--ok-bg); color: var(--ok-text); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.notice-actions .btn-secondary { background: #ffffff; }
.notice-actions .btn-secondary:hover { background: var(--brand); }
.callout { background: var(--surface-2); border-radius: var(--radius-l); padding: 1.25rem 1.4rem; margin: 1.25rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.42; }
.table th, .table td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { font-size: 0.8rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; border-bottom-color: var(--line); }
.table tbody th { font-weight: 600; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .yes { color: var(--ok-text); font-weight: 600; }
.table .no { color: #8a8a8f; }
.compare-table th[scope="row"] { font-weight: 500; min-width: 190px; }
.compare-table thead th { white-space: normal; min-width: 150px; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.compare-table thead th a { color: inherit; }
.compare-table .col-price { font-size: 1.5rem; font-weight: 600; display: block; letter-spacing: -0.02em; margin-top: 0.3rem; }
.compare-table .small { font-weight: 400; }

/* Guides, category pages, legal pages */
.prose { max-width: 72ch; }
.prose:has(.table) { max-width: 60rem; }
.prose > p, .prose section > p, .prose li { max-width: 72ch; }
.prose > p { color: var(--ink-2); margin-top: 1rem; }
.prose h3 { margin: 1.5rem 0 0.4rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; color: var(--ink-2); }
.prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.prose li strong { color: var(--ink); }
.prose nav { margin-top: 3rem; }
.prose nav h2 { font-size: 1.19rem; margin-bottom: 0.75rem; }
.prose nav ul { list-style: none; margin-left: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.guide-links { margin-top: 2rem; }
.guide-links + .guide-links { margin-top: 0.75rem; }

/* Guides and tips: the list of pieces and the article page. */
.guide-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: clamp(1.5rem, 3vw, 2.5rem) 0; }
.guide-list li { position: relative; background: var(--surface-2); border-radius: var(--radius-l); padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; transition: background-color 0.3s ease; }
.guide-list li:hover { background: var(--surface-3); }
.guide-list h3 { font-size: 1.19rem; line-height: 1.25; }
.guide-list h3 a { color: var(--ink); text-decoration: none; }
.guide-list h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-list li:hover h3 a { text-decoration: underline; }
.guide-list p { color: var(--ink-3); font-size: 0.95rem; line-height: 1.45; }
.guides-latest { margin-top: var(--section); }
.guides-latest .guide-list { margin: 1.5rem 0 1.25rem; }
.guide-list + .prose { margin-top: clamp(2rem, 4vw, 3rem); }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 24ch; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--ink-3); margin-bottom: 0.9rem; }
.article-meta .tag { margin-bottom: 0; }
.article-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 2.5rem 0 0.25rem; }
.article-body .table-wrap, .article-body .callout { margin: 1.5rem 0; }
.article-body h2 + ul, .article-body h2 + ol { margin-top: 1rem; }
.article-foot { margin-top: 2.5rem; }
.article-foot nav { margin-top: 2.5rem; }
.article-foot nav ul { flex-direction: column; gap: 0.5rem; }
.article-foot nav li { padding-left: 0; margin-bottom: 0; }
.related-reading { margin-top: 1rem; color: var(--ink-2); max-width: 72ch; }
.article-foot .btn-primary { margin-top: 0.5rem; }

/* 7. Cart, checkout, account, admin --------------------------------------------------------- */

form { display: grid; gap: 0.75rem; }
label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.3rem; display: block; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(75, 21, 21, 0.14); }
textarea { min-height: 128px; resize: vertical; line-height: 1.45; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand); box-shadow: none; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
select { -webkit-appearance: none; appearance: none; padding-right: 2.4rem; background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 0.8rem center / 1rem no-repeat; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin-top: 1.5rem; }
/* The cart keeps suggestions in a row of their own, under the cart lines on a wide screen. */
.cart-layout.with-recs > .summary-box { grid-column: 2; grid-row: 1 / span 2; }
.cart-layout.with-recs > .cart-recs { grid-column: 1; }
.cart-layout.with-recs > .cart-recs:empty { display: none; }
.cart-lines { list-style: none; display: grid; }
.cart-line { border-top: 1px solid var(--line-soft); padding: 1.4rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1.25rem; }
.cart-line:last-child { border-bottom: 1px solid var(--line-soft); }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.cart-line .line-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cart-line select { width: auto; max-width: 100%; min-height: 44px; border-radius: var(--pill); padding: 0.4rem 2.4rem 0.4rem 1rem; font-size: 0.9rem; }
.cart-line .line-total { font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cart-line .line-total small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.78rem; }
.summary-box { background: var(--surface-2); border-radius: var(--radius-xl); padding: 1.6rem; position: sticky; top: calc(var(--nav-h) + 1.25rem); }
.summary-box h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
.summary-rows { display: grid; gap: 0.5rem; font-size: 0.95rem; margin-bottom: 1.1rem; }
.summary-rows div { display: flex; justify-content: space-between; gap: 0.75rem; }
.summary-rows dt { color: var(--ink-2); }
.summary-rows .total { border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.3rem; font-weight: 600; font-size: 1.15rem; }
.summary-rows .total dt { color: var(--ink); }
.summary-rows dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.rec-card { background: var(--surface-2); border-radius: var(--radius-l); padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.rec-card h3 { font-size: 1.05rem; }
.rec-card h3 a { color: var(--ink); text-decoration: none; }
.rec-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.rec-card p { font-size: 0.875rem; line-height: 1.42; margin: 0 !important; color: var(--ink-3) !important; }
.rec-card .card-foot { margin-top: auto; padding-top: 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.subhead { font-size: 1.19rem; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.owned-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; list-style: none; margin-top: 0.75rem; }
.owned-list li { display: flex; align-items: center; gap: 0.5rem; justify-content: space-between; font-size: 0.9rem; }
.owned-list input { width: 76px; min-height: 40px; }
.owned-list label { font-weight: 400; margin: 0; }
details.disclosure { background: var(--surface-2); border-radius: var(--radius-l); padding: 1rem 1.25rem; margin-top: 1.5rem; }
details.disclosure summary { cursor: pointer; font-weight: 600; }

.form-section { background: var(--surface); border-radius: var(--radius-l); padding: 1.5rem !important; margin-bottom: 12px; box-shadow: inset 0 0 0 1px var(--line-soft); }
.form-section > h2 { font-size: 1.19rem; margin-bottom: 0.3rem; }
.form-section > p { font-size: 0.9rem; margin-bottom: 1rem; color: var(--ink-3); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.6rem; }
fieldset.field legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 0.6rem; }
.field .hint { font-size: 0.8rem; color: var(--ink-3); margin-top: 0.3rem; }
p.error { font-size: 0.8rem; color: var(--error) !important; margin-top: 0.3rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix span { border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 0 0.75rem; background: var(--surface-2); color: var(--ink-3); font-size: 0.9rem; display: inline-flex; align-items: center; white-space: nowrap; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; border-radius: var(--radius-m); padding: 0.9rem 1rem; cursor: pointer; font-weight: 400; margin: 0 0 0.6rem; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.18s ease; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); }
.choice input { margin-top: 0.3rem; }
.choice strong { display: block; font-size: 0.95rem; }
.choice span { font-size: 0.875rem; color: var(--ink-3); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: start; font-weight: 400; margin: 0.6rem 0; font-size: 0.92rem; }
.check input { margin-top: 0.25rem; width: 18px; height: 18px; }
.form-error { margin-bottom: 1rem; }

.steps { list-style: none; display: grid; gap: 0; margin: 1.25rem 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.75rem; padding-bottom: 1.1rem; position: relative; color: var(--ink-3); }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #ffffff; margin: 0.3rem 0 0 6px; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 1.3rem; bottom: 0; width: 2px; background: var(--line-soft); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--brand); border-color: var(--brand); }
.steps li.current::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.steps li strong { display: block; }
.steps li span { font-size: 0.875rem; }
.status { display: inline-block; font-size: 0.75rem; font-weight: 600; border-radius: var(--pill); padding: 0.2rem 0.7rem; background: var(--surface-2); color: var(--ink-3); white-space: nowrap; letter-spacing: 0; vertical-align: middle; }
.status-active { background: var(--ok-bg); color: var(--ok-text); }
.status-provisioning, .status-paid, .status-cancel_scheduled, .status-cancelling, .status-on_account, .status-refunded { background: var(--warn-bg); color: var(--warn-text); }
.status-attention, .status-past_due { background: var(--brand-tint); color: var(--brand); }

.tabs { display: flex; gap: 0.4rem; margin: 1.25rem 0 1.75rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 0.5rem 1rem; font-size: 0.95rem; color: var(--ink-2); cursor: pointer; border-radius: var(--pill); white-space: nowrap; min-height: 44px; transition: background-color 0.18s ease, color 0.18s ease; }
.tabs button:hover { background: var(--surface-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #ffffff; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.stat { background: var(--surface-2); border-radius: var(--radius-l); padding: 1.2rem 1.3rem; }
.stat span { font-size: 0.82rem; color: var(--ink-3); display: block; }
.stat strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; letter-spacing: -0.022em; }
.sub-card, .client-card { background: var(--surface-2); border-radius: var(--radius-l); padding: 1.3rem 1.4rem; margin-bottom: 12px; display: grid; gap: 0.8rem; }
.client-card { display: block; }
.sub-card header { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; flex-wrap: wrap; }
.sub-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; font-size: 0.9rem; }
.sub-meta span { display: block; color: var(--ink-3); font-size: 0.78rem; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.sub-card .btn-secondary, .client-card .btn-secondary { background: #ffffff; }
.sub-card .btn-secondary:hover, .client-card .btn-secondary:hover { background: var(--brand); }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.inline-form input { width: 90px; min-height: 40px; }
#hold-form input { width: min(100%, 320px); }
.hold-list { list-style: none; display: grid; gap: 0.35rem; margin: 0.4rem 0 0.8rem; font-size: 0.95rem; }
.hold-list li { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: baseline; }
.hold-list span { font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.25rem 0; font-size: 0.92rem; }
.detail-grid h3 { font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-bottom: 0.3rem; }
.timeline { list-style: none; font-size: 0.9rem; display: grid; gap: 0.4rem; }
.timeline time { color: var(--ink-3); font-size: 0.82rem; margin-right: 0.5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.client-card .link-form { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); display: grid; gap: 0.35rem; }
.client-card .link-form .field { margin-top: 0.4rem; }
.client-card .link-form .check { margin: 0; }
.narrow { max-width: 560px; }
[data-link] .table th:first-child, [data-link] .table td:first-child { min-width: 9.5rem; }

.skeleton { background: linear-gradient(90deg, #f2f2f4 25%, #e9e9ec 37%, #f2f2f4 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-l); min-height: 4rem; margin-top: 1.5rem; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #ffffff; padding: 0.8rem 1.3rem; border-radius: var(--pill); font-size: 0.92rem; z-index: 50; display: flex; gap: 1rem; align-items: center; max-width: calc(100vw - 2rem); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22); animation: toast-in 0.35s var(--ease) both; }
.toast a { color: #ffffff; font-weight: 600; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; translate: 0 12px; } }

/* Email preview (demo) */
.mail-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mail-list { list-style: none; display: grid; gap: 0.5rem; }
.mail-list button { width: 100%; text-align: left; border: 0; background: var(--surface-2); border-radius: var(--radius-m); padding: 0.75rem 0.9rem; cursor: pointer; font-size: 0.9rem; }
.mail-list button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--brand); background: #ffffff; }
.mail-list small { display: block; color: var(--ink-3); }
.mail-frame { width: 100%; height: 640px; border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--surface-2); }


/* License check */
.btn-microsoft { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 48px; padding: 0.6rem 1.4rem 0.6rem 1rem; font: inherit; font-size: 1.0625rem; font-weight: 600; color: #ffffff; background: #2f2f2f; border: 1px solid #2f2f2f; border-radius: var(--radius-s); cursor: pointer; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.btn-microsoft:hover { background: #000000; }
.btn-microsoft:active { transform: scale(0.98); }
.btn-microsoft[disabled] { opacity: 0.45; cursor: not-allowed; }
.check-start { display: grid; gap: 0.8rem; justify-items: start; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.check-start .notice { margin-top: 0.4rem; }
.lede:empty { display: none; }
/* Opening: what you get, and beside it what a result looks like. */
.check-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(0.5rem, 2vw, 1.5rem) 0 0.5rem; }
.check-hero h1 { font-size: clamp(2.1rem, 4.1vw, 3.15rem); text-wrap: wrap; }
.check-hero .lede { margin-top: 1rem; max-width: 44ch; }
.check-sample { margin: 0; }
.check-sample figcaption { margin-top: 0.8rem; padding: 0 0.25rem; }
/* The estimate: one number, then the same number as two bars on one baseline. */
.check-figure { background: var(--surface-2); border-radius: var(--radius-xl); padding: clamp(1.5rem, 4.5vw, 3.25rem); }
.check-figure .tag { margin-bottom: 1.1rem; }
.figure-label { font-size: 1.0625rem; font-weight: 600; color: var(--ink-2); }
.check-figure .figure { font-size: clamp(2.9rem, 9vw, 6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.check-figure .figure span { font-size: 0.32em; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-3); white-space: nowrap; }
.figure-note { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.4; color: var(--ink-2); margin-top: 0.9rem; max-width: 46ch; }
.pay-bars { display: grid; gap: 0.55rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-top: clamp(1.25rem, 2.5vw, 1.75rem); border-top: 1px solid var(--line); max-width: 44rem; }
.pay-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 4.25rem; gap: 0.9rem; align-items: center; font-size: 0.95rem; }
.pay-name { color: var(--ink-2); }
.pay-track { display: flex; height: 1.6rem; }
.pay-bar { background: var(--ink-2); border-radius: 4px; }
.pay-gap { margin-left: 3px; border: 1.5px dashed var(--brand); background: var(--brand-tint); border-radius: 4px; }
.pay-value { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pay-key { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; margin-top: 1rem; font-size: 0.875rem; line-height: 1.45; color: var(--ink-3); max-width: 44rem; }
.pay-swatch { width: 0.95rem; height: 0.95rem; margin-top: 0.15rem; border: 1.5px dashed var(--brand); background: var(--brand-tint); border-radius: 3px; }
.check-sample .check-figure { padding: clamp(1.5rem, 2.8vw, 2.25rem); }
.check-sample .figure { font-size: clamp(2.6rem, 5.2vw, 4.25rem); }
.check-sample .figure-note { font-size: 1.05rem; }
/* Three steps on one line, joined so they read as a sequence. */
.check-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 1.75rem; }
.check-steps li { counter-increment: step; position: relative; display: grid; gap: 0.45rem; align-content: start; }
.check-steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 0.6rem; }
.check-steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3.25rem; right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem) + 0.75rem); height: 1px; background: var(--line); }
.check-steps h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.check-steps p { color: var(--ink-2); max-width: 34ch; }
/* What it looks for: a name on the left, the plain explanation on the right. */
.check-finds { list-style: none; margin-top: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.check-finds li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.25rem 2.5rem; padding: 1.05rem 0; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.check-finds strong { color: var(--ink); font-size: 1.0625rem; letter-spacing: -0.01em; }
.check-offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 1.5rem; }
.check-offer-tile { background: var(--surface-2); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 0.6rem; }
.check-offer-tile.is-paid { background: var(--brand-tint); }
.check-offer-tile.is-paid .tag { background: var(--surface); }
.check-offer-tile .tag { background: var(--surface-3); color: var(--ink-2); margin-bottom: 0.4rem; }
.check-offer-tile.is-paid .tag { color: var(--brand); }
.check-offer-tile h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.check-offer-tile p { max-width: 44ch; }
.check-sees { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); margin: 1.5rem 0 2rem; max-width: 52rem; }
.check-sees h3 { margin-bottom: 0.9rem; }
.check-list.is-never li::before { width: 0.85rem; height: 0.85rem; left: 0.15rem; top: 0.38em; border: 0; transform: none; background: linear-gradient(45deg, transparent calc(50% - 0.8px), var(--ink-3) calc(50% - 0.8px), var(--ink-3) calc(50% + 0.8px), transparent calc(50% + 0.8px)), linear-gradient(-45deg, transparent calc(50% - 0.8px), var(--ink-3) calc(50% - 0.8px), var(--ink-3) calc(50% + 0.8px), transparent calc(50% + 0.8px)); }
main:not(.bleed) section.check-close { background: var(--surface-2); border-radius: var(--radius-xl); padding: clamp(1.75rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.check-close .check-start { margin-top: 1.25rem; }
/* Result */
#license-check-app > .check-figure { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.check-report > section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.check-report > .check-figure { margin-top: 1.5rem; }
.ways-intro { max-width: 60ch; }
.ways-list { list-style: none; margin-top: 1.25rem; border-top: 1px solid var(--line-soft); max-width: 52rem; }
.ways-list li { display: grid; grid-template-columns: minmax(0, 1fr) 6rem 8.5rem; gap: 0.75rem 1.25rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
.ways-track { display: block; height: 0.9rem; }
.ways-bar { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.ways-seats { color: var(--ink-3); font-size: 0.95rem; white-space: nowrap; }
.ways-list strong { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ways-locked { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0.6rem; align-items: start; margin-top: 1.1rem; max-width: 60ch; }
.ways-locked svg { width: 18px; height: 18px; margin-top: 0.15rem; color: var(--ink-3); }
.check-clear { margin-top: 1.5rem; color: var(--ink-2); max-width: 60ch; }
main:not(.bleed) section.check-claim { padding: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.check-claim .steps { margin: 0.5rem 0 1rem; }
.check-claim .notice { margin-bottom: 1.5rem; }
.check-claim { max-width: 46rem; }
.check-claim h2 { margin-bottom: 0.5rem; }
.check-claim > p { color: var(--ink-2); max-width: 60ch; margin-bottom: 1.25rem; }
.check-claim form { display: grid; gap: 1rem; }
.check-claim .btn-primary { justify-self: start; }
.check-finding { padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.check-finding:first-of-type { margin-top: 1rem; }
.check-finding header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.check-finding h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.check-finding > p { color: var(--ink-2); max-width: 72ch; margin: 0.4rem 0 0.6rem; }
.check-amount { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check-amount span { font-size: 0.875rem; font-weight: 400; color: var(--ink-3); }
.check-finding .table { table-layout: fixed; }
.check-finding .table th:nth-child(1) { width: 36%; }
.check-finding .table th:nth-child(2) { width: 9%; }
.check-finding .table th:nth-child(3) { width: 22%; padding-left: 1.5rem; }
.check-finding .table td:nth-child(3) { padding-left: 1.5rem; }
.check-finding .table th:nth-child(4) { width: 10%; }
.check-finding .table th:nth-child(5) { width: 12%; }
.check-finding .table th:nth-child(6) { width: 11%; }
.check-finding .check-accounts .table { table-layout: auto; }
.check-finding .check-accounts .table th, .check-finding .check-accounts .table td { width: auto; padding-left: 0; }
#license-check-app > .cta-row { margin-top: 2rem; }
.check-accounts { margin-top: 0.75rem; }
.check-accounts summary { cursor: pointer; color: var(--brand); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.check-notes { margin: 0.75rem 0 0 1.1rem; max-width: 72ch; }
.check-notes li { margin-bottom: 0.3rem; }
.check-kept { margin-top: clamp(2rem, 4vw, 3rem); }
.check-working { display: grid; gap: 1rem; color: var(--ink-3); }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.link-button[disabled] { opacity: 0.5; cursor: default; }
@media (max-width: 833px) {
  .check-hero { grid-template-columns: minmax(0, 1fr); }
  .check-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .check-steps li { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; padding-bottom: 1.5rem; }
  .check-steps li::before { grid-row: 1 / span 2; margin: 0; }
  .check-steps li > * { grid-column: 2; }
  .check-steps li:not(:last-child)::after { top: 2.5rem; bottom: 0; left: 1.25rem; right: auto; width: 1px; height: auto; }
  .check-steps li:last-child { padding-bottom: 0; }
  .check-finds li { grid-template-columns: minmax(0, 1fr); }
  .check-offer, .check-sees { grid-template-columns: minmax(0, 1fr); }
  .pay-row { grid-template-columns: 5.25rem minmax(0, 1fr) 3.5rem; gap: 0.6rem; font-size: 0.875rem; }
  .ways-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .ways-track { grid-column: 1 / -1; }
  .ways-list strong { text-align: right; }
  .link-button { min-height: 44px; }
  /* The report's tables keep readable columns and scroll sideways rather than squeezing. */
  .check-finding .table, [aria-labelledby="subs-title"] .table { min-width: 36rem; }
}

/* The domain check page: the form, the grade badges and the result blocks. */
.dc-form { margin: 1.5rem 0 0.5rem; max-width: 40rem; }
.dc-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.dc-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.dc-row input { flex: 1 1 14rem; min-width: 0; }
#domain-check-result { margin-top: 1.5rem; }
.dc-check { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface-2); border-radius: var(--radius-l); padding: 1.1rem 1.3rem; margin: 1rem 0; }
.dc-check h3 { margin: 0 0 0.15rem; }
.dc-check > div { min-width: 0; }
#domain-check-result h2 { margin: 0 0 0.8rem; }
.dc-summary { margin: 0 0 1rem 1.2rem; }
.dc-summary li { margin: 0.3rem 0; }
.dc-check h4 { margin: 0.9rem 0 0.3rem; font-size: 0.95rem; }
.dc-check ul, .dc-check ol { margin: 0.4rem 0 0 1.2rem; }
.dc-check li { margin: 0.3rem 0; overflow-wrap: anywhere; }
.dc-headline { font-weight: 600; color: var(--ink-2); }
.dc-grade { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; background: var(--surface-3); color: var(--ink); }
.dc-grade-A, .dc-grade-B { background: var(--ok-bg); color: var(--ok-text); }
.dc-grade-C, .dc-grade-D { background: var(--warn-bg); color: var(--warn-text); }
.dc-grade-F { background: var(--brand); color: var(--on-brand); }
.dc-notice { background: var(--warn-bg); color: var(--warn-text); border-radius: var(--radius-l); padding: 0.9rem 1.2rem; margin: 1rem 0; }
.dc-pointers { margin: 1.5rem 0; }
.dc-pointers [data-pointer] { background: var(--brand-tint); border-radius: var(--radius-l); padding: 1rem 1.3rem; margin: 1rem 0; }
.dc-pointers [data-pointer][hidden] { display: none; }
.dc-pointers h3 { margin: 0 0 0.25rem; }
.dc-bundle { border: 1px solid var(--brand-tint); border-radius: var(--radius-l); padding: 1rem 1.3rem; margin: 1.5rem 0; max-width: 40rem; }
.dc-bundle h2 { margin-top: 0; }
.dc-bundle label { display: block; font-weight: 600; margin: 0.6rem 0 0.3rem; }
.dc-bundle input { max-width: 8rem; }
.dc-grades { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; align-items: center; }

/* 8. Motion, small screens, print ----------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* The order on the Software side completes step by step, once. */
  .order-steps li { animation: step-in 0.6s var(--ease) both; }
  .order-steps li:nth-child(1) { animation-delay: 0.5s; }
  .order-steps li:nth-child(2) { animation-delay: 1s; }
  .order-steps li:nth-child(3) { animation-delay: 1.5s; }
  @keyframes step-in { from { opacity: 0; translate: 0 8px; } }

  /* The route on the Integration side draws itself, once. */
  .migration .m-path { animation: route 1.6s 0.5s var(--ease) both; }
  .migration .m-cloud { animation: arrive 0.8s 1.5s var(--ease) both; }
  @keyframes route { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes arrive { from { opacity: 0.25; } }

  /* Sections come into view as they are scrolled to. Without support they are simply there. */
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    @keyframes reveal { from { opacity: 0; scale: 0.975; } }
  }
}

@media (max-width: 1068px) {
  .shelf-row, .shelf-row.count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid.popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout, .cart-layout { grid-template-columns: 1fr; }
  .buy-box, .summary-box { position: static; }
  /* One column: the buy box follows the introduction, the cart total comes before the
     suggestions, and the checkout form starts with what is being paid for. */
  .product-layout > .buy-box { grid-column: 1; grid-row: auto; margin: 1rem 0 0.5rem; max-width: 34rem; }
  .product-layout > .product-next { order: 0; }
  .cart-layout.with-recs > .summary-box { grid-column: 1; grid-row: auto; }
  .cart-layout.checkout > .summary-box { order: -1; }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 833px) {
  /* Phones and small tablets: the menu opens as a full sheet under the header, and every
     header control is at least 44 px square. The store stays one tap away. */
  .nav-container { gap: 0.75rem; justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .nav-store { display: inline-flex !important; }
  .nav-actions { gap: 0.25rem; margin-left: auto; }
  .nav-actions a { min-width: 44px; justify-content: center; }
  .nav-actions .nav-store { padding: 0 0.5rem; opacity: 1; color: var(--brand); }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--nav-h)); background: #ffffff; flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem var(--gutter) 3rem; overflow-y: auto; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.025em; visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
  .nav-links.open { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
  .nav-links a { opacity: 1; padding: 0.7rem 0; min-height: 56px; translate: 0 -10px; transition: translate 0.45s var(--ease); }
  .nav-links.open a { translate: 0 0; }
  .nav-links .nav-phone { margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); font-size: 1.19rem; font-weight: 500; letter-spacing: -0.01em; }
  .nav-phone svg { width: 18px; height: 18px; }
  html.nav-open { overflow: hidden; }

  /* Every control is at least 44 px tall under a finger. */
  .logo { min-height: 44px; }
  .local-title, a.link-more { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-small, .local-nav .btn-small { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.92rem; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
  a.tag { position: relative; }
  a.tag::after { content: ""; position: absolute; inset: -10px -6px; }
  .category-block > h2 a { display: inline-block; padding: 0.35rem 0; }

  .local-nav-inner { gap: 1.25rem; }
  .local-links { gap: 1.25rem; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }

  .contact-grid, .service, .approach-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { max-width: 24rem; }
  .approach-head { position: static; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid, .detail-grid, .stat-row { grid-template-columns: 1fr; }
  .rec-grid, .owned-list { grid-template-columns: 1fr; }
  .mail-layout { grid-template-columns: 1fr; }
  .mail-frame { height: 520px; }
}

@media (max-width: 600px) {
  .hero { margin: 8px 8px 0; border-radius: var(--radius-l); }
  .tool-row { grid-template-columns: 1fr; }
  /* Phones: products sit in one row that scrolls sideways, so they do not push the rest of
     the page a screen further down. */
  .shelf-row, .shelf-row.count-2, .shelf-row.count-3, .product-grid.popular-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shelf-row::-webkit-scrollbar, .popular-grid::-webkit-scrollbar { display: none; }
  .shelf-row { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding-left: var(--gutter); }
  .shelf-item { flex: 0 0 82%; scroll-snap-align: start; min-height: 17rem; }
  main:not(.bleed) .category-block.popular { padding: 1.4rem 0 1.5rem 1.25rem; margin-left: -0.5rem; margin-right: -0.5rem; }
  .category-block.popular > p { padding-right: 1.25rem; }
  .product-grid.popular-grid { padding: 0 1.25rem 0 0; }
  .popular-grid .product-card { flex: 0 0 80%; scroll-snap-align: start; }
  .product-grid { grid-template-columns: 1fr; }
  /* Reach the first product sooner: trust points keep their titles only, and the category
     filters scroll sideways in one row. */
  .trust-row { gap: 0.9rem 1rem; padding: 1.1rem 0; }
  .trust-row .trust-text { display: none; }
  .trust-row strong { margin: 0; }
  .store-toolbar .chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.2rem; }
  .store-toolbar .chips::-webkit-scrollbar { display: none; }
  .store-toolbar .chip { flex: none; min-height: 44px; }
  .nav-actions #nav-account .label { display: none; }
  /* The page's own button is just below; the bar keeps to its links. */
  .local-nav .btn-small { display: none; }
  .page-head .lede { font-size: 1.0625rem; line-height: 1.45; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-line .line-total { text-align: left; }
  .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  /* The message spans the width as a bar instead of a squeezed pill. */
  .toast { left: 1rem; right: 1rem; transform: none; max-width: none; border-radius: var(--radius-m); justify-content: space-between; padding: 0.9rem 1.1rem; }

  .compare-table { font-size: 0.85rem; }
  .compare-table th[scope="row"] { min-width: 118px; position: sticky; left: 0; background: #ffffff; }
  .compare-table thead th { min-width: 104px; font-size: 0.9rem; }
  .compare-table thead th:first-child { position: sticky; left: 0; background: #ffffff; }
  .compare-table .col-price { font-size: 1.1rem; }
  .table th, .table td { padding: 0.65rem 0.7rem 0.65rem 0; }
  /* Pricing guides: narrow tables wrap to fit instead of scrolling the prices away. */
  .guide-table { font-size: 0.85rem; }
  .guide-table thead th { white-space: normal; }
  .guide-table td.num, .guide-table th.num { white-space: normal; }
  .guide-table th, .guide-table td { padding: 0.55rem 0.5rem 0.55rem 0; }
}

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

@media print {
  header.site-header, .local-nav, footer.site-footer, .demo-banner, .promo-banner, .tabs, .no-print, .toast { display: none !important; }
  main:not(.bleed) { padding: 0; max-width: none; }
}
