/* Cuadra landing */
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.fine { font-size: 13.5px; color: var(--ink-3); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* hero */
.hero { position: relative; overflow: clip; padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 20%, transparent), transparent); }
.hero::after { content: ""; position: absolute; z-index: -1; left: -90px; bottom: -70px; width: 260px; height: 260px; border: 26px solid color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 720; letter-spacing: -.04em; line-height: 1.02; max-width: 13ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; margin-top: 22px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { margin-top: 18px; max-width: 46ch; }

/* demo stage */
.stage { --t: 12s; display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; padding: 22px; border-radius: 28px; color: #e9fbff; position: relative; isolation: isolate;
  background: radial-gradient(500px 300px at 90% 0, #0f6f80 0, transparent 70%), #08303a; box-shadow: 0 40px 80px -30px rgba(8, 48, 58, .6); }
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: .06; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
.phone { background: #0d2230; border-radius: 20px; padding: 12px; min-height: 100%; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid #ffffff1a; margin-bottom: 14px; }
.phone-top b { display: block; font-size: 13.5px; color: #fff; } .phone-top small { color: #8fb3bd; font-size: 12px; }
.wa-dot { width: 32px; height: 32px; border-radius: 50%; background: #1fa855; flex: none; box-shadow: inset 0 0 0 6px #1fa855, inset 0 0 0 8px #0d2230; }
.bubble { background: #134a3a; border-radius: 12px 12px 12px 3px; padding: 8px; max-width: 100%; position: relative; }
.bubble .tick { display: block; text-align: right; font-size: 11px; color: #9ed9bf; padding: 4px 4px 0; }
.proof { background: #fff; color: #0e1b2c; border-radius: 8px 8px 0 0; padding: 12px 12px 18px; position: relative; overflow: hidden; --notch: 5px; }
.proof-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: #11785a; }
.proof-amt { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.03em; margin: 6px 0 8px; }
.proof-r { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 3px 0; border-top: 1px dashed #d8e1e8; } .proof-r span { color: #5c6e83; } .proof-r b { font-weight: 650; }
.scan { position: absolute; left: 0; right: 0; height: 36px; top: -40px; background: linear-gradient(transparent, rgba(10, 124, 140, .35)); border-bottom: 2px solid #0a7c8c; animation: scan var(--t) infinite; }
.ledger { background: #fff; color: #0e1b2c; border-radius: 16px; padding: 14px; display: grid; gap: 8px; align-content: start; height: 100%; }
.ledger-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13.5px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #11785a; font-weight: 650; } .live i { width: 7px; height: 7px; border-radius: 50%; background: #11785a; }
.fields { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.fld { background: #eaf4f6; border-radius: 8px; padding: 6px 8px; font-size: 11px; display: grid; } .fld span { color: #5c6e83; } .fld b { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-sale { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #d8e1e8; border-radius: 10px; font-size: 13px; position: relative; }
.row-sale small { display: block; color: #5c6e83; font-size: 11.5px; } .row-sale b { font-variant-numeric: tabular-nums; }
.dotc { width: 8px; height: 8px; border-radius: 50%; background: #0a7c8c; }
.st { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.st-pending { background: #fff0d3; color: #8a5200; } .st-ok { background: #d9f2e8; color: #0b6a4e; position: absolute; right: 10px; top: 50%; translate: 0 -50%; } .st-na { color: #8a9db1; }
.row-sale.dim { opacity: .55; }
.bank { border: 1.5px dashed #bccad6; border-radius: 10px; padding: 8px 10px; position: relative; font-size: 12px; margin-top: 4px; }
.bank-h { color: #5c6e83; font-weight: 650; margin-bottom: 4px; }
.bank-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 6px; border-radius: 6px; } .bank-line b { color: #0b6a4e; font-variant-numeric: tabular-nums; }
.stamp { position: absolute; right: 10px; top: -16px; padding: 4px 12px; border: 2.5px solid var(--accent); color: var(--accent); background: #fff; border-radius: 8px; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .06em; rotate: -9deg; }

.bubble.s1 { animation: bubble var(--t) infinite; }
.fld.f1 { animation: fld var(--t) infinite; --d: 0%; } .fld.f2 { animation: fld var(--t) infinite; --d: 2.5%; } .fld.f3 { animation: fld var(--t) infinite; --d: 5%; }
.row-sale.r1 { animation: rowin var(--t) infinite; } .st-pending { animation: pend var(--t) infinite; } .st-ok { animation: okk var(--t) infinite; }
.bank { animation: bankin var(--t) infinite; } .bank-line { animation: hl var(--t) infinite; } .stamp { animation: stamp var(--t) infinite; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(14px); } 5%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes scan { 0%, 9% { top: -40px; } 22% { top: 100%; } 100% { top: 100%; } }
@keyframes fld { 0%, 23% { opacity: 0; transform: translateY(6px); } 28%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes rowin { 0%, 38% { opacity: 0; transform: translateY(8px); } 43%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes pend { 0%, 42% { opacity: 0; } 46%, 68% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes okk { 0%, 70% { opacity: 0; scale: .8; } 74%, 93% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; } }
@keyframes bankin { 0%, 52% { opacity: .0; } 58%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hl { 0%, 64% { background: transparent; } 68%, 93% { background: #d9f2e8; } 98%, 100% { background: transparent; } }
@keyframes stamp { 0%, 71% { opacity: 0; scale: 2.2; } 76% { opacity: 1; scale: 1; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* sections */
.sec { padding: clamp(56px, 8vw, 112px) 0; }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 52ch; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 21px; left: 44px; right: 44px; border-top: 2px dashed var(--line-strong); }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 750; font-size: 20px; position: relative; z-index: 1; }
.steps h3 { font-size: 22px; margin-top: 8px; } .steps p { color: var(--ink-2); max-width: 36ch; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.b { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.b h3 { font-size: 22px; } .b p { color: var(--ink-2); max-width: 48ch; }
.b-recon { grid-column: span 4; grid-row: span 2; background: var(--surface); } .b-inbox { grid-column: span 2; } .b-stores { grid-column: span 2; }
.b-dash { grid-column: span 3; } .b-cash { grid-column: span 3; background: var(--brand-soft); border-color: transparent; } .b-cust { grid-column: span 6; background: var(--accent-soft); border-color: transparent; }
.mini-evidence { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 12px; }
.me-side { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; font-size: 14px; } .me-side small { color: var(--ink-3); font-weight: 650; } .me-side b { font-size: 20px; font-family: var(--font-display); } .me-side span { color: var(--ink-2); font-size: 13px; }
.me-score { position: relative; width: 70px; height: 70px; } .me-score b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mini-inbox { display: flex; gap: 8px; margin-top: 8px; } .mini-inbox i { flex: 1; height: 86px; border-radius: 10px; background: var(--surface-2); border-bottom: 6px solid var(--ok); } .mini-inbox i:nth-child(2) { border-color: var(--warn); } .mini-inbox i:nth-child(3) { border-color: var(--ok); }
.mini-bars { display: grid; gap: 8px; margin-top: 8px; } .mini-bars span { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--w), var(--surface-2) var(--w)); }
.mini-chart { width: 100%; height: 70px; margin-top: 6px; }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.role { padding: 22px 28px 8px 0; } .role + .role { padding-left: 28px; border-left: 1px solid var(--line); }
.role h3 { font-size: 24px; margin-bottom: 8px; } .role p { color: var(--ink-2); max-width: 32ch; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 16px; align-content: start; position: relative; }
.plan.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-8px); }
.plan.featured .muted, .plan.featured li { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.plan h3 { font-size: 24px; } .plan .price { font-family: var(--font-display); font-size: 52px; font-weight: 720; letter-spacing: -.04em; line-height: 1; } .plan .price small { font-family: var(--font-ui); font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .plan li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.plan li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7c8c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan .tag { position: absolute; top: 18px; right: 18px; }
.plan.featured .btn-primary { background: var(--accent); color: #fff; }

details { border-top: 1px solid var(--line); padding: 18px 0; } details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 650; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-display); }
summary::-webkit-details-marker { display: none; } summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); transition: rotate .2s; } details[open] summary::after { rotate: 45deg; }
details p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; }

.cta { background: var(--brand); color: var(--on-brand); padding: clamp(48px, 7vw, 88px) 0; --notch: 10px; position: relative; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -.035em; max-width: 18ch; }
.cta-btn { background: #fff; color: #0e1b2c; } .cta-btn:hover { background: #eaf4f6; }
.foot { padding: 36px 0; } .foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot .brand svg { width: 26px; height: 26px; } .brand svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; }
  .nav-links { display: none; } .nav-login { display: none; }
  .steps { grid-template-columns: 1fr; } .steps::before { display: none; }
  .bento { grid-template-columns: 1fr; } .b { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .roles { grid-template-columns: 1fr; } .role + .role { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; }
  .plans { grid-template-columns: 1fr; } .plan.featured { transform: none; }
}
@media (max-width: 560px) {
  .stage { grid-template-columns: 1fr; padding: 14px; } .nav-in { gap: 12px; } .mini-evidence { grid-template-columns: 1fr; justify-items: center; }
  .nav-actions .btn-primary { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage * { animation: none !important; }
  .st-pending { display: none; } .scan { display: none; }
}

/* ---- mobile refinements ---- */
@media (max-width: 640px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-in { height: 60px; gap: 8px; } .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { display: none; }
  .hero { padding-top: 24px; } .hero-cta .btn { width: 100%; }
  .stage { border-radius: 22px; } .fields { grid-template-columns: repeat(2, auto); }
  .sec-head p { font-size: 16px; } .b { padding: 20px; border-radius: 18px; }
  .plan { padding: 22px; } .plan .price { font-size: 44px; }
  .cta-in { align-items: flex-start; } .cta-btn { width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  summary { font-size: 16px; }
}
