/* Google Fonts loaded via <link> in each HTML page for non-blocking load */

/* Ensure font-display:swap so fallback text shows immediately */
@font-face {
  font-family: 'Comfortaa';
  font-display: swap;
}

:root{
  --dark-green: #11201A;
  --light-ish-green: #1F322A;
  --teal-text: #3FAE8E;
  --light-green: #9CB192;
  --orange: #E8A33D;
  --panel: rgba(17, 32, 26, 0.74);
  --border: rgba(156, 177, 146, 0.2);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  min-height: 100vh;
  font-family: 'Comfortaa', sans-serif;
  color: white;
  background: var(--dark-green);
}

/* background-attachment:fixed is very expensive on most laptops — removed */
.bg{
  min-height: 100vh;
  background-image: linear-gradient(rgba(17,32,26,0.58), rgba(17,32,26,0.58)), url('bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ---- Header / Nav ---- */
header.topbar{
  width: 100%;
  background: var(--dark-green);
  text-align: center;
  padding: 16px 0;
}

header.topbar .brand{
  color: var(--teal-text);
  font-size: 32px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

header.topbar .brand:hover{ color: #6FE3C4; }

nav.subnav{
  width: 100%;
  background: var(--light-ish-green);
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 10px 0;
}

nav.subnav a{
  color: var(--light-green);
  font-size: 24px;
  font-weight: 500;
  text-decoration: underline;
  font-family: 'Comfortaa', sans-serif;
  transition: color 0.15s ease;
}

nav.subnav a:hover{ color: var(--teal-text); }
nav.subnav a.active{ color: var(--orange); }
nav.subnav a.active:hover{ color: var(--orange); }

/* ---- Shared panel ---- */
main.panel{
  max-width: 1163px;
  margin: 70px auto;
  background: var(--panel);
  border-radius: 4px;
  padding: 60px 56px 80px;
  text-align: center;
}

main.panel h1{
  font-size: 48px;
  font-weight: 500;
  margin: 0 0 18px;
}

main.panel .subtitle{
  color: var(--teal-text);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 36px;
}

.hero-img{
  display: block;
  max-width: 549px;
  width: 100%;
  margin: 0 auto 36px;
}

.body-text{
  color: white;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.evolve{
  color: var(--orange);
  font-size: 48px;
  font-weight: 400;
}

.link-list{
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.link-list a{
  color: var(--orange);
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
}

.link-list a:hover{ text-decoration: underline; }

.doc-section{ margin-top: 28px; }
.doc-section h2{ font-size: 28px; font-weight: 500; margin: 0 0 18px; }
.doc-section .link-list{ gap: 14px; }

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: rgba(156, 177, 146, 0.6);
  font-family: 'Comfortaa', sans-serif;
}
.site-footer a {
  color: #3FAE8E;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: rgba(156, 177, 146, 0.7);
  font-family: 'Comfortaa', sans-serif;
}
.site-footer-link {
  color: #3FAE8E;
  text-decoration: none;
}
.site-footer-link:hover {
  text-decoration: underline;
}


/* ---- Calculator ---- */
/* ── Calculator self-contained styles (hardcoded colors, no CSS vars) ── */
.calc-wrap {
  max-width: 980px;
  margin: 48px auto 80px;
  padding: 0 20px;
  font-family: 'Comfortaa', sans-serif;
}
.calc-box {
  background: rgba(17,32,26,0.82);
  border: 1px solid rgba(156,177,146,0.18);
  border-radius: 12px;
  padding: 40px 44px 48px;
  text-align: center;
}
@media (max-width: 700px) {
  .calc-box { padding: 24px 18px 32px; }
}
.calc-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3FAE8E;
  margin: 0 0 10px;
  text-align: center;
}
.calc-box h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  text-align: center;
}
.calc-box h1 em { font-style: italic; color: #E8A33D; }
.calc-lede {
  font-size: 15px;
  color: #9CB192;
  text-align: center;
  margin: 0 0 36px;
}
.result-top--spaced {
  margin-top: 14px;
}
.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: rgba(156,177,146,0.7);
  font-family: 'Comfortaa', sans-serif;
}
.site-footer-link {
  color: #3FAE8E;
  text-decoration: none;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  text-align: left;
}
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } }

/* left panel */
.c-panel {
  background: rgba(17,32,26,0.55);
  border: 1px solid rgba(156,177,146,0.15);
  border-radius: 10px;
  padding: 22px;
}
.c-panel h2 {
  font-size: 16px;
  font-weight: 600;
  color: #3FAE8E;
  margin: 0 0 18px;
}
.c-field { margin-bottom: 18px; }
.c-field > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9CB192;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.c-field .hint {
  font-size: 11px;
  color: rgba(156,177,146,0.55);
  margin-top: 6px;
  line-height: 1.5;
}
select {
  width: 100%;
  background: rgba(17,32,26,0.85);
  border: 1px solid rgba(156,177,146,0.2);
  color: #fff;
  font-family: 'Comfortaa', sans-serif;
  font-size: 13px;
  padding: 9px 11px;
  border-radius: 7px;
  appearance: none;
  cursor: pointer;
}
select:focus { outline: 2px solid #3FAE8E; outline-offset: 2px; }

.checks { display: flex; flex-direction: column; gap: 10px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
}
.check-row input {
  margin-top: 2px;
  accent-color: #3FAE8E;
  width: 15px; height: 15px;
  flex-shrink: 0;
}
.check-row .sub {
  display: block;
  font-size: 11px;
  color: rgba(156,177,146,0.5);
  margin-top: 2px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17,32,26,0.85);
  border: 1px solid rgba(156,177,146,0.2);
  border-radius: 7px;
  padding: 4px;
}
.stepper button {
  background: rgba(17,32,26,0.8);
  border: 1px solid rgba(156,177,146,0.2);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 6px;
  font-size: 17px;
  cursor: pointer;
  font-family: 'Comfortaa', sans-serif;
  line-height: 1;
  transition: border-color 0.15s;
}
.stepper button:hover { border-color: #3FAE8E; }
.stepper .count { font-size: 16px; font-weight: 600; color: #fff; }

/* right: results */
.results { display: flex; flex-direction: column; gap: 14px; }

.result-card {
  background: rgba(17,32,26,0.55);
  border: 1px solid rgba(156,177,146,0.15);
  border-radius: 10px;
  padding: 18px 20px;
}
.result-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.result-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
}
.result-label.xp     { color: #3FAE8E; }
.result-label.nectar { color: #E8A33D; }
.result-value { font-size: 36px; font-weight: 600; color: #fff; }

/* progress bar replaces SVG vine */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.34,1.2,0.64,1);
}
.progress-fill.xp     { background: #3FAE8E; }
.progress-fill.nectar { background: #E8A33D; }

.breakdown {
  font-size: 12px;
  color: #9CB192;
  line-height: 1.9;
  border-top: 1px solid rgba(156,177,146,0.15);
  margin-top: 14px;
  padding-top: 12px;
}
.bline { display: flex; justify-content: space-between; }
.bline span:last-child { color: #fff; }

.ratio-note {
  font-size: 12px;
  color: #9CB192;
  line-height: 1.6;
  padding: 12px 15px;
  background: rgba(17,32,26,0.55);
  border: 1px solid rgba(156,177,146,0.15);
  border-radius: 10px;
}
.calc-footer {
  margin-top: 18px;
  font-size: 11px;
  color: rgba(156,177,146,0.35);
  text-align: center;
}

.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.copy-box {
  flex: 1;
  background: rgba(17,32,26,0.85);
  border: 1px solid rgba(156,177,146,0.2);
  color: #9CB192;
  font-family: 'Comfortaa', sans-serif;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: text;
}
.copy-btn {
  background: rgba(63,174,142,0.15);
  border: 1px solid #3FAE8E;
  color: #3FAE8E;
  font-family: 'Comfortaa', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.copy-btn:hover { background: #3FAE8E; color: #11201A; }
.copy-btn.copied { background: #E8A33D; border-color: #E8A33D; color: #11201A; }