/* Home page (index.html) — 2026 redesign. Depends on theme-2026.css tokens. */
#home-page { --r: 16px; }
.h-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.h-num { font-family: var(--f-num); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.h-review { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border: 1px dashed var(--warn); padding: 2px 10px; border-radius: 99px; white-space: nowrap; }

/* hero */
.h-hero { position: relative; overflow: hidden; padding-block: 64px 72px;
  background: radial-gradient(60% 70% at 15% 30%, var(--sky-soft), transparent 70%), radial-gradient(40% 50% at 95% 0%, var(--sky-soft), transparent 70%), #fcfeff; }
.h-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 20%, transparent 75%); }
.h-hero .h-wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.h-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--sky-d); background: var(--sky-soft); padding: 6px 14px 6px 6px; border-radius: 99px; max-width: 100%; }
.h-eyebrow b { background: #fff; color: var(--ink); font-weight: 600; padding: 2px 10px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.h-hero h1 { font-family: var(--f-display); font-size: clamp(34px, 5.2vw, 60px); font-weight: 700; margin: 22px 0 0; line-height: 1.22; color: var(--ink); }
.h-hero h1 span { color: var(--ink); }
.h-hero h1 strong { color: var(--sky-d); font-weight: 700; background: linear-gradient(transparent 78%, var(--sky-2) 78%, var(--sky-2) 92%, transparent 92%); padding-inline: 2px; }
.h-lead { font-size: 18px; color: var(--muted); max-width: 54ch; margin-top: 20px; line-height: 1.85; }
.h-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.h-ctas .btn { padding: 13px 24px; font-size: 15px; }
.h-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.h-trust .hero-trust-item { display: inline-flex; align-items: center; gap: 8px; }
.h-trust .hero-trust-check, .h-trust .topbar-icon { display: inline-grid; width: 18px; height: 18px; color: var(--ok); }
.h-trust svg { width: 18px; height: 18px; }

/* invoice mockup */
.h-stage { position: relative; min-width: 0; padding: 52px 10px 56px 30px; }
.h-invoice { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 22px 18px; position: relative; }
.h-inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.h-inv-head h3 { font-family: var(--f-display); font-size: 17px; margin: 0; color: var(--ink); }
.h-inv-head p { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.h-ok { display: inline-flex; align-items: center; gap: 6px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.h-ok svg { width: 14px; height: 14px; }
.h-inv-meta { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding-block: 14px; }
.h-inv-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 12.5px; }
.h-inv-meta dt { color: var(--muted); } .h-inv-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.h-qr { width: 84px; height: 84px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.h-qr svg { width: 100%; height: 100%; display: block; }
.h-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.h-lines th { font-weight: 600; color: var(--muted); text-align: start; font-size: 11.5px; padding: 8px 6px; background: var(--sunk); }
.h-lines th:first-child { border-radius: 0 8px 8px 0; } .h-lines th:last-child { border-radius: 8px 0 0 8px; }
.h-lines td { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.h-lines .n { text-align: end; }
.h-totals { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; margin-inline-start: auto; max-width: 260px; color: var(--ink); }
.h-totals div { display: flex; justify-content: space-between; gap: 12px; }
.h-totals .grand { font-size: 16px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); }
.h-totals .grand .h-num { color: var(--sky-d); }
.h-sar { font-size: .8em; color: var(--muted); margin-inline-start: 4px; }
.h-float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 12.5px; color: var(--ink); }
.h-float.sales { inset-inline-start: -6px; bottom: 0; width: 210px; }
.h-float.sales .k { color: var(--muted); } .h-float.sales .v { font-size: 20px; font-weight: 600; }
.h-float.sales .d { color: var(--ok); font-weight: 600; font-size: 12px; }
.h-float.sales svg { display: block; width: 100%; height: 42px; margin-top: 6px; }
.h-float.stock { inset-inline-end: -4px; top: 0; display: flex; align-items: center; gap: 10px; }
.h-float.stock .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; }
.h-float.stock .ic svg { width: 18px; height: 18px; }
.h-float.stock b { display: block; font-size: 13px; } .h-float.stock span { color: var(--muted); font-size: 11.5px; }
.h-sample { position: absolute; top: -11px; inset-inline-start: 18px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
@media (prefers-reduced-motion: no-preference) {
  .h-float.sales { animation: h-bob 6s ease-in-out infinite; }
  .h-float.stock { animation: h-bob 7s ease-in-out -2s infinite; }
  @keyframes h-bob { 50% { transform: translateY(-6px); } }
}
@media (max-width: 960px) { .h-hero .h-wrap { grid-template-columns: 1fr; gap: 36px; } .h-stage { padding: 24px 0 36px; } }
@media (max-width: 520px) { .h-float.sales { position: relative; inset: auto; width: auto; margin-top: 12px; } .h-float.stock { display: none; } .h-qr { width: 66px; height: 66px; } }

/* stats */
.h-stats { border-block: 1px solid var(--line); background: #fff; }
.h-stats .h-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-stat { padding: 26px 22px; border-inline-start: 1px solid var(--line); }
.h-stat:first-child { border-inline-start: 0; }
.h-stat .v { font-family: var(--f-num); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; color: var(--ink); direction: ltr; text-align: end; line-height: 1.2; }
.h-stat .v small { color: var(--sky); font-size: .6em; }
.h-stat .l { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .h-stats .h-wrap { grid-template-columns: repeat(2, 1fr); } .h-stat:nth-child(3) { border-inline-start: 0; } .h-stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* clients marquee */
.h-clients { padding-block: 34px; overflow: hidden; }
.h-clients .cap { font-size: 13.5px; color: var(--muted); text-align: center; margin: 0 0 18px; }
.h-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.h-track { display: flex; gap: 56px; padding-inline-end: 56px; flex-shrink: 0; align-items: center; }
.h-track span { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--muted); white-space: nowrap; opacity: .8; }
@media (prefers-reduced-motion: no-preference) { .h-track { animation: h-slide 38s linear infinite; } @keyframes h-slide { to { transform: translateX(100%); } } }

/* sections */
.h-blk { padding-block: 88px; }
.h-alt { background: #fff; border-block: 1px solid var(--line); }
.h-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.h-head .k { font-size: 13px; font-weight: 600; color: var(--sky-d); margin-bottom: 10px; }
.h-head h2 { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; max-width: 22ch; margin: 0; color: var(--ink); line-height: 1.3; }
.h-head p { color: var(--muted); max-width: 48ch; margin: 0; }

/* services (data-driven cards with illustrations) */
#home-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
#home-services .feature-card { padding: 22px 20px 24px; }
#home-services .feature-illus { max-width: 220px; }
@media (max-width: 1000px) { #home-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #home-services { grid-template-columns: 1fr; } }

/* Mas Pro explorer */
.h-tera { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.h-mods { display: grid; gap: 6px; min-width: 0; }
.h-mod { display: flex; gap: 14px; align-items: flex-start; text-align: start; background: none; border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; cursor: pointer; color: var(--ink); font: inherit; width: 100%; }
.h-mod:hover { background: var(--sunk); }
.h-mod[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.h-mod .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--sky-soft); color: var(--sky-d); display: grid; place-items: center; flex-shrink: 0; }
.h-mod .ic svg { width: 20px; height: 20px; }
.h-mod[aria-selected="true"] .ic { background: var(--btn-grad); color: #fff; }
.h-mod b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.h-mod span.d { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.h-screen { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; position: sticky; top: 110px; }
.h-screen .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunk); font-size: 12.5px; color: var(--muted); }
.h-screen .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.h-screen .bar span { margin-inline-start: auto; }
.h-screen .body { padding: 22px; display: grid; gap: 16px; }
.h-screen h4 { margin: 0; font-family: var(--f-display); font-size: 18px; color: var(--ink); }
.h-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.h-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.h-kpi .k { font-size: 12px; color: var(--muted); } .h-kpi .v { font-size: 18px; font-weight: 600; margin-top: 2px; color: var(--ink); }
.h-chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.h-chart svg { width: 100%; height: 150px; display: block; }
.h-chart .cap { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.h-note { font-size: 12px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .h-tera { grid-template-columns: 1fr; } .h-screen { position: static; } }
@media (max-width: 480px) { .h-kpis { grid-template-columns: 1fr 1fr; } .h-kpis .h-kpi:last-child { grid-column: span 2; } }

/* industries */
.h-inds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.h-ind { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .2s, transform .2s; color: var(--ink); }
.h-ind:hover { border-color: var(--sky-2); transform: translateY(-2px); }
.h-ind .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-soft); color: var(--sky-d); display: grid; place-items: center; }
.h-ind .ic svg { width: 22px; height: 22px; }
.h-ind b { font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.45; }
.h-ind span { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 1000px) { .h-inds { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .h-inds { grid-template-columns: 1fr 1fr; } }

/* process with illustrations */
.h-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.h-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 20px; min-width: 0; position: relative; }
.h-step img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.h-step .no { position: absolute; top: 12px; inset-inline-start: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad); color: #fff; font-family: var(--f-num); font-size: 13px; }
.h-step .en { font-family: var(--f-num); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.h-step h3 { font-family: var(--f-display); font-size: 18px; margin: 2px 0 6px; color: var(--ink); }
.h-step p { font-size: 14px; color: var(--muted); margin: 0; }
.h-step .out { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ok); display: flex; gap: 6px; align-items: flex-start; }
.h-step .out svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; }
@media (max-width: 1100px) { .h-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .h-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .h-steps { grid-template-columns: 1fr; } }

/* plans */
.h-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.h-plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; min-width: 0; }
.h-plan.hot { border: 1.5px solid var(--sky); box-shadow: var(--shadow); }
.h-plan .pop { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--btn-grad); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 99px; }
.h-plan .lab { font-family: var(--f-num); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.h-plan h3 { font-family: var(--f-display); font-size: 22px; margin: 0; color: var(--ink); }
.h-plan .desc { color: var(--muted); font-size: 14.5px; margin: 0; }
.h-plan ul { list-style: none; padding: 16px 0 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; border-top: 1px dashed var(--line); color: var(--ink); }
.h-plan li { display: flex; gap: 10px; align-items: flex-start; }
.h-plan li svg { width: 17px; height: 17px; color: var(--ok); flex-shrink: 0; margin-top: 5px; }
.h-plan .btn { margin-top: auto; }
@media (max-width: 900px) { .h-plans { grid-template-columns: 1fr; } }

/* testimonials */
.h-quotes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.h-quote { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; }
.h-quote.main { background: var(--sky-soft); border-color: transparent; }
.h-quote.draft { border-style: dashed; }
.h-quote.draft .h-review { align-self: flex-start; }
.h-quote blockquote { margin: 0; font-size: 18px; line-height: 1.85; font-family: var(--f-display); font-weight: 500; color: var(--ink); }
.h-quote.draft blockquote { font-size: 16px; }
.h-quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.h-quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; }
.h-quote .who b { display: block; color: var(--ink); } .h-quote .who span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .h-quotes { grid-template-columns: 1fr; } }

/* blog (data-driven) */
#home-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { #home-blog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { #home-blog { grid-template-columns: 1fr; } }

/* faq */
.h-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.h-qa { border-bottom: 1px solid var(--line); }
.h-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.h-qa summary::-webkit-details-marker { display: none; }
.h-qa .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: transform .2s, background .2s; color: var(--ink); }
.h-qa[open] .pm { transform: rotate(45deg); background: var(--sky-soft); border-color: transparent; color: var(--sky-d); }
.h-qa p { color: var(--muted); padding-bottom: 20px; max-width: 62ch; margin: 0; }
.h-faq-side img { display: block; width: min(320px, 100%); margin-top: 22px; }
@media (max-width: 900px) { .h-faq { grid-template-columns: 1fr; gap: 20px; } .h-faq-side img { display: none; } }

/* cta + form */
.h-cta { background: var(--grad); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; overflow: hidden; }
.h-cta::after { content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); pointer-events: none; }
.h-cta h2 { font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 38px); color: #fff; margin: 0; }
.h-cta p { color: rgba(255, 255, 255, .9); margin: 14px 0 0; max-width: 44ch; }
.h-contacts { display: grid; gap: 12px; margin-top: 28px; }
.h-contacts div { display: flex; align-items: center; gap: 12px; font-size: 15px; flex-wrap: wrap; }
.h-contacts svg { width: 18px; height: 18px; color: #fff; }
.h-demo { background: #fff; color: var(--ink); border-radius: 16px; padding: 24px; display: grid; gap: 14px; position: relative; z-index: 1; min-width: 0; }
.h-demo .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-demo label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.h-demo input, .h-demo select { font: inherit; font-weight: 400; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fcfeff; color: var(--ink); width: 100%; }
.h-demo .note { font-size: 12.5px; color: var(--muted); margin: 0; }
.h-demo .note.err { color: var(--warn); }
@media (max-width: 900px) { .h-cta { grid-template-columns: 1fr; padding: 32px 22px; } }
@media (max-width: 480px) { .h-demo .row { grid-template-columns: 1fr; } }
.h-section-gap { padding-bottom: 88px; }

/* AI-generated aesthetic layers (Canva). Replace the files in uploads/effects with full-resolution exports for extra sharpness. */
.h-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("../../uploads/effects/hero-waves.jpg") left center / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 45%, transparent 75%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 45%, transparent 75%); }
.h-hero .h-wrap { z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .h-hero::after { animation: h-drift 18s ease-in-out infinite alternate; } @keyframes h-drift { to { background-position: 30% center; } } }
.h-cta { background: linear-gradient(120deg, rgba(53, 198, 244, .78), rgba(10, 143, 204, .88)), url("../../uploads/effects/cta-glass.jpg") center / cover no-repeat, var(--grad); }
