/* ===========================================================================
   Home page specific styles (also used by module pages for shared blocks)
   =========================================================================== */

/* ---- HERO ---- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.06; letter-spacing: -.02em; margin-block: 22px 8px; }
.hero-title .accent { color: var(--blue-600); }
.hero-copy .lead { max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-block-start: 30px; flex-wrap: wrap; }
.hero-mini { margin-block-start: 30px; }
.hero-mini li { font-size: 15px; }

/* invoice card visual */
.hero-visual { position: relative; }
.inv-card {
  background: #fff; border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  position: relative; z-index: 2;
}
.inv-head { display: flex; align-items: flex-start; justify-content: space-between; }
.inv-kicker { font-family: var(--font-head); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-400); text-transform: uppercase; }
.inv-num { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--ink-900); margin-block-start: 4px; direction: ltr; }
.inv-logo { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; }
.inv-logo svg { width: 22px; height: 22px; }

.inv-alloc {
  margin-block: 22px; padding: 16px 18px; border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--blue-50), var(--sky));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.inv-alloc-l { display: flex; flex-direction: column; gap: 4px; }
.inv-alloc-lbl { font-size: 12.5px; color: var(--blue-700); font-weight: 600; font-family: var(--font-head); }
.inv-alloc-num { font-family: var(--font-mono); font-size: 21px; font-weight: 500; color: var(--ink-900); letter-spacing: .04em; }
.inv-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--green-600); font-family: var(--font-head); white-space: nowrap; }
.inv-live .ld { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 0 rgba(19,138,92,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19,138,92,.45); } 70% { box-shadow: 0 0 0 8px rgba(19,138,92,0); } 100% { box-shadow: 0 0 0 0 rgba(19,138,92,0); } }

.inv-rows { display: grid; gap: 13px; }
.inv-row { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; color: var(--ink-500); }
.inv-row span:last-child { font-family: var(--font-mono); color: var(--ink-700); }
.inv-row--vat { color: var(--ink-400); padding-block-end: 14px; border-bottom: 1px dashed var(--line-strong); }
.inv-total { display: flex; align-items: center; justify-content: space-between; margin-block-start: 16px; }
.inv-total span:first-child { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); font-size: 16px; }
.inv-total-num { font-family: var(--font-mono); font-size: 23px; font-weight: 500; color: var(--blue-700); }

.float-badge {
  position: absolute; z-index: 3; background: #fff; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  padding: 10px 16px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 13.5px; color: var(--ink-700);
}
.fb-1 { inset-block-start: -18px; inset-inline-start: -26px; }
.fb-2 { inset-block-end: 40px; inset-inline-end: -30px; }
.fb-1 .ck-mini { width: 20px; height: 20px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; }
.fb-1 .ck-mini svg { width: 12px; height: 12px; }
.fb-2 .dot-blue { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); }

/* ---- TRUST STRIP ---- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; align-items: center; gap: 28px; padding-block: 22px; flex-wrap: wrap; }
.trust-lbl { font-family: var(--font-head); font-weight: 500; font-size: 13.5px; color: var(--ink-300); letter-spacing: .04em; }
.trust-items { display: flex; gap: 12px; flex-wrap: wrap; }
.trust .chip svg { width: 18px; height: 18px; }

/* ---- MODULES ---- */
.module-card { display: flex; flex-direction: column; }
.module-top { display: flex; align-items: flex-start; justify-content: space-between; }
.module-name { font-size: 26px; margin-block-start: 4px; }
.module-tag { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--blue-600); margin-block: 2px 14px; }
.module-card .feat { font-size: 16px; color: var(--ink-500); }
.module-card .btn { margin-block-start: auto; align-self: flex-start; }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
.step { padding: 4px 18px; }
.step-n { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #fff; background: var(--blue-600); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-block-end: 16px; box-shadow: var(--shadow-blue); }
.step h3 { font-size: 19px; margin-block-end: 7px; }
.step p { font-size: 15px; color: var(--ink-400); }
.step-line { width: 100%; min-width: 24px; height: 2px; background: var(--line-strong); margin-block-start: 19px; align-self: start; }

/* ---- PRICING ---- */
.price-grid { align-items: stretch; }
.price-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 32px 28px; display: flex; flex-direction: column;
  position: relative;
}
.price-card--feat { border-color: var(--blue-300); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.price-tag { position: absolute; inset-block-start: -13px; inset-inline-start: 28px; background: var(--blue-600); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 12.5px; padding: 5px 14px; border-radius: var(--r-pill); }
.price-name { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink-700); }
.price-amt { display: flex; align-items: baseline; gap: 3px; margin-block: 12px 6px; font-family: var(--font-head); color: var(--ink-900); }
.price-amt .cur { font-size: 22px; font-weight: 500; color: var(--ink-400); }
.price-amt .val { font-size: 48px; font-weight: 600; letter-spacing: -.02em; }
.price-amt .price-mo, .price-card .price-mo { font-size: 16px; color: var(--ink-400); font-weight: 500; }
.price-per { font-size: 15px; color: var(--ink-400); margin-block-end: 22px; }
.price-card .btn { margin-block-start: auto; }
.price-note { text-align: center; margin-block-start: 28px; font-size: 14.5px; color: var(--ink-300); }

/* ---- CTA BAND ---- */
.cta-band { background: linear-gradient(135deg, var(--blue-700), #065f46); color: #fff; padding-block: 80px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-block-start: -60%; inset-inline-end: -10%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.cta-inner p { color: #c2f0db; font-size: 19px; margin-block: 14px 6px; max-width: 560px; margin-inline: auto; }
.cta-band .btn--ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---- MODULES: three cards ---- */
.icon-box--sign { background: #ede9fe; color: #7c3aed; }
.modules-grid .module-card { min-width: 0; }

/* ---- MOTTO BAND · "Make it simple." (futuristic layer) ---- */
.motto-band {
  position: relative; overflow: hidden; padding-block: 88px;
  background:
    radial-gradient(680px 340px at 15% 0%, rgba(14,159,110,.16), transparent 65%),
    radial-gradient(720px 380px at 88% 100%, rgba(52,211,153,.12), transparent 60%),
    linear-gradient(160deg, #0b1626 0%, #0d1b2e 55%, #0a2e22 100%);
}
/* faint futuristic grid over the band */
.motto-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(110,231,183,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,231,183,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 85% at 50% 45%, #000 30%, transparent 100%);
}
.motto-inner { position: relative; z-index: 1; text-align: center; }
.motto-kicker { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; letter-spacing: .14em; color: var(--blue-300); text-transform: uppercase; }
.motto-title { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -.02em; margin-block: 14px 18px; direction: ltr; }
.motto-grad {
  background: linear-gradient(92deg, #6ee7b7 0%, #34d399 28%, #a7f3d0 52%, #34d399 74%, #6ee7b7 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mottoShine 7s linear infinite;
}
@keyframes mottoShine { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }
.motto-sub { color: #b6cbde; font-size: 18.5px; line-height: 1.75; max-width: 640px; margin-inline: auto; }
.motto-points { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-block-start: 30px; }
.motto-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: #d9fbe9;
  padding: 11px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(110,231,183,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 22px -8px rgba(52,211,153,.45);
}
.motto-chip svg { width: 17px; height: 17px; color: #6ee7b7; flex: none; }
@media (prefers-reduced-motion: reduce) { .motto-grad { animation: none; } }

/* ---- responsive (FULL: fluid from wide desktop down to 360px) ---- */
@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .step-line { display: none; }
  .motto-band { padding-block: 68px; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .price-card--feat { transform: none; }
  .fb-1 { inset-inline-start: -6px; }
  .fb-2 { inset-inline-end: -6px; }
  .modules-grid { grid-template-columns: 1fr !important; }
  .motto-sub { font-size: 16.5px; }
  .motto-points { gap: 9px; }
  .motto-chip { font-size: 13px; padding: 9px 14px; }
}
@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; justify-content: center; }
  .inv-num, .inv-alloc-num { font-size: 17px; }
  .inv-total-num { font-size: 19px; }
  .trust-inner { gap: 14px; }
}

/* Mobile responsiveness: keep the invoice card + floating badges inside the
   viewport (the desktop design lets badges stick out ±30px, which overflowed). */
@media (max-width: 760px) {
  .hero-visual { max-width: 100%; }
  .inv-card { padding: 22px; }
  .float-badge { font-size: 12px; padding: 8px 12px; }
  .fb-1 { inset-block-start: -14px; inset-inline-start: 2px; }
  .fb-2 { inset-block-end: 28px; inset-inline-end: 2px; }
}
