:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #231d17;
  background: #fffcf4;
  scroll-padding-top: 5rem;
  --muted: #665b4b;
  --line: #e9dfce;
  --amber: #a45d0a;
  --gold: #f8cc45;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a, button, input, select { font: inherit; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { max-width: 80rem; margin: 0 auto; padding-inline: clamp(1.25rem, 4.4vw, 3.5rem); }

.header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: #fcfaf3; }
.top { min-height: 4.8rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand, nav, .actions { display: flex; align-items: center; }
.brand { justify-self: start; gap: .65rem; font-weight: 780; letter-spacing: -.025em; text-decoration: none; }
.mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .7rem;
  background: var(--gold);
  color: #2d1d0d;
  font-size: .75rem;
  letter-spacing: .05em;
}
.locket-mark { color: #50320c; font-size: 1.18rem; box-shadow: inset 0 0 0 3px #ffe47d; }
nav { gap: .2rem; padding: .28rem; border: 1px solid var(--line); border-radius: 99px; background: #fffdfa; }
nav a { padding: .48rem .88rem; border-radius: 99px; color: #5f5244; font-size: .875rem; font-weight: 680; text-decoration: none; white-space: nowrap; }
nav a:hover { background: #fff0cc; color: #2a1a06; }
nav a[aria-current="location"] { color: #3a2709; background: #f9d756; }
.nav-action { justify-self: end; min-width: 6.45rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  min-height: 36rem;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}
.demo {
  display: inline-block;
  margin-bottom: 1.15rem;
  padding: .28rem .75rem;
  border-radius: 99px;
  border: 1px solid #eddbb7;
  background: #fff4d5;
  color: #644612;
  font-size: .875rem;
  font-weight: 650;
}
h1 {
  font-size: clamp(2.55rem, 4.8vw, 4.2rem);
  line-height: 1.04;
  font-weight: 780;
  letter-spacing: -.05em;
}
h1 em { color: var(--amber); font-style: normal; }
.intro p {
  max-width: 43ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
}
.actions { flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.actions a { min-height: 3.1rem; padding-inline: 1.1rem; }
.hero-visual {
  display: grid;
  justify-items: center;
  background: radial-gradient(ellipse at 52% 55%, #ffe2a4 0%, #fff2d4 39%, #fcfaf300 70%);
}
.hero-visual img {
  display: block;
  width: 100%;
  max-height: 32rem;
  height: auto;
  object-fit: contain;
  mask: url("/hero-phone-mask.webp") center / contain no-repeat;
}

.pricing { border-top: 1px solid var(--line); background: #fffdf8; padding-block: clamp(2.5rem, 6vw, 4.8rem); }
.pricing h2, .manager h2, .guide h2 { font-size: clamp(1.8rem, 3.75vw, 2.6rem); text-align: center; }
.pricing-note, .manager-head p { margin: .55rem 0 0; color: var(--muted); text-align: center; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 65rem;
  margin: 1.55rem auto 0;
}
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #e8dbbb;
  border-radius: 1.35rem;
  background: #fffcf4;
  color: #231d17;
  box-shadow: 0 .6rem 1.65rem #55361612;
}
.plan[data-plan="gold"] {
  border-color: #765b35;
  background: radial-gradient(ellipse at 85% 0%, #47361d, #25221e 58%);
  color: #fff8ea;
}
.plan[data-plan="platinum"] {
  border-color: #96a9d0;
  background: radial-gradient(ellipse at 100% 0%, #3a4b78 0%, #1c294b 45%, #11192d 82%);
  color: #f6f8ff;
  box-shadow: inset 0 1px 0 #e2edff65, 0 .75rem 2.2rem #20315434;
}
.plan-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .25rem .5rem; }
.plan-name { overflow-wrap: anywhere; margin-bottom: .65rem; }
.plan-tier {
  padding: .22rem .52rem;
  border: 1px solid #c2d1ed;
  border-radius: 99px;
  background: #e4edfc;
  color: #1b2946;
  font-size: .8125rem;
  font-weight: 750;
}
.plan-duration { color: var(--muted); margin-bottom: .55rem; }
.plan-price-wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .65rem; }
.plan-price { font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 780; letter-spacing: -.045em; }
.plan-promo { display: inline-flex; align-items: center; gap: .42rem; flex-wrap: wrap; }
.plan-original { color: var(--muted); font-size: .98rem; font-weight: 600; text-decoration: line-through; opacity: .82; }
.plan-sale {
  padding: .16rem .52rem;
  border-radius: 99px;
  background: #d93829;
  color: #fff;
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .01em;
}
.plan[data-plan="gold"] .plan-original { color: #d8c6a3; }
.plan[data-plan="platinum"] .plan-original { color: #b7c8ea; }
.plan-features { margin: 1rem 0; padding: .95rem 0 0 1.15rem; border-top: 1px solid #b39d7755; line-height: 1.5; }
.plan-features li + li { margin-top: .55rem; }
.plan-features li::marker { color: var(--amber); }
.plan[data-plan="gold"] .plan-price { color: #ffda70; }
.plan[data-plan="gold"] .plan-duration, .plan[data-plan="gold"] .plan-features li::marker { color: #ffda70; }
.plan[data-plan="platinum"] .plan-price { color: #e1ecff; }
.plan[data-plan="platinum"] .plan-duration, .plan[data-plan="platinum"] .plan-features li::marker { color: #cad8f3; }
.plan[data-plan="platinum"] .plan-features { border-color: #c1d3f44d; }
.plan[data-plan="platinum"] .primary { background: linear-gradient(145deg, #f7faff, #aebfe1); color: #162746; }
.plan[data-plan="platinum"] .primary:hover { background: #e2edff; }
.plan button { width: 100%; margin-top: auto; }
.resume-order { display: flex; margin: 1.25rem auto 0; }
.order-lookup {
  display: flex;
  gap: .6rem;
  max-width: 30rem;
  margin: 1.35rem auto 0;
}
.order-lookup input {
  flex: 1;
  min-width: 0;
  padding: .65rem .85rem;
  border: 1px solid #d9c094;
  border-radius: .6rem;
  background: #fffdfa;
}
.order-lookup button { white-space: nowrap; }
#lookup-error, #load-error { max-width: 30rem; margin-inline: auto; text-align: center; }

.manager {
  border-top: 1px solid var(--line);
  background: #fcf8ee;
  padding-block: clamp(2.5rem, 6vw, 4.8rem);
}
.account-lookup {
  display: flex;
  gap: .65rem;
  max-width: 34rem;
  margin: 1.4rem auto 0;
}
.account-lookup input, .stack-form input, .stack-form select, #locket-username, .admin-tools input, .admin-tools select {
  display: block;
  width: 100%;
  padding: .68rem .85rem;
  border: 1px solid #d9c094;
  border-radius: .6rem;
  color: inherit;
  background: #fffdf6;
}
.account-lookup button { white-space: nowrap; }
#mgr-error { text-align: center; }
.mgr-panel { margin-top: 1.5rem; }
.account-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fffdfa;
}
.account-summary > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.badge {
  padding: .22rem .65rem;
  border-radius: 99px;
  font-size: .8125rem;
  font-weight: 750;
  background: #ddf1e2;
  color: #1b5136;
}
.badge.expired { background: #fbe4e2; color: #94291f; }
.acc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.acc-meta { color: var(--muted); font-size: .92rem; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.25rem;
}
.tab {
  min-height: 2.6rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fffdfa;
  color: #5f5244;
  font-weight: 680;
}
.tab[aria-selected="true"] { background: #231d17; color: #fff8ea; border-color: #231d17; }
.tab-panel { margin-top: 1rem; }
.mgr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mgr-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fffdfa;
  box-shadow: 0 .45rem 1.25rem #5536160a;
}
.ai-card { max-width: 38rem; }
.card-sub { margin-top: .35rem; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.preset-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.chip-btn {
  min-height: 2.1rem;
  padding: .28rem .72rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff9ea;
  font-size: .84rem;
  font-weight: 650;
}
.chip-btn:hover { background: #ffeec2; }
.stack-form { display: grid; gap: .65rem; margin-top: 1rem; }
.stack-form label { font-size: .92rem; font-weight: 670; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem; }
.btn-row > * { flex: 1 1 8rem; }
.quota-pill {
  padding: .2rem .6rem;
  border-radius: 99px;
  background: #fff0c4;
  color: #634600;
  font-size: .82rem;
  font-weight: 700;
}
.quota-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.note-chip {
  margin-top: .85rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  font-weight: 680;
}
.notes-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; max-height: 22rem; overflow-y: auto; }
.note-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border-radius: .8rem;
  font-weight: 620;
}
.note-item button, .frame-actions button { min-height: 2.1rem; padding: .3rem .65rem; font-size: .84rem; }
.local-preview {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .7rem;
  border: 1px dashed #d9c094;
  border-radius: .65rem;
  background: #fffcf4;
}
.local-preview img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: .45rem;
  background: repeating-conic-gradient(#efe7d7 0% 25%, #fffdfa 0% 50%) 50% / 12px 12px;
}
.frames-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .85rem; margin-top: 1rem; }
.frame-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: #fffcf4;
}
.frame-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
}
.frame-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: .5rem;
  background: repeating-conic-gradient(#efe7d7 0% 25%, #fffdfa 0% 50%) 50% / 14px 14px;
  border: 1px solid var(--line);
}
.frame-meta { font-size: .85rem; color: var(--muted); }
.frame-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.danger-outline { border-color: #e6b8b3; color: #94291f; }
.danger-outline:hover { background: #fbeae8; }
.ai-meter-wrap { margin-top: .75rem; }
.ai-meter { height: .55rem; border-radius: 99px; background: #efe7d7; overflow: hidden; }
.ai-meter span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #f8cc45, #a45d0a); transition: width .25s ease; }
.ai-current { margin-top: .8rem; padding: .7rem .9rem; border-radius: .7rem; background: #f3eee5; font-size: .92rem; }
.inline-help { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.inline-help summary { cursor: pointer; font-weight: 670; color: #3a2709; }
.inline-help p, .help-steps { margin-top: .5rem; line-height: 1.55; }
.help-steps { padding-left: 1.2rem; display: grid; gap: .35rem; }
.feedback { margin-top: 1rem; padding: .75rem 1rem; border-radius: .75rem; background: #ddf1e2; color: #1b5136; font-weight: 650; }
.feedback.is-error { background: #fbe4e2; color: #94291f; }

.gold-overview {
  padding-block: clamp(2.5rem, 6vw, 4.8rem);
  border-top: 1px solid #ecddad;
  border-bottom: 1px solid #ecddad;
  background: linear-gradient(160deg, #fffaf0, #fff1c8);
}
.gold-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.gold-heading h2 { font-size: clamp(1.8rem, 3.75vw, 2.8rem); }
.gold-heading p { margin-top: .48rem; color: var(--muted); }
.gold-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.55rem; }
.gold-feature {
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  border: 1px solid #eee0bd;
  border-radius: 1.2rem;
  background: #fffdfa;
  box-shadow: 0 .45rem 1.25rem #5536160c;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .85rem;
  border-radius: .78rem;
  color: #85520c;
  background: #fff1ca;
  font-size: 1.2rem;
  font-weight: 750;
}
.gold-feature:nth-child(3n + 2) .feature-icon { background: #f4e8ff; color: #654184; }
.gold-feature:nth-child(3n) .feature-icon { background: #e2f2e9; color: #26664f; }
.gold-feature p { margin-top: .45rem; color: var(--muted); line-height: 1.55; }

.guide {
  padding-block: clamp(2.5rem, 6vw, 4.4rem);
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.steps-grid.four-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-subtitle { margin-top: 2rem; font-size: 1.15rem; color: #3a2709; }
.guide-subtitle + .steps-grid { margin-top: .9rem; }
.step-card code { font-size: .88em; background: #fff1ca; padding: .1rem .32rem; border-radius: .3rem; word-break: break-word; }
.guide-alert {
  max-width: 64rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid #e5bf63;
  border-radius: .95rem;
  background: #fff6db;
  color: #4b330c;
  line-height: 1.55;
}
.guide-support {
  max-width: 64rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid #bdd3fb;
  border-radius: .95rem;
  background: #eef4ff;
  color: #163366;
  text-align: center;
  line-height: 1.55;
}
.guide-support a { color: #0055d4; text-decoration: underline; }
.step-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fffcf4;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: var(--gold);
  color: #2a1a06;
  font-weight: 780;
}
.step-card p { margin-top: .45rem; color: var(--muted); line-height: 1.55; }
.faq-list { max-width: 52rem; margin: 1.8rem auto 0; display: grid; gap: .65rem; }
.faq-item {
  padding: .95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: #fffdfa;
}
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin-top: .55rem; color: var(--muted); line-height: 1.55; }

dialog {
  width: min(35rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.15rem, 4vw, 2rem);
  border: 1px solid #e5bf63;
  border-radius: 1.35rem;
  color: #231d17;
  background: #fffdfa;
  box-shadow: 0 1.2rem 3.75rem #231d1740;
}
dialog::backdrop { background: #21180d88; backdrop-filter: blur(3px); }
dialog h2 { margin-top: .5rem; font-size: 1.45rem; }
.dismiss {
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  border-radius: 50%;
  color: #695e4f;
  background: #f5efe3;
  font-size: 1.3rem;
}
.dismiss:hover { background: #f0e1bd; }
#username-field, #promo-field { margin-top: 1.05rem; }
#username-field label, #promo-field label { display: block; margin-bottom: .32rem; font-weight: 670; }
#username-help { margin-top: .33rem; color: var(--muted); font-size: .875rem; }
.promo-input-row { display: flex; gap: .5rem; }
.promo-input-row input {
  flex: 1;
  min-width: 0;
  padding: .68rem .85rem;
  border: 1px solid #d9c094;
  border-radius: .6rem;
  background: #fffdf6;
}
.promo-input-row button { white-space: nowrap; }
.promo-status { margin-top: .35rem; font-size: .88rem; font-weight: 650; color: #1b5136; }
.promo-status.is-error { color: #94291f; }
.card-head, .line > div { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
h2, h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -.025em; }
#status {
  border-radius: 99px;
  padding: .28rem .65rem;
  color: #695e4f;
  background: #f3eee5;
  font-size: .875rem;
  font-weight: 700;
}
#status[data-state="pending"] { color: #634600; background: #fff0c4; }
#status[data-state="paid"] { color: #1b5136; background: #ddf1e2; }
dt { color: var(--muted); }
dd { min-width: 0; max-width: 65%; overflow-wrap: anywhere; text-align: right; font-weight: 670; font-variant-numeric: tabular-nums; }
.copy-dd { display: inline-flex; align-items: center; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.copy-btn { min-height: 1.9rem; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: .45rem; background: #fff9ea; font-size: .78rem; }
.line { display: grid; gap: .65rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

button, .primary, .secondary, .zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .58rem .92rem;
  border: 1px solid transparent;
  border-radius: .67rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary { color: #2a1a06; background: var(--gold); }
.primary:hover { background: #edbe44; }
.nav-action { border-radius: 99px; }
#create { width: 100%; margin-top: 1.15rem; }
button:disabled { opacity: .6; cursor: wait; }
.secondary { border-color: #e7d9c0; background: #fffdfa; color: #5e421c; }
.secondary:hover { background: #fff1d1; }
.error { margin-top: .7rem; color: #94291f; }
#payment-action { display: grid; justify-items: center; gap: .7rem; margin-top: 1rem; }
.qr-buttons { width: 100%; }
#qr { display: block; width: min(210px, 100%); height: auto; border: 1px solid var(--line); border-radius: .7rem; image-rendering: pixelated; background: #fff; }
#qr-caption { color: var(--muted); text-align: center; line-height: 1.5; font-size: .92rem; }
#confirmed { margin-top: 1rem; color: #22633f; font-weight: 650; }
#done-actions { margin-top: .9rem; }

.admin-balance { margin-top: .85rem; padding: .75rem .9rem; border-radius: .75rem; background: #fff4d5; font-size: .92rem; }
.admin-tools { display: grid; grid-template-columns: 1fr auto; gap: .55rem; margin-top: .8rem; }
.admin-orders { display: grid; gap: .6rem; margin-block: .9rem; max-height: 20rem; overflow-y: auto; }
.admin-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  font-size: .88rem;
}
.admin-order-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.admin-order button { min-height: 2.15rem; padding: .3rem .65rem; font-size: .8rem; white-space: nowrap; }

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem 2.2rem;
}
.footer-note { color: var(--muted); font-size: .88rem; }
.zalo {
  position: fixed;
  z-index: 4;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: #0068ff;
  box-shadow: 0 .55rem 1.5rem #0068ff45;
  animation: zalo-shake 2.4s ease-in-out infinite;
}
.zalo::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #0068ff88;
  animation: zalo-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.zalo:hover { background: #0055d4; animation-play-state: paused; }
.zalo-icon { display: block; width: 2.1rem; height: 2.1rem; }

@keyframes zalo-shake {
  0%, 55%, 100% { transform: rotate(0deg) scale(1); }
  60%, 72% { transform: rotate(-10deg) scale(1.06); }
  66%, 78% { transform: rotate(10deg) scale(1.06); }
  84% { transform: rotate(-6deg) scale(1.03); }
  90% { transform: rotate(4deg) scale(1); }
}

@keyframes zalo-pulse {
  0% { transform: scale(.95); opacity: .75; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .zalo, .zalo::before { animation: none; }
}

@media (max-width: 54rem) {
  :root { scroll-padding-top: 7.5rem; }
  .top { min-height: 0; grid-template-columns: 1fr auto; row-gap: .45rem; padding-block: .55rem; }
  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: .12rem;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding-inline: clamp(.55rem, 2.2vw, .9rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-height: 0; padding-block: 2rem 1.65rem; }
  .hero-visual img { max-height: 22rem; }
  .plans { grid-template-columns: minmax(0, 30rem); justify-content: center; }
  .mgr-grid, .gold-features, .steps-grid, .steps-grid.four-steps, .admin-tools { grid-template-columns: 1fr; }
  .contact { padding-bottom: 4.8rem; }
}

@media (max-width: 34rem) {
  .order-lookup, .account-lookup { flex-direction: column; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .line > div { align-items: flex-start; }
  dd { max-width: 60%; }
}
