:root {
  --emerald: #0A7E54;
  --emerald-hi: #10B981;
  --emerald-d: #066341;
  --emerald-dd: #053D29;
  --forest: #07291C;
  --lime: #A3E635;
  --lime-d: #75B212;
  --ink: #0B261C;
  --body: #2C4A3E;
  --mute: #4E6E61;
  --bg: #F2FBF6;
  --tint: #E2F7EC;
  --card: #FFFFFF;
  --line: #CBEBD9;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;
  --danger-line: #FECACA;
  --warn: #B45309;
  --warn-bg: #FFFBEB;
  --warn-line: #FDE68A;
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --clay: 0 18px 40px -18px rgba(6, 99, 65, .28), 0 4px 10px -4px rgba(6, 99, 65, .1), inset 0 -6px 0 rgba(10, 126, 84, .08), inset 0 2px 0 #fff;
  --clay-hover: 0 26px 50px -18px rgba(6, 99, 65, .38), 0 6px 14px -4px rgba(6, 99, 65, .14), inset 0 -6px 0 rgba(10, 126, 84, .08), inset 0 2px 0 #fff;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
p, li, dd { text-wrap: pretty; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip {
  position: fixed;
  left: -999px;
  top: 10px;
  z-index: 120;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus { left: 10px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--emerald-d);
  background: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(10, 126, 84, .1), 0 4px 12px -6px rgba(6, 99, 65, .28);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-hi);
  flex: none;
  animation: pulse 2s ease-in-out infinite;
}
.pulse-dot.is-err { background: var(--danger); animation: none; }

/* Buttons — tactile 3D clay push buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  background: var(--emerald);
  border: 0;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--emerald-d), 0 16px 24px -10px rgba(6, 99, 65, .55), inset 0 2px 0 rgba(255, 255, 255, .28);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--emerald-d), 0 22px 28px -10px rgba(6, 99, 65, .55), inset 0 2px 0 rgba(255, 255, 255, .28);
}
.btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--emerald-d), 0 8px 14px -8px rgba(6, 99, 65, .55), inset 0 2px 0 rgba(255, 255, 255, .28);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-sm { font-size: .9rem; padding: 9px 18px; min-height: 40px; }
.btn-lg { font-size: 1.05rem; padding: 15px 28px; position: relative; overflow: hidden; }
.btn-lg:not(.btn-ghost):not(.btn-dark-ghost)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .42) 50%, transparent 65%) -150% 0/250% 100% no-repeat;
  animation: shine 4.2s ease-in-out infinite;
  pointer-events: none;
}
.btn-ghost {
  color: var(--emerald-d);
  background: #fff;
  box-shadow: 0 6px 0 var(--line), 0 16px 24px -12px rgba(6, 99, 65, .24);
}
.btn-ghost:hover:not(:disabled) {
  box-shadow: 0 8px 0 var(--line), 0 22px 28px -12px rgba(6, 99, 65, .3);
}
.btn-ghost:active:not(:disabled) {
  box-shadow: 0 2px 0 var(--line), 0 8px 14px -8px rgba(6, 99, 65, .24);
}
.btn-dark-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 6px 0 rgba(4, 30, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-dark-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 8px 0 rgba(4, 30, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-dark-ghost:active:not(:disabled) {
  box-shadow: 0 2px 0 rgba(4, 30, 20, .45);
}
.btn-lime {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 6px 0 var(--lime-d), 0 18px 28px -10px rgba(0, 0, 0, .42), inset 0 2px 0 rgba(255, 255, 255, .48);
}
.btn-lime:hover:not(:disabled) {
  box-shadow: 0 8px 0 var(--lime-d), 0 24px 32px -10px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .48);
}
.btn-lime:active:not(:disabled) {
  box-shadow: 0 2px 0 var(--lime-d), 0 8px 14px -8px rgba(0, 0, 0, .42), inset 0 2px 0 rgba(255, 255, 255, .48);
}
.btn-discord {
  color: #fff;
  background: #5865F2;
  box-shadow: 0 6px 0 #3C47BD, 0 16px 24px -10px rgba(88, 101, 242, .5), inset 0 2px 0 rgba(255, 255, 255, .24);
}
.btn-discord:hover:not(:disabled) {
  box-shadow: 0 8px 0 #3C47BD, 0 22px 28px -10px rgba(88, 101, 242, .55), inset 0 2px 0 rgba(255, 255, 255, .24);
}
.btn-discord:active:not(:disabled) {
  box-shadow: 0 2px 0 #3C47BD;
}
.btn-block { width: 100%; }

/* Sticky pill nav */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: padding .2s ease; }
.nav-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(6, 99, 65, .36), inset 0 -3px 0 rgba(10, 126, 84, .06);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 6px 12px -6px rgba(6, 99, 65, .45);
}
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand-name span { color: var(--emerald); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-weight: 600;
  font-size: .93rem;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--body);
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.on { background: var(--tint); color: var(--emerald-d); }

.langsw {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--tint);
  font-size: .8rem;
  font-weight: 700;
}
.langsw button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  min-height: 32px;
  border-radius: 999px;
  color: var(--mute);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.langsw button[aria-pressed="true"],
.langsw button.active {
  background: #fff;
  color: var(--emerald-d);
  box-shadow: 0 2px 6px -2px rgba(6, 99, 65, .36);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--emerald-d);
  transition: transform .2s ease, top .2s ease;
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.is-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 38px 0 72px; position: relative; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero h1 { margin: 22px 0 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--emerald);
  background: linear-gradient(transparent 68%, var(--lime) 68%, var(--lime) 92%, transparent 92%);
}
.lead { font-size: 1.12rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.chips li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.chips li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230B261C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}

/* Hero Art — morphing blob + dual tilted UI cards + 3 floating 3D clay icons */
.hero-art { position: relative; height: 560px; --mx: 0; --my: 0; }
.blob {
  position: absolute;
  inset: 6% 2% 6% 6%;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background: radial-gradient(circle at 28% 24%, #4ADE80, var(--emerald-hi) 46%, var(--emerald-d));
  box-shadow: inset 0 -24px 40px rgba(5, 61, 41, .42), inset 0 18px 30px rgba(255, 255, 255, .25), 0 40px 60px -30px rgba(6, 99, 65, .62);
  animation: morph 14s ease-in-out infinite alternate;
  translate: calc(var(--mx) * 10px) calc(var(--my) * 10px);
  transition: translate .4s ease-out;
}
.stage-card {
  position: absolute;
  border-radius: 26px;
  overflow: hidden;
}
.stage-back {
  width: 244px;
  left: 50%;
  top: 72px;
  margin-left: -242px;
  z-index: 1;
  background: #fff;
  padding: 18px;
  color: var(--ink);
  box-shadow: 0 28px 48px -20px rgba(5, 61, 41, .5), inset 0 -5px 0 rgba(10, 126, 84, .08);
  transform: rotate(-6deg);
  animation: pop .9s cubic-bezier(.2, .9, .3, 1.2) both;
  translate: calc(var(--mx) * -14px) calc(var(--my) * -14px + var(--sy, 0) * -.08px);
  transition: translate .25s ease-out;
}
.stage-back-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--emerald-d);
  margin-bottom: 12px;
}
.stage-metric {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
  margin-bottom: 10px;
}
.stage-metric strong {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stage-metric span { font-size: .76rem; font-weight: 600; color: var(--mute); }
.stage-latest {
  font-size: .78rem;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--ink);
}
.stage-latest small { display: block; color: var(--mute); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stage-latest b { display: block; margin-top: 2px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-latest span { font-family: var(--mono); font-size: .74rem; color: var(--emerald-d); }

.stage-front {
  width: 312px;
  left: 50%;
  top: 96px;
  margin-left: -102px;
  z-index: 2;
  background: var(--forest);
  color: #DDF7EA;
  padding: 8px;
  box-shadow: 0 34px 56px -20px rgba(4, 30, 20, .68), inset 0 0 0 2px rgba(91, 221, 168, .28);
  transform: rotate(3.5deg);
  animation: pop .9s cubic-bezier(.2, .9, .3, 1.2) .15s both;
  translate: calc(var(--mx) * 22px) calc(var(--my) * 22px + var(--sy, 0) * -.04px);
  transition: translate .25s ease-out;
}
.term-inner {
  border-radius: 18px;
  background: #0A1F17;
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .76rem;
  font-weight: 600;
  color: #9EC7B5;
}
.term-dots { display: flex; gap: 5px; }
.term-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.term-dots i:first-child { background: var(--lime); }
.term-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(163, 230, 53, .14);
  color: var(--lime);
}
.term-body {
  padding: 14px;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: .8rem;
}
.term-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
}
.term-row span:first-child { color: #9EC7B5; }
.term-row .ok { color: var(--lime); font-weight: 600; }
.term-foot {
  padding-top: 4px;
  font-size: .72rem;
  color: #7FA896;
  text-align: center;
}

.clay {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 18px 18px rgba(5, 61, 41, .32));
  animation: float 6s ease-in-out infinite;
  margin: calc(var(--my) * -32px + var(--sy, 0) * -.12px) 0 0 calc(var(--mx) * -32px);
  transition: margin .25s ease-out;
  pointer-events: none;
}
.clay-a { width: 132px; left: -4%; top: -4%; }
.clay-b { width: 118px; right: -2%; top: 38%; animation-delay: -2s; }
.clay-c { width: 126px; left: 4%; bottom: 1%; animation-delay: -4s; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.stats div { background: var(--card); border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--clay); }
.stats dt {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats dd { margin-top: 8px; font-size: .92rem; font-weight: 600; color: var(--body); }

/* Sections */
.sec { padding: 84px 0; }
.sec-tint { background: var(--tint); border-radius: 56px; margin-inline: 12px; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { margin-top: 16px; }
.sec-lead { margin-top: 14px; font-size: 1.06rem; }
.sec-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.sec-bar .sec-head { margin-bottom: 0; }

/* Live Script Grid */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--clay);
  font-family: var(--mono);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.script-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.search-box {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--mute);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  padding: 9px 14px 9px 40px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(10, 126, 84, .05);
  transition: border-color .15s ease;
}
.search-box input:focus { outline: none; border-color: var(--emerald); }
.filter-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--tint);
  gap: 2px;
}
.filter-pills button {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--mute);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.filter-pills button[aria-pressed="true"] {
  background: #fff;
  color: var(--emerald-d);
  box-shadow: 0 2px 6px -2px rgba(6, 99, 65, .32);
}

.script-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scard {
  background: var(--card);
  border: 0;
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--clay);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .scard:hover { transform: translateY(-4px); box-shadow: var(--clay-hover); }
  .scard:hover .sget { background: var(--emerald); color: #fff; }
}
.scard:active { transform: translateY(1px); }
.scard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.spill i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.spill.active { background: var(--tint); color: var(--emerald-d); }
.spill.active i { background: var(--emerald-hi); }
.spill.inactive { background: #EEF2F0; color: var(--mute); }
.spill.inactive i { background: #8FA39A; }
.sver {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  color: var(--emerald-d);
  background: var(--bg);
  padding: 3px 9px;
  border-radius: 8px;
}
.sname { font-size: 1.08rem; font-weight: 800; color: var(--ink); letter-spacing: -.015em; }
.sfoot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.smeta {
  font-size: .8rem;
  font-weight: 600;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.sget {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--emerald-d);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.sget svg { width: 14px; height: 14px; }
.scard-skel { cursor: default; }

/* Script modal */
.smodal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.smodal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.smodal-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--emerald-d);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.smodal-close:hover { background: var(--line); }
.smodal-close svg { width: 18px; height: 18px; }
.code-box {
  background: var(--forest);
  color: var(--lime);
  border-radius: 16px;
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 14px 0 16px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .35);
}
.smodal-note {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: .88rem;
  color: var(--body);
  margin: 14px 0 18px;
}
.smodal-note.is-warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: #78350F;
}
.smodal-actions { display: grid; gap: 10px; }
.scripts-more {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.scripts-more svg { transition: transform .2s var(--ease-out); }
.scripts-more button[aria-expanded="true"] svg { transform: rotate(180deg); }

.scard-skel {
  min-height: 142px;
  background: linear-gradient(100deg, #fff 30%, var(--bg) 50%, #fff 70%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
}
.state-box {
  grid-column: 1 / -1;
  background: var(--card);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--clay);
  display: grid;
  justify-items: center;
  gap: 12px;
}
.state-box p { color: var(--mute); font-size: .96rem; max-width: 38ch; }

/* Setup 3 steps (modeled after NgodingYuk practice cards) */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.step-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 20px 20px 24px;
  box-shadow: var(--clay);
  counter-increment: st;
  display: flex;
  flex-direction: column;
}
.step-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.step-h h3::before {
  content: counter(st, decimal-leading-zero);
  color: var(--emerald);
  margin-right: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: .95rem;
}
.step-h span {
  margin-left: auto;
  font-size: .76rem;
  font-weight: 700;
  color: var(--emerald-d);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.step-card > p { font-size: .95rem; margin-top: 8px; }

.mock {
  position: relative;
  min-height: 168px;
  border-radius: var(--r-sm);
  background: var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-size: .84rem;
  box-shadow: inset 0 3px 8px rgba(6, 99, 65, .11);
}
.mock-dark { background: var(--forest); color: #DDF7EA; }
.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 11px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 600;
}
.m-row small { font-family: var(--mono); font-size: .74rem; color: var(--mute); font-weight: 500; }
.m-row.is-ok { border-color: var(--lime-d); background: #F4FCE3; }
.m-key {
  font-family: var(--mono);
  font-size: .82rem;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--emerald-d);
  font-weight: 600;
  box-shadow: 0 5px 12px -8px rgba(6, 99, 65, .35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m-key i {
  font-style: normal;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  background: var(--lime);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
}
.m-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.m-tags span {
  font-family: var(--mono);
  font-size: .76rem;
  background: #fff;
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 9px;
  box-shadow: 0 3px 0 var(--line);
}
.m-code {
  font-size: .8rem;
  line-height: 1.65;
  color: #DDF7EA;
  white-space: pre;
}
.m-code .k { color: #7FA896; }
.m-code .v { color: var(--lime); font-weight: 600; }
.m-run {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  padding: 4px 12px 4px 23px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--lime-d);
}
.m-run::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -4.5px;
  border: 4.5px solid transparent;
  border-left: 7px solid var(--ink);
  border-right: 0;
}

/* Bento features + ecosystem */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  grid-column: span 2;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--clay);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--clay-hover); }
  .card:hover .ico { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
}
.card h3 { margin-top: 14px; }
.card p { margin-top: 8px; font-size: .96rem; }
.ico {
  width: 84px;
  height: 84px;
  margin: -8px 0 0 -8px;
  filter: drop-shadow(0 10px 10px rgba(6, 99, 65, .2));
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4);
}
.card-wide {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 32px;
  align-items: center;
}
.card-wide .badge { display: inline-block; margin-top: 10px; }
.card-wide h3 { font-size: 1.5rem; margin-top: 10px; }
.card-wide .ticks { margin-top: 18px; }
.card-span3 { grid-column: span 3; }
.card-emerald {
  background: linear-gradient(155deg, #10B981, var(--emerald-d));
  box-shadow: 0 20px 42px -18px rgba(6, 99, 65, .62), inset 0 -6px 0 rgba(5, 61, 41, .28), inset 0 2px 0 rgba(255, 255, 255, .28);
  color: #E2FBF0;
}
.card-emerald h3 { color: #fff; }
.card-emerald p { color: #E2FBF0; }

/* Ecosystem live flow panel inside card-wide */
.eco-box {
  background: var(--bg);
  border-radius: 22px;
  padding: 20px;
  box-shadow: inset 0 3px 10px rgba(6, 99, 65, .1);
  display: grid;
  gap: 12px;
}
.eco-list { display: grid; gap: 10px; }
.eco-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px -6px rgba(6, 99, 65, .2);
  transition: border-color .25s ease, transform .25s ease;
}
.eco-item.on { border-color: var(--emerald); transform: translateX(4px); }
.eco-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--emerald-d);
  display: grid;
  place-items: center;
  flex: none;
}
.eco-item.on .eco-dot { background: var(--emerald); color: #fff; }
.eco-item b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.25; }
.eco-item small { display: block; font-size: .8rem; color: var(--mute); }
.eco-scripts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 2px dashed var(--line);
}
.eco-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--line);
}
.eco-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-hi); }
.eco-chip.off i { background: #94A39B; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 920px; }
.price {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--clay);
  display: flex;
  flex-direction: column;
}
.price-pro {
  background: linear-gradient(155deg, var(--emerald-dd), var(--forest));
  color: #D5F9E8;
  box-shadow: 0 24px 46px -20px rgba(4, 30, 20, .78), inset 0 -6px 0 rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .16);
}
.price-pro h3, .price-pro .price-num { color: #fff; }
.price-ico {
  position: absolute;
  right: 10px;
  top: -34px;
  width: 122px;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .35));
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.price h3 { font-size: 1.35rem; }
.price-num {
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.price-num small, .price-num span.unit {
  font-size: .95rem;
  font-weight: 600;
  opacity: .72;
  letter-spacing: 0;
}
.price-sub { font-size: .95rem; margin-top: 6px; }
.ticks { margin-top: 22px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 32px; font-size: .96rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230B261C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.price-pro .ticks b { color: #fff; }
.price-foot { margin-top: auto; padding-top: 26px; display: grid; gap: 12px; }
.price-note { font-size: .84rem; opacity: .78; }

/* Custom Services / Commissions */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--clay);
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover { transform: translateY(-4px); box-shadow: var(--clay-hover); }
  .svc-card:hover .ico { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
}
.svc-card h3 { margin-top: 12px; font-size: 1.28rem; }
.svc-card p { margin-top: 8px; font-size: .96rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 16px; }
.svc-tags span {
  font-size: .76rem;
  font-weight: 700;
  color: var(--emerald-d);
  background: var(--tint);
  padding: 4px 11px;
  border-radius: 999px;
}
.svc-order { margin-top: 22px; }
.svc-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.svc-order-head h3 { font-size: 1.32rem; }
.svc-order-head p { font-size: .95rem; margin-top: 4px; color: var(--body); max-width: 46ch; }
.svc-order-head .badge { margin-bottom: 0; }

/* Feedback & Bug Report */
.fb-in { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: start; }
.fb-in .sec-head { margin-bottom: 0; position: sticky; top: 110px; }
.fb-art { width: 112px; margin-top: 20px; filter: drop-shadow(0 14px 14px rgba(6, 99, 65, .24)); animation: float 6s ease-in-out infinite; }
.fb-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--clay);
}
.fb-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--tint);
  gap: 4px;
  margin-bottom: 18px;
}
.fb-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--mute);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.fb-tabs button[aria-pressed="true"] {
  background: #fff;
  color: var(--emerald-d);
  box-shadow: 0 3px 8px -2px rgba(6, 99, 65, .32);
}
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  line-height: 1.55;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea:focus { outline: none; border-color: var(--emerald); background: #fff; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* FAQ */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-in .sec-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { background: var(--card); border-radius: var(--r-md); box-shadow: var(--clay); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--ink);
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' stroke='%23066341' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; font-size: .96rem; }

/* Closing CTA */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 290px;
  align-items: center;
  gap: 24px;
  padding: 58px 54px;
  margin-bottom: 68px;
  border-radius: 44px;
  overflow: hidden;
  background: radial-gradient(circle at 86% 20%, #34D399, transparent 46%), linear-gradient(148deg, var(--emerald), var(--emerald-dd));
  box-shadow: 0 34px 60px -30px rgba(5, 61, 41, .88), inset 0 -10px 0 rgba(4, 30, 20, .32), inset 0 3px 0 rgba(255, 255, 255, .25);
}
.cta h2 { color: #fff; }
.cta-copy p { color: #DCFCE7; margin: 16px 0 28px; font-size: 1.06rem; max-width: 32em; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-copy .cta-fine { margin: 22px 0 0; font-size: .85rem; font-weight: 600; opacity: .88; }
.cta-art { width: 280px; filter: drop-shadow(0 24px 24px rgba(4, 30, 20, .5)); animation: float 6s ease-in-out infinite; }

/* Footer */
.foot { padding: 20px 0 44px; }
.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 2px dashed var(--line);
}
.foot-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 320px; }
.foot-brand b { color: var(--ink); font-size: 1.1rem; }
.foot-brand p { font-size: .92rem; margin-top: 2px; }
.foot-links { display: flex; gap: 52px; flex-wrap: wrap; }
.foot-links h5 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.foot-links a { display: block; font-size: .95rem; font-weight: 600; padding: 5px 0; color: var(--ink); }
.foot-links a:hover { color: var(--emerald); }
.foot-btm { display: flex; justify-content: space-between; padding-top: 22px; font-size: .88rem; color: var(--mute); }

/* ================= SHOP PAGES (shared claymorphism) ================= */
.shop-shell { padding: 36px 0 84px; }
.shop-head { max-width: 640px; margin-bottom: 36px; }
.shop-head h1 { margin-top: 14px; font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.shop-head p { margin-top: 10px; font-size: 1.04rem; }

.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; }
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--clay);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-5px); box-shadow: var(--clay-hover); }
  .pcard:hover .shop-ico { transform: translateY(-6px) rotate(-5deg) scale(1.06); }
}
.shop-ico {
  width: 90px;
  height: 90px;
  margin: -10px 0 8px -8px;
  filter: drop-shadow(0 12px 12px rgba(6, 99, 65, .22));
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4);
}
.pcard h2 { font-size: 1.65rem; margin-top: 4px; }
.pcard .desc { margin-top: 8px; font-size: .97rem; color: var(--body); }
.pcard-foot {
  margin-top: auto;
  padding-top: 26px;
  border-top: 2px dashed var(--line);
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pcard-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pcard-price small { font-size: .86rem; font-weight: 600; color: var(--mute); }
.pcard-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 5px 0 var(--emerald-d);
}

/* Checkout & Order single-column card */
.checkout-wrap { width: min(520px, 100% - 32px); margin: 26px auto 84px; }
.clay-card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--clay);
}
.clay-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.clay-card-ico {
  width: 82px;
  height: 82px;
  margin: -10px -8px 0 0;
  flex: none;
  filter: drop-shadow(0 10px 10px rgba(6, 99, 65, .22));
}
.clay-card h1 { font-size: clamp(1.85rem, 4vw, 2.35rem); margin-top: 8px; }
.clay-card h1 span { color: var(--emerald); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 8px; }
.plan {
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 13px 8px;
  min-height: 68px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.plan:hover { border-color: var(--emerald); }
.plan.active {
  border-color: var(--emerald);
  background: var(--tint);
  box-shadow: 0 4px 0 var(--line);
}
.plan .d { font-weight: 800; font-size: .96rem; color: var(--ink); }
.plan .p { font-size: .78rem; font-weight: 600; color: var(--mute); margin-top: 3px; font-variant-numeric: tabular-nums; }

.field { margin-top: 14px; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--emerald); background: #fff; }
.field input#userkey { font-family: var(--mono); letter-spacing: .02em; }

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}
.total-row .lbl { font-size: .88rem; font-weight: 600; color: var(--mute); }
.total-row .val { font-size: 1.45rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.form-msg { margin-top: 14px; font-size: .88rem; font-weight: 600; min-height: 22px; }
.form-msg.is-err { color: var(--danger); }
.form-msg.is-ok { color: var(--emerald-d); }
.fine { color: var(--mute); font-size: .82rem; margin-top: 14px; text-align: center; }

/* Closed / empty shop state */
.closed {
  max-width: 460px;
  margin: 40px auto;
  text-align: center;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 40px 30px;
  box-shadow: var(--clay);
  display: grid;
  justify-items: center;
  gap: 12px;
}
.closed img { width: 96px; height: 96px; filter: drop-shadow(0 12px 12px rgba(6, 99, 65, .2)); }
.closed h1 { font-size: 1.7rem; }
.closed p { color: var(--mute); font-size: .96rem; margin-bottom: 8px; }

/* HWID-less consent modal */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 41, 28, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-back.show { display: flex; }
.modal {
  max-width: 460px;
  width: 100%;
  background: var(--card);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 32px 64px -20px rgba(4, 30, 20, .55), inset 0 -6px 0 rgba(10, 126, 84, .08);
  animation: scaleIn .22s var(--ease-out) both;
}
.modal h3 { font-size: 1.35rem; margin-bottom: 10px; }
.modal .mintro { font-size: .95rem; margin-bottom: 14px; }
.rules { display: grid; gap: 10px; margin-bottom: 16px; }
.rules li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  line-height: 1.5;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-line);
  color: #78350F;
}
.rules li.danger {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: #991B1B;
  font-weight: 600;
}
.rules li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin: 6px 0 20px;
  user-select: none;
}
.agree input { width: 20px; height: 20px; flex: none; accent-color: var(--emerald); margin-top: 2px; cursor: pointer; }
.modal-btns { display: flex; gap: 10px; }
.modal-btns .btn { flex: 1; }

/* Order done page */
.order-card { text-align: center; }
.status-ic {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--emerald);
  box-shadow: inset 0 -4px 0 rgba(10, 126, 84, .12);
}
.status-ic.is-warn { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 -4px 0 rgba(180, 83, 9, .14); }
.status-ic.is-err { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 -4px 0 rgba(185, 28, 28, .14); }
.status-ic svg { width: 32px; height: 32px; }
.spin {
  width: 50px;
  height: 50px;
  margin: 6px auto 18px;
  border: 4px solid var(--line);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: sp .9s linear infinite;
}
.order-sub { color: var(--body); font-size: .95rem; margin: 8px 0 20px; }
.keybox {
  background: var(--forest);
  color: var(--lime);
  border-radius: 16px;
  padding: 16px;
  font-family: var(--mono);
  font-size: .98rem;
  font-weight: 600;
  word-break: break-all;
  letter-spacing: .03em;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .35);
}
.order-actions { display: grid; gap: 12px; margin-top: 14px; }
.mailed { margin-top: 14px; font-size: .88rem; color: var(--mute); }
.mailed b { color: var(--ink); }
.redeem {
  text-align: left;
  margin-top: 24px;
  border-top: 2px dashed var(--line);
  padding-top: 20px;
}
.redeem h3 {
  font-size: .78rem;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.rstep { display: flex; gap: 12px; margin-bottom: 18px; }
.rnum {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--emerald-d);
  font-weight: 800;
  font-size: .86rem;
  display: grid;
  place-items: center;
}
.rbody { flex: 1; min-width: 0; }
.rbody p { font-size: .92rem; color: var(--body); margin-bottom: 10px; }
.rbody b { color: var(--ink); }
.rbody img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--line);
}
.rnote {
  font-size: .86rem;
  color: var(--body);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.rnote svg { width: 18px; height: 18px; flex: none; color: var(--emerald); margin-top: 2px; }
.home-link {
  display: inline-block;
  margin-top: 22px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--emerald-d);
}
.home-link:hover { text-decoration: underline; }
.reveal-form { display: grid; gap: 10px; margin-top: 12px; text-align: left; }
.is-warn-txt { color: var(--warn); }
.is-err-txt { color: var(--danger); }

/* Motion & scroll reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.scard.rv:nth-child(3n+2), .card.rv:nth-child(3n+2), .step-card.rv:nth-child(2) { transition-delay: .06s; }
.scard.rv:nth-child(3n), .card.rv:nth-child(3n), .step-card.rv:nth-child(3) { transition-delay: .12s; }
.rise { animation: rise .75s var(--ease-out) both; }
.lead.rise { animation-delay: .08s; }
.cta-row.rise { animation-delay: .16s; }
.chips.rise { animation-delay: .24s; }
.rv.in .m-row.is-ok { animation: pick 3.6s ease-in-out infinite; }
.rv.in .m-run { animation: tap 3.6s ease-in-out infinite; }
.rv.in .m-key i { animation: note 3.6s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; scale: .88; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes sp { to { transform: rotate(360deg); } }
@keyframes skel { to { background-position: -200% 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }
@keyframes shine { 0%, 62% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -13px; rotate: 3deg; } }
@keyframes morph { to { border-radius: 56% 44% 42% 58% / 44% 56% 46% 54%; } }
@keyframes pick { 0%, 30% { border-color: var(--line); background: #fff; } 40%, 100% { border-color: var(--lime-d); background: #F4FCE3; } }
@keyframes tap { 0%, 28%, 40%, 100% { scale: 1; } 34% { scale: .9; } }
@keyframes note { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

/* Tablet */
@media (max-width: 1020px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    flex-direction: column;
    background: #fff;
    padding: 12px;
    border-radius: 24px;
    box-shadow: var(--clay);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .burger { display: block; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { height: 500px; max-width: 520px; width: 100%; margin-inline: auto; }
  .script-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .card, .card-span3 { grid-column: span 3; }
  .card-wide { grid-column: span 6; grid-template-columns: 1fr; }
  .faq-in, .fb-in { grid-template-columns: 1fr; gap: 30px; }
  .faq-in .sec-head, .fb-in .sec-head { position: static; }
  .svc-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr 200px; padding: 46px 36px; }
  .cta-art { width: 200px; }
}

/* Mobile */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav .btn-sm { display: none; }
  .nav-in { gap: 10px; padding-left: 14px; }
  .hero { padding: 20px 0 48px; }
  .btn-lg { width: 100%; }
  .hero-art { height: 430px; }
  .stage-back { width: 184px; margin-left: -176px; top: 44px; padding: 14px; }
  .stage-front { width: 252px; margin-left: -82px; top: 108px; }
  .clay-a { width: 88px; left: -2%; top: -4%; }
  .clay-b { width: 78px; }
  .clay-c { width: 86px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats div { padding: 18px; }
  .sec { padding: 58px 0; }
  .sec-tint { border-radius: 36px; margin-inline: 0; }
  .script-grid { grid-template-columns: 1fr; gap: 12px; }
  .card, .card-span3, .card-wide { grid-column: span 6; padding: 24px; }
  .price-grid, .shop-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta { grid-template-columns: 1fr; padding: 38px 24px; border-radius: 32px; }
  .cta-art { width: 170px; justify-self: center; grid-row: 1; }
  .foot-links { gap: 30px; }
  .foot-btm { flex-direction: column; gap: 4px; }
  .clay-card, .fb-card { padding: 24px 20px; }
  .fb-row { grid-template-columns: 1fr; }
  .plans { gap: 8px; }
  .modal-btns { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
