/* Responsive spacing and the shared content grid. */
:root {
  --side: clamp(16px, 4vw, 48px);
  --edge: max(var(--side), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --measure: 1080px;
  --nav-top: max(8px, env(safe-area-inset-top, 0px));
  --section-space: clamp(36px, 4.8vw, 64px);
  --card-space: clamp(15px, 2.05vw, 22px);
  --gap: clamp(10px, 1.55vw, 16px);
}

.wrap, .nav, .mobilepanel {
  width: min(var(--measure), calc(100% - var(--edge) - var(--edge)));
  margin-inline: auto;
}

.nav {
  top: var(--nav-top);
  gap: 12px;
  padding: 6px 12px;
  border-radius: 15px;
}
.navlinks { align-items: center; gap: clamp(10px, 1.5vw, 20px); }
.rightnav { flex: 0 0 auto; gap: 6px; }
.nav .pill, .lang, .menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.nav .pill { padding: 7px 12px; white-space: nowrap; }
.lang { min-width: 44px; padding-inline: 4px; white-space: nowrap; }
.menu { display: none; min-width: 44px; padding: 0; line-height: 1; }
.mobilepanel {
  top: calc(var(--nav-top) + 62px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  gap: 0;
  border-radius: 15px;
  padding: 6px 15px;
}
.mobilepanel a { display: flex; align-items: center; min-height: 44px; }
.mobilepanel a + a { border-top: 1px solid #ffffff18; }

.hero {
  min-height: 0;
  padding: clamp(98px, 11vw, 140px) 0 clamp(34px, 5vw, 64px);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 86px);
  line-height: 1.04;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.hero .lead {
  max-width: 510px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
.heroart { opacity: .82; }
.actions { gap: 9px; margin-top: 20px; }
.actions a, .glass .primary, #apply .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  text-align: center;
  line-height: 1.3;
}
.micro { max-width: 100%; gap: 7px 15px; margin-top: 20px; line-height: 1.35; }

section { padding-block: var(--section-space); scroll-margin-top: calc(var(--nav-top) + 62px); }
.sectionhead { max-width: 780px; margin-bottom: clamp(14px, 2.1vw, 25px); }
.sectionhead p { margin: 0; }
h2 { font-size: clamp(28px, 3.75vw, 54px); margin: 9px 0 12px; overflow-wrap: anywhere; }
h3 { margin-bottom: 8px; }
p, .muted { line-height: 1.55; }
.muted { font-size: 1rem; }
.glass {
  min-width: 0;
  padding: var(--card-space);
  border-radius: clamp(15px, 1.8vw, 21px);
}
.glass p { margin: 9px 0 0; }
.grid3, .grid2, .steps, .calculator { gap: var(--gap); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { min-height: 0; }
.stepnum { margin-bottom: 12px; }
.featureicon { font-size: 27px; margin-bottom: 12px; }
.fullpurple { padding: clamp(17px, 3.5vw, 37px); }
.big-num { margin: 10px 0; overflow-wrap: anywhere; }
.glass .price { font-size: clamp(26px, 3vw, 39px); overflow-wrap: anywhere; }
.perks { margin: 12px 0; }
.perks li { margin: 7px 0; line-height: 1.45; }
.faqitem { padding: 0; }
.faqitem summary { min-height: 44px; padding: 12px 28px 12px 0; overflow-wrap: anywhere; }
.faqitem summary:after { top: 8px; right: 4px; }
.faqitem p { margin: 0 0 12px; font-size: 1rem; }
.footer { padding-block: 20px; }
.footer .wrap { gap: 10px; }
.notice { padding: 10px; overflow-wrap: anywhere; }

.calculator { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.inputrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.field { min-width: 0; gap: 4px; margin-bottom: 10px; }
.field label { font-size: .875rem; line-height: 1.3; }
.field input:not([type="checkbox"]), .field select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 1rem;
}
.field input[type="checkbox"] { width: 1rem; min-height: 1rem; accent-color: #a45bea; }
.field select {
  appearance: none;
  padding-right: 32px;
  background: linear-gradient(45deg, transparent 50%, #d2a9f4 50%) calc(100% - 17px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, #d2a9f4 50%, transparent 50%) calc(100% - 12px) 50% / 5px 5px no-repeat, #0b0711;
}
.toggle { gap: 4px; padding: 4px; }
.toggle button { min-width: 0; min-height: 44px; padding: 7px 5px; }
.calcResult { min-height: 0; }
.resultline { align-items: center; gap: 8px; padding: 8px 0; }
.resultline span, .resultline b { min-width: 0; overflow-wrap: anywhere; }
.resultline b { text-align: right; }
.chart { height: clamp(140px, 23vw, 180px); margin-top: 13px; }

.orb {
  isolation: isolate;
  box-shadow: inset 10px 8px 18px #ffffff2d, inset -22px -20px 30px #0009, 0 16px 70px #8b38e34b;
}
.orb:after { content: ""; position: absolute; inset: 8%; border: 1px solid #ffffff3a; border-radius: 50%; pointer-events: none; }
.orb img { display: block; max-width: 48%; max-height: 48%; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 3px 6px #0009); }
.token-sticker {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border-radius: 20px;
  transform: rotate(-18deg);
  background: linear-gradient(142deg, #d8bafc77, #7631ba6c 31%, #12071ad9 80%);
  border: 1px solid #c898fb9b;
  box-shadow: inset 8px 8px 12px #fff2, inset -9px -12px 20px #050009ba, 0 18px 35px #671fae60;
}
.token-sticker:before { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 1px solid #ffffff2b; }
.token-sticker img { width: 43%; height: 43%; filter: brightness(0) invert(1) drop-shadow(0 3px 7px #0009); }
.token-sticker.round { border-radius: 50%; transform: rotate(13deg); }
.token-sticker.small { width: 47px; height: 47px; border-radius: 14px; }
.token-sticker.pos-right { top: 8%; right: var(--edge); }
.token-sticker.pos-left { bottom: 5%; left: var(--edge); }
.token-sticker.pos-top { top: 8%; right: 8%; }
.sectionhead, .grid3, .grid2, .steps, .calculator { position: relative; z-index: 1; }
.icon-heading { display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.icon-heading .featureicon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 10px;
  color: #c98aff;
  background: linear-gradient(145deg, #7d2bc13b, #20112899);
  border: 1px solid #aa5bf34a;
  font-size: .875rem;
}
.icon-heading .featureicon svg { width: 20px; height: 20px; }

:where(a, button, input, select, summary):focus-visible { outline: 2px solid #d3a4ff; outline-offset: 3px; }

@media (max-width: 900px) {
  .menu { display: inline-flex; }
  .heroart { top: 21%; right: -19%; opacity: .42; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 > .glass:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  :root { --section-space: 33px; }
  .nav { gap: 4px; padding-inline: 8px; }
  .nav .logo { font-size: clamp(10px, 3.2vw, 14px); letter-spacing: -.04em; }
  .nav .pill { padding-inline: 8px; font-size: .75rem; }
  .rightnav { gap: 3px; }
  .hero { padding-top: calc(var(--nav-top) + 70px); padding-bottom: 27px; }
  .hero h1 { font-size: clamp(23px, 8vw, 48px); line-height: 1.08; margin: 11px 0 13px; }
  .heroart { top: auto; bottom: -118px; right: -94px; width: 350px; height: 364px; opacity: .21; transform: none; }
  .orb.one { width: 144px; height: 144px; }
  .orb.two { width: 76px; height: 76px; }
  .orb.three { width: 57px; height: 57px; }
  .devil { width: 150px; height: 210px; }
  .eyes { top: 64px; left: 32px; width: 84px; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 15px; }
  .actions a { font-size: .875rem; }
  .micro { margin-top: 13px; }
  .grid3, .grid2, .steps { grid-template-columns: minmax(0, 1fr); }
  .grid3 > .glass:last-child { grid-column: auto; }
  h2 { font-size: clamp(24px, 6.7vw, 37px); }
  h3 { font-size: 1.05rem; }
  .token-sticker { opacity: .32; width: 42px; height: 42px; }
  .token-sticker.small { width: 35px; height: 35px; }
}

@media (max-width: 370px) {
  .inputrow { grid-template-columns: minmax(0, 1fr); }
  .nav .logo { font-size: 10px; }
  .nav .pill { padding-inline: 6px; }
}
