/* The licence site: what the shared stylesheet (site.css, copied from k-instruments.cloud) does not
   have: pricing cards, the Free / Pro table, forms, order states, the key box, FAQ. Same tokens. */

/* ---------- Pages with one column of text or a form ---------- */
.page { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.page > h1 { font: 800 clamp(2.6rem, 6vw, 4.4rem)/.95 var(--display); text-transform: uppercase; margin: 12px 0 18px; text-wrap: balance; }
:lang(vi) .page > h1 { line-height: 1.12; }
.page .lead { font-size: 1.1rem; max-width: 36em; color: var(--engrave); }
.page h2 { font: 800 1.7rem/1.05 var(--display); text-transform: uppercase; margin: 36px 0 10px; }
.page p, .page li { max-width: 42em; }
.page.legal p { margin-bottom: 1.1em; }

/* ---------- Forms ---------- */
.field { display: block; margin: 18px 0; }
.field > span { display: block; font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--engrave); margin-bottom: 8px; }
input[type="email"], input[type="text"], textarea {
  width: 100%; padding: 13px 14px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--panel);
  color: var(--ink); font: 400 1.05rem/1.3 var(--body); box-shadow: var(--slot-shadow);
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }
textarea { font-family: var(--mono); font-size: .85rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
button.btn:disabled { opacity: .55; cursor: wait; }
.hint { font-size: .9rem; color: var(--engrave); }

/* Package choice: whole row is the target */
.choices { display: grid; gap: 12px; margin: 8px 0 4px; border: 0; padding: 0; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--recess); border-radius: 8px; cursor: pointer; background: transparent; }
.choice:hover { background: var(--hover); }
.choice input { grid-row: 1 / span 2; width: 20px; height: 20px; accent-color: var(--go); margin: 0; }
.choice .name { font-weight: 600; }
.choice .sub { grid-column: 2; font-size: .88rem; color: var(--engrave); }
.choice .amount { grid-column: 3; grid-row: 1 / span 2; text-align: right; font: 800 1.5rem/1 var(--display); letter-spacing: .01em; }
.choice .amount s { display: block; font: 500 .8rem/1.2 var(--mono); color: var(--engrave); }
.choice:has(input:checked) { border-color: var(--go); box-shadow: 0 0 0 1px var(--go); background: var(--hover); }

/* ---------- Notices ---------- */
.notice { padding: 14px 18px; border-radius: 8px; border: 1px solid var(--recess); border-left: 4px solid var(--standby); background: var(--tint); margin: 20px 0; }
.notice.ok { border-left-color: var(--go); }
.notice.bad { border-left-color: #d64545; }
.notice p { margin: 0; }
.msg { min-height: 1.4em; font-weight: 600; }
.msg.bad { color: #d64545; }

/* ---------- Order page ---------- */
.order-card { background: var(--recess); border-radius: 10px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--slot-shadow); margin-top: 24px; }
.order-state { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.order-state .led { font-size: .78rem; }
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0; padding: 18px 20px; border-radius: 8px; background: var(--screen); color: var(--screen-text); }
.keybox code { font: 500 clamp(1.05rem, 3.2vw, 1.5rem)/1.2 var(--mono); background: transparent; padding: 0; letter-spacing: .06em; word-break: break-all; color: inherit; }
.keybox .btn { color: var(--screen-text); border-color: var(--screen-dim); margin-left: auto; }
.keybox .btn:hover { background: #151a22; }
.order-card .step { margin-top: 26px; }
.order-card .step h2 { font-size: 1.05rem; margin: 0 0 8px; }
.order-card .step .btn-row { margin-top: 10px; }
.order-card .step ol { margin: 0; padding-left: 1.4em; }
.order-card .step li + li { margin-top: 4px; }
.pay-grid { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; margin: 8px 0 6px; }
.pay-grid img { background: #fff; padding: 10px; border-radius: 8px; width: 100%; max-width: 260px; height: auto; }
.pay-grid .specs th { width: 42%; }
@media (max-width: 640px) { .pay-grid { grid-template-columns: 1fr; } .pay-grid img { max-width: 220px; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--screen-dim); border-top-color: var(--go); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---------- Home: hero extras, plans, comparison, FAQ ---------- */
.hero-led { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 22px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--recess); border-left: 1px solid var(--recess); margin-top: clamp(28px, 4vw, 48px); }
.facts > div { padding: 22px 22px 24px; border-right: 1px solid var(--recess); border-bottom: 1px solid var(--recess); }
.facts b { display: block; font: 800 2.1rem/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.facts span { color: var(--engrave); font-size: .95rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 10px; border: 1.5px solid var(--recess); background: transparent; }
.plan.pro { border-color: var(--ink); box-shadow: 0 1px 0 1px var(--bevel), 0 18px 40px -26px rgba(0, 0, 0, .5); }
.plan .tag { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--engrave); display: inline-flex; gap: 8px; align-items: center; }
.plan h3 { font: 800 1.9rem/1 var(--display); text-transform: uppercase; margin: 12px 0 4px; }
:lang(vi) .plan h3 { line-height: 1.12; }
.plan .price { font: 800 2.7rem/1 var(--display); margin: 14px 0 4px; letter-spacing: .01em; }
.plan .price s { font: 500 .9rem/1.3 var(--mono); color: var(--engrave); margin-left: 8px; }
.plan .price-note { font-size: .88rem; color: var(--engrave); margin: 0 0 16px; min-height: 1.4em; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--recess); font-size: .96rem; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--go); font-weight: 700; }
.plan li.no { color: var(--engrave); }
.plan li.no::before { content: "–"; color: var(--engrave); }
.plan .btn { justify-content: center; }
.plan .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.sale-chip { display: inline-block; font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 9px; border-radius: 4px; background: var(--standby); color: #15171a; }

.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 13px 14px; border-bottom: 1px solid var(--recess); text-align: left; vertical-align: top; }
.compare thead th { font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--engrave); }
.compare tbody th { font-weight: 600; width: 44%; }
.compare .pro-col { font-weight: 600; }
.compare .yes::before { content: "✓ "; color: var(--go); font-weight: 700; }
@media (max-width: 560px) { .compare th, .compare td { padding: 10px 8px; font-size: .92rem; } }

.faq details { border-bottom: 1px solid var(--recess); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 1.5rem/1 var(--mono); color: var(--engrave); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; max-width: 46em; color: var(--engrave); }
.faq-wrap { max-width: 860px; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-band h2 { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.gallery figure .screen { height: 100%; }
.section-note { color: var(--engrave); font-size: .92rem; margin-top: 18px; max-width: 46em; }
