/* Kevin Labs: shared light theme. Component rules precede responsive rules.
   Keep reading/support templates separate from image-led product heroes. */
:root {
  color-scheme: light;
  --bg: #fff;
  --card: #f9f9fb;
  --ink: #1a1a1a;
  --muted: #5c6068;
  --line: #e8eaee;
  --border-subtle: rgba(0, 0, 0, .06);
  --border-hover: rgba(23, 102, 90, .38);
  --shadow-card: 0 2px 6px -1px rgba(0, 0, 0, .03), 0 1px 2px rgba(0, 0, 0, .02);
  --shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, .06), 0 4px 12px -2px rgba(23, 102, 90, .04);
  --accent: #17665a;
  --hover: #105448;
  --accent-light: #edf4f2;
  --field-border: #767676;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-display: 'Avenir Next', 'PingFang SC', system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); }
img { max-width: 100%; }
.bar, main, footer { width: min(1232px, calc(100% - 48px)); }
.bar { min-height: 88px; gap: 16px 24px; }
.brand { margin-right: auto; font-size: 24px; font-weight: 650; min-height: 44px; }
.brand-logo { width: 36px; height: 36px; box-shadow: none; }
.site-nav { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.language { font-size: 14px; }
select { min-height: 44px; border-color: var(--field-border); background: var(--bg); }
main { padding: 32px 0 48px; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
h1, h2, h3 { font-family: var(--font-display); min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.2; font-weight: 600; }
h2 { font-size: 28px; line-height: 1.35; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
p, li { line-height: 1.7; }
.lead { font-size: 18px; line-height: 1.7; }
.meta { font-size: 14px !important; }
.button, .button-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; border-radius: var(--radius-md); box-shadow: none; transition: background-color .15s, color .15s; cursor: pointer; }
.button:hover, .button-outline:hover { transform: none; box-shadow: none; text-decoration: none; }
.button-accent { background: var(--accent); color: #fff; }
.button-accent:hover { background: var(--hover); color: #fff; }
.button-outline { background: var(--bg); border: 1px solid var(--field-border); color: var(--ink); }
.button-outline:hover { background: var(--card); }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; margin-bottom: 24px; padding: 6px 14px; border-radius: 9999px; background: var(--card); border: 1px solid var(--border-subtle); text-decoration: none; }
/* Product navigation matches the compact brand/product breadcrumb. */
.product-page .bar, .reading-page .bar { gap: 12px; }
.product-page .bar .brand, .reading-page .bar .brand { margin-right: 0; font-size: 13px; gap: 8px; }
.product-page .bar .brand-logo, .reading-page .bar .brand-logo { width: 24px; height: 24px; }
.brand-divider { color: var(--muted); font-size: 20px; }
.brand-product { font-size: 16px; margin-right: auto; }
/* The confirmed flagship hierarchy follows DOM and keyboard order. */
.home-intro { padding: 16px 0 32px; max-width: 900px; }
.home-intro h1 { margin: 0 0 16px; }
.home-intro .lead { margin: 0; font-size: 16px; }
.home-page main > section > h2 { margin: 0 0 24px; }
.featured-products, .other-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card, .tool-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-card); transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s; }
.product-card:hover, .tool-card:hover { border-color: var(--border-hover); background: var(--bg); box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.product-card > img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 20px; }
.tool-card > img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 16px; }
.product-card h2, .tool-card h3 { font-size: 24px; line-height: 1.3; margin: 0 0 10px; }
.tool-card h3 { font-size: 21px; }
.product-purpose { display: inline-flex; align-self: flex-start; max-width: 100%; padding: 4px 10px; border-radius: 9999px; background: var(--accent-light); color: var(--accent); font-size: 14px; font-weight: 500; line-height: 1.5; margin: 0 0 12px; }
.product-description { font-size: 16px; line-height: 1.7; margin: 0 0 20px; color: var(--muted); }
.product-platform { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
.product-action { display: inline-block; font-size: 14px; font-weight: 500; line-height: 1.5; margin-top: auto; padding-top: 4px; color: var(--accent); }
.product-action::after { content: ' →'; display: inline-block; transition: transform .15s ease; }
.product-card:hover .product-action::after, .tool-card:hover .product-action::after, .product-card:focus-visible .product-action::after, .tool-card:focus-visible .product-action::after { transform: translateX(4px); }
.featured-products > [data-product="volmix"] { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: 28px; padding: 36px; background: linear-gradient(145deg, #f1f7f5, #f9f9fb); }
.flagship-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.flagship-copy > img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; margin-bottom: 24px; }
.featured-products > [data-product="volmix"] h2 { font-size: 40px; }
.featured-products > [data-product="volmix"] .product-description { font-size: 18px; margin: 0 0 24px; max-width: 30ch; }
.featured-products > [data-product="volmix"] .product-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 12px 18px; border-radius: var(--radius-md); background: var(--accent); color: #fff; font-weight: 600; }
.featured-products > [data-product="volmix"]:hover .product-action { background: var(--hover); }
.flagship-art { width: 100%; max-width: 310px; justify-self: center; pointer-events: none; }
.flagship-art img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-hover); }
.featured-products > .product-card { min-height: 248px; }
.home-page main > section > .other-heading { margin: 40px 0 24px; }
.home-page .faq-section { margin-top: 40px; }
/* Product introduction and image stage. Pure text is always one column. */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px; margin-bottom: 48px; }
.text-product-hero { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.product-copy { min-width: 0; }
.product-compatibility { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.product-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.product-identity img { width: 48px; height: 48px; object-fit: contain; }
.product-identity strong { font-size: 18px; }
.product-identity span { font-size: 13px; color: var(--muted); }
.product-hero h1 { font-size: clamp(32px, 3.6vw, 48px); margin: 0 0 16px; }
.product-hero .lead { font-size: 17px; margin: 0 0 24px; }
.product-copy .actions { margin: 24px 0 16px; }
.product-copy .meta { max-width: 65ch; }
.product-stage { display: grid; place-items: center; min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: linear-gradient(145deg, #fff, #f5f7f8); box-shadow: 0 8px 30px -4px rgba(0,0,0,.06), var(--shadow-card); }
.product-stage img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.product-stage.portrait img { width: auto; max-height: 440px; object-fit: contain; }
.product-page main > section > section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.product-page .help ul { padding-left: 24px; }
.product-page section.help:has(a[href*="review"]) { padding: 24px 28px; margin-bottom: 48px; background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.product-page section.help:has(a[href*="review"]) h2 { margin-top: 0; }
.product-page section.help a[href*="review"] { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--accent-light); color: var(--accent); text-decoration: none; }
.product-page .help li { max-width: 75ch; }
/* Informational feature groups use normal lists, not individual floating cards. */
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-groups section { min-width: 0; }
.feature-groups h3 { margin: 0 0 12px; font-size: 21px; }
.feature-options summary { min-height: 44px; display: list-item; padding: 12px 0; cursor: pointer; }
.image-preview { display: block; min-width: 0; }
.product-stage figcaption { margin-top: 12px; font-size: 14px; }
.product-stage figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
.app-row-copy { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.app-row-copy strong { font-size: 16px; font-weight: 600; }
.app-row-copy > span { font-size: 14px; line-height: 1.5; color: var(--muted); }
/* Support directories and long-form documents. */
.guides-page main > section { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.guides-page h1 { grid-column: 1 / -1; margin: 0 0 8px; }
.guides-page .catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.guides-page .app-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-width: 0; padding: 16px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.guides-page .app-row > img { width: 36px; height: 36px; flex: 0 0 auto; object-fit: contain; }
.guides-page main > section > a { padding: 24px; border-radius: var(--radius-lg); background: var(--card); overflow-wrap: anywhere; }
.reading-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.contents { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--radius-md); background: var(--card); max-height: calc(100vh - 48px); overflow: auto; }
.contents a { display: flex; align-items: center; min-height: 44px; padding: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); text-decoration: none; }
.contents a:hover, .contents a:focus-visible { color: var(--accent); background: var(--accent-light); }
.reading-layout:not(:has(> .contents)) { grid-template-columns: minmax(0, 1fr); }
.reading-body { min-width: 0; max-width: 75ch; font-size: 16px; line-height: 1.8; }
.reading-body h2 { scroll-margin-top: 24px; font-size: 26px; }
.reading-page main > section > h1 { font-size: clamp(32px, 4vw, 44px); }
.contact-card, .card { padding: 24px; border: 0; background: var(--card); }
.guide-card { padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.guide-badge { padding: 0; background: none; color: var(--muted); text-transform: none; letter-spacing: normal; font-size: 14px; }
.guide-figure img { box-shadow: none; border: 0; }
.faq-accordion summary { font-weight: 500; gap: 16px; }
.faq-answer { font-size: 16px; }
.callout-box { margin: 40px 0 0; padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fafafa, #f5f5f7); box-shadow: var(--shadow-card); }
.callout-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.callout-content h3 { font-size: 24px; }
.callout-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.site-toast { background: var(--ink); color: #fff; box-shadow: none; }
.site-toast a { color: #fff; }
.site-toast { max-width: calc(100% - 32px); width: max-content; }
.site-toast span { overflow-wrap: anywhere; min-width: 0; }
.site-toast button { min-height: 44px; padding: 8px 12px; color: #fff; background: transparent; border: 1px solid currentColor; border-radius: var(--radius-sm); font: inherit; cursor: pointer; }
.site-toast button:focus-visible { outline-color: #fff; }
.copy-email { margin: 4px 0 4px 12px; }
.link-language-note { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.language-fallback { margin: 0 0 24px; padding: 16px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }

footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 32px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
footer p { margin: 12px 0 0; }
.skip { position: absolute; left: 16px; top: 16px; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { width: auto; height: auto; padding: 12px; clip-path: none; background: var(--bg); z-index: 10; }
/* Responsive rules are last: no later desktop override may defeat them. */
@media (max-width: 1000px) {
  .featured-products, .other-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-products > [data-product="volmix"] { grid-row: auto; }

  .product-hero { gap: 24px; }
  .reading-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .guides-page main > section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .feature-groups { grid-template-columns: minmax(0, 1fr); }
  .product-hero, .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contents { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; gap: 4px 12px; }
  .reading-body { width: 100%; }
}
@media (max-width: 600px) {
  .bar, main, footer { width: calc(100% - 32px); }
  .bar { min-height: auto; padding: 12px 0; flex-wrap: wrap; gap: 8px; }
  .brand { flex-basis: auto; min-width: 0; font-size: 16px; gap: 8px; margin-right: auto; }
  .brand-logo { width: 28px; height: 28px; flex-shrink: 0; }
  .language { width: auto; max-width: 100%; margin-left: 0; }
  .language > span { display: none; }
  .language select { width: 112px; max-width: 112px; }
  .site-nav { font-size: 14px; }
  main { padding: 24px 0 32px; }
  .home-intro { padding: 8px 0 24px; }
  .home-intro h1 { font-size: 34px; }
  .featured-products, .other-products, .guides-page .catalog-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-card, .tool-card { padding: 20px; }
  .featured-products > [data-product="volmix"] { grid-column: auto; grid-row: auto; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px; }
  .flagship-art { max-width: 280px; }
  .flagship-copy > img { width: 64px; height: 64px; margin-bottom: 20px; }
  .featured-products > [data-product="volmix"] h2 { font-size: 28px; }
  .featured-products > .product-card { min-height: 0; }
  .product-hero h1 { font-size: 32px; }
  .product-identity img { width: 40px; height: 40px; }
  .product-stage { padding: 12px; }
  .product-stage.portrait img { max-height: 360px; }
  .contact-card, .card, .callout-box { padding: 20px; }
  h2 { font-size: 25px; }
  .callout-content h3 { font-size: 22px; }
  .site-toast { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .brand-name { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
