/* KADILI BOOSTER — reseller public websites. Four templates share this sheet;
   colours and font come from validated CSS variables set per site. */
:root { --s-bg: #FFFFFF; --s-bg-alt: #F6F7F8; --s-ink: #14171A; --s-muted: #5E6670; --s-line: #E3E6EA; --s-radius: 14px;
  --s-primary-ink: #FFFFFF; --s-soft: color-mix(in srgb, var(--s-primary) 10%, white); }
.is-dark { --s-bg: #0E1116; --s-bg-alt: #151A21; --s-ink: #ECEFF3; --s-muted: #9AA4AF; --s-line: #252C35; --s-soft: color-mix(in srgb, var(--s-primary) 18%, #0E1116); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site { margin: 0; background: var(--s-bg); color: var(--s-ink); font: 16px/1.55 var(--s-font); }
.site a { color: var(--s-primary); }
.site img { max-width: 100%; }
.s-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.s-narrow { max-width: 760px; }
.preview-bar { background: var(--s-secondary); color: #111; text-align: center; font: 600 13px/1 system-ui, sans-serif; padding: 8px; }
.is-preview a { pointer-events: none; }

.s-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--s-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--s-line); }
.s-top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.s-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--s-ink) !important; text-decoration: none; min-width: 0; }
.s-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-brand img { height: 36px; width: auto; border-radius: 8px; }
.s-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--s-primary); color: var(--s-primary-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.s-nav { display: none; gap: 20px; flex: 1; justify-content: center; }
.s-nav a { color: var(--s-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.s-nav a:hover { color: var(--s-primary); }
.s-auth { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.s-link { color: var(--s-ink) !important; font-weight: 600; text-decoration: none; }
@media (min-width: 860px) { .s-nav { display: flex; } .s-auth { margin-left: 0; } }

.s-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--s-line); background: var(--s-bg); color: var(--s-ink) !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
.s-btn-primary { background: var(--s-primary); border-color: var(--s-primary); color: var(--s-primary-ink) !important; }
.s-btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }

.s-hero { padding: 48px 0 40px; background: radial-gradient(1200px 400px at 80% -10%, var(--s-soft), transparent); }
.s-hero-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .s-hero-in { grid-template-columns: 1.1fr .9fr; } .s-hero { padding: 80px 0 64px; } }
.s-hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.s-lead { font-size: 18px; color: var(--s-muted); margin: 0 0 24px; max-width: 56ch; }
.s-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.s-notice { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--s-bg-alt); color: var(--s-muted); font-size: 14px; }
.s-hero-img { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 4 / 3; }
.s-hero-art { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; background: linear-gradient(135deg, var(--s-primary), color-mix(in srgb, var(--s-primary) 55%, var(--s-secondary))); overflow: hidden; }
.s-hero-art span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); }
.s-hero-art span:nth-child(1) { width: 60%; aspect-ratio: 1; right: -10%; top: -15%; }
.s-hero-art span:nth-child(2) { width: 35%; aspect-ratio: 1; left: 10%; bottom: 8%; background: color-mix(in srgb, var(--s-secondary) 80%, transparent); }
.s-hero-art span:nth-child(3) { width: 14%; aspect-ratio: 1; left: 52%; top: 46%; background: #fff; }

.s-promo { background: var(--s-secondary); color: #111; text-align: center; font-weight: 700; padding: 12px 0; }
.s-promo a { color: #111; }
.s-sec { padding: 48px 0; }
.s-alt { background: var(--s-bg-alt); }
.s-sec h2, .s-h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.01em; margin: 0 0 8px; }
.s-sub { color: var(--s-muted); margin: 0 0 24px; }
.s-center { text-align: center; margin-top: 24px; }
.s-pre { white-space: pre-wrap; color: var(--s-muted); font-size: 17px; }
.s-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .s-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.s-cat { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-bg); color: var(--s-ink) !important; text-decoration: none; }
.s-cat:hover { border-color: var(--s-primary); }
.s-cat img { border-radius: 10px; object-fit: cover; }
.s-cat-i { width: 40px; height: 40px; border-radius: 10px; background: var(--s-soft); color: var(--s-primary); display: grid; place-items: center; font-weight: 800; }
.s-cat small { color: var(--s-muted); }
.s-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.s-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--s-radius); border: 1px solid var(--s-line); background: var(--s-bg); color: var(--s-ink) !important; text-decoration: none; margin: 0; }
a.s-card:hover { border-color: var(--s-primary); transform: translateY(-1px); }
.s-card p { margin: 0; color: var(--s-muted); font-size: 15px; }
.s-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--s-soft); color: var(--s-primary); }
.s-price { font-weight: 800; font-size: 18px; color: var(--s-primary); }
.s-price small { font-weight: 600; font-size: 13px; color: var(--s-muted); }
.s-quote blockquote { margin: 0; font-size: 16px; }
.s-quote figcaption { font-weight: 700; color: var(--s-muted); font-size: 14px; }
.s-faq { border-bottom: 1px solid var(--s-line); padding: 14px 0; }
.s-faq summary { font-weight: 700; cursor: pointer; }
.s-faq p { color: var(--s-muted); margin: 10px 0 0; white-space: pre-wrap; }
.s-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.s-contact li { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--s-line); border-radius: 12px; }
.s-contact span { width: 90px; color: var(--s-muted); font-weight: 600; flex: none; }
.s-cat-h { font-size: 20px !important; margin-top: 28px !important; }
.s-table { border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; }
.s-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; color: var(--s-ink) !important; text-decoration: none; background: var(--s-bg); }
.s-row + .s-row { border-top: 1px solid var(--s-line); }
.s-row:hover { background: var(--s-bg-alt); }
.s-row small { display: block; color: var(--s-muted); font-size: 13px; }
.s-prose h2 { font-size: 20px; margin-top: 28px; }
.s-prose p { color: var(--s-muted); }

.s-foot { border-top: 1px solid var(--s-line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); text-align: center; color: var(--s-muted); font-size: 14px; }
.s-social { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; font-weight: 700; }
.s-small { font-size: 13px; }
.s-powered a { color: var(--s-muted) !important; font-weight: 700; }
.s-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; padding: 12px 18px; border-radius: 999px; background: #1FA855; color: #fff !important; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* template variations */
.tpl-dark_professional .s-hero { background: radial-gradient(900px 420px at 15% -10%, color-mix(in srgb, var(--s-primary) 35%, transparent), transparent); }
.tpl-dark_professional .s-card, .tpl-dark_professional .s-cat { background: var(--s-bg-alt); }
.tpl-service_store .s-hero { padding: 32px 0; background: var(--s-bg-alt); }
.tpl-service_store .s-hero h1 { font-size: clamp(28px, 5vw, 44px); }
.tpl-service_store .s-card { border-radius: 8px; }
.tpl-service_store .s-btn { border-radius: 6px; }
.tpl-mobile_first .s-hero { text-align: center; }
.tpl-mobile_first .s-cta { justify-content: center; }
.tpl-mobile_first .s-lead { margin-left: auto; margin-right: auto; }
.tpl-mobile_first .s-hero-in { grid-template-columns: 1fr; }
.tpl-mobile_first .s-hero-art, .tpl-mobile_first .s-hero-img { max-width: 420px; margin: 0 auto; width: 100%; }
.tpl-mobile_first .s-btn { border-radius: 999px; }
.tpl-mobile_first .s-card, .tpl-mobile_first .s-cat { border-radius: 22px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.s-card:hover { transform: none; } }
.s-steps { padding-left: 22px; display: grid; gap: 12px; font-size: 17px; }
.s-steps li::marker { color: var(--s-primary); font-weight: 800; }
