/* =========================================================================
   SegasoftBD minimal visual layer (Stripe / Linear inspired).
   Loaded after segasoft.css. White canvas, tight type, hairline borders,
   flat buttons, bento layouts, one quiet fade-up. Motion is disabled under
   prefers-reduced-motion.
   ========================================================================= */
:root {
    --sg-radius: 16px;
    --sg-shadow: 0 1px 2px rgba(10, 20, 40, .04), 0 4px 16px rgba(10, 20, 40, .05);
    --sg-shadow-lg: 0 2px 6px rgba(10, 20, 40, .05), 0 30px 60px -20px rgba(10, 20, 40, .22);
    --sg-border: #e6eaf0;
    --sg-line: #eef1f5;
}
body.sg-modern { background: #fff; }

/* ---------- Typography ---------- */
:where(body.sg-modern) :is(h1, h2, h3, h4) { letter-spacing: -.035em; font-weight: 700; }
.sg-section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.04em; line-height: 1.1; }
.sg-section__head p { font-size: 1.1rem; color: var(--sg-muted); }
.sg-eyebrow { letter-spacing: .06em; font-size: .78rem; color: var(--sg-blue); }
.sg-section { padding: 72px 0; }
@media (min-width: 900px) { .sg-section { padding: 112px 0; } }
.sg-section--alt { background: #f8fafc; border-top: 1px solid var(--sg-line); border-bottom: 1px solid var(--sg-line); }

/* ---------- Header ---------- */
.sg-header { border-bottom: 1px solid var(--sg-line); transition: box-shadow .2s; }
.sg-header.is-scrolled { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 1px 0 var(--sg-line); }
.sg-brand__slogan { border-left-color: var(--sg-border); }
@media (min-width: 1100px) {
    .sg-nav__link, .sg-nav__trigger { border-radius: 999px; font-weight: 550; color: #334155 !important; }
    .sg-nav__link:hover, .sg-nav__trigger:hover { background: #f1f5f9; color: var(--sg-navy) !important; }
    .sg-nav__item.is-active > .sg-nav__link, .sg-nav__item.is-active > .sg-nav__trigger { color: var(--sg-navy) !important; background: #f1f5f9; }
    .sg-nav__sub { border-radius: 14px; border-color: var(--sg-border); animation: sg-pop .15s ease-out; transform-origin: top left; }
}
@keyframes sg-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons: flat pills ---------- */
.sg-btn { border-radius: 999px; min-height: 46px; padding: 11px 22px; font-weight: 600; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.sg-btn--primary { background: var(--sg-navy); color: #fff !important; box-shadow: none; }
.sg-btn--primary:hover { background: #1b3358; transform: translateY(-1px); }
.sg-btn--outline { background: #fff; border: 1px solid var(--sg-border); color: var(--sg-navy) !important; }
.sg-btn--outline:hover { border-color: #b8c2d1; background: #f8fafc; color: var(--sg-navy) !important; }
.sg-btn--light { background: #fff; color: var(--sg-navy) !important; }
.sg-btn--sm { min-height: 40px; padding: 8px 16px; }
.sg-header__cta { background: var(--sg-blue); }
.sg-header__cta:hover { background: var(--sg-blue-dark); }
.sg-actionbar .sg-btn--primary { background: var(--sg-blue); }

/* ---------- Heroes: light, quiet ---------- */
.sg-hero, .sg-page-hero { background: radial-gradient(900px 420px at 85% -20%, #eaf0ff 0%, transparent 65%), #fff; border-bottom: 1px solid var(--sg-line); }
.sg-hero { padding: 48px 0 64px; }
@media (min-width: 900px) { .sg-hero { padding: 88px 0 104px; } .sg-page-hero { padding: 72px 0 72px; } }
.sg-hero h1 { font-size: clamp(2.3rem, 7.6vw, 4.25rem); letter-spacing: -.045em; line-height: 1.02; font-weight: 750; }
.sg-page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1.06; }
.sg-hero__text { font-size: 1.2rem; color: var(--sg-muted); max-width: 540px; }
.sg-grad-text { background: linear-gradient(90deg, var(--sg-blue), #6d5bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.sg-paths { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sg-line); gap: 8px; }
.sg-paths a { color: var(--sg-navy); text-decoration: none; font-weight: 650; border-bottom: 1px solid #cbd5e1; }
.sg-paths a:hover { border-color: var(--sg-blue); color: var(--sg-blue); }

/* Product stage: big, borderless image on a soft rounded stage */
.sg-visual { border: 0; padding: 28px 24px 0; background: linear-gradient(160deg, #eef3ff 0%, #f8fafc 60%); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; align-items: center; position: relative; }
.sg-visual img { width: 100%; max-width: 534px; height: auto; aspect-ratio: 534 / 467; margin: 0; border-radius: 0; filter: drop-shadow(0 28px 36px rgba(16, 33, 58, .16)); }
.sg-visual figcaption { margin: 0; padding: 14px 0 18px; font-size: .82rem; color: var(--sg-muted); text-align: center; }


/* ---------- Capability row (quiet, static) ---------- */
.sg-trust { background: #fff; border-top: 0; border-bottom: 1px solid var(--sg-line); -webkit-mask-image: none; mask-image: none; padding: 0; }
.sg-trust__row { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 0; align-items: center; }
.sg-trust__item { display: inline-flex; gap: 8px; align-items: center; font-weight: 550; color: var(--sg-text); font-size: .95rem; }
.sg-trust__item .sg-i { color: var(--sg-blue); width: 1.1em; height: 1.1em; }

/* ---------- Bento products ---------- */
.sg-bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sg-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } .sg-bento__lg { grid-column: span 4; } .sg-bento__md { grid-column: span 2; } .sg-bento__sm { grid-column: span 2; } }
.sg-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--sg-border); border-radius: 24px; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sg-tile:hover { border-color: #cdd6e3; box-shadow: var(--sg-shadow); }
.sg-tile h3 { font-size: 1.55rem; margin: 6px 0 2px; }
.sg-tile p { margin: 0; color: var(--sg-text); }
.sg-tile--lg { padding: 32px; background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%); }
.sg-tile--lg .sg-tile__media { margin: 18px -32px -32px; background: linear-gradient(160deg, #eef3ff, #f8fafc); display: grid; place-items: center; padding: 8px 20px 0; min-height: 260px; }
.sg-tile--lg .sg-tile__media img { width: min(100%, 520px); transform: translateY(18px); filter: drop-shadow(0 24px 30px rgba(16, 33, 58, .16)); transition: transform .5s; }
.sg-tile--lg:hover .sg-tile__media img { transform: translateY(6px); }
.sg-tile .sg-check { margin: 8px 0 0; font-size: .95rem; }
.sg-tile .sg-actions { margin-top: 14px; }
.sg-tile__spacer { margin-top: auto; }
.sg-tile--muted { background: #f8fafc; }
.sg-tile--muted h3 { font-size: 1.15rem; }
.sg-tile--muted p { font-size: .93rem; }
.sg-placeholder-panel { padding: 36px 8px 8px; text-align: left; }
.sg-placeholder-panel strong { font-size: 2rem; letter-spacing: -.04em; color: #c3cde0; }

/* ---------- Feature grid with hairlines (services) ---------- */
.sg-features { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--sg-border); }
@media (min-width: 700px) { .sg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sg-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sg-feature { display: flex; flex-direction: column; gap: 8px; padding: 32px 28px 32px 0; border-bottom: 1px solid var(--sg-border); text-decoration: none !important; color: inherit !important; position: relative; transition: background-color .2s; }
@media (min-width: 1000px) { .sg-feature { padding-left: 28px; border-left: 1px solid var(--sg-border); } .sg-feature:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
.sg-feature .sg-i { width: 26px; height: 26px; color: var(--sg-blue); }
.sg-feature h3 { font-size: 1.15rem; margin: 10px 0 0; }
.sg-feature p { margin: 0; font-size: .96rem; color: var(--sg-muted); }
.sg-feature__more { margin-top: 6px; color: var(--sg-navy); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.sg-feature__more .sg-i { width: 16px; height: 16px; color: currentColor; transition: transform .2s; }
.sg-feature:hover .sg-feature__more .sg-i { transform: translateX(4px); }
.sg-feature:hover h3 { color: var(--sg-blue); }

/* ---------- Industry rows ---------- */
.sg-rows { border-top: 1px solid var(--sg-border); }
.sg-row { display: grid; gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--sg-border); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sg-row { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr) 200px; align-items: start; } }
.sg-row h3 { font-size: 1.15rem; margin: 0; display: flex; gap: 12px; align-items: center; }
.sg-row h3 .sg-i { color: var(--sg-blue); width: 22px; height: 22px; }
.sg-row p { margin: 0; font-size: .95rem; }
.sg-row small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; font-weight: 650; margin-bottom: 4px; }
.sg-row__by { font-size: .88rem; }
.sg-row__by a { font-weight: 600; }

/* ---------- Cards (inner pages) ---------- */
.sg-card, .sg-mini { border-radius: 18px; border-color: var(--sg-border); box-shadow: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sg-card:hover, .sg-mini:hover { transform: translateY(-2px); box-shadow: var(--sg-shadow); border-color: #cdd6e3; }
.sg-card--link::before, .sg-mini::before { display: none; }
.sg-icon-box { background: #eef3ff; color: var(--sg-blue); border-radius: 12px; transition: none; }
.sg-card:hover .sg-icon-box { background: #eef3ff; color: var(--sg-blue); transform: none; }
.sg-aside { background: #f8fafc; border-color: var(--sg-border); border-radius: 18px; }
.sg-plan--featured { background: #fff; border: 1.5px solid var(--sg-navy); box-shadow: var(--sg-shadow); }
.sg-frame { border-radius: 16px; box-shadow: var(--sg-shadow-lg); transition: none; }
.sg-frame:hover { transform: none; box-shadow: var(--sg-shadow-lg); }
.sg-badge { background: #eef3ff; color: #1e3a8a; }
.sg-section__head .sg-eyebrow::before { display: none; }

/* Steps */
.sg-step::before { background: #fff; color: var(--sg-navy); border: 1px solid var(--sg-border); box-shadow: none; font-weight: 650; }
.sg-step::after { background: var(--sg-border); }
.sg-step:hover::before { border-color: var(--sg-blue); color: var(--sg-blue); box-shadow: none; }

/* FAQ two-column on desktop */
@media (min-width: 900px) { .sg-faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } .sg-faq-split .sg-section__head { position: sticky; top: 110px; margin: 0; } .sg-faq-split .sg-faq { max-width: none; } }
.sg-faq summary { font-size: 1.08rem; }

/* ---------- Contact (navy, flat) ---------- */
.sg-contact { background: var(--sg-navy); }
.sg-contact .sg-form { border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.sg-cta-band { background: var(--sg-navy); border-radius: 24px; }

/* Footer */
.sg-footer::before { display: none; }

/* ---------- Motion: one quiet fade-up ---------- */
.sg-progress { display: none; }
.sg-hero .sg-hero__grid > div:first-child > * { opacity: 0; transform: translateY(12px); animation: sg-rise .6s cubic-bezier(.2, .7, .2, 1) forwards; }
.sg-hero .sg-hero__grid > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.sg-hero .sg-hero__grid > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.sg-hero .sg-hero__grid > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.sg-hero .sg-hero__grid > div:first-child > *:nth-child(5) { animation-delay: .32s; }
@keyframes sg-rise { to { opacity: 1; transform: none; } }
html.sg-js .sg-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
html.sg-js .sg-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .sg-hero .sg-hero__grid > div:first-child > * { opacity: 1; transform: none; animation: none; }
    html.sg-js .sg-reveal { opacity: 1; transform: none; transition: none; }
    .sg-tile--lg .sg-tile__media img { transition: none; }
}

/* Design sample thumbnails */
.sg-sample { margin: 0; border: 1px solid var(--sg-border); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.sg-sample:hover { box-shadow: var(--sg-shadow); transform: translateY(-2px); }
.sg-sample img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #f1f5f9; }
.sg-sample figcaption { padding: 12px 16px; font-weight: 600; font-size: .92rem; color: var(--sg-navy); border-top: 1px solid var(--sg-line); }

/* Hero option cards: three compact paths under the main CTAs */
.sg-options { display: grid; gap: 10px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--sg-line); }
@media (min-width: 640px) { .sg-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sg-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--sg-border); border-radius: 14px; background: #fff; text-decoration: none !important; color: inherit !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sg-option:hover { border-color: #b9c8e6; box-shadow: var(--sg-shadow); transform: translateY(-2px); }
.sg-option .sg-i { width: 22px; height: 22px; color: var(--sg-blue); flex: none; }
.sg-option span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sg-option strong { color: var(--sg-navy); font-size: .93rem; }
.sg-option small { color: var(--sg-muted); font-size: .8rem; }

/* POS tile screenshot frame */
.sg-frame--tile { width: 100%; max-width: 520px; box-shadow: var(--sg-shadow); border-radius: 12px; }
.sg-frame--tile img { width: 100%; height: auto; aspect-ratio: 820 / 278; }
.sg-tile--lg .sg-tile__media { padding: 24px 24px 0; min-height: 0; align-items: end; }
.sg-tile--lg .sg-tile__media .sg-frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: 0; }

/* FastCounterPOS brand panel (no fabricated app screens) */
.sg-brandpanel { background: linear-gradient(160deg, #eef3ff 0%, #f8fafc 60%); border-radius: 28px; padding: 32px 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sg-brandpanel img { width: min(100%, 300px); height: auto; aspect-ratio: 1; }
.sg-brandpanel__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sg-brandpanel__facts li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--sg-border); font-size: .85rem; font-weight: 600; color: var(--sg-navy); }
.sg-brandpanel__facts .sg-i { color: var(--sg-blue); width: 1em; height: 1em; }
.sg-steps--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sg-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Selected work cards and case-study screenshots */
.sg-work { display: flex; flex-direction: column; padding: 18px; }
.sg-work__shot { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #f1f5f9; border: 1px solid var(--sg-border); }
.sg-work__shot img:first-child { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.sg-work__mobile { position: absolute; right: 10px; bottom: -6px; width: 22%; height: auto; border-radius: 10px 10px 0 0; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(10, 20, 40, .25); }
.sg-work h3 a { color: inherit; text-decoration: none; }
.sg-work h3 a:hover { color: var(--sg-blue); }
.sg-work__links { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 0; }
.sg-shots { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .sg-shots:has(.sg-shots__mobile) { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); } }
.sg-shots img { width: 100%; height: auto; }
.sg-brandpanel img { border-radius: 24px; box-shadow: 0 18px 40px -18px rgba(16, 33, 58, .35); }
.sg-option strong { font-size: .9rem; }
