/* Shared design tokens and components for tems.band / check.tems.band / tos.tems.band. */

:root {
  --bg:          #0B120B;
  --bg-card:     #111a11;
  --bg-inner:    #0e160e;
  --accent:      #78B16B;
  --accent-dim:  rgba(120, 177, 107, 0.12);
  --accent-mid:  rgba(120, 177, 107, 0.22);
  --accent-brd:  rgba(120, 177, 107, 0.35);
  --text:        #e8f0e8;
  --text2:       #7a9e7a;
  --border:      rgba(120, 177, 107, 0.18);
  --green:       #78B16B;
  --red:         #e05c5c;
  --yellow:      #c9a84c;
  --radius:      10px;
  --radius-sm:   6px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 800px;
  margin: 15px auto;
  width: 100%;
  box-sizing: border-box;
}

.nav a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #FFFFFF;
  background-color: rgba(120, 177, 107, 0.15);
  border: 1px solid rgba(120, 177, 107, 0.3);
  transition: background-color 0.2s, border-color 0.2s;
}

.nav a:hover {
  background-color: rgba(120, 177, 107, 0.3);
  border-color: #78B16B;
}

.nav a.active {
  background-color: rgba(120, 177, 107, 0.35);
  border-color: #78B16B;
  color: #78B16B;
}

@media (max-width: 540px) {
  .nav {
    gap: 6px;
  }
  .nav a {
    font-size: 0.82rem;
    padding: 9px 0;
  }
}

/* ── Page container component ─────────────────────────── */

.container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid var(--accent);
}

.page-header {
  background: linear-gradient(135deg, #4a7a40 0%, #2a4d24 100%);
  color: #FFFFFF;
  padding: 40px 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5em;
  font-weight: 300;
  margin-bottom: 10px;
}

.page-header h1 .logo {
  display: block;
  width: 100%;
  max-width: 448px;
  height: auto;
  margin: 0 auto;
}

.page-header .subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 10px;
}

.content {
  padding: 40px 30px;
}

.page-footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(120, 177, 107, 0.2);
  border-top: 1px solid var(--accent);
  color: #808080;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .page-header { padding: 30px 20px; }
  .page-header h1 { font-size: 2em; }
  .page-header h1 .logo { max-width: 308px; }
  .content { padding: 30px 20px; }
}

/* ── Content primitives (sections, lists, callouts) ───── */

.intro {
  font-size: 1.1em;
  color: #FFFFFF;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(120, 177, 107, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: 0 5px 5px 0;
}

.section {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(120, 177, 107, 0.3);
  padding-bottom: 25px;
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section h2 {
  color: #FFFFFF;
  font-size: 1.4em;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.section h3 {
  color: #FFFFFF;
  font-size: 1.1em;
  margin-bottom: 10px;
  font-weight: 600;
}

.content ul {
  list-style: none;
  margin-left: 0;
}

.content ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
  color: #FFFFFF;
}

.content ul li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: -2px;
}

.content p {
  color: #FFFFFF;
  margin-bottom: 15px;
}

.content p:last-child {
  margin-bottom: 0;
}

.callout {
  background-color: rgba(120, 177, 107, 0.3);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 15px;
  margin: 15px 0;
  color: #FFFFFF;
}

.callout--strong {
  background-color: rgba(120, 177, 107, 0.4);
}

.tg-link {
  color: #5DADE2;
  text-decoration: none;
  font-weight: 500;
}

.tg-link:visited {
  color: #5DADE2;
}

.tg-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ── CTA button ───────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #4a7a40 0%, #2a4d24 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--accent-brd);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(120, 177, 107, 0.25);
}

.cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-row {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

/* ── Feature grid ─────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-grid > .feature-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px;
  border: none;
  padding: 0;
}

.feature-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-card p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.feature-card .feature-link,
.feature-card .feature-link:visited {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(120, 177, 107, 0.4);
}

.feature-card .feature-link:hover {
  color: #FFFFFF;
  border-bottom-color: var(--accent);
}

/* ── Steps ────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius);
  padding: 20px 22px;
  counter-increment: step;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.step h3 {
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 6px;
  border: none;
  padding: 0;
}

.step p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.steps > .step:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
}

.steps > .step:last-child:nth-child(3n+2) {
  grid-column: span 2;
}
