/* Kunto Ykkönen pSEO — shared styles
   Modern, smooth, energetic. Dark base + electric green. */

:root {
  --bg: #0b0e0b;
  --bg-soft: #121712;
  --surface: #1a211a;
  --surface-2: #212a21;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f5f0;
  --text-dim: #aab3a8;
  --green: #5cba3c;
  --green-bright: #8aef62;
  --green-glow: rgba(92, 186, 60, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-dim); }

.accent {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

section {
  padding: clamp(56px, 9vw, 110px) 0;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 14, 11, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--green-bright); }

.topbar nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.topbar nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.topbar nav a:hover { color: var(--green-bright); }

/* compact CTA in the top bar */
.topbar .btn {
  padding: 9px 20px;
  font-size: 0.9rem;
  box-shadow: none;
}
.topbar .btn-primary {
  color: #0b120b;
  box-shadow: 0 2px 14px rgba(92, 186, 60, 0.25);
}
.topbar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(92, 186, 60, 0.4);
}

@media (max-width: 640px) {
  .topbar nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-bright) 100%);
  color: #0b120b;
  box-shadow: 0 8px 30px var(--green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px var(--green-glow);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-bright);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 9vw, 110px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(92, 186, 60, 0.16), transparent 70%),
    radial-gradient(ellipse 35% 30% at 80% 20%, rgba(138, 239, 98, 0.07), transparent 70%);
  pointer-events: none;
}

.hero > .container { position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-bright);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
}

.hero h1 { max-width: 14ch; margin-inline: auto; }

.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--text); font-weight: 600; }

/* ---------- Price highlight ---------- */

.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}

.price-badge .num {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(100deg, var(--green) 0%, var(--green-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-badge .unit { font-size: 1.4rem; color: var(--text-dim); }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 186, 60, 0.45);
}

.card h3 { margin-bottom: 10px; }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--green-bright);
  margin-bottom: 18px;
  font-size: 1.4rem;
}

/* section heading */
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head p { margin-top: 12px; }

/* ---------- Feature list ---------- */

.checklist { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text); font-size: 1.05rem;
}
.checklist li::before {
  content: "";
  flex: 0 0 22px; height: 22px; margin-top: 3px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b120b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* stacked label + description variant */
.checklist-steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
}
.checklist-steps li strong { color: var(--text); font-weight: 600; }
.checklist-steps li span {
  grid-column: 2;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Split section ---------- */

.split {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 70px);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(92, 186, 60, 0.18), transparent 70%),
    var(--surface);
  border: 1px solid rgba(92, 186, 60, 0.25);
}

.cta-band h2 { margin-bottom: 14px; }
.cta-band .hero-actions { margin-top: 28px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 48px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--green-bright); }
footer .muted { color: var(--text-dim); font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Content links ---------- */

main p a:not(.btn), main li a:not(.btn) {
  color: var(--green-bright);
  text-decoration: underline;
  text-decoration-color: rgba(138, 239, 98, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
main p a:not(.btn):hover, main li a:not(.btn):hover {
  text-decoration-color: var(--green-bright);
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 14px; max-width: 760px; }
.faq details {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq details[open] { border-color: rgba(92, 186, 60, 0.45); }
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--green-bright);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; }

/* ---------- Price table ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
.price-table th:first-child, .price-table td:first-child { padding-left: 0; }
.price-table th:last-child, .price-table td:last-child { padding-right: 0; text-align: right; }
.price-table th:not(:first-child), .price-table td:not(:first-child) { white-space: nowrap; }
.price-table th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.price-table td { color: var(--text); }
.price-table td.muted { color: var(--text-dim); }
.price-table .hl { color: var(--green-bright); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
