@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700&display=swap');

/*
 * Apprista template adaptation for MedusaCore PublicWeb.
 * This file intentionally loads after site.css so the template theme remains
 * stable even when the structural stylesheet is regenerated.
 */

:root {
    --ink: #150d45;
    --ink-2: #24145d;
    --ink-3: #274df8;
    --paper: #ffffff;
    --paper-2: #e9f1fd;
    --white: #ffffff;
    --signal: #50e3ae;
    --signal-dark: #087a5d;
    --amber: #fe7b53;
    --red: #d84f38;
    --blue: #274df8;
    --violet: #6639bd;
    --muted: #4f4975;
    --line: #dae7fb;
    --shadow: 1px 1px 50px rgb(21 13 69 / 10%);
    --display: "Jost", "Segoe UI", Arial, sans-serif;
    --body: "Nunito", "Segoe UI", Arial, sans-serif;
    --data: "Jost", "Segoe UI", Arial, sans-serif;
}

html { background: var(--white); }
body { overflow-x: clip; color: var(--ink); background: var(--white); font-family: var(--body); font-size: 18px; line-height: 1.7; }
body::selection { color: var(--ink); background: var(--signal); }
:focus-visible { outline-color: var(--amber); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(3.25rem, 5.2vw, 4.75rem); line-height: 1.08; }
h2 { font-size: clamp(2.35rem, 4vw, 3.45rem); line-height: 1.16; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.25; }
p { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.65; }
.eyebrow { margin-bottom: 16px; color: var(--amber); font-family: var(--display); font-size: .93rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.eyebrow::before { display: none; }
.eyebrow-light, .eyebrow-signal { color: var(--signal); }

.button { min-height: 56px; padding: 16px 28px; border-radius: 8px; font-family: var(--display); font-size: 1rem; font-weight: 600; box-shadow: 0 10px 25px rgb(21 13 69 / 10%); transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgb(21 13 69 / 18%); }
.button-small { min-height: 50px; padding: 13px 23px; font-size: .95rem; }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { color: var(--white); background: var(--violet); }
.button-signal, .header-actions .button-signal { color: var(--white); background: var(--amber); }
.button-signal:hover, .header-actions .button-signal:hover { color: var(--white); background: var(--violet); }
.button-outline { color: var(--blue); border-color: var(--blue); }
.button-outline:hover { color: var(--white); background: var(--blue); }
.button-ghost-light { color: var(--white); border-color: rgb(255 255 255 / 68%); }
.button-ghost-light:hover { color: var(--ink); background: var(--white); }
.text-link { color: var(--blue); font-family: var(--display); }
.text-link span { color: var(--amber); }
.text-link-light { color: var(--white); }
.text-link-light span { color: var(--signal); }

/* Header */
.site-header { position: relative; height: 106px; color: var(--white); background: #2f56f4; border: 0; }
.site-header::before { position: absolute; inset: 0; pointer-events: none; background: url("../images/apprista/banner-sidelayer.png") left top / min(42vw, 812px) auto no-repeat; content: ""; opacity: .5; }
.header-inner { position: relative; gap: 30px; }
.brand, .brand-on-dark { color: var(--white); }
.brand-icon { width: 52px; height: 52px; flex-basis: 52px; padding: 4px; background: var(--white); border-radius: 12px; box-shadow: 0 12px 26px rgb(21 13 69 / 24%); }
.brand-copy strong { font-size: 1.08rem; font-weight: 700; letter-spacing: .08em; }
.brand-copy small { margin-top: 6px; color: #e8efff; font-size: .75rem; letter-spacing: .08em; }
.desktop-nav { justify-content: flex-end; }
.desktop-nav > a, .nav-cluster > summary { padding-inline: 13px; color: var(--white); font-family: var(--display); font-size: .98rem; font-weight: 500; white-space: nowrap; }
.nav-cluster > summary::after { color: var(--signal); }
.desktop-nav > a:hover, .desktop-nav > a.active, .nav-cluster[open] > summary { color: var(--signal); background: transparent; }
.nav-panel { top: 84px; padding: 14px; color: var(--ink); background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.nav-panel a { min-height: 46px; border-bottom-color: var(--line); }
.nav-panel a:hover { color: var(--blue); background: var(--paper-2); }
.nav-panel a small { color: var(--muted); font-size: .75rem; }
.header-phone { color: var(--white); font-family: var(--display); font-size: .82rem; }
.header-actions .button { white-space: nowrap; }
.mobile-menu > summary span { background: var(--white); }
.mobile-menu nav { top: 105px; color: var(--ink); background: var(--white); }
.mobile-menu nav strong { color: var(--blue); font-size: .78rem; }

/* Hero */
.home-hero { position: relative; overflow: visible; color: var(--white); background: #2f56f4 url("../images/apprista/banner-background.png") center top / cover no-repeat; border-radius: 0 0 125px 125px; }
.home-hero::before { position: absolute; inset: auto auto 95px 0; width: 68px; height: 108px; pointer-events: none; background: url("../images/apprista/banner-sidecircle1.png") center / contain no-repeat; mask-image: none; content: ""; opacity: 1; }
.home-hero::after { position: absolute; z-index: 0; top: 36px; right: 2%; width: 52px; height: 80px; background: url("../images/apprista/banner-sidecircle2.png") center / contain no-repeat; content: ""; }
.home-hero-grid { position: relative; min-height: 750px; grid-template-columns: .88fr 1.12fr; gap: 70px; padding-block: 72px 198px; }
.hero-copy { animation: apprista-rise .75s ease-out both; }
.hero-copy h1 { max-width: 700px; }
.hero-copy h1 em { color: var(--signal); font-style: normal; }
.hero-copy .lead { max-width: 650px; margin-top: 25px; color: #eef3ff; font-weight: 300; }
.hero-actions { margin-top: 30px; }
.hero-trust { gap: 24px; margin-top: 33px; color: #dce5ff; font-family: var(--body); font-size: .78rem; }
.hero-trust span { border-left-color: var(--signal); }
.hero-product-visual { position: relative; z-index: 2; overflow: visible; padding: 9px; background: rgb(255 255 255 / 98%); border: 0; border-radius: 14px; box-shadow: 0 35px 70px rgb(21 13 69 / 34%); transform: perspective(1500px) rotateY(-4deg); animation: apprista-rise .9s .12s ease-out both; backdrop-filter: none; }
.hero-product-visual::before { position: absolute; z-index: -1; inset: -88px -70px -92px -58px; background: url("../images/apprista/bannerphoneback-image1.png") center / contain no-repeat; content: ""; opacity: .88; }
.hero-product-visual::after { position: absolute; z-index: -2; top: -52px; right: -38px; width: 96px; height: 96px; background: var(--signal); border: 15px solid rgb(255 255 255 / 30%); border-radius: 50%; content: ""; box-shadow: 0 0 0 18px rgb(80 227 174 / 13%); }
.hero-product-visual > img { border-radius: 0 0 8px 8px; }
.product-window-bar { height: 40px; color: #dce7ff; background: var(--ink); border-radius: 8px 8px 0 0; }
.product-window-bar strong { font-size: .75rem; }
.product-window-bar > span { background: var(--amber); }
.product-window-bar > span:nth-child(2) { background: var(--signal); }
.product-window-bar > span:nth-child(3) { background: #ffd95b; }
.product-proof { right: -22px; bottom: -35px; padding: 16px 20px; color: var(--ink); background: var(--white); border: 0; border-radius: 8px; box-shadow: var(--shadow); font-size: .78rem; }
.product-proof::before { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--amber); border-radius: 8px 0 0 8px; content: ""; }
.hero-ribbon { position: absolute; z-index: 6; right: auto; bottom: -58px; left: 50%; width: min(calc(100% - 40px), 1110px); min-height: 116px; height: auto; gap: 12px; overflow: visible; padding: 24px 30px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); transform: translateX(-50%); font-family: var(--display); font-size: .9rem; font-weight: 600; letter-spacing: .035em; }
.hero-ribbon span { display: grid; min-height: 44px; place-items: center; padding: 10px 15px; color: var(--ink); background: var(--paper-2); border: 1px solid #d7e4fb; border-radius: 8px; box-shadow: inset 3px 0 0 var(--signal); }
.hero-ribbon span:nth-of-type(even) { box-shadow: inset 3px 0 0 var(--amber); }
.hero-ribbon i { width: 6px; height: 6px; flex: 0 0 6px; background: var(--signal); }
.hero-ribbon i:nth-of-type(even) { background: var(--amber); }

/* Home content */
.real-screen-section { position: relative; padding-block: 170px 112px; background: var(--white); }
.real-screen-section::before { position: absolute; top: 120px; left: 3%; width: 80px; height: 45px; background: url("../images/apprista/feature-circle.png") center / contain no-repeat; content: ""; }
.section-heading > p, .split-heading > p { color: var(--muted); }
.screen-card { overflow: hidden; border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.screen-card-heading { min-height: 78px; padding: 19px 24px; background: var(--blue); }
.screen-card-restaurant .screen-card-heading { background: var(--violet); }
.screen-card-heading span { color: var(--signal); font-family: var(--display); font-size: .78rem; }
.screen-card figcaption { min-height: 82px; color: var(--muted); font-family: var(--body); font-size: .9rem; }
.product-photo-strip { gap: 0; overflow: hidden; margin-top: 30px; border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.product-photo-strip figure { border-right-color: var(--white); }
.product-photo-strip figcaption { min-height: 42px; display: flex; align-items: flex-end; padding: 14px 10px 8px; background: linear-gradient(transparent, rgb(21 13 69 / 92%)); font-family: var(--display); font-size: .75rem; letter-spacing: .02em; }

.sector-universe { position: relative; overflow: hidden; padding-block: 120px; background: #2f56f4 url("../images/apprista/statistics-background.jpg") center / cover no-repeat; }
.sector-universe::before { position: absolute; top: -66px; left: 0; width: min(43vw, 815px); height: 346px; background: url("../images/apprista/statistics-sidelayer.png") left top / contain no-repeat; content: ""; opacity: .8; }
.sector-universe-grid { position: relative; z-index: 1; }
.sector-universe-copy p { color: #edf3ff; font-weight: 300; }
.sector-link-grid { gap: 16px; border: 0; }
.sector-link-grid a { min-height: 128px; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 32%); border-radius: 10px; backdrop-filter: blur(5px); }
.sector-link-grid a:hover { color: var(--ink); background: var(--white); }
.sector-link-grid a:hover small { color: var(--muted); }
.sector-link-grid small { color: #edf3ff; font-size: .82rem; line-height: 1.5; }

.home-intro { padding-block: 112px; background: var(--white); }
.product-showcase { gap: 24px; border: 0; }
.product-card { min-height: 310px; padding: 30px; background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.product-card::before { width: 85px; height: 85px; background: #fceeed; border-radius: 50%; }
.product-card:nth-child(3n + 2)::before { background: #e2faf7; }
.product-card:nth-child(3n + 3)::before { background: #f2efff; }
.product-card:hover { color: inherit; background: var(--white); transform: translateY(-8px); box-shadow: 0 24px 55px rgb(21 13 69 / 16%); }
.product-card:hover p { color: var(--muted); }
.product-card h3 { margin-top: 54px; color: var(--ink); }
.product-card p { color: var(--muted); }
.product-type, .card-link { color: var(--amber); font-family: var(--display); font-size: .75rem; }

.signal-section { position: relative; overflow: hidden; color: var(--white); background: #2f56f4 url("../images/apprista/offer-background.jpg") center / cover no-repeat; }
.signal-section::after { position: absolute; top: -62px; right: 0; width: min(41vw, 776px); height: 347px; background: url("../images/apprista/offer-sidelayer.png") right top / contain no-repeat; content: ""; }
.signal-grid { position: relative; z-index: 1; }
.signal-copy p { color: #edf3ff; font-weight: 300; }
.system-map { border: 0; }
.system-map::before { border-color: rgb(255 255 255 / 34%); }
.system-core { color: var(--ink); background: var(--white); border-color: var(--signal); box-shadow: 0 20px 45px rgb(21 13 69 / 25%); }
.system-core span, .system-core small { color: var(--violet); }
.system-core small { font-size: .75rem; }
.system-node { color: var(--ink); background: rgb(255 255 255 / 97%); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px rgb(21 13 69 / 20%); font-size: .75rem; }
.system-node i { background: var(--amber); }

.feature-index { position: relative; overflow: hidden; background: var(--paper-2); }
.feature-index::before { position: absolute; top: -260px; right: -120px; width: 696px; height: 696px; background: url("../images/apprista/price-circle.png") center / contain no-repeat; content: ""; opacity: .7; }
.feature-index > * { position: relative; z-index: 1; }
.feature-list { gap: 18px; border: 0; }
.feature-list a { min-height: 94px; padding: 20px 24px; background: var(--white); border: 0 !important; border-radius: 10px; box-shadow: 0 12px 32px rgb(21 13 69 / 8%); }
.feature-list a:hover { color: var(--white); background: var(--blue); transform: translateY(-4px); }
.feature-list a:hover small, .feature-list a:hover b { color: var(--signal); }
.feature-list small { color: var(--muted); }
.resource-preview { background: var(--white); }
.article-grid { gap: 24px; }
.article-grid article { min-height: 310px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.article-grid article > span { color: var(--amber); font-family: var(--display); }
.article-grid article p { color: var(--muted); }

/* Subpages */
.breadcrumbs { width: 100%; max-width: none; min-height: 58px; margin: 0; padding-inline: max(20px, calc((100vw - var(--shell)) / 2)); color: #e4ecff; background: #2f56f4; }
.breadcrumbs a, .breadcrumbs strong { color: var(--white); }
.breadcrumbs a:hover { color: var(--signal); }
.landing-hero, .editorial-hero, .contact-hero, .inpos-hero { position: relative; overflow: hidden; color: var(--white); background: #2f56f4 url("../images/apprista/sub-bannerbackground.png") center / cover no-repeat; border: 0; border-radius: 0 0 125px 125px; }
.landing-hero::after, .editorial-hero::after, .contact-hero::after, .inpos-hero::after { position: absolute; right: 5%; bottom: 18%; width: 80px; height: 45px; background: url("../images/apprista/search-sidecircle.png") center / contain no-repeat; content: ""; }
.landing-hero-grid, .editorial-grid, .contact-grid, .inpos-hero-grid { position: relative; z-index: 1; }
.landing-copy .lead, .editorial-hero .lead, .contact-copy .lead, .inpos-hero .lead { color: #edf3ff; font-weight: 300; }
.landing-copy .eyebrow, .editorial-hero .eyebrow, .contact-hero .eyebrow, .inpos-hero .eyebrow { color: var(--signal); }
.landing-copy .text-link { color: var(--white); }
.micro-proof { color: #dce7ff; }
.micro-proof span { color: var(--signal); }
.landing-summary, .contact-card, .inpos-device-card { background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.landing-summary { padding: 32px; box-shadow: 14px 14px 0 rgb(21 13 69 / 26%), var(--shadow); }
.landing-summary::before { display: block; width: 70px; height: 5px; margin-bottom: 24px; background: var(--amber); border-radius: 5px; content: ""; }
.summary-label { color: var(--amber); }
.summary-item span { color: var(--signal-dark); }

.content-section { padding-block: 108px; }
.surface-section, .implementation-section, .device-facts { background: var(--paper-2); }
.capability-grid { gap: 24px; border: 0; }
.capability-grid article { min-height: 255px; padding: 30px; background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.capability-grid article:hover { transform: translateY(-7px); box-shadow: 0 25px 55px rgb(21 13 69 / 15%); }
.cap-index { display: grid; width: 72px; height: 72px; place-items: center; color: var(--amber); background: #fceeed; border-radius: 50%; font-family: var(--display); font-weight: 600; }
.capability-grid article:nth-child(3n + 2) .cap-index { color: var(--signal-dark); background: #e2faf7; }
.capability-grid article:nth-child(3n + 3) .cap-index { color: var(--violet); background: #f2efff; }
.capability-grid h3 { margin-top: 28px; color: var(--ink); }
.capability-grid p { color: var(--muted); }

.workflow-section, .gmp-section { position: relative; overflow: hidden; color: var(--white); background: #2f56f4 url("../images/apprista/statistics-background.jpg") center / cover no-repeat; }
.workflow-copy p, .gmp-grid > div:first-child p { color: #edf3ff; }
.workflow-list li { margin-bottom: 14px; padding: 24px; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 30%); border-radius: 10px; }
.workflow-list li > span { color: var(--signal); }
.workflow-list strong { color: var(--white); }
.workflow-list p { color: #dfe8ff; }
.accordion-list { gap: 14px; }
.accordion-list details { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 9px 28px rgb(21 13 69 / 7%); }
.accordion-list summary { color: var(--ink); font-family: var(--display); }
.accordion-list summary::after { color: var(--amber); }

.editorial-hero, .editorial-hero.compact { padding-block: 84px 104px; }
.editorial-grid h1, .contact-copy h1, .inpos-hero h1 { font-size: clamp(3.1rem, 5vw, 4.75rem); }
.download-grid { gap: 26px; }
.download-grid article, .pricing-grid article, .contact-card { border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.download-grid article { padding: 38px; }
.download-grid-featured article { min-height: 600px; }
.download-card-primary { position: relative; overflow: hidden; }
.download-card-primary::after { position: absolute; right: -115px; bottom: -115px; width: 330px; height: 330px; background: url("../images/apprista/price-circle.png") center / contain no-repeat; content: ""; opacity: .34; }
.download-card-primary > * { position: relative; z-index: 1; }
.download-card-meta span { color: var(--amber); }
.download-card-meta b { color: var(--signal-dark); background: #e2faf7; border-radius: 100px; }
.download-grid dl div { background: var(--paper-2); border-color: var(--white); }
.download-card-primary dl { background: rgb(255 255 255 / 24%); }
.download-card-primary dl div { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 15%); }
.download-card-primary dt { color: #bcd0ff; }
.download-card-primary dd { color: var(--white); }
.requirements-grid ul { overflow: hidden; background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.requirements-grid li { border-color: var(--line); }
.requirements-grid li::before { color: var(--amber); }
.install-grid ol { border-top-color: var(--blue); }
.install-grid li { border-bottom-color: var(--line); }
.install-grid li > span { color: var(--amber); }

.pricing-grid { gap: 25px; }
.pricing-grid article { background: var(--white); }
.pricing-featured { border-top-color: var(--amber) !important; }
.factor-list article, .values-grid article, .case-grid article, .implementation-cards article { background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.service-timeline article, .article-index article, .prep-grid li, .install-grid li { border-color: var(--line); }
.service-timeline article > span, .article-index article > span, .prep-grid li > span { color: var(--amber); }
.article-index { border-top-color: var(--blue); }
.article-index article { padding-inline: 22px; }
.article-index article:hover { background: var(--paper-2); }
.guide-header .lead, .guide-content p, .legal-body p, .not-found p { color: var(--muted); }
.guide-body aside { border-top-color: var(--blue); }
.guide-body aside .guide-product-link, .checklist li::before, .error-code { color: var(--amber); }
.author-card, .not-found-receipt { border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.contact-card { color: var(--ink); box-shadow: 14px 14px 0 rgb(21 13 69 / 24%), var(--shadow); }
.contact-card::before { display: block; width: 70px; height: 5px; margin-bottom: 20px; background: var(--amber); border-radius: 5px; content: ""; }
.contact-note, .anchor-rail { color: var(--white); background: var(--violet); border-color: rgb(255 255 255 / 20%); }
.contact-note p { color: #ede8ff; }
.inpos-hero h1 em { color: var(--signal); }
.inpos-device-card { border-top: 0; box-shadow: 14px 14px 0 rgb(21 13 69 / 24%), var(--shadow); }
.inpos-device-card::before { border-color: var(--line); border-radius: 8px; }
.answer-block { border-left-color: var(--amber); border-radius: 0 10px 10px 0; box-shadow: var(--shadow); }
.source-box { background: var(--paper-2); border: 0; border-radius: 10px; }
.legal-callout, .scope-note { background: var(--violet); border-top-color: var(--amber); border-radius: 10px; }
.protocol-card { background: rgb(21 13 69 / 35%); border-color: rgb(255 255 255 / 25%); border-radius: 10px; }
.protocol-card > i { background: rgb(21 13 69 / 30%); }
.integration-steps { gap: 20px; border: 0; }
.integration-steps article { background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.integration-steps article > span { color: var(--amber); }
.facts-grid dl { gap: 16px; border: 0; }
.facts-grid dl div { background: var(--white); border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.facts-grid dt { color: var(--amber); }

/* CTA and footer */
.cta-band { position: relative; overflow: hidden; padding-block: 102px 114px; color: var(--white); background: #2f56f4 url("../images/apprista/available-background.jpg") center / cover no-repeat; }
.cta-band::after { position: absolute; right: 10%; bottom: -156px; width: min(44vw, 836px); height: 360px; background: url("../images/apprista/available-sidelayer.png") right bottom / contain no-repeat; content: ""; }
.cta-grid { position: relative; z-index: 1; }
.cta-grid p { color: #edf3ff; font-weight: 300; }
.site-footer { padding-top: 104px; color: var(--muted); background: var(--white); }
.site-footer .brand { color: var(--ink); }
.site-footer .brand-copy small { color: var(--muted); }
.footer-brand > p { color: var(--muted); }
.footer-contact { font-size: .82rem; }
.footer-contact a { color: var(--blue); }
.footer-grid h2 { color: var(--ink); font-family: var(--display); font-size: 1.2rem; letter-spacing: 0; text-transform: none; }
.footer-grid > div:not(.footer-brand) a { color: var(--muted); font-size: .92rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-base { min-height: 78px; color: #625c7d; border-top-color: var(--line); font-size: .75rem; }
.boot-screen { background: #2f56f4 url("../images/apprista/banner-background.png") center / cover no-repeat; }
.boot-screen strong { color: var(--amber); }

/* Readability floor for utility labels across home and detail pages. */
.breadcrumbs,
.micro-proof,
.summary-label,
.cap-index,
.workflow-list li > span,
.service-timeline article > span,
.case-grid article > span,
.pricing-grid article > span,
.download-grid article > span,
.download-card-meta,
.contact-card > span,
.prep-grid li > span,
.article-index article small,
.guide-meta,
.guide-body aside strong,
.legal header p,
.inpos-device-card > span,
.anchor-rail a,
.legal-callout strong,
.protocol-card > i,
.protocol-card span,
.integration-steps article > span,
.facts-grid dt,
.install-grid li > span,
.article-grid article > span,
.article-index article > div span { font-size: .75rem; }

.download-card-meta b,
.download-grid-featured dt,
.download-grid-featured article > small,
.contact-card small,
.inpos-device-card small,
.protocol-card small { font-size: .75rem; }

@keyframes apprista-rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
    .site-header { height: 88px; }
    .desktop-nav, .header-phone { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu nav { top: 87px; }
    .home-hero-grid { grid-template-columns: 1fr; padding-block: 58px 180px; }
    .hero-product-visual { width: min(100%, 840px); margin: 35px auto 0; transform: none; }
    .sector-universe-grid { grid-template-columns: 1fr; gap: 50px; }
    .sector-universe-copy { position: static; }
    .landing-hero-grid, .editorial-grid, .download-grid-featured { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    body { font-size: 16px; }
    h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
    h2 { font-size: clamp(2.05rem, 9vw, 3rem); }
    .site-header { height: 76px; }
    .mobile-menu nav { top: 75px; }
    .brand-icon { width: 44px; height: 44px; flex-basis: 44px; }
    .home-hero { border-radius: 0 0 62px 62px; }
    .home-hero-grid { padding-block: 48px 185px; }
    .hero-product-visual::before, .hero-product-visual::after { display: none; }
    .hero-ribbon { bottom: -72px; display: grid; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; overflow: visible; font-size: .75rem; letter-spacing: .02em; white-space: normal; }
    .hero-ribbon span, .hero-ribbon span:nth-of-type(even) { display: grid; min-width: 0; min-height: 42px; padding: 8px 5px; text-align: center; }
    .hero-ribbon i { display: none; }
    .real-screen-section { padding-block: 158px 76px; }
    .real-screen-section::before { display: none; }
    .sector-universe { padding-block: 82px; }
    .sector-link-grid { grid-template-columns: 1fr; }
    .product-card { min-height: 275px; }
    .landing-hero, .editorial-hero, .contact-hero, .inpos-hero { border-radius: 0 0 62px 62px; }
    .landing-hero::after, .editorial-hero::after, .contact-hero::after, .inpos-hero::after { display: none; }
    .landing-summary, .contact-card, .inpos-device-card { box-shadow: 8px 8px 0 rgb(21 13 69 / 20%), var(--shadow); }
    .capability-grid, .integration-steps { grid-template-columns: 1fr; }
    .content-section { padding-block: 78px; }
    .cta-band { padding-block: 78px; }
    .cta-band::after { opacity: .4; }
    .site-footer { padding-top: 76px; }
}

@media (max-width: 480px) {
    .brand-copy strong { font-size: .92rem; }
    .hero-ribbon { padding: 11px; }
    .hero-product-visual { padding: 5px; }
    .product-proof { position: static; max-width: none; margin-top: 8px; }
    .system-node { font-size: .75rem; }
    .screen-card-heading { align-items: flex-start; flex-direction: column; }
    .screen-card-heading strong { text-align: left; }
    .download-grid article { padding: 28px 22px; }
    .footer-grid { gap: 35px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy, .hero-product-visual { animation: none; }
}

/* Real application proof and gallery */
.screen-gallery-link { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 38px; }
.screen-gallery-link p { max-width: 610px; font-size: .92rem; }

.application-proof { padding-block: 0 108px; background: var(--white); }
.application-proof-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 50px; padding: 54px; overflow: hidden; background: var(--paper-2); border-radius: 28px; }
.application-proof-copy p { max-width: 570px; }
.application-proof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.application-window { margin: 0; overflow: hidden; background: var(--white); border: 6px solid rgb(255 255 255 / 72%); border-radius: 14px; box-shadow: 0 28px 70px rgb(21 13 69 / 19%); }
.application-window-bar { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 14px; color: #dce6ff; background: var(--ink); }
.application-window-bar span { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }
.application-window-bar span:nth-child(2) { background: var(--signal); }
.application-window-bar span:nth-child(3) { background: #ffd36a; }
.application-window-bar strong { margin-left: auto; font-family: var(--data); font-size: .75rem; letter-spacing: .07em; }
.application-window img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.application-window figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; color: var(--muted); font-size: .78rem; }
.application-window figcaption strong { color: var(--ink); font-family: var(--display); font-size: .92rem; }

.gallery-hero .button { margin-top: 30px; }
.screen-gallery { padding-block: 112px; background: var(--white); }
.gallery-intro { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: end; }
.gallery-intro p { padding-bottom: 8px; }
.gallery-stack { display: grid; gap: 48px; margin-top: 58px; }
.gallery-case { display: grid; grid-template-columns: .72fr 1.28fr; margin: 0; overflow: hidden; background: var(--paper-2); border-radius: 24px; box-shadow: var(--shadow); }
.gallery-case-restaurant { grid-template-columns: 1.28fr .72fr; }
.gallery-case-restaurant .gallery-case-copy { order: 2; }
.gallery-case-restaurant .gallery-image-link { order: 1; }
.gallery-case-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 50px; }
.gallery-case-copy > span { color: var(--amber); font-family: var(--data); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.gallery-case-copy h2 { margin-top: 18px; font-size: clamp(2rem, 3.2vw, 3rem); }
.gallery-case-copy p { margin: 22px 0 28px; }
.gallery-image-link { position: relative; display: block; min-width: 0; align-self: stretch; overflow: hidden; background: var(--ink); text-decoration: none; }
.gallery-image-link img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; transition: transform .45s ease, opacity .45s ease; }
.gallery-image-link > span { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; color: var(--white); background: rgb(21 13 69 / 88%); border-radius: 7px; font-family: var(--display); font-size: .82rem; }
.gallery-image-link:hover img { opacity: .92; transform: scale(1.018); }
.gallery-image-link:focus-visible { outline-offset: -6px; }
.gallery-evidence { padding-block: 84px; color: var(--white); background: var(--violet); }
.gallery-evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgb(255 255 255 / 20%); }
.gallery-evidence article { padding: 38px; background: var(--violet); }
.gallery-evidence article > span { color: var(--signal); font-family: var(--data); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.gallery-evidence h2 { margin-top: 17px; color: var(--white); font-size: 1.55rem; }
.gallery-evidence p { margin-top: 14px; color: #eeeaff; font-size: .92rem; }

/* Persistent WhatsApp contact */
.floating-whatsapp { position: fixed; z-index: 900; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: grid; width: 64px; height: 64px; place-items: center; color: var(--white); background: #25d366; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 18px 42px rgb(21 13 69 / 28%); text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease; }
.floating-whatsapp::before { position: absolute; inset: -9px; pointer-events: none; border: 2px solid rgb(37 211 102 / 45%); border-radius: 50%; content: ""; animation: whatsapp-attention 2.8s ease-out infinite; }
.floating-whatsapp:hover { color: var(--white); background: #128c4a; box-shadow: 0 22px 48px rgb(21 13 69 / 36%); }
.floating-whatsapp:focus-visible { outline: 4px solid var(--amber); outline-offset: 5px; }
.floating-whatsapp-icon { display: grid; width: 35px; height: 35px; place-items: center; animation: whatsapp-float 3.4s ease-in-out infinite; }
.floating-whatsapp-icon svg { width: 100%; height: 100%; fill: currentColor; }
.floating-whatsapp-label { position: absolute; right: calc(100% + 14px); width: max-content; max-width: 230px; padding: 10px 14px; color: var(--white); background: var(--ink); border-radius: 8px; font-family: var(--display); font-size: .84rem; font-weight: 600; opacity: 0; pointer-events: none; transform: translateX(8px); transition: opacity .2s ease, transform .2s ease; }
.floating-whatsapp:hover .floating-whatsapp-label, .floating-whatsapp:focus-visible .floating-whatsapp-label { opacity: 1; transform: translateX(0); }

@keyframes whatsapp-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    45% { transform: translateY(-4px) rotate(-4deg); }
    60% { transform: translateY(-2px) rotate(4deg); }
}

@keyframes whatsapp-attention {
    0% { opacity: .8; transform: scale(.86); }
    75%, 100% { opacity: 0; transform: scale(1.24); }
}

@media (max-width: 1360px) {
    .header-phone { display: none; }
}

@media (max-width: 1050px) {
    .application-proof-grid, .gallery-case, .gallery-case-restaurant { grid-template-columns: 1fr; }
    .gallery-case-restaurant .gallery-case-copy, .gallery-case-restaurant .gallery-image-link { order: initial; }
    .gallery-case-copy { padding: 42px; }
    .gallery-image-link img { min-height: 0; }
}

@media (max-width: 780px) {
    .screen-gallery-link { align-items: flex-start; flex-direction: column; }
    .application-proof { padding-bottom: 78px; }
    .application-proof-grid { gap: 34px; padding: 28px 22px; border-radius: 18px; }
    .application-window figcaption { align-items: flex-start; flex-direction: column; gap: 3px; }
    .gallery-intro, .gallery-evidence-grid { grid-template-columns: 1fr; gap: 28px; }
    .screen-gallery { padding-block: 78px; }
    .gallery-stack { margin-top: 40px; }
    .gallery-case-copy { padding: 32px 24px; }
    .gallery-evidence-grid { gap: 1px; }
    .floating-whatsapp { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 58px; height: 58px; }
    .floating-whatsapp-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp::before, .floating-whatsapp-icon { animation: none; }
    .gallery-image-link img { transition: opacity .2s ease; }
    .gallery-image-link:hover img { transform: none; }
}

@media print {
    .floating-whatsapp { display: none !important; }
}
