/* Nodova license page (index.php): additions to ui.css. Flat colour, no gradients: Basic is blue, Pro orange,
 * Ultra graphite. */

/* ---------- hero ---------- */
.hero { display: grid; justify-items: center; gap: 16px; padding: 28px 0 4px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--label-2); }
.eyebrow .ic { color: var(--blue); }
.hero h1 { font: 700 clamp(40px, 7.4vw, 72px)/1.04 var(--display); letter-spacing: -.045em; }
.hero h1 span { color: var(--label-2); }
.hero p { max-width: 520px; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.42; letter-spacing: -.016em; color: var(--label-2); }
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.section-head.center { justify-content: center; text-align: center; }
.section-head.center h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.032em; }
.section-head.center p { font-size: 15px; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; width: 100%; margin: 6px auto 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); animation: rise .7s var(--out) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); transition: transform .5s var(--soft), box-shadow .4s var(--out); }
.plan.pro { box-shadow: 0 0 0 2px #f56300, var(--shadow); }
.plan.ultra { box-shadow: 0 0 0 2px var(--graphite), var(--shadow); }
@media (hover: hover) {
    .plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    .plan.pro:hover { box-shadow: 0 0 0 2px #f56300, var(--shadow-lg); }
    .plan.ultra:hover { box-shadow: 0 0 0 2px var(--graphite), var(--shadow-lg); }
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.plan-name { font-size: 15px; font-weight: 600; color: var(--label-2); }
.plan-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.plan.pro .plan-badge { background: var(--orange-tint); color: var(--orange-ink); }
.plan.ultra .plan-badge { background: var(--graphite); color: #fff; }
.plan-sends { display: flex; align-items: baseline; gap: 8px; min-height: 68px; margin-top: 14px; }
.plan-sends b { font: 700 72px/.95 var(--display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--blue); }
.plan.pro .plan-sends b { color: #f56300; }
.plan.ultra .plan-sends b { color: var(--graphite); font-weight: 600; letter-spacing: 0; }
.plan-sends span { font-size: 17px; font-weight: 500; color: var(--label-2); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; font: 600 26px/1.1 var(--display); letter-spacing: -.025em; }
.plan-price > span { font: 400 14px/1.3 var(--font); letter-spacing: 0; color: var(--label-2); }
.feats { display: grid; gap: 10px; margin: 20px 0 24px; padding-top: 18px; border-top: .5px solid var(--sep); flex: 1; font-size: 14.5px; line-height: 1.35; }
.feats li { display: flex; align-items: flex-start; gap: 10px; }
.feats .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-ink); stroke-width: 3; }
.plan.pro .feats .ic { background: var(--orange-tint); color: var(--orange-ink); }
.plan.ultra .feats .ic { background: var(--fill); color: var(--graphite); }
.feats li.off { color: var(--label-3); }
.feats li.off .ic { background: var(--fill-2); color: var(--label-3) !important; }
.plan .btn { margin-top: auto; }

/* "Fair Use Policy" opens the sheet */
.fair-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--blue-ink); font: inherit; font-weight: 500; cursor: pointer; }
.fair-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.fair-link .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.policy { display: grid; gap: 18px; margin-top: 18px; }
.policy li { display: flex; gap: 14px; align-items: flex-start; }
.policy li b { display: block; margin-bottom: 1px; color: var(--label); font-weight: 600; }
.policy-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; color: #fff; background: var(--blue); }
.policy-ic .ic { width: 18px; height: 18px; stroke-width: 2; }
.policy-ic.green { background: var(--green); }
.policy-ic.orange { background: var(--orange); }
.policy-ic.gray { background: #8e8e93; }

/* ---------- your keys ---------- */
.keylist { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.key-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code side" "meta meta" "meter meter"; align-items: center; gap: 2px 12px; padding: 16px 18px; transition: background-color .2s; }
.key-row + .key-row::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: .5px; background: var(--sep); }
@media (hover: hover) { .key-row:hover { background: var(--surface-2); } }
.key-row .key-code { grid-area: code; }
.key-side { grid-area: side; display: flex; align-items: center; gap: 12px; }
.key-meta { grid-area: meta; font-size: 13px; color: var(--label-2); }
.key-meta .fair-link { font-size: 13px; }
.meter { grid-area: meter; display: block; height: 5px; margin-top: 10px; border-radius: 5px; background: var(--fill); overflow: hidden; }
.meter i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--green); animation: meter 1.2s .35s var(--out) both; }
@keyframes meter { from { width: 0; } }
.key-code { font: 700 30px/1 var(--display); letter-spacing: .05em; font-variant-numeric: tabular-nums; color: var(--label); white-space: nowrap; }
.key-code.sm { font-size: 21px; }
.key-code.spent { color: var(--label-3); }

/* the new key after a payment: digits drop in one by one */
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 12px; padding: 16px 16px 16px 20px; border-radius: var(--r); background: var(--fill-2); }
.key-code.digits { display: inline-flex; font-size: 36px; }
.key-code.digits span { display: inline-block; animation: digit .6s var(--spring) both; animation-delay: calc(var(--i) * 60ms + 300ms); }
.key-code.digits .gap { width: .5em; }
@keyframes digit { from { opacity: 0; transform: translateY(-14px) scale(.7); } }
.notice .spin.notice-spin { width: 22px; height: 22px; margin: 0 3px; color: var(--blue); border-width: 2.5px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: grid; align-content: start; gap: 14px; padding: 24px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .5s var(--soft); }
@media (hover: hover) { .step:hover { transform: translateY(-3px); } }
.step b { display: block; font: 600 18px/1.25 var(--display); letter-spacing: -.02em; }
.step > span > span { display: block; margin-top: 4px; font-size: 14px; color: var(--label-2); line-height: 1.42; }
.step-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: var(--blue); }
.step-ic.orange { background: var(--orange); }
.step-ic.green { background: var(--green); }
.step-ic .ic { width: 22px; height: 22px; stroke-width: 1.9; }

/* ---------- download ---------- */
.get { display: grid; gap: 18px; width: 100%; max-width: 860px; margin: 0 auto; }
.app { width: 100%; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.app-row { display: flex; align-items: center; gap: 16px; padding: 18px; }
.app-row .grow { flex: 1; min-width: 0; }
.app-row b { display: block; font: 600 18px/1.2 var(--display); letter-spacing: -.02em; }
.app-row .grow > span { display: block; margin-top: 2px; font-size: 13px; color: var(--label-2); }
.app-icon { display: grid; place-items: center; width: 60px; height: 60px; flex: 0 0 auto; border-radius: 15px; color: #fff; background: var(--blue); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08); }
.app-icon .ic { width: 30px; height: 30px; stroke-width: 1.7; }

/* install guide: four steps, each a drawn picture of the Packet Tracer screen (inline SVG, 320 x 200) */
.shot-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-step { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .4s var(--out); }
.guide-step.next { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.shot { margin: 0; background: #eceef2; border-bottom: .5px solid var(--sep); }
.shot svg { display: block; width: 100%; height: auto; }
.shot text { font-family: var(--font); font-size: 10.5px; fill: var(--label); }
.shot text.b { font-weight: 600; }
.shot text.lg { font-size: 12.5px; }
.shot text.sm { font-size: 10px; }
.shot text.m { fill: var(--label-2); }
.shot .ws { fill: #fafafb; }
.shot .win, .shot .menu { fill: #fff; }
.shot .tbar { fill: #e8e8ed; }
.shot .mbar { fill: #f5f5f7; }
.shot .hair { fill: none; stroke: rgba(0, 0, 0, .1); stroke-width: 1; }
.shot .field { fill: #fff; stroke: rgba(0, 0, 0, .14); stroke-width: 1; }
.shot .btn-g { fill: #f5f5f7; stroke: rgba(0, 0, 0, .12); stroke-width: 1; }
.shot .sk { fill: rgba(120, 120, 128, .2); }
.shot .sk.soft { fill: rgba(120, 120, 128, .12); }
.shot .hi { fill: var(--blue); }
.shot .hi-soft { fill: var(--blue-tint-2); }
.shot text.hi-t { fill: #fff; }
.shot .ring { fill: var(--blue-tint-2); }
.shot .cursor { fill: var(--label); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.shot .chev, .shot .arrow { fill: none; stroke: var(--label-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shot .arrow { stroke: var(--label-3); stroke-width: 2; }
.shot .stroke-w { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot .doc { fill: #fff; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; }
.shot .doc.sm { stroke-width: 1.2; }
.shot .doc-fold { fill: var(--blue-tint); stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; }
.shot .doc-t { font-size: 11px; font-weight: 700; fill: var(--blue-ink); }
.guide-text { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 16px 20px 20px; }
.guide-text b { font: 600 17px/1.3 var(--display); letter-spacing: -.02em; }
.guide-text p { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--label-2); }
.guide-text .path { color: var(--label); font-weight: 600; }
.guide-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .3s var(--ease); }
.guide-num .ic { display: none; width: 15px; height: 15px; stroke-width: 2.8; }
.guide-step.done .guide-num { background: var(--green); }
.guide-step.done .guide-num span { display: none; }
.guide-step.done .guide-num .ic { display: block; animation: pop .45s var(--spring); }

/* download button: fills while the file arrives (ring + percent), then turns green with a check (pay.js) */
.btn.dl { isolation: isolate; overflow: hidden; }
.dl-fill { position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .24); transform: scaleX(0); transform-origin: left center; }
.btn.dl:not(.primary) .dl-fill { background: var(--blue-tint-2); }
.btn.dl.loading { pointer-events: none; }
.btn.dl.loading > :not(.dl-fill), .btn.dl.done > * { animation: swapIn .35s var(--out) both; }
.dl-ring { width: 18px; height: 18px; flex: 0 0 auto; transform: rotate(-90deg); }
.dl-ring circle { fill: none; stroke: currentColor; stroke-width: 2.6; opacity: .28; }
.dl-ring .dl-bar { opacity: 1; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.dl-pct { min-width: 3.2ch; font-variant-numeric: tabular-nums; text-align: left; }
.btn.dl.done { background: var(--green); color: #fff; }
.btn.dl.done .ic path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .1s var(--out) forwards; }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* ---------- purchases ---------- */
.fold-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; color: #fff; background: #8e8e93; }
.fold-ic .ic { width: 18px; height: 18px; }

@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
    .step { position: relative; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px 18px; border-radius: 0; box-shadow: none; background: none; }
    .step + .step::before { content: ""; position: absolute; top: 0; left: 78px; right: 0; height: .5px; background: var(--sep); }
    .step-ic { width: 44px; height: 44px; }
    .step b { font-size: 16px; }
    .step > span > span { margin-top: 1px; font-size: 13.5px; }
    .guide { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
    .hero { gap: 14px; padding-top: 16px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 140px; }
    .plans { gap: 16px; }
    .plan { padding: 22px 20px 20px; border-radius: 24px; }
    .plan-sends { min-height: 58px; }
    .plan-sends b { font-size: 60px; }
    .key-code.digits { font-size: 32px; }
    .key-box { padding: 14px; }
    .key-box .btn { flex: 1 1 100%; }
    .app-row { flex-wrap: wrap; gap: 14px; }
    .app-row .btn { flex: 1 1 100%; }
    .app-icon { width: 54px; height: 54px; border-radius: 13px; }
    .get { gap: 16px; }
    .guide-text { padding: 14px 16px 18px; }
    .guide-text b { font-size: 16px; }
    .purchases .li { flex-wrap: wrap; row-gap: 6px; }
    .purchases .li .grow { flex-basis: 100%; }
    .purchases .li .amt { margin-left: auto; }
    .key-row { padding: 14px 16px; }
    .key-row + .key-row::before { left: 16px; }
}
@media (max-width: 380px) {
    .key-code.sm { font-size: 19px; }
    .key-side { gap: 8px; }
    .key-side .btn span { display: none; }
    .key-side .btn { width: 32px; padding: 0; }
}
