/* Fonts loaded via <link rel="preconnect"> in HTML head for faster rendering */

/*
  DESIGN SYSTEM — "Handshake" + "Window"
  Audience: Finnish small-business owners deciding whether to trust a new,
  unfamiliar vendor with their website. They are not a SaaS-startup audience —
  glossy dark heroes, neon glow and templated card grids read as "tech sales
  pitch" and trigger skepticism (autonomy bias). A warm, paper-toned, editorial
  layout with a confident serif voice reads as considered and credible instead.
  One accent color (warm rust) is used sparingly so it always means "act now."
*/

:root {
  --paper: #f7f3ec;         /* Warm paper background — not stark white, not dark SaaS slate */
  --paper-deep: #efe8da;    /* Slightly deeper paper for alternating sections */
  --ink: #1f1b16;           /* Near-black warm ink — primary text/headlines */
  --ink-soft: #4a443c;      /* Muted ink for body copy */
  --line: #ddd3c0;          /* Hairline dividers/borders, warm not cold grey */

  --rust: #b5502f;          /* Single accent — used only for CTAs/key numbers */
  --rust-deep: #903d22;     /* Hover/active state for accent */
  --rust-wash: #f1e2d8;     /* Faint accent wash for badges/highlights */

  --cream: #fffaf2;         /* Card surfaces, slightly lighter than paper */

  --radius: 4px;            /* Sharp, considered — not bubbly SaaS rounding */
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rust);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--rust-deep);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header: solid, flat, no blur/glass ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  user-select: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--rust) !important;
}

.brand span {
  color: var(--rust);
  font-style: italic;
}

nav.main-nav a {
  color: var(--ink-soft);
  margin-left: 28px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

nav.main-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rust);
}

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switch a {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lang-switch a:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.lang-switch a.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Hero: left-aligned editorial, no dark gradient ---------- */
.hero {
  background: var(--paper);
  padding: 96px 0 80px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.hero .container {
  max-width: 1120px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 3.1rem;
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero p.subhead {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 0 36px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.highlight-text {
  color: var(--rust);
  font-style: italic;
}

/* ---------- CTA button: flat, high-contrast, considered ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rust);
  color: var(--cream);
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  border: 1px solid var(--rust);
  transition: var(--transition);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.cta-button:hover {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
}

.cta-button svg.btn-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.cta-button:hover svg.btn-arrow {
  transform: translate(2px, -2px);
}

/* ---------- Sections ---------- */
section {
  padding: 84px 0;
  background: var(--paper);
}

section.alt {
  background: var(--paper-deep);
}

h2.section-title {
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 14px;
}

p.section-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 44px;
  line-height: 1.6;
}

/* ---------- Stats: a plain inline row, no floating glass card ---------- */
.stats-section {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
}

.stat-card {
  text-align: left;
  padding: 36px 28px;
  border-left: 1px solid var(--line);
}

.stat-card:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-card .number {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card .label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.stat-card .desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 28px 0;
  }
  .stat-card:first-child {
    border-top: none;
    padding-top: 0;
  }
}



/* ---------- Cards (general — pricing reuses this) ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  border-color: var(--ink-soft);
}

.card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 12px;
  padding-right: 0;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.badge {
  align-self: flex-start;
  background: var(--rust-wash);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Card arrow icons removed from visual flow — direction comes from layout, not chrome */
.card-arrow {
  display: none;
}

/* ---------- Pricing grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-3 .card {
  border: none;
  border-radius: 0;
  background: var(--cream);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

.card .price {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--rust);
  margin: 6px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card .price small {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.card.popular {
  border-top: 3px solid var(--rust);
}

.card.popular::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--rust-deep);
  letter-spacing: 0.08em;
}

.pricing-cta {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius);
  margin-top: 24px;
  transition: var(--transition);
}

.pricing-cta:hover {
  background: var(--rust);
  color: var(--cream);
}

.card.popular .pricing-cta {
  background: var(--rust);
  color: var(--cream);
}

.card.popular .pricing-cta:hover {
  background: var(--rust-deep);
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step {
  text-align: left;
  padding: 32px 30px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: none;
}

.step .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--rust);
  margin-bottom: 18px;
  display: block;
}

.step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 10px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: none;
  }
}

/* ---------- Case studies placeholder ---------- */
.placeholder-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--cream);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- Contact: flat ink block, no glow ---------- */
.contact-box {
  text-align: left;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 60px 56px;
}

.contact-box h2.section-title {
  color: var(--paper);
}

.contact-box p.section-sub {
  color: rgba(247, 243, 236, 0.75);
  margin: 0 0 32px;
}

.contact-box .email {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--rust);
  display: inline-block;
  margin: 4px 0 18px;
  border-bottom: 1px solid var(--rust);
}

.contact-box .email:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.contact-box p {
  margin: 6px 0 0;
  opacity: 0.75;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(247, 243, 236, 0.55);
  padding: 36px 0;
  text-align: center;
  font-size: 0.88rem;
  border-top: 1px solid rgba(247, 243, 236, 0.1);
}

footer.site-footer a {
  color: var(--paper);
  font-weight: 600;
}

footer.site-footer a:hover {
  color: var(--rust);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  header.site-header .container {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: left;
    gap: 0;
  }

  .nav-toggle { display: flex; }

  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 0 28px 16px;
    gap: 0;
    z-index: 200;
  }

  header.site-header.nav-open .nav-wrap { display: flex; }

  nav.main-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
  }

  nav.main-nav a {
    margin-left: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  nav.main-nav a:last-child { border-bottom: none; }

  .lang-switch {
    padding: 12px 0 4px;
    justify-content: flex-start;
  }

  .hero { padding: 56px 0 48px; }
  .hero-layout { flex-direction: column; }
  .hero-right { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .hero p.subhead { margin: 0 0 28px; }

  section { padding: 56px 0; }
  h2.section-title { font-size: 1.65rem; }

  .contact-box { padding: 40px 24px; }

  .about-founder {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---------- Nav wrap + hamburger ---------- */
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero two-column ---------- */
.hero-layout {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.hero-left { flex: 1.1; }
.hero-right { flex: 1; padding-top: 8px; }

.audit-preview {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.audit-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.audit-score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.audit-score-num {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--rust);
  line-height: 1;
}

.audit-score-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.5;
}

.audit-finding {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.audit-finding:last-child { border-bottom: none; }

.finding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.dot-red   { background: #c0392b; }
.dot-amber { background: #d4870a; }
.dot-green { background: #27866a; }

/* ---------- Steps CTA ---------- */
.steps-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Guarantee strip ---------- */
.guarantee-section {
  padding: 56px 0;
  background: var(--rust-wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.guarantee-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.guarantee-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.guarantee-item p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .guarantee-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }
  .guarantee-check { margin: 0; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border-left: 3px solid var(--rust);
  margin-bottom: 6px;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--rust);
  flex-shrink: 0;
  line-height: 1;
  font-weight: 400;
}

.faq-list details[open] > summary::after { content: '−'; }

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Service card ghost CTA ---------- */
.card-cta {
  display: block;
  text-align: center;
  border: 1px solid var(--rust);
  color: var(--rust);
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.card-cta:hover {
  background: var(--rust);
  color: var(--cream);
}

/* ---------- Pricing feature list ---------- */
.card-features {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.card-features li {
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: 700;
}

/* ---------- About founder ---------- */
.about-founder {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  max-width: 760px;
  margin: 0 auto 24px;
}

.founder-photo {
  flex-shrink: 0;
  text-align: center;
}

.founder-photo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  margin: 0 auto 8px;
}

.founder-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  white-space: nowrap;
}

.founder-role {
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.about-bio p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 10px;
}

.about-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 auto;
  padding-top: 4px;
}

/* ---------- Contact form ---------- */
.contact-form {
  margin: 24px 0 0;
}

.contact-form .form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.contact-form input[type="url"],
.contact-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: rgba(247,243,236,0.10);
  border: 1px solid rgba(221,211,192,0.5);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--paper);
  font-family: 'Inter', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder {
  color: rgba(247,243,236,0.4);
}

.contact-form input:focus {
  border-color: var(--rust);
}

.contact-form-footer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(247,243,236,0.55);
  opacity: 1;
}

.contact-form-footer a {
  color: rgba(247,243,236,0.8);
  text-decoration: underline;
}

.contact-form-footer a:hover {
  color: var(--paper);
}

/* ---------- Footer legal ---------- */
.footer-legal {
  display: block;
  color: rgba(247,243,236,0.35);
  font-size: 0.8rem;
  margin-top: 5px;
}

.footer-legal a {
  color: rgba(247,243,236,0.45);
}

.footer-legal a:hover {
  color: var(--rust);
}
