/* Loonty round 2: pricing, quote calculator, checkout */

/* lanes */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 48px 0 40px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lanes > div { background: var(--bg-2); padding: 20px 22px; }
.lanes span { font: 500 11px var(--mono); color: var(--brand); letter-spacing: .1em; }
.lanes b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 4px; }
.lanes p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

/* tabs */
.ptabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.ptabs button { all: unset; cursor: pointer; font: 500 14px var(--sans); color: var(--ink-2); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); transition: all .2s; }
.ptabs button:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
.ptabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ptabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* cards */
.pgrid { display: grid; gap: 16px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.pgrid.n3 { --n: 3; } .pgrid.n4 { --n: 4; }
.pcard { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg-2); animation: cardIn .45s cubic-bezier(.2,.8,.2,1) both; }
.pcard:nth-child(2) { animation-delay: .05s; } .pcard:nth-child(3) { animation-delay: .1s; } .pcard:nth-child(4) { animation-delay: .15s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.pcard.hot { border-color: rgba(0,174,239,.6); background: radial-gradient(120% 80% at 50% 0%, rgba(0,174,239,.16), transparent 60%), var(--bg-2); box-shadow: 0 30px 80px -40px var(--brand-glow); }
.badge { position: absolute; top: -11px; left: 24px; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #00131c; background: var(--brand); padding: 5px 10px; border-radius: 999px; }
.pcard h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.pcard .for { margin: 4px 0 18px; color: var(--ink-3); font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: clamp(34px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.price .from { font: 500 14px var(--sans); color: var(--ink-2); }
.price .unit { font: 500 16px var(--sans); color: var(--ink-2); }
.psub { margin: 8px 0 20px; font: 500 12px var(--mono); color: var(--ink-3); }
.pcard ul { list-style: none; padding: 18px 0 0; margin: 0 0 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pcard li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.pcard li::before { content: "✓"; color: var(--brand); font-weight: 700; font-size: 13px; padding-top: 1px; }
.pcard .btn { margin-top: auto; width: 100%; }
.pnote { margin: 18px 0 0; font: 500 12.5px/1.6 var(--mono); color: var(--ink-3); }
.ranges { margin-top: 26px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; padding: 26px; border-radius: 20px; border: 1px dashed var(--line-2); }
.ranges .eyebrow { margin-bottom: 10px; }
.rsub { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.ranges dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ranges dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ranges dt { color: var(--ink-2); font-size: 14.5px; }
.ranges dd { margin: 0; font: 500 14px var(--mono); color: var(--ink); white-space: nowrap; }

/* quote calculator */
.qgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 24px; margin-top: 48px; align-items: start; }
.qform { border-radius: 22px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.qblock { padding: clamp(20px, 2.6vw, 30px); border-top: 1px solid var(--line); }
.qblock:first-child { border-top: 0; }
.qblock[hidden] { display: none; }
.qstep { display: flex; align-items: center; gap: 12px; font: 600 17px var(--sans); letter-spacing: -.01em; color: var(--ink); margin: 0 0 16px; }
.qstep i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); font-style: normal; color: #00131c; background: var(--brand); box-shadow: 0 0 18px var(--brand-glow); }
.qstep span { font: 500 12.5px var(--sans); color: var(--ink-3); }
.qsum .qstep { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0; }
.qkind input, .qtier input, .qcare input, .qsp input, .sw input { position: absolute; opacity: 0; pointer-events: none; }
.qkind > span, .qtier > span, .qcare > span, .qsp > span { display: grid; gap: 4px; align-content: start; height: 100%; box-sizing: border-box; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.qkind > span:hover, .qtier > span:hover, .qcare > span:hover, .qsp > span:hover { border-color: rgba(255,255,255,.3); }
.qkind input:checked + span, .qtier input:checked + span, .qcare input:checked + span, .qsp input:checked + span { border-color: var(--brand); background: rgba(0,174,239,.1); box-shadow: inset 0 0 0 1px var(--brand), 0 18px 50px -30px var(--brand-glow); }
.qkind input:focus-visible + span, .qtier input:focus-visible + span, .qcare input:focus-visible + span, .qsp input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.qkind b, .qtier b, .qcare b, .qsp b { font-size: 15.5px; font-weight: 600; }
.qkind small, .qtier small, .qcare small, .qsp small { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.qtier em, .qcare em, .qsp em { font: 600 14px var(--mono); font-style: normal; color: var(--ink-2); }
.qtier input:checked + span em, .qcare input:checked + span em, .qsp input:checked + span em { color: var(--brand-2); }
.qkinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line-2); transition: all .2s; }
.qk-ic svg { width: 22px; height: 22px; }
.qkind input:checked + span .qk-ic { color: #00131c; background: var(--brand); border-color: var(--brand); box-shadow: 0 0 22px var(--brand-glow); }
.qtiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qtier em { font-size: 22px; font-family: var(--sans); letter-spacing: -.03em; color: var(--ink); }
.qtier ul { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.qtier li { font-size: 13.5px; color: var(--ink-2); display: grid; grid-template-columns: 16px 1fr; }
.qtier li::before { content: "✓"; color: var(--brand); font-weight: 700; font-size: 12px; }
.qgroup { margin: 18px 0 10px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.qgroup:first-child { margin-top: 0; }
.qtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qtile { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.015); transition: border-color .2s, background .2s, box-shadow .2s; }
button.qtile { cursor: pointer; }
.qtile:hover { border-color: rgba(255,255,255,.28); }
.qtile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.qtile[aria-pressed="true"] { border-color: var(--brand); background: rgba(0,174,239,.09); box-shadow: inset 0 0 0 1px rgba(0,174,239,.6); }
.qt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qt-top b { font-size: 14.5px; font-weight: 600; }
.qt-ck { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; transition: all .2s; }
.qtile[aria-pressed="true"] .qt-ck { background: var(--brand); border-color: var(--brand); }
.qtile[aria-pressed="true"] .qt-ck::after { content: "✓"; color: #00131c; font-size: 11px; font-weight: 800; }
.qt-desc { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); flex: 1; }
.qtile em { font: 500 12.5px var(--mono); font-style: normal; color: var(--ink-2); margin-top: 4px; }
.qtile[aria-pressed="true"] em { color: var(--brand-2); }
.qt-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.qt-foot em { margin: 0; }
.qcares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qspeed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sw { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: transform .2s, background .2s; }
.sw input:checked + i { background: var(--brand); border-color: var(--brand); }
.sw input:checked + i::after { transform: translateX(18px); background: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0,0,0,.2); }
.stepper button { all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; font-size: 16px; color: var(--ink-2); border-radius: 50%; }
.stepper button:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.stepper button:focus-visible { outline: 2px solid var(--brand); }
.stepper output { min-width: 22px; text-align: center; font: 500 13.5px var(--mono); }
.qsum { position: sticky; top: 90px; padding: 22px; border-radius: 22px; border: 1px solid rgba(0,174,239,.5); background: radial-gradient(120% 80% at 50% 0%, rgba(0,174,239,.16), transparent 60%), var(--bg-2); box-shadow: 0 30px 90px -40px var(--brand-glow); }
.qsum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.qlive { display: inline-flex; align-items: center; gap: 7px; font: 500 11px var(--mono); color: var(--good); }
.qlive i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.qlines { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.qlines div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.qlines span { display: inline-flex; align-items: center; gap: 8px; }
.qlines button { all: unset; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: var(--ink-3); border: 1px solid var(--line-2); flex: none; }
.qlines button:hover { color: var(--ink); border-color: var(--c4); background: rgba(255,122,168,.15); }
.qlines button:focus-visible { outline: 2px solid var(--brand); }
.qlines b { font: 500 13.5px var(--mono); color: var(--ink); white-space: nowrap; }
.qtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 12px; }
.qtotal span { font-size: 14px; color: var(--ink-2); }
.qtotal b { font-size: 38px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.qsched { list-style: none; margin: 0 0 14px; padding: 0; display: grid; }
.qsched li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0 9px 22px; font-size: 14px; color: var(--ink); }
.qsched li::before { content: ""; position: absolute; left: 3px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--bg-2); box-sizing: border-box; z-index: 1; }
.qsched li::after { content: ""; position: absolute; left: 7px; top: 50%; height: 100%; border-left: 1.5px dotted var(--line-2); }
.qsched li:last-child::after { display: none; }
.qsched li.now::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.qsched li.mo::before { border-style: dashed; }
.qsched span { display: grid; gap: 1px; }
.qsched small { font-size: 12px; color: var(--ink-3); }
.qsched b { font: 500 14px var(--mono); white-space: nowrap; }
.qsched li.now b { color: var(--brand-2); }
.qlaunch { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.qlaunch b { font: 500 14px var(--mono); color: var(--ink); }
.qlaunch small { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
.qkv { display: grid; gap: 8px; margin-bottom: 20px; }
.qkv div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.qkv b { font: 500 14px var(--mono); color: var(--ink); }
.qsum .btn { width: 100%; }
.qmore { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.qmore button, .qmore a { all: unset; cursor: pointer; font: 500 12.5px var(--mono); color: var(--brand-2); }
.qmore button:hover, .qmore a:hover { color: var(--ink); text-decoration: underline; }
.qmore button:focus-visible, .qmore a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.qsum .fine, .co .fine { margin: 12px 0 0; text-align: center; font: 500 11.5px var(--mono); color: var(--ink-3); }

/* phone sticky total */
.qbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(11,16,24,.92); border: 1px solid rgba(0,174,239,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.qbar.show { transform: none; }
.qbar span { display: block; font: 500 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.qbar b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.qbar .btn { padding: 12px 16px; }
@media (min-width: 981px) { .qbar { display: none; } }

/* blueprint */
.blueprint { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 22px; border: 1px solid var(--line-2); background: repeating-linear-gradient(135deg, rgba(0,174,239,.035) 0 12px, transparent 12px 24px), var(--bg-2); }
.blueprint h3 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; font-weight: 600; }
.blueprint p { margin: 0; color: var(--ink-2); line-height: 1.55; max-width: 640px; }
.blueprint p b { color: var(--ink); font-weight: 500; }
.blueprint .eyebrow { margin-bottom: 14px; }
.bp-buy { text-align: right; }
.bp-buy .price { justify-content: flex-end; }
.bp-buy .psub { margin: 6px 0 14px; }

/* checkout dialog */
.co { width: min(460px, calc(100vw - 32px)); padding: 28px; border-radius: 22px; border: 1px solid var(--line-2); background: #0b1018; color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8); }
.co::backdrop { background: rgba(2,3,6,.75); backdrop-filter: blur(6px); }
.co[open] { animation: coIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes coIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.co h3 { margin: 0 0 18px; font-size: 24px; letter-spacing: -.03em; font-weight: 600; }
.co .eyebrow { margin-bottom: 10px; }
.co-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; }
.co-x:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.co-note { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.co .opt { display: flex; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; margin-bottom: 16px; }
.co .btn { width: 100%; }
.co .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.co-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,214,10,.1); color: var(--yp); font: 500 12.5px var(--mono); text-align: center; }

@media (max-width: 1100px) { .pgrid.n4 { --n: 2; } }
@media (max-width: 980px) {
  .lanes, .qgrid, .ranges, .blueprint { grid-template-columns: 1fr; }
  .pgrid.n3 { --n: 1; }
  .qsum { position: static; }
  .bp-buy { text-align: left; }
  .bp-buy .price { justify-content: flex-start; }
  .ranges dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pgrid.n4 { --n: 1; }
  .qkinds, .qtiers, .qtiles, .qcares { grid-template-columns: 1fr; }
  .qkind > span { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .qk-ic { grid-row: 1 / span 2; margin: 0; }
}

/* checkout states */
.co .btn.busy { opacity: .8; cursor: progress; }
.co .fine { margin: 12px 0 0; text-align: center; }
.co-msg { background: rgba(255,122,168,.12); color: #ffb3cb; }
/* back from Stripe */
.co.paid { text-align: center; }
.co.paid svg { height: 38px; margin: 6px auto 16px; color: var(--brand); display: block; }
.co.paid .eyebrow { justify-content: center; }
.co.paid p { color: var(--ink-2); line-height: 1.55; margin: 0 0 10px; font-size: 15px; }
.co.paid .paid-what:empty { display: none; }
.co.paid .paid-what { font: 500 14px var(--mono); color: var(--ink); padding: 10px 12px; border-radius: 10px; background: rgba(0,174,239,.1); border: 1px solid rgba(0,174,239,.35); }
