:root {
  --sage: #F1F4EA;
  --white: #FFFFFF;
  --forest: #1C2A1E;
  --moss: #55634F;
  --rule: #D8DFCC;
  --honey: #F5B301;
  --honey-deep: #DB9D00;
  --honey-pale: #FFF3CC;
  --leaf: #2C6A3B;
  --leaf-deep: #1F4F2B;
  --leaf-pale: #DCEBDD;
  --bad: #A8261B;
  --head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sage); color: var(--forest); font: 400 1.0625rem/1.65 var(--text); }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-deep); }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .55em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 22ch; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; }
p { margin: 0 0 1em; }
.intro { font-size: 1.15rem; color: var(--moss); max-width: 40em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skiplink { position: absolute; left: -999px; }
.skiplink:focus { left: 10px; top: 10px; background: var(--white); padding: 8px 12px; z-index: 20; }

/* ---------- top bar ---------- */
.bar { background: var(--forest); color: #EEF1E6; position: relative; }
.bar__row { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: #fff; font: 700 1.2rem/1 var(--head); letter-spacing: -0.02em; }
.brand:hover { color: var(--honey); }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { color: #DDE3D3; text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 8px; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); }
.menu a.menu__cta { background: var(--honey); color: var(--forest); margin-left: 8px; }
.menu a.menu__cta:hover { background: #FFC93A; color: var(--forest); }
.menubtn { display: none; }
@media (max-width: 920px) {
  .menubtn { display: inline-block; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font: 700 .95rem var(--text); cursor: pointer; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 66px; z-index: 10; background: var(--forest); flex-direction: column; align-items: stretch; padding: 6px 20px 18px; }
  .menu.is-open { display: flex; }
  .menu a { padding: 12px 6px; }
  .menu a.menu__cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- page top ---------- */
.top { padding: 52px 0 44px; border-bottom: 1px solid var(--rule); background:
  radial-gradient(circle at 92% 0%, var(--honey-pale) 0, rgba(255, 243, 204, 0) 42%), var(--sage); }
.top--plain { padding-bottom: 28px; }
.trail { font-size: .92rem; color: var(--moss); margin-bottom: 14px; }
.trail a { color: var(--moss); }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 18px 0 0; font-weight: 600; font-size: .95rem; }
.checks li { position: relative; padding-left: 24px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 17px; background: var(--leaf); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.heads-up { margin: 16px 0 0; font-size: .95rem; color: var(--moss); max-width: 46em; }

/* ---------- the form bar ---------- */
.boost {
  position: relative; margin-top: 28px; max-width: 900px;
  background: var(--white); border: 2px solid var(--forest); border-radius: 16px;
  padding: 22px 24px 18px; box-shadow: 6px 6px 0 var(--forest);
}
.boost--off { padding: 20px 24px; box-shadow: none; border-color: var(--rule); }
.boost__hex {
  position: absolute; top: -26px; right: 22px; width: 64px; height: 72px;
  display: grid; place-items: center; background: var(--honey); color: var(--forest);
  font: 700 .8rem/1 var(--head); letter-spacing: .04em;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.boost--buy .boost__hex { background: var(--leaf); color: #fff; }
.boost__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 80px 14px 0; }
.boost__select select {
  font: 700 1rem var(--text); color: var(--forest); background: var(--sage); border: 1.5px solid var(--rule);
  border-radius: 10px; padding: 9px 34px 9px 12px; min-height: 42px; cursor: pointer;
}
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt span { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--rule); font-weight: 700; font-size: .95rem; cursor: pointer; background: var(--white); }
.opt span:hover { border-color: var(--forest); }
.opt input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); }
.opt input:focus-visible + span { outline: 3px solid var(--honey-deep); outline-offset: 2px; }
.boost__row { display: flex; gap: 12px; align-items: flex-end; }
.boost__field { flex: 1; min-width: 0; }
.boost__field > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.boost__field input {
  width: 100%; min-height: 54px; padding: 12px 16px; font: 500 1.05rem var(--text); color: var(--forest);
  background: var(--sage); border: 1.5px solid var(--rule); border-radius: 12px;
}
.boost__field input:focus { outline: none; border-color: var(--leaf); background: #fff; box-shadow: 0 0 0 3px var(--leaf-pale); }
.boost__field input[aria-invalid="true"] { border-color: var(--bad); }
.boost__note { margin: 10px 0 0; font-size: .88rem; color: var(--moss); }
.boost__err { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #FCE9E6; color: var(--bad); font-size: .95rem; font-weight: 600; }
.hpot { position: absolute; left: -6000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .boost { padding: 20px 16px 16px; box-shadow: 4px 4px 0 var(--forest); }
  .boost__hex { width: 52px; height: 58px; top: -22px; right: 14px; font-size: .7rem; }
  .boost__pick { margin-right: 56px; }
  .boost__row { flex-direction: column; align-items: stretch; }
}

/* ---------- buttons, tags ---------- */
.go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  background: var(--honey); color: var(--forest); border: 2px solid var(--forest); border-radius: 12px;
  font: 700 1.02rem var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.go:hover { background: #FFC93A; color: var(--forest); }
.go[disabled] { opacity: .7; cursor: progress; }
.go--dark { background: var(--forest); color: #fff; border-color: var(--forest); }
.go--dark:hover { background: var(--leaf-deep); color: #fff; }
.go--small { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.tag { display: inline-block; margin: 0 4px 6px 0; padding: 5px 11px; border-radius: 8px; background: var(--honey-pale); color: var(--forest); text-decoration: none; font-weight: 600; font-size: .9rem; }
.tag:hover { background: var(--honey); color: var(--forest); }
.tag--line { background: transparent; border: 1.5px solid var(--rule); padding: 3.5px 9.5px; color: var(--moss); }
.tag--line:hover { border-color: var(--forest); background: transparent; color: var(--forest); }

/* ---------- sections ---------- */
.sect { padding-top: 56px; padding-bottom: 56px; }
.sect--tint { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--white); border: 1.5px solid var(--rule); border-radius: 14px; padding: 18px 18px 12px; }
.tile__name { display: block; font: 700 1.1rem/1.2 var(--head); color: var(--forest); text-decoration: none; margin-bottom: 12px; }
.tile__name:hover { color: var(--leaf); }
.tile__links { margin-bottom: 4px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.flow { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.flow::before { content: ""; position: absolute; top: 22px; left: 30px; right: 30px; height: 2px; background: var(--rule); }
.flow li { counter-increment: f; position: relative; padding-top: 62px; color: var(--moss); }
.flow li::before {
  content: counter(f); position: absolute; top: 0; left: 0; width: 46px; height: 50px; display: grid; place-items: center;
  background: var(--honey); color: var(--forest); font: 700 1.1rem var(--head);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.flow strong { color: var(--forest); }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow::before { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; }
  .flow li { padding: 12px 0 0 64px; min-height: 50px; }
}

.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kit__item { display: block; padding: 20px; border-radius: 14px; background: var(--white); border-top: 5px solid var(--leaf); text-decoration: none; color: var(--moss); }
.kit__item strong { display: block; color: var(--forest); font: 500 1.05rem/1.3 var(--head); margin-bottom: 8px; }
.kit__item:hover strong { color: var(--leaf); }
@media (max-width: 760px) { .kit { grid-template-columns: 1fr; } }

.nudge { background: var(--honey); padding: 46px 0; }
.nudge h2 { font-weight: 700; }
.nudge__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nudge p { margin: 0; max-width: 40em; color: #3C3A1E; }
@media (max-width: 760px) { .nudge__row { flex-direction: column; align-items: flex-start; } }

.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.qa details { border-bottom: 1.5px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 4px; top: 22px; width: 10px; height: 10px; border-right: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.qa details p { color: var(--moss); }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }

/* ---------- article pages ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 44px; padding-bottom: 20px; align-items: start; }
.read h2 { font-size: 1.2rem; margin-top: 1.4em; }
.read h2:first-child { margin-top: 0; }
.read p { color: var(--moss); max-width: 42em; }
.read--page { padding: 36px 0 60px; }
.side { background: var(--white); border: 1.5px solid var(--rule); border-radius: 14px; padding: 20px; position: sticky; top: 20px; }
.side__h { font: 700 1rem var(--head); margin-bottom: 8px; }
.side p:not(.side__h) { color: var(--moss); font-size: .96rem; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 28px; } .side { position: static; } }

.more { display: grid; gap: 18px; padding: 24px 0 52px; }
.more__h { font-weight: 700; margin-bottom: 8px; }
.more p { margin: 0; }

.menu-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; border: 1.5px solid var(--rule); }
.menu-table th, .menu-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.menu-table thead th { background: var(--forest); color: #fff; font-size: .9rem; }
.menu-table tbody th { font: 500 1.05rem var(--head); }
.menu-table td { color: var(--moss); }
.menu-table__go { text-align: right !important; white-space: nowrap; }
.menu-table__go .tag { margin: 0 0 0 4px; }
@media (max-width: 640px) {
  .menu-table thead { display: none; }
  .menu-table tr { display: grid; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .menu-table th, .menu-table td { padding: 2px 0; border: 0; }
  .menu-table__go { text-align: left !important; padding-top: 8px !important; }
  .menu-table__go .tag { margin: 0 4px 0 0; }
}

/* ---------- tools ---------- */
.panel { background: var(--white); border: 2px solid var(--forest); border-radius: 16px; padding: 24px; margin: 32px 0 36px; max-width: 860px; box-shadow: 6px 6px 0 var(--forest); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid--wide { grid-template-columns: 1fr 160px; }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.fld input, .fld select { width: 100%; min-height: 48px; padding: 10px 14px; font: 500 1rem var(--text); color: var(--forest); background: var(--sage); border: 1.5px solid var(--rule); border-radius: 10px; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--leaf); background: #fff; box-shadow: 0 0 0 3px var(--leaf-pale); }
@media (max-width: 720px) { .grid, .grid--wide { grid-template-columns: 1fr; } .panel { padding: 18px; box-shadow: 4px 4px 0 var(--forest); } .panel .go { width: 100%; } }
.result { margin-top: 22px; padding-top: 20px; border-top: 1.5px dashed var(--rule); }
.result__big { font: 700 clamp(2.6rem, 7vw, 3.8rem)/1 var(--head); color: var(--leaf); margin: 0 0 8px; }
.meter { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #F2C1B8 0 33%, #FFE7A3 33% 66%, #BFDDC4 66% 100%); margin: 18px 0 8px; }
.meter i { position: absolute; top: -6px; width: 6px; height: 24px; background: var(--forest); border-radius: 3px; transform: translateX(-3px); }
.meter__labels { display: flex; justify-content: space-between; font-size: .84rem; color: var(--moss); }
.msg { padding: 10px 14px; border-radius: 10px; }
.msg--err { background: #FCE9E6; color: var(--bad); font-weight: 600; }
.legend { font-size: .86rem; color: var(--moss); margin-bottom: 12px; }
.legend b { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin: 0 4px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags span { background: #EEF1E6; border-radius: 8px; padding: 4px 10px; font-size: .95rem; }
.tags span.big { background: #FFE7A3; }
.tags span.niche { background: #CFE3D2; }
.copybtn { font: 700 .95rem var(--text); background: var(--forest); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; }
.copybtn:hover { background: var(--leaf-deep); }
.bios { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bios button { width: 100%; text-align: left; white-space: pre-line; font: 400 1rem/1.5 var(--text); color: var(--forest); background: var(--sage); border: 1.5px solid var(--rule); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.bios button:hover { border-color: var(--leaf); }
.bios small { display: block; margin-top: 6px; font-size: .8rem; color: var(--moss); }
.copied { color: var(--leaf); font-weight: 700; }

/* ---------- footer ---------- */
.base { background: var(--forest); color: #C9D2BE; padding: 50px 0 22px; font-size: .95rem; }
.base a { color: #DDE3D3; text-decoration: none; }
.base a:hover { color: var(--honey); text-decoration: underline; }
.base__grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr .9fr; gap: 32px; }
.base__brand { font: 700 1.3rem var(--head); color: #fff; margin-bottom: 8px; }
.base__h { color: #fff; font-weight: 700; margin-bottom: 10px; }
.base ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.base__two { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.base__fine { margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
@media (max-width: 760px) { .base__grid { grid-template-columns: 1fr 1fr; } .base__intro, .base__grid > nav:first-of-type { grid-column: 1 / -1; } }

/* ---------- admin ---------- */
.admin main { padding: 32px 20px 64px; }
.admin h1 { font-size: 1.8rem; }
.admin h2 { font-size: 1.2rem; margin-top: 32px; }
.admin .wrap { max-width: 1080px; margin: 0 auto; }
.admin__login { max-width: 420px; margin: 64px auto; background: var(--white); border: 2px solid var(--forest); border-radius: 16px; padding: 24px; }
.admin__login .field { display: block; margin-bottom: 14px; }
.admin__login .field span { display: block; font-weight: 700; margin-bottom: 6px; }
.admin__login input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 10px; font: 500 1rem var(--text); }
.admin .btn { width: 100%; min-height: 48px; background: var(--honey); border: 2px solid var(--forest); border-radius: 10px; font: 700 1rem var(--text); cursor: pointer; }
.admin__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.stats div { background: var(--white); border-radius: 12px; padding: 18px; }
.stats strong { display: block; font: 700 2rem/1 var(--head); color: var(--leaf); }
.stats span { font-size: .9rem; color: var(--moss); }
.tbl__scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--white); font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.tbl th { background: var(--sage); }
.tbl .trunc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }
.msg--warn { background: var(--honey-pale); color: #5E4700; }
