/* ==========================================================================
   Vihmaa Media – KassaPro
   Yhteinen tyylitiedosto kaikille KassaPro-sivuille.

   >>> AINOA KOHTA JOTA SINUN TARVITSEE MUOKATA ON ALLA OLEVA :root-LOHKO. <<<
   Avaa nykyinen index.html, etsi sen värit ja fontit ja liitä ne tähän.
   Kaikki sivut päivittyvät kerralla.
   ========================================================================== */

:root {
  /* --- VÄRIT (vihmaamedia.online: musta + kulta) --- */
  --bg:            #080808;   /* sivun tausta (--black) */
  --bg-2:          #111111;   /* korttien tausta (--black-2) */
  --bg-3:          #1a1a1a;   /* korostettu kortti / taulukon rivi (--black-3) */
  --line:          rgba(201,168,76,.16);   /* reunaviivat, kultasävyinen */
  --text:          #F5F0E8;   /* leipäteksti (--white) */
  --text-dim:      rgba(245,240,232,.6);   /* himmennetty teksti (--white-dim) */
  --accent:        #C9A84C;   /* pääkorostus (--gold) */
  --accent-2:      #E2C97E;   /* gradientin toinen pää (--gold-light) */
  --accent-ink:    #080808;   /* tekstin väri accent-taustalla */
  --ok:            #34d399;   /* ✓ sisältyy */
  --no:            rgba(245,240,232,.35);   /* – ei sisälly */
  --warn:          #C9A84C;   /* ★ suositus, sama kulta kuin accent */

  /* --- TYPOGRAFIA --- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;

  /* --- MITAT --- */
  --maxw: 1140px;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

/* --------------------------------------------------------- perusta ------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.em { color: var(--accent); font-style: italic; }
.dim { color: var(--text-dim); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.lead { font-size: 1.1rem; color: var(--text-dim); max-width: 62ch; }
.section > .wrap > .lead { margin-bottom: 2rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .68rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------- header ------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 66px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600; letter-spacing: -.01em; font-size: 1.1rem;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--text-dim); font-size: .82rem; font-weight: 500; text-decoration: none;
  letter-spacing: .04em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
/* navin CTA-nappi ei saa periä himmennettyä linkkiväriä */
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--accent-ink); }
.nav a.btn--ghost,   .nav a.btn--ghost:hover   { color: var(--text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 1rem; cursor: pointer;
}

/* ----------------------------------------------------------- napit ------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .9rem 2rem;
  font-family: var(--font);
  font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: opacity .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { text-decoration: none; opacity: .9; transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
}
.btn--ghost { border-color: rgba(245,240,232,.2); color: var(--text-dim); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: .6rem 1.2rem; font-size: .74rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ------------------------------------------------------------ hero ------ */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: -40% 30% auto -10%; height: 520px;
  background: radial-gradient(closest-side, rgba(201,168,76,.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero p.lead { font-size: 1.2rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--text); }
.hero-stats div span { color: var(--text-dim); font-size: .88rem; }

/* ------------------------------------------------------- ruudukot ------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .ico { font-size: 1.5rem; margin-bottom: 10px; display: block; }

/* ------------------------------------------------------- hinnasto ------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: relative;
}
.plan--featured {
  background: var(--bg-3); border-color: var(--accent);
  box-shadow: var(--shadow);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 16px; white-space: nowrap;
}
.plan__name { font-family: var(--font-head); font-size: 1.35rem; margin: 0 0 2px; }
.plan__for { color: var(--text-dim); font-size: .9rem; margin: 0 0 20px; min-height: 2.6em; }
.plan__price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.plan__price small { font-size: .95rem; font-weight: 500; color: var(--text-dim); }
.plan__alt {
  margin: 14px 0 20px; padding: 12px 0; font-size: .9rem; color: var(--text-dim);
  border-block: 1px solid var(--line);
}
.plan__alt b { color: var(--text); font-weight: 650; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: .93rem; }
.plan ul li { padding: 6px 0 6px 26px; position: relative; }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800;
}
.plan ul li.no { color: var(--text-dim); }
.plan ul li.no::before { content: "–"; color: var(--no); }

/* --------------------------------------------------------- taulukot ----- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.matrix {
  width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px;
}
table.matrix th, table.matrix td {
  padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line);
}
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix thead th {
  background: var(--bg-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  position: sticky; top: 0;
}
table.matrix tr.group td {
  background: var(--bg-2); font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
}
.yes { color: var(--ok); font-weight: 800; }
.nope { color: var(--no); }
.part { color: var(--warn); font-size: .8rem; }

/* --------------------------------------------------------- lomake ------- */
.form { max-width: 620px; }
.form label { display: block; margin-bottom: 16px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .95rem;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--text-dim); }
.form .check input { width: auto; margin-top: 4px; }

/* ------------------------------------------------------- download ------- */
.dl {
  background: var(--bg-3); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 32px; text-align: center;
  box-shadow: var(--shadow);
}
.dl .btn { font-size: 1.05rem; padding: 16px 32px; }
.dl__meta { color: var(--text-dim); font-size: .85rem; margin-top: 14px; }

.note {
  background: var(--bg-2); border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: .92rem; color: var(--text-dim);
}
.note b { color: var(--text); }

.changelog { list-style: none; padding: 0; margin: 0; }
.changelog li { border-left: 2px solid var(--line); padding: 0 0 22px 20px; position: relative; }
.changelog li::before {
  content: ""; position: absolute; left: -5px; top: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.changelog h4 { font-family: var(--font-head); margin: 0 0 4px; }
.changelog time { color: var(--text-dim); font-size: .82rem; }

/* --------------------------------------------------------- shotit ------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.shot .ph {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--bg-3), var(--bg-3) 12px, var(--bg-2) 12px, var(--bg-2) 24px);
  color: var(--text-dim); font-size: .85rem; text-align: center; padding: 12px;
}
.shot img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; }
.shot figcaption { padding: 12px 16px; font-size: .88rem; color: var(--text-dim); }

/* ------------------------------------------------------------ CTA ------- */
.cta {
  background: linear-gradient(135deg, rgba(201,168,76,.14), rgba(226,201,126,.05));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px; text-align: center;
}
.cta h2 { margin-bottom: .3em; }

/* ------------------------------------------------------------ FAQ ------- */
details.faq {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--text-dim); font-size: .95rem; }

/* --------------------------------------------------------- footer ------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: 48px 0 32px; margin-top: 24px; font-size: .92rem;
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.site-footer .bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: .85rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ------------------------------------------------------- responsive ----- */
@media (max-width: 900px) {
  .grid--3, .grid--4, .plans, .shots { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4, .plans, .shots { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta { padding: 32px 22px; }
  .plan--featured { order: -1; }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
