/* ==========================================================================
   Invitatum marketing site — design tokens + components
   Palette and type taken from the Claude Design project (invitatum.dc.html).
   Single stylesheet, no build step. Edit values here, everything follows.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:          #faf6f1;
  --surface:     #ffffff;
  --sand:        #f3ece3;
  --sand-warm:   #f6ead9;
  --ink-block:   #2b241f;

  /* Lines */
  --border:      #e4d8ca;
  --border-soft: #f0e8dd;

  /* Text */
  --ink:         #2b241f;
  --muted:       #6b5d52;
  --faint:       #a89a89;
  --on-dark:     #c9bcac;

  /* Brand */
  --accent:      #c1603c;
  --accent-dark: #a34e2f;
  --green:       #6f8f6a;
  --green-bg:    #eef3ec;
  --green-ink:   #4d6a49;
  --rose:        #d98c8c;
  --rose-bg:     #f3e3e3;
  --violet:      #a08bc9;
  --violet-bg:   #eee7f6;

  /* Type */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Elevation */
  --shadow-sm: rgba(71, 60, 50, .04) 0 4px 5px 0, rgba(71, 60, 50, .03) 0 4px 10px 0;
  --shadow-md: rgba(71, 60, 50, .04) 0 4px 5px 0, rgba(71, 60, 50, .03) 0 8px 15px 0;
  --shadow-lg: rgba(71, 60, 50, .04) 0 4px 5px 0, rgba(71, 60, 50, .03) 0 8px 15px 0, rgba(71, 60, 50, .10) 0 30px 50px 0;
  --shadow-btn: rgba(71, 60, 50, .15) 0 8px 15px 0;

  --radius:    16px;
  --radius-sm: 8px;
  --container: 1200px;
}

/* --------------------------------------------------------------- reset */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 780px; }
.container-mid    { max-width: 1080px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease,
              border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: #d9c9b6; }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--accent); }

.btn-onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-onDark:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.btn-sm { font-size: 15px; padding: 10px 20px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher — EN / FI */
.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
}
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: rgba(71, 60, 50, .08) 0 1px 3px 0;
}

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

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 88px 0 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.1; }
.hero-lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 480px; margin: 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--faint); margin: 0; }

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  background: var(--sand-warm);
  color: #8a5a2b;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
}

/* Decorative product card in the hero */
.hero-art { position: relative; padding: 40px; }
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}
.hero-art::before { width: 320px; height: 320px; background: var(--rose);  opacity: .35; top: -20px; right: -20px; }
.hero-art::after  { width: 260px; height: 260px; background: var(--green); opacity: .30; bottom: -20px; left: -10px; }

.event-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.event-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.event-card-title { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.event-card-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.tag {
  background: var(--green-bg); color: var(--green-ink);
  font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}

.avatars { display: flex; margin-bottom: 16px; }
.avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; margin-right: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
}

.meter-label {
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; margin-bottom: 6px;
}
.meter-label strong { color: var(--ink); font-weight: 600; }
.meter { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.meter > div { height: 100%; background: var(--accent); border-radius: 999px; }

/* -------------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--muted); margin: 0; }

.eyebrow {
  text-align: center;
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}

/* ------------------------------------------------------------ card grids */

.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(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p  { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}

/* Two-column "feature + visual" block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 8px; }

.checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px;
}
.checklist li:last-child { border-bottom: 0; }
.checklist .bullet {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--green-bg); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.checklist strong { display: block; font-weight: 600; }
.checklist span.desc { color: var(--muted); font-size: 14.5px; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  counter-increment: step;
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sand-warm); color: #8a5a2b;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-num::before { content: counter(step); }
.step h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Quote / trust strip */
.logo-row {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.logo-row span {
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: #c9bcac;
}

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

.cta-band {
  background: var(--ink-block);
  padding: 84px 32px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; margin-bottom: 16px; }
.cta-band p  { font-size: 17px; color: var(--on-dark); margin: 0 0 32px; }
.cta-band .hero-cta { justify-content: center; }

/* -------------------------------------------------------------- pricing */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-featured { border: 2px solid var(--accent); }
.plan-badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 4px 12px;
}
.plan-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; }
.plan-price .amount { font-family: var(--serif); font-size: 42px; font-weight: 600; }
.plan-price .period { font-size: 14px; color: var(--muted); }
.plan-blurb { font-size: 14px; color: var(--muted); margin: 0 0 22px; min-height: 42px; }
.plan .btn { margin-bottom: 24px; }
.plan-features { list-style: none; margin: 0; padding: 0; }
.plan-features li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; font-size: 14px; color: #4a4038;
}
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.plan-features li.off { color: var(--faint); }
.plan-features li.off::before { content: "–"; color: var(--faint); }

.price-note {
  text-align: center; font-size: 14px; color: var(--muted);
  max-width: 620px; margin: 32px auto 0;
}

.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--faint);
  border-bottom: 1px solid var(--border);
}
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--muted); }
.compare-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.compare-wrap table { min-width: 720px; }

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

.faq { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  font-size: 17px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; line-height: 1;
}
.faq[open] summary::after { content: "–"; }
.faq p { font-size: 15.5px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }

/* --------------------------------------------------------- knowledge base */

.kb-hero { padding: 72px 0 40px; text-align: center; }
.kb-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 14px; }
.kb-hero p { font-size: 18px; color: var(--muted); margin: 0 auto; max-width: 560px; }

.kb-search {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 28px auto 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 22px;
}
.kb-search::placeholder { color: var(--faint); }

.kb-section { margin-bottom: 52px; }
.kb-section h2 {
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.kb-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.kb-card:hover {
  text-decoration: none;
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.kb-card .kb-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.kb-card strong { font-size: 16px; font-weight: 600; }
.kb-card span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.kb-card .kb-go { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 4px; }

.kb-empty {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* Article layout */
.article { padding: 48px 0 88px; }
.breadcrumb { font-size: 14px; color: var(--faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }

.article h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.article .lede { font-size: 18.5px; color: var(--muted); line-height: 1.55; margin: 0 0 36px; }

.prose { font-size: 16.5px; line-height: 1.68; color: #3d352e; }
.prose h2 {
  font-family: var(--serif);
  font-size: 25px;
  margin: 44px 0 14px;
  padding-top: 8px;
}
.prose h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--sand);
  border-radius: 5px;
  padding: 2px 6px;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.callout {
  background: var(--sand-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 15.5px;
  color: #6b4a2b;
}
.callout strong { color: #6b4a2b; }
.callout p:last-child { margin-bottom: 0; }

.callout-note {
  background: var(--green-bg);
  border-left-color: var(--green);
  color: #3f5a3c;
}
.callout-note strong { color: #3f5a3c; }

.article-nav {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about p { font-size: 14px; color: var(--muted); max-width: 250px; line-height: 1.55; margin: 12px 0 0; }
.footer-col h3 {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; font-weight: 500; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 48px; }
  .hero-lede { max-width: none; }
  .hero-art { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .nav-toggle { display: block; }
  .site-nav .container { flex-wrap: wrap; }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0 18px;
    border-top: 1px solid var(--border);
  }
  .nav-links a { padding: 10px 0; width: 100%; font-size: 16px; }
  .site-nav.is-open .nav-links { display: flex; }
  .nav-actions .btn { display: none; }
  .site-nav.is-open .nav-actions .btn { display: none; }
  .nav-links .btn-mobile { display: inline-flex; }
  .section { padding: 64px 0; }
  .cta-band { padding: 64px 20px; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4,
  .plan-grid, .kb-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-row { justify-content: center; gap: 18px 28px; }
  .logo-row span { font-size: 17px; }
  .hero-cta .btn { width: 100%; }
  .plan-blurb { min-height: 0; }
}

/* Desktop: hide the mobile-only nav button */
@media (min-width: 821px) {
  .nav-links .btn-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .kb-card:hover { transform: none; }
}
