/* Soihdun verkkosivut. Värit ovat samat kuin sovelluksessa (SoihtuColors);
   älä kirjoita heksakoodeja muualle kuin tähän tiedostoon. */

:root {
  --ink: #24324a;
  --ink-soft: #5b6478;
  --paper: #f8f6f1;
  --card: #ffffff;
  --line: #ece5d9;
  --flame: #ff7f00;
  --ember: #a84f00;
  --yellow: #f6c445;
  --glow: #fff1e3;
  --turquoise: #49b8ac;
  --turquoise-text: #247a71;
  --shadow: 0 1px 2px rgba(36, 50, 74, 0.05), 0 12px 32px rgba(36, 50, 74, 0.07);
  --radius: 20px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2ede4;
    --ink-soft: #b4b9c5;
    --paper: #161b24;
    --card: #1e2530;
    --line: #2c3442;
    --glow: #2a2118;
    --turquoise-text: #6fd3c7;
    --ember: #ffa94d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

/* ---------- Rakenne ---------- */

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 46rem;
}

section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise-text);
  margin-bottom: 0.7rem;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- Ylä- ja alapalkki ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.top a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 1.05rem;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

nav.top-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 700;
}

nav.top-links a {
  color: var(--ink-soft);
}

nav.top-links a:hover,
nav.top-links a[aria-current="page"] {
  color: var(--ink);
}

/* Kielivalinta. Lyhenteet riittävät: kolme kieltä mahtuu yhdelle riville
   myös puhelimessa, eikä valikko lähde kiertämään. */
.langs {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.langs a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

.langs a:hover {
  color: var(--ink);
  background: var(--glow);
}

.langs a[aria-current="true"] {
  color: var(--ink);
  background: var(--glow);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3.5rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}

footer a {
  color: var(--ink-soft);
}

footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  margin-bottom: 1.8rem;
}

.hero-mark {
  display: block;
  justify-self: center;
  width: min(300px, 70vw);
}

.hero-mark img {
  width: 100%;
}

.brand picture {
  display: inline-flex;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #24324a;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease;
}

.button:hover {
  color: #24324a;
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--glow);
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

/* ---------- Kortit ja listat ---------- */

.cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2.2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.5rem;
}

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

.step-number {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ember);
  margin-bottom: 0.8rem;
}

.plain-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: var(--measure);
}

.plain-list li {
  padding-left: 1.9rem;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--turquoise);
}

.tinted {
  background: var(--glow);
}

/* ---------- Hinnat ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.8rem;
  font-variant-numeric: tabular-nums;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-wrap {
  overflow-x: auto;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.price-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody th {
  font-weight: 700;
}

.note {
  font-size: 0.93rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-top: 1.2rem;
}

/* ---------- Lakitekstit ---------- */

.doc {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.doc-meta {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin-top: 0.8rem;
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 2rem 0 2.5rem;
}

.toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.97rem;
}

.doc section {
  padding-block: 0;
  margin-bottom: 2.6rem;
  scroll-margin-top: 1.5rem;
}

.doc section h2 {
  font-size: 1.32rem;
  margin-bottom: 0.8rem;
}

.doc p,
.doc li {
  max-width: var(--measure);
}

.doc ul,
.doc ol.spaced {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.doc dl {
  margin: 0 0 1rem;
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}

.doc dt {
  font-weight: 800;
}

.doc dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.callout {
  background: var(--glow);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

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

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: var(--measure);
  margin-top: 1.5rem;
}

.contact-card p {
  margin-bottom: 0.35rem;
}

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