/* Vihasri home (/): single-page product site.
   One brand colour (teal) + neutrals, 8px spacing scale, Inter (display=swap, system-ui fallback); type scale 28/20/16/14/13, weights 600/500/400 (Vihasri type system). */
:root {
  --brand: #0e7490;
  --brand-dark: #155e75;
  --brand-deep: #164e63;
  --brand-tint: #ecfeff;
  --brand-tint-2: #cffafe;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --r-sm: 8px; --r: 16px; --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.16);
  --wrap: 1200px;
  --header-h: 64px; /* sticky header height; 72px from 960px up */
  --fs-title: 28px; --fs-section: 20px; --fs-body: 16px; --fs-label: 14px; --fs-small: 13px;
  --fw-heading: 600; --fw-label: 500; --fw-body: 400;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 960px) { :root { --header-h: 72px; } }
/* Phones: ClassVani / AllMandir mobile reading sizes (body 15, label 13, small 12). */
@media (max-width: 767px) { :root { --fs-body: 15px; --fs-label: 13px; --fs-small: 12px; } body { line-height: 1.45; } }
/* In-page anchors land below the sticky header (header height + 16px). */
main section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: 0; text-wrap: balance; }
@supports not (text-wrap: balance) { h1, h2 { max-width: 28ch; } h1 { max-width: none; } }
p, ul { margin: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s2); top: -64px; z-index: 200; background: var(--brand); color: #fff; padding: var(--s1) var(--s2); border-radius: var(--r-sm); font-weight: var(--fw-heading); text-decoration: none; }
.skip-link:focus { top: var(--s2); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 48px; padding: 0 var(--s3); border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-size: var(--fs-body); font-weight: var(--fw-label); line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-sm { min-height: 40px; padding: 0 var(--s2); font-size: var(--fs-label); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #cbd5e1; color: var(--ink); background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-on-dark { background: #fff; color: var(--brand-deep); }
.btn-on-dark:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn-outline-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-on-dark:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
.brand-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-mark-si { width: 18px; height: 18px; border-radius: 4px; }
.brand-name { font-size: var(--fs-section); font-weight: var(--fw-heading); letter-spacing: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s2); height: var(--header-h); }
.primary-nav { display: none; }
.primary-nav a { color: var(--muted); font-size: var(--fs-label); font-weight: var(--fw-label); text-decoration: none; padding: var(--s1) 0; }
.primary-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.header-actions .btn-ghost { display: none; }
.menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle .icon-open, .menu-toggle .icon-close { display: inline-grid; place-items: center; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-grid; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: var(--s2) var(--s3) var(--s3); }
.site-header.menu-open .mobile-menu { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 12px 0; color: var(--ink); font-weight: var(--fw-label); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: var(--s2); }
@media (min-width: 480px) { .header-actions .btn-ghost { display: inline-flex; } }
@media (min-width: 960px) {
  .header-inner { gap: var(--s5); }
  .primary-nav { display: flex; gap: var(--s4); }
  .menu-toggle, .mobile-menu, .site-header.menu-open .mobile-menu { display: none; }
}

/* Hero — intro + cinematic product carousel */
.hero-cinema { padding: var(--s6) 0 0; background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 55%); }
.hero-cinema-intro { text-align: center; max-width: 760px; margin: 0 auto var(--s5); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s1); margin-bottom: var(--s2); padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--brand-tint-2); color: var(--brand-deep); font-size: var(--fs-label); font-weight: var(--fw-heading); }
.hero-cinema-intro h1 { font-size: var(--fs-title); font-weight: var(--fw-heading); letter-spacing: 0; line-height: 1.08; }
.hero-cinema-intro .lead { margin-top: var(--s3); font-size: var(--fs-section); color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); justify-content: center; }
.hero-actions .btn { min-height: 52px; padding: 0 var(--s4); }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }
@media (min-width: 960px) { .hero-cinema { padding-top: var(--s10); } .hero-cinema-intro { margin-bottom: var(--s6); } }

.hero-product-grid { list-style: none; padding: 0; margin: var(--s4) auto var(--s5); display: grid; gap: var(--s2); grid-template-columns: 1fr; max-width: var(--wrap); }
@media (min-width: 640px) { .hero-product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } }
@media (min-width: 1024px) { .hero-product-grid { grid-template-columns: repeat(4, 1fr); } }
.hero-product-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s1); padding: var(--s3) var(--s2); min-height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.hero-product-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.hero-product-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hero-product-tile-logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(14, 60, 80, 0.2)); }
.hero-product-tile-name { font-size: var(--fs-section); font-weight: var(--fw-heading); color: var(--ink); }
.hero-product-tile-tagline { font-size: var(--fs-label); color: var(--muted); line-height: 1.4; max-width: 22ch; }

/* Auto-scrolling product marquee (home) */
.product-marquee-section { padding: var(--s4) 0 var(--s6); background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%); border-bottom: 1px solid var(--line); }
.product-marquee-wrap { overflow: hidden; }
.product-marquee-viewport { overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.product-marquee-track { display: flex; gap: var(--s3); width: max-content; animation: product-marquee-scroll 45s linear infinite; padding: var(--s2) 0; }
.product-marquee-viewport:hover .product-marquee-track,
.product-marquee-viewport:focus-within .product-marquee-track { animation-play-state: paused; }
@keyframes product-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .product-marquee-track { animation: none; overflow-x: auto; max-width: 100%; padding-bottom: var(--s2); }
  .product-marquee-viewport { mask-image: none; }
}
.product-marquee-card { flex: 0 0 auto; width: min(280px, 72vw); }
.product-marquee-card a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s1); padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); min-height: 100%; transition: border-color .15s, box-shadow .15s; }
.product-marquee-card a:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.product-marquee-card img { width: 88px; height: 88px; object-fit: contain; }
.product-marquee-name { font-weight: var(--fw-heading); font-size: var(--fs-body); }
.product-marquee-tag { font-size: var(--fs-small); color: var(--muted); line-height: 1.35; max-width: 24ch; }

.header-sign-in-dropdown { position: relative; display: none; }
@media (min-width: 480px) { .header-sign-in-dropdown { display: block; } }
.header-dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; margin: 0; padding: var(--s1); list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); z-index: 60; }
.header-dropdown-row { display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: var(--fw-label); font-size: var(--fs-label); }
.header-dropdown-row:hover { background: var(--bg-soft); color: var(--ink); }
.mobile-menu-label { margin: var(--s2) 0 var(--s1); font-size: var(--fs-small); font-weight: var(--fw-heading); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mobile-product-links { list-style: none; padding: 0; margin: 0 0 var(--s2); }
.mobile-product-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: var(--fw-label); }

.product-sign-in-chooser { max-width: 480px; width: calc(100% - 32px); border: none; border-radius: var(--r); padding: var(--s4); box-shadow: var(--shadow-lg); }
.product-sign-in-chooser::backdrop { background: rgba(15, 23, 42, 0.45); }
.product-sign-in-chooser h2 { font-size: var(--fs-section); margin-bottom: var(--s1); }
.product-chooser-lead { color: var(--muted); font-size: var(--fs-body); margin-bottom: var(--s3); }
.product-chooser-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.product-chooser-row { display: flex; align-items: center; gap: var(--s2); padding: var(--s2); border-radius: var(--r-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.product-chooser-row:hover { border-color: var(--brand); background: var(--bg-soft); color: var(--ink); }
.product-chooser-row img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.product-chooser-row strong { display: block; font-size: var(--fs-body); }
.product-chooser-tagline { display: block; font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-body); margin-top: 2px; }
.product-chooser-platform { margin: var(--s3) 0 0; padding-top: var(--s2); border-top: 1px solid var(--line); text-align: center; font-size: var(--fs-label); }
.product-chooser-platform a { color: var(--muted); font-weight: var(--fw-label); text-decoration: none; }
.product-chooser-platform a:hover { color: var(--brand-dark); text-decoration: underline; }

.other-apps-grid { list-style: none; padding: 0; display: grid; gap: var(--s3); grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .other-apps-grid { grid-template-columns: repeat(2, 1fr); } }
.other-app-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); padding: var(--s4); background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.other-app-card:hover { border-color: var(--brand); color: var(--ink); }
.other-app-card img { width: 80px; height: 80px; object-fit: contain; }
.other-app-name { font-weight: var(--fw-heading); font-size: var(--fs-section); }
.other-app-tagline { font-size: var(--fs-label); color: var(--muted); }
.footer-platform-admin { text-align: center; font-size: var(--fs-small); color: var(--muted); margin-bottom: var(--s2); }
.footer-platform-admin a { color: var(--muted); }

.hero-cinema-shell { padding-bottom: var(--s6); }
.hero-cinema-viewport { overflow: hidden; width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line); }
@media (min-width: 960px) { .hero-cinema-viewport { max-width: min(1180px, calc(100% - 48px)); margin: 0 auto; } }
.hero-cinema-track { display: flex; width: 100%; transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero-cinema-track { transition: none; } }
.hero-slide { flex: 0 0 100%; color: var(--text); background: #fff; }
.hero-slide-layout { display: grid; gap: var(--s4); align-items: center; padding: var(--s4) var(--s3) var(--s5); max-width: var(--wrap); margin: 0 auto; grid-template-columns: 1fr; }
.hero-slide-art { order: -1; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 2; max-height: 280px; border-radius: var(--r); background: transparent; overflow: visible; padding: var(--s2); }
.hero-slide-art-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(14, 60, 80, 0.25)); }
.hero-slide-art-logo { display: block; width: auto; height: auto; max-height: 70%; max-width: 88%; object-fit: contain; object-position: center; margin: 0 auto; }
.hero-slide[data-panel="classvani"] .hero-slide-art-logo,
.hero-slide[data-panel="allmandir"] .hero-slide-art-logo { filter: none; }
.hero-slide[data-panel="allmandir"] .hero-slide-art-logo { max-width: 86%; }
.hero-slide-copy { display: flex; flex-direction: column; gap: 0; align-items: flex-start; text-align: left; }
.hero-slide-eyebrow { margin: 0 0 6px; font-size: var(--fs-small); font-weight: var(--fw-heading); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.hero-slide-title { margin: 0; font-size: var(--fs-title); font-weight: var(--fw-heading); color: var(--ink); letter-spacing: 0; }
.hero-slide-text { margin: var(--s2) 0 var(--s3); max-width: 42ch; font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }
.hero-slide .btn { min-height: 48px; }
@media (min-width: 768px) {
  .hero-slide-layout { grid-template-columns: 1fr 1fr; gap: var(--s5); padding: var(--s6) var(--s3); min-height: 380px; }
  .hero-slide-art { order: 2; max-height: none; padding: var(--s3); }
  .hero-slide-copy { order: 1; }
}
/* Product slides: logos sit directly on the white card (no coloured tile panel). */

.hero-cinema-controls { display: flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s3) var(--s3) 0; max-width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero-cinema-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.hero-cinema-btn:hover { border-color: #cbd5e1; background: var(--bg-soft); }
.hero-cinema-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; flex: 1; }
.hero-cinema-dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width 0.2s, background 0.2s; }
.hero-cinema-dot.is-active { width: 28px; background: var(--brand); }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { list-style: none; padding: var(--s3) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2) var(--s3); }
.trust li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-label); font-weight: var(--fw-heading); color: var(--ink); }
.trust li svg { color: var(--brand); }
@media (min-width: 960px) { .trust ul { grid-template-columns: repeat(4, 1fr); justify-items: center; } }

/* Sections */
.section { padding: var(--s8) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto var(--s6); text-align: center; }
.kicker { margin-bottom: var(--s1); color: var(--brand); font-size: var(--fs-label); font-weight: var(--fw-heading); letter-spacing: .06em; text-transform: uppercase; }
.section-head h2 { font-size: var(--fs-section); font-weight: var(--fw-heading); }
.section-head .sub { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-body); }
.section-intro { max-width: 42rem; margin: calc(-1 * var(--s2)) auto var(--s6); text-align: center; }
.section-intro .sub { margin-top: var(--s3); line-height: 1.6; }
.section-intro .sub:first-child { margin-top: var(--s2); }
.custom-build-cta { margin-top: var(--s6); text-align: center; color: var(--muted); font-size: var(--fs-body); line-height: 1.6; max-width: 36rem; margin-left: auto; margin-right: auto; }
.custom-build-cta .btn { margin-top: var(--s3); }
@media (min-width: 960px) { .section { padding: var(--s12) 0; } }

/* Icon tile */
.icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.icon-tile.neutral { background: #f1f5f9; color: var(--ink); }
/* Product logo tiles: ONE background per tile (no nested panel), logo centered, never cropped.
   Product logos sit directly on the white card with a soft drop-shadow (no coloured tile). */
.card-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; width: auto; margin: calc(-1 * var(--s4)) calc(-1 * var(--s3)) var(--s1); padding: var(--s2); border-radius: var(--r) var(--r) 0 0; overflow: visible; background: transparent; }
.card-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; }
.card-media img { display: block; width: auto; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; object-position: center; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(14, 60, 80, 0.25)); }
.card-media.tile-allmandir img { filter: none; max-width: 86%; }
.card-media.tile-classvani img { filter: drop-shadow(0 8px 18px rgba(14, 60, 80, 0.25)); }
.hero-slide[data-panel="allmandir"] .hero-slide-art-logo { filter: none; max-width: 86%; }
.hero-slide[data-panel="classvani"] .hero-slide-art-logo { filter: drop-shadow(0 8px 18px rgba(14, 60, 80, 0.25)); }
.tile-classvani img, .tile-allmandir img { filter: none; }
.tile-allmandir img { max-width: 86%; }
/* legacy class names kept as aliases */

/* Products */
.product-grid { list-style: none; padding: 0; display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
}
.product-card { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s3) var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.product-card:hover { border-color: var(--brand); box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 16px 40px rgba(15,23,42,.10); transform: translateY(-2px); }
.product-card:focus-within { border-color: var(--brand); }
.badge { font-size: var(--fs-small); font-weight: var(--fw-heading); color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 4px 10px; }
.product-card h3 { font-size: var(--fs-section); font-weight: var(--fw-heading); }
.product-card .value { color: var(--muted); font-size: var(--fs-body); }
.checks { list-style: none; padding: 0; display: grid; gap: var(--s1); font-size: var(--fs-body); color: var(--text); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li svg { margin-top: 3px; color: var(--brand); }
.card-action { margin-top: auto; padding-top: var(--s1); display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-heading); text-decoration: none; color: var(--brand); }
.card-action::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card-action:hover { color: var(--brand-dark); text-decoration: underline; }
.product-card:focus { outline: 3px solid var(--brand); outline-offset: 2px; }
.product-card .card-open { margin-top: auto; position: relative; z-index: 1; align-self: flex-start; }
.card-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; padding-top: var(--s1); width: 100%; align-items: stretch; }
.card-actions .btn { position: relative; z-index: 1; flex: 1 1 7rem; min-width: 0; }
.product-card .card-actions .card-open { flex: 1 1 10rem; }
.sibling-grid-kicker { margin-top: var(--s5); text-align: center; }
.sibling-grid-intro {
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-label);
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 auto var(--s3);
}
.product-grid-siblings { margin-top: 0; }
.more-apps { margin-top: var(--s4); text-align: center; }
.more-apps-title { font-size: var(--fs-small); font-weight: var(--fw-heading); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s1); }
.more-apps-links { font-size: var(--fs-label); color: var(--muted); margin: 0; }
.more-apps-links a { color: var(--brand-dark); font-weight: var(--fw-heading); text-decoration: underline; }
.more-apps-links a:hover { color: var(--brand); }
.more-apps-sep { margin: 0 10px; color: #cbd5e1; }
.footer-all-products { margin-top: var(--s2); font-size: var(--fs-label); }
.footer-all-products a { color: var(--brand); font-weight: var(--fw-heading); text-decoration: none; }
.footer-all-products a:hover { text-decoration: underline; }

/* Why */
.why-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { padding: var(--s3); border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.why-item h3 { margin-top: var(--s2); font-size: var(--fs-body); font-weight: var(--fw-heading); }
.why-item p { margin-top: var(--s1); color: var(--muted); font-size: var(--fs-body); }

/* Steps */
.steps { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s3); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: var(--s2); align-items: flex-start; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: var(--fw-heading); font-size: var(--fs-label); flex-shrink: 0; }
.step h3 { font-size: var(--fs-body); font-weight: var(--fw-heading); }
.step p { color: var(--muted); font-size: var(--fs-body); margin-top: 4px; }

/* Pricing */
.pricing-grid { display: grid; gap: var(--s3); max-width: 880px; margin: 0 auto; }
@media (min-width: 760px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); }
.plan h3 { font-size: var(--fs-section); font-weight: var(--fw-heading); }
.plan .price { font-size: var(--fs-title); font-weight: var(--fw-heading); color: var(--ink); letter-spacing: 0; line-height: 1.1; }
.plan .price small { display: block; margin-top: 4px; font-size: var(--fs-body); font-weight: var(--fw-label); color: var(--muted); letter-spacing: 0; }
.plan .btn { margin-top: auto; }
.pricing-foot { margin-top: var(--s3); text-align: center; color: var(--muted); font-size: var(--fs-label); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: var(--s1); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 var(--s3); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: var(--s2) var(--s4) var(--s2) 0; font-weight: var(--fw-heading); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: var(--fs-section); font-weight: var(--fw-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: var(--s2); color: var(--muted); font-size: var(--fs-body); }

/* Contact */
.contact { padding: var(--s8) 0; background: var(--brand-deep); color: #e2f8fb; }
.contact-inner { display: grid; gap: var(--s4); align-items: center; }
.contact h2 { color: #fff; font-size: var(--fs-section); font-weight: var(--fw-heading); }
.contact p { margin-top: var(--s2); font-size: var(--fs-body); color: #cdeff4; max-width: 46ch; }
.contact-card { background: #fff; color: var(--text); border-radius: var(--r); padding: var(--s4); box-shadow: var(--shadow-lg); display: grid; gap: var(--s2); }
.contact-card h3 { font-size: var(--fs-body); }
.contact-row { display: flex; align-items: center; gap: 12px; font-weight: var(--fw-heading); }
.contact-row a { color: var(--ink); text-decoration: none; }
.contact-row a:hover { color: var(--brand); text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
@media (min-width: 960px) { .contact { padding: var(--s12) 0; } .contact-inner { grid-template-columns: 1.3fr 1fr; gap: var(--s8); } }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: var(--s8) 0 var(--s4); font-size: var(--fs-label); }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand, .footer-brand .brand:hover { color: #fff; }
.footer-brand p { margin-top: var(--s2); max-width: 36ch; color: #94a3b8; }
.footer-col h3 { margin-bottom: var(--s2); color: #94a3b8; font-size: var(--fs-small); font-weight: var(--fw-heading); letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s1); }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); color: #94a3b8; font-size: var(--fs-label); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* Dialogs: product detail + sign in */
dialog.modal { padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog.modal::backdrop { background: rgba(15, 23, 42, 0.55); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.modal-close:hover { background: #f1f5f9; }
.detail-media { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: var(--s4); background: transparent; }
.detail-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.detail-media img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 8px 18px rgba(14, 60, 80, 0.25)); }
.detail-media.tile-classvani img, .detail-media.tile-allmandir img { filter: none; }
.detail-media.tile-allmandir img { max-width: 86%; }
@media (max-width: 479px) { .detail-media { padding: var(--s3); } }
.detail-kicker { margin: 0; color: var(--brand); font-size: var(--fs-small); font-weight: var(--fw-heading); letter-spacing: .08em; text-transform: uppercase; }
.modal-close { color: var(--brand-deep); }
.detail-body { padding: var(--s3) var(--s4) var(--s4); display: grid; gap: var(--s2); border-top: 3px solid var(--brand); }
@media (max-width: 479px) { .detail-body { padding: var(--s3); } .detail-actions .btn { flex: 1 1 100%; } }
.detail-body h2 { font-size: var(--fs-section); font-weight: var(--fw-heading); }
.detail-body p { color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
dialog.signin { width: min(480px, calc(100vw - 24px)); overflow: hidden; border-top: 4px solid var(--brand); }
.signin-start { margin: var(--s2) var(--s8) 0 var(--s3); padding: 12px var(--s2); background: var(--brand-tint); border-radius: 12px; font-size: var(--fs-label); color: var(--brand-deep); }
.signin-start[hidden] { display: none; }
.signin-start a { font-weight: var(--fw-heading); }
.signin-frame { display: block; width: 100%; height: min(480px, calc(100dvh - 120px)); border: 0; background: #fff; }
.contact .contact-card p { margin-top: 0; font-size: var(--fs-body); color: var(--ink); max-width: none; }

/* Add to Home Screen (mobile menu) — shown by JS only when installable / iOS Safari, hidden when standalone */
.mobile-menu .install-app { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--brand-deep); font: inherit; font-weight: var(--fw-heading); text-align: left; cursor: pointer; }
.mobile-menu .install-app[hidden], .install-tip[hidden] { display: none; }
.mobile-menu .install-app svg { color: var(--brand); }
.install-tip { margin: var(--s1) 0 0; padding: 12px var(--s2); border-radius: 12px; background: var(--brand-tint); color: var(--brand-deep); font-size: var(--fs-label); line-height: 1.5; }
@media (min-width: 960px) { .mobile-menu .install-app, .install-tip { display: none !important; } }
