/* Siliana brand layer over the Nexsas template (unlayered, so it wins over @layer theme). */
:root {
  /* the template's lime accent (buttons, badges) -> Siliana dawn gradient */
  --color-gradient-14: linear-gradient(100deg, #ffa502 0%, #f47187 48%, #b879ff 100%);
  --color-primary-500: #8b5cf6;
}

/* hero: the template's sky video is not ours; use a soft dawn haze instead */
.siliana-hero {
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(255, 165, 2, 0.18), transparent 70%),
    radial-gradient(55% 45% at 85% 15%, rgba(184, 121, 255, 0.22), transparent 70%),
    radial-gradient(60% 50% at 50% 60%, rgba(244, 113, 135, 0.12), transparent 70%),
    #fcfbf9;
}

.siliana-logo { height: 36px; width: auto; }

/* Siliana illustration SVGs inside template cards */
.siliana-card-art { width: 100%; max-height: 300px; object-fit: contain; margin-inline: auto; }
.siliana-step-art { width: 100%; max-height: 120px; object-fit: contain; padding: 16px; }
.siliana-orbit-icon { background: #fff; border-radius: 9999px; padding: 10px; box-shadow: 0 4px 14px rgba(14, 12, 19, 0.08); }

/* tighten the gap under the hero image (template gradient + section padding) */
.siliana-hero + section { padding-top: 3rem !important; }

/* ---------- product mockups inside cards (Nexsas card language) ---------- */
:root { --sl-grad: linear-gradient(100deg, #ffa502 0%, #f47187 48%, #b879ff 100%); }
.sl-mock { position: relative; width: 100%; max-width: 420px; margin: auto auto 8px; padding: 18px 8px 28px; font-size: 13px; line-height: 1.45; color: #1a1a1c; }
.sl-figure { display: flex; align-items: center; justify-content: center; background: #f4f5f8; border-radius: 16px; overflow: hidden; }
.sl-panel { background: #fff; border: 1px solid #dfe4eb; border-radius: 16px; padding: 14px; box-shadow: 0 12px 32px -18px rgba(14,12,19,.25); }
.sl-row { display: flex; align-items: center; gap: 8px; }
.sl-push { margin-left: auto; }
.sl-av { width: 28px; height: 28px; border-radius: 9999px; }
.sl-strong { font-weight: 500; }
.sl-muted { color: rgba(26,26,28,.55); }
.sl-small { font-size: 12px; }
.sl-live { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 9999px; color: #fff; background: var(--sl-grad); }
.sl-wave { display: flex; align-items: center; gap: 3px; height: 46px; margin: 12px 0 8px; }
.sl-wave i { flex: 1; border-radius: 4px; background: var(--sl-grad); opacity: .85; }
.sl-chip { position: absolute; bottom: 0; font-size: 12px; padding: 6px 12px; border-radius: 9999px; background: #1a1a1c; color: #fff; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(14,12,19,.5); }
.sl-float-r { right: 0; } .sl-float-l { left: 0; }
.sl-chat { display: flex; flex-direction: column; gap: 8px; }
.sl-head { padding-bottom: 8px; border-bottom: 1px solid #eef1f5; }
.sl-dot { width: 10px; height: 10px; border-radius: 9999px; }
.sl-wa { background: #25d366; } .sl-ig { background: linear-gradient(45deg,#feda75,#d62976,#4f5bd5); }
.sl-bubble { max-width: 85%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; }
.sl-c { align-self: flex-start; background: #f4f5f8; border-bottom-left-radius: 4px; }
.sl-a { align-self: flex-end; background: var(--sl-grad); color: #17121f; border-bottom-right-radius: 4px; }
.sl-meta { display: block; margin-top: 3px; font-size: 10px; opacity: .6; }
.sl-lang { display: inline-block; margin-right: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; opacity: .6; }
.sl-browser { padding: 0; overflow: hidden; }
.sl-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #f4f5f8; border-bottom: 1px solid #dfe4eb; font-size: 11px; color: rgba(26,26,28,.5); }
.sl-bar i { width: 7px; height: 7px; border-radius: 9999px; background: #d7dde5; } .sl-bar span { margin-left: 8px; }
.sl-page { padding: 14px; display: grid; gap: 8px; }
.sl-skel { height: 8px; border-radius: 4px; background: #eef1f5; } .w70 { width: 70%; } .w50 { width: 50%; } .w60 { width: 60%; }
.sl-widget { margin: 0 12px 12px auto; width: 78%; background: #fff; border: 1px solid #dfe4eb; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 12px 28px -16px rgba(14,12,19,.35); }
.sl-callbtn { align-self: flex-start; font-size: 11px; padding: 4px 10px; border-radius: 9999px; border: 1px solid #dfe4eb; }
.sl-post { margin: 10px 0; padding: 22px 12px; border-radius: 10px; background: var(--sl-grad); color: #17121f; font-weight: 500; font-size: 13px; }
.sl-comment { font-size: 12.5px; padding: 6px 0; } .sl-comment b { font-weight: 600; margin-right: 6px; }
.sl-reply { margin-left: 18px; padding-left: 10px; border-left: 2px solid #f47187; }
.sl-file { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px; border: 1px solid #eef1f5; border-radius: 10px; }
.sl-file span { font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 6px; background: #f4f5f8; }
.sl-file em { margin-left: auto; font-style: normal; font-size: 11px; color: #16a34a; }
.sl-arrow { color: #f47187; font-weight: 600; }
.sl-human { width: 28px; height: 28px; border-radius: 9999px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: #1a1a1c; color: #fff; }
.sl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sl-tags span { font-size: 11.5px; padding: 4px 10px; border-radius: 9999px; border: 1px solid #dfe4eb; }
.sl-flow { display: flex; flex-direction: column; align-items: center; }
.sl-node { width: 82%; background: #fff; border: 1px solid #dfe4eb; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; box-shadow: 0 8px 20px -14px rgba(14,12,19,.3); }
.sl-node small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: rgba(26,26,28,.5); }
.sl-node-a { border-color: transparent; background: linear-gradient(#fff,#fff) padding-box, var(--sl-grad) border-box; border: 1.5px solid transparent; }
.sl-line { width: 2px; height: 18px; background: var(--sl-grad); }
.sl-stepchip { position: absolute; z-index: 20; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; border-radius: 9999px; font-size: 14px; color: #fff; white-space: nowrap; background: rgba(255,255,255,.15); backdrop-filter: blur(20px); box-shadow: 0 1px 0 0 rgba(255,255,255,.4) inset; }
.siliana-mega-img { aspect-ratio: 548 / 336; }
.sl-mock { max-width: 460px; font-size: 14px; }
.sl-bubble, .sl-comment, .sl-node { font-size: 13.5px; }
.sl-figure .sl-mock { margin: auto; }
@media (max-width: 640px) { .sl-mock { font-size: 12.5px; } .sl-chip { font-size: 11px; } }

/* ---------- more mockups ---------- */
.sl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.sl-kpis b { display: block; font-size: 18px; font-weight: 500; } .sl-kpis span { font-size: 11px; color: rgba(26,26,28,.55); }
.sl-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.sl-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--sl-grad); }
.sl-days { display: flex; gap: 8px; margin-top: 6px; } .sl-days span { flex: 1; text-align: center; font-size: 10px; color: rgba(26,26,28,.45); }
.sl-queue { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sl-meter { margin-left: auto; width: 80px; height: 6px; border-radius: 9999px; background: #eef1f5; overflow: hidden; }
.sl-meter i { display: block; height: 100%; background: var(--sl-grad); }
.sl-av-lg { width: 40px; height: 40px; }
.sl-log { font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid #eef1f5; } .sl-log:last-child { border: 0; }
.sl-log span { display: inline-block; width: 44px; color: rgba(26,26,28,.45); font-variant-numeric: tabular-nums; }
.sl-split3 { display: flex; gap: 8px; } .sl-split3 span { padding: 7px 14px; border-radius: 9999px; background: #fff; border: 1px solid #dfe4eb; font-size: 12.5px; }
.sl-split3 .sl-on, .sl-on { background: var(--sl-grad) !important; border-color: transparent !important; color: #17121f; }
.sl-code pre { margin: 8px 0 0; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1a1a1c; white-space: pre; }
/* hero dashboard */
.sl-dash { display: grid; grid-template-columns: 190px 1fr 1.1fr; height: 100%; background: #fff; font-size: 13px; color: #1a1a1c; text-align: left; }
.sl-dash aside { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid #eef1f5; background: #f9fafb; }
.sl-dash aside span { padding: 7px 10px; border-radius: 8px; color: rgba(26,26,28,.65); }
.sl-dash aside .sl-strong { padding: 0 10px 10px; }
.sl-dash-list { border-right: 1px solid #eef1f5; padding: 10px; overflow: hidden; }
.sl-dash-row { display: grid; grid-template-columns: 10px auto 1fr auto; gap: 10px; align-items: center; padding: 12px 10px; border-radius: 10px; }
.sl-dash-row span.sl-muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-dash-row b { font-weight: 500; white-space: nowrap; }
.sl-dash-row em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 9999px; background: #f4f5f8; }
.sl-dash-row.sl-on { background: #f4f5f8 !important; color: inherit; } .sl-dash-row em.sl-esc { background: #1a1a1c; color: #fff; }
.sl-vc { background: #8b5cf6; } .sl-wc { background: #f59e0b; }
.sl-dash-convo { padding: 20px; display: flex; flex-direction: column; }
@media (max-width: 900px) { .sl-dash { grid-template-columns: 1fr; } .sl-dash aside, .sl-dash-list { display: none; } }

/* ---------- template-style line icons ---------- */
.sl-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #d7dde5; border-radius: 10px; background: #fff; color: #1a1a1c; flex-shrink: 0; }
.sl-orbit-ico { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 9999px; background: #fff; border: 1px solid #dfe4eb; color: #1a1a1c; box-shadow: 0 6px 18px -10px rgba(14,12,19,.25); }

/* ---------- fonts: keep Siliana's (Sora headings, Instrument Sans text) ---------- */
:root { --font-inter-tight: "Instrument Sans", system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6, .text-heading-1, .text-heading-2, .text-heading-3, .text-heading-4, .text-heading-5, .text-heading-6 { font-family: "Sora", system-ui, sans-serif !important; letter-spacing: -0.02em; }

/* ---------- hero video ---------- */
.siliana-hero { background: transparent !important; isolation: isolate; }
.sl-hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sl-hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(252,251,249,.86) 0%, rgba(252,251,249,.74) 40%, rgba(252,251,249,.55) 70%, rgba(252,251,249,.9) 100%); }

/* ---------- header fixes ---------- */
.sl-nav-cta { display: none; align-items: center; gap: 14px; }
@media (min-width: 1280px) { .sl-nav-cta { display: flex; } }
.sl-login { font-size: 1rem; color: rgba(26,26,28,.7); white-space: nowrap; text-decoration: none; }
.sl-login:hover { color: #1a1a1c; }
.sl-side-logo { max-width: none !important; } .sl-side-logo img { height: 32px; width: auto !important; }
/* theme switch (segmented, like the app) */
.sl-theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9999px; border: 1px solid #dfe4eb; background: #fff; }
.sl-theme button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9999px; background: transparent; color: rgba(26,26,28,.55); cursor: pointer; }
.sl-theme button[aria-pressed="true"] { background: #f4f5f8; color: #1a1a1c; }
.sl-theme-mobile { margin-top: 18px; }

/* ---------- dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --color-white: #16131d; --color-secondary: #f4f1f9; --color-accent: #16131d;
  --color-background-2: #0e0c13; --color-background-3: #1c1826; --color-background-4: #211c2b;
  --color-background-12: #1c1826; --color-background-13: #0e0c13; --color-background-14: #f4f1f9;
  --color-stroke-1: #2c2638; --color-stroke-2: #2c2638; --color-stroke-3: #372f46;
}
[data-theme="dark"] body { background: #0e0c13; color: #f4f1f9; }
[data-theme="dark"] .sl-hero-veil { background: linear-gradient(180deg, rgba(14,12,19,.88) 0%, rgba(14,12,19,.78) 45%, rgba(14,12,19,.6) 70%, rgba(14,12,19,.92) 100%); }
[data-theme="dark"] img[src*="bottom-gradient"] { filter: invert(1) hue-rotate(180deg) brightness(.35); }
[data-theme="dark"] .sl-panel, [data-theme="dark"] .sl-widget, [data-theme="dark"] .sl-node, [data-theme="dark"] .sl-split3 span,
[data-theme="dark"] .sl-ico, [data-theme="dark"] .sl-orbit-ico, [data-theme="dark"] .sl-theme, [data-theme="dark"] .sl-dash,
[data-theme="dark"] .sl-callbtn, [data-theme="dark"] .sl-tags span { background: #16131d; border-color: #2c2638; color: #f4f1f9; }
[data-theme="dark"] .sl-figure, [data-theme="dark"] .sl-c, [data-theme="dark"] .sl-bar, [data-theme="dark"] .sl-dash aside,
[data-theme="dark"] .sl-file span, [data-theme="dark"] .sl-skel, [data-theme="dark"] .sl-dash-row em, [data-theme="dark"] .sl-dash-row.sl-on,
[data-theme="dark"] .sl-theme button[aria-pressed="true"], [data-theme="dark"] .sl-meter { background: #211c2b !important; }
[data-theme="dark"] .sl-mock, [data-theme="dark"] .sl-strong { color: #f4f1f9; }
[data-theme="dark"] .sl-muted, [data-theme="dark"] .sl-node small, [data-theme="dark"] .sl-log span, [data-theme="dark"] .sl-kpis span,
[data-theme="dark"] .sl-theme button, [data-theme="dark"] .sl-login { color: rgba(244,241,249,.6); }
[data-theme="dark"] .sl-file, [data-theme="dark"] .sl-log, [data-theme="dark"] .sl-head, [data-theme="dark"] .sl-dash aside,
[data-theme="dark"] .sl-dash-list { border-color: #2c2638; }
[data-theme="dark"] .sl-code pre { color: #f4f1f9; }
[data-theme="dark"] .sl-chip, [data-theme="dark"] .sl-human { background: #f4f1f9; color: #0e0c13; }
[data-theme="dark"] .sl-node-a { background: linear-gradient(#16131d,#16131d) padding-box, var(--sl-grad) border-box; }
[data-theme="dark"] .button-icon.bg-black { background: #f4f1f9 !important; }

/* hero: real dashboard screenshots, light/dark follow the site theme */
.sl-dash-fig { height: auto !important; border: 1px solid #dfe4eb; box-shadow: 0 30px 80px -40px rgba(14,12,19,.35); background: #fff; }
.sl-dash-shot { display: block; width: 100%; height: auto; }
.sl-dash-d { display: none; }
[data-theme="dark"] .sl-dash-l { display: none; }
[data-theme="dark"] .sl-dash-d { display: block; }
[data-theme="dark"] .sl-dash-fig { border-color: #2c2638; background: #0e0c13; }
.siliana-hero figure:has(> img[src*="bottom-gradient"]) { height: 140px !important; }

/* ---------- responsive fixes (mobile/tablet) ---------- */
/* Template cards have fixed heights sized for its own small images; our product mockups are
   taller on narrow screens, so below desktop the card grows with its content instead. */
@media (max-width: 1279.98px) {
  [class*=" h-["]:has(.sl-mock), [class^="h-["]:has(.sl-mock),
  [class*=" h-["]:has(.sl-mock) [class*=" h-["], [class*=" min-h-["]:has(.sl-mock) { height: auto !important; min-height: 0 !important; }
  [class*=" h-["]:has(.sl-mock) { gap: 24px; }
  .sl-mock { padding-bottom: 40px; }
}
/* "Go live in four steps" carousel (cards are stacked absolutely and rotate):
   on phones give the photo a fixed proportion and the box enough height for photo + text. */
@media (max-width: 767.98px) {
  [data-process-image] { height: auto !important; aspect-ratio: 4 / 3; }
  [data-process-image] img { height: 100%; }
  div:has(> [data-process-card]) { min-height: calc(34vw + 625px) !important; }   /* measured: tallest step (with its points) at 320–767px */
  [data-process-content] { padding-top: 0 !important; }
  [data-process-content] > .hidden { display: block !important; }   /* show each step's supporting points on phones too */
  [data-process-content] > .hidden h4 { font-size: 1rem; }
}
/* card links/buttons never push past the card edge */
.sl-more, .sl-link { overflow-wrap: anywhere; }
/* mockup list rows wrap cleanly on small screens */
.sl-file { flex-wrap: wrap; row-gap: 2px; }
.sl-file em { white-space: nowrap; }
/* mockups shrink with very narrow cards (320px phones) instead of overflowing */
.sl-row { flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.sl-kpis > div { min-width: 0; }
.sl-mock .sl-muted { overflow-wrap: break-word; }
@media (max-width: 400px) {
  .sl-mock { font-size: 12px; padding-inline: 0; }
  .sl-kpis b { font-size: 15px; }
  .sl-panel { padding: 11px; }
  /* template split panels: thinner frame + padding so buttons fit */
  .border-8.border-stroke-1 { border-width: 4px !important; padding: 18px !important; }
  .rounded-xl.p-7 { padding: 20px !important; }
  .button .button-text, .button-inner .button-text { padding-inline: 12px !important; white-space: normal; text-align: left; }
}
/* list rows with a status tag (roadmap etc.) wrap the tag under the title on small phones */
@media (max-width: 400px) { :has(> .sl-chip-tag) { flex-wrap: wrap; row-gap: 8px; } }
/* dark mode: the template draws the mobile menu (hamburger) lines with stroke-9 (near-black) */
[data-theme="dark"] { --color-stroke-9: #f4f1f9; }
[data-theme="dark"] .siliana-hero figure:has(> img[src*="bottom-gradient"]) img { filter: none; opacity: 0; }
[data-theme="dark"] .siliana-hero figure:has(> img[src*="bottom-gradient"]) { background: linear-gradient(180deg, transparent, #0e0c13); }
