/*
Theme Name: Nopsa Theme
Theme URI: https://nopsa.io
Author: Loopy Oy
Author URI: https://loopy.fi
Description: Premium SaaS landing page theme for nopsa.io — tehtävienhallinta, tuntiseuranta ja laskutus suomalaisille yrittäjille.
Version: 1.0.0
License: Proprietary
Text Domain: nopsa
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&family=Lora:ital,wght@1,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:    #1450B8;
  --color-navy:       #0F3E8C;
  --color-light-blue: #EBF4FF;
  --color-off-white:  #F5F5F3;
  --color-text:       #1A1A1A;
  --color-white:      #FFFFFF;
  --color-border:     #D3D1C7;
  --color-muted:      #6B6860;
  --color-urgent-bg:  #FFF0EE;
  --color-urgent-txt: #C0321A;
  --color-high-bg:    #FFF8E6;
  --color-high-txt:   #9A6200;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-lg: 16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 48px rgba(20,80,184,0.15);

  --container: 1200px;
  --section-pad: 96px;
  --section-pad-mobile: 56px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-off-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  line-height: 1.2;
  color: var(--color-text);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.text-hero {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
}

.text-body { font-size: 16px; font-weight: 400; }
.text-small { font-size: 13px; letter-spacing: 0.02em; }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--light { background: var(--color-off-white); }
.section--white { background: var(--color-white); }
.section--dark  { background: var(--color-navy); }
.section--primary { background: var(--color-primary); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

a.btn-primary, .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

a.btn-primary:hover, .btn-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-light-blue);
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: var(--color-off-white);
  color: var(--color-navy);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
  background: var(--color-light-blue);
}

.site-nav .btn {
  margin-left: 8px;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  gap: 5px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.hamburger:hover { background: var(--color-light-blue); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-off-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 24px;
  font-weight: 300;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--color-primary);
  background: var(--color-light-blue);
}

.mobile-nav .btn {
  margin-top: 8px;
  font-size: 18px;
  padding: 16px 40px;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 24px;
  color: var(--color-text);
  transition: background 0.2s ease;
}

.mobile-nav-close:hover { background: var(--color-light-blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-heading {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 14px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  background: var(--color-off-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20,80,184,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-light-blue);
  color: var(--color-navy);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero h1 strong {
  font-weight: 500;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-muted);
}

.hero-proof-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.6;
}

.feature-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-light-blue);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--color-light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================================
   INTEGRATIONS SECTION
   ============================================================ */
.integrations {
  padding: var(--section-pad) 0;
  background: var(--color-off-white);
}

.integrations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.integration-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px;
  transition: all 0.2s ease;
}

.integration-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.integration-logo {
  width: 56px;
  height: 56px;
  background: var(--color-light-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.integration-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.integration-card p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIAL SECTION
   ============================================================ */
.testimonial {
  padding: var(--section-pad) 0;
  background: var(--color-navy);
}

.testimonial-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote-mark {
  font-size: 80px;
  line-height: 1;
  color: rgba(255,255,255,0.15);
  font-family: var(--font-serif);
  margin-bottom: -20px;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
}

.testimonial-author-info strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  font-style: normal;
  font-family: var(--font-sans);
}

.testimonial-author-info span {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: normal;
  font-family: var(--font-sans);
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 56px;
  justify-content: center;
}

.pricing-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  transition: all 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.highlighted {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

.pricing-card.highlighted:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.pricing-card.highlighted .pricing-plan-name {
  color: rgba(255,255,255,0.7);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-price .amount {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}

.pricing-card.highlighted .pricing-price .amount {
  color: var(--color-white);
}

.pricing-price .period {
  font-size: 15px;
  color: var(--color-muted);
}

.pricing-card.highlighted .pricing-price .period {
  color: rgba(255,255,255,0.7);
}

.pricing-description {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.pricing-card.highlighted .pricing-description {
  color: rgba(255,255,255,0.7);
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

.pricing-card.highlighted .pricing-divider {
  border-top-color: rgba(255,255,255,0.2);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}

.pricing-card.highlighted .pricing-feature {
  color: rgba(255,255,255,0.9);
}

.pricing-feature::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card.highlighted .pricing-feature::before {
  color: rgba(255,255,255,0.8);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-card.highlighted .btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  padding: 80px 0 60px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   FEATURE DETAIL SECTIONS (page-ominaisuudet)
   ============================================================ */
.feature-detail {
  padding: var(--section-pad) 0;
}

.feature-detail:nth-child(even) {
  background: var(--color-white);
}

.feature-detail .feature-content { order: 1; }
.feature-detail .feature-visual  { order: 2; }

.feature-detail.reverse .feature-content { order: 2; }
.feature-detail.reverse .feature-visual  { order: 1; }

.feature-detail .feature-content h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.feature-detail .feature-content p {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.feature-list li::before {
  content: '→';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-visual-box {
  background: var(--color-light-blue);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ============================================================
   INTEGRATIONS PAGE
   ============================================================ */
.integration-detail {
  padding: var(--section-pad) 0;
}

.integration-detail:nth-child(even) {
  background: var(--color-white);
}

.integration-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.integration-meta h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.integration-meta p {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.integration-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
  margin-top: 24px;
}

.integration-body h3:first-child { margin-top: 0; }

.integration-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.integration-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-muted);
}

.integration-body ul li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--color-text);
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--color-light-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20,80,184,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-message.error {
  background: var(--color-urgent-bg);
  color: var(--color-urgent-txt);
  border: 1px solid #fca5a5;
  display: block;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-404-number {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 8px;
}

.error-404 h1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.error-404 p {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-auto { margin-top: auto; }

.inline-flex { display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .hero-ctas, .cta-banner { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-proof { justify-content: center; }

  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: 1fr; gap: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pricing-card.highlighted { transform: none; }
  .pricing-card.highlighted:hover { transform: translateY(-4px); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .integration-block { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }

  .site-nav { display: none; }
  .hamburger { display: flex; }

  .mobile-nav { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }

  .hero { padding: 64px 0 48px; }

  .feature-detail.reverse .feature-content { order: 1; }
  .feature-detail.reverse .feature-visual  { order: 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .testimonial blockquote { font-size: 20px; }

  .cta-banner h2 { font-size: 28px; }

  .page-hero { padding: 56px 0 40px; }
}

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

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Single pricing card - centered */
.pricing-grid {
  justify-content: center;
}
.pricing-grid .pricing-card:only-child {
  max-width: 480px;
}

/* Single pricing card layout */
.pricing-card.single {
  max-width: 420px;
  margin: 0 auto;
}
.pricing-card.single .pricing-price .amount {
  font-size: 64px;
}

/* SVG icons in feature cards */
.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* Force single pricing card to center */
.pricing-card.single.highlighted {
  margin: 0 auto;
  max-width: 420px;
  float: none;
}
.pricing-grid:has(.pricing-card.single) {
  display: flex;
  justify-content: center;
}

/* Override: force pricing grid to flex center when single card */
.pricing-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 24px;
}
.pricing-card {
  flex: 0 1 340px;
  max-width: 420px;
}

/* ============================================================
   LIFETIME DEAL PAGE
   ============================================================ */

/* Hero */
.ltd-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
  color: #fff;
  padding: 120px 0 80px;
  text-align: center;
}
.ltd-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.ltd-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.ltd-hero-sub {
  font-size: 18px;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.ltd-price-hero {
  margin-bottom: 8px;
}
.ltd-amount {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}
.ltd-per {
  font-size: 18px;
  opacity: 0.7;
  margin-left: 8px;
}
.ltd-minimum {
  font-size: 15px;
  opacity: 0.65;
  margin-bottom: 32px;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: 10px;
}

/* Countdown / urgency */
.ltd-countdown {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.ltd-urgency {
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
.ltd-urgency svg {
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* Comparison grid */
.ltd-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 48px auto 0;
}
.ltd-compare-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
}
.ltd-compare-highlight {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(20,80,184,0.25);
}
.ltd-compare-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 16px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ltd-compare-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ltd-compare-price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ltd-compare-price span {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.7;
}
.ltd-compare-calc {
  font-size: 15px;
  margin-bottom: 8px;
}
.ltd-compare-note {
  font-size: 13px;
  opacity: 0.6;
}
.ltd-compare-highlight .ltd-compare-note {
  opacity: 0.8;
}

/* FAQ */
.faq-list {
  margin-top: 40px;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  padding: 0 24px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* CTA section */
.ltd-cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 80px 0;
}
.ltd-cta h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* LTD banner for front page */
.ltd-banner {
  background: linear-gradient(135deg, #0F3E8C 0%, #1450B8 60%, #1a6aef 100%);
  color: #fff;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.ltd-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.ltd-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.ltd-banner-content {
  flex: 1;
}
.ltd-banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
.ltd-banner h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.ltd-banner p {
  font-size: 15px;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}
.ltd-banner-price {
  text-align: center;
  flex-shrink: 0;
}
.ltd-banner-amount {
  font-size: 48px;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.ltd-banner-unit {
  font-size: 14px;
  opacity: 0.7;
}
.ltd-banner-cta {
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ltd-hero { padding: 96px 0 64px; }
  .ltd-amount { font-size: 56px; }
  .ltd-compare-grid { grid-template-columns: 1fr; }
  .ltd-compare-highlight { transform: none; }
  .ltd-banner .container { flex-direction: column; text-align: center; }
  .ltd-banner-cta { width: 100%; }
  .ltd-banner-cta .btn { width: 100%; }
}

/* Accessibility: force white text on blue compare card */
.ltd-compare-highlight,
.ltd-compare-highlight .ltd-compare-label,
.ltd-compare-highlight .ltd-compare-price,
.ltd-compare-highlight .ltd-compare-price span,
.ltd-compare-highlight .ltd-compare-calc,
.ltd-compare-highlight .ltd-compare-calc strong,
.ltd-compare-highlight .ltd-compare-note {
  color: #fff !important;
}
.ltd-compare-highlight .ltd-compare-label {
  opacity: 0.85;
}
.ltd-compare-highlight .ltd-compare-note {
  opacity: 0.75 !important;
}

/* Margin fixes for LTD page */
.ltd-hero h1 {
  margin-top: 0;
}
.ltd-hero-sub {
  margin-top: 0;
}
.ltd-price-hero {
  margin-top: 24px;
}
.ltd-minimum {
  margin-top: 4px;
}
.ltd-countdown {
  padding: 20px 0;
}
.ltd-features .section-header p {
  margin-top: 8px;
  color: #666;
}
.ltd-comparison .section-header {
  margin-bottom: 0;
}
.ltd-faq .section-header {
  margin-bottom: 0;
}

/* Fix spacing between sections */
.ltd-features {
  padding: 80px 0;
}
.ltd-comparison {
  padding: 80px 0;
}
.ltd-faq {
  padding: 80px 0;
}
.ltd-cta {
  padding: 80px 0;
}

/* Fix feature card spacing on LTD page */
.ltd-features .feature-card {
  margin-bottom: 0;
}
.ltd-features .grid-3 + .grid-3 {
  margin-top: 24px;
}

/* Accessibility: ensure banner text is white */
.ltd-banner h3,
.ltd-banner p,
.ltd-banner-tag,
.ltd-banner-amount,
.ltd-banner-unit {
  color: #fff;
}
.ltd-banner p {
  opacity: 0.85;
}

/* Fix urgency bar icon alignment */
.ltd-urgency {
  margin: 0;
  line-height: 1.5;
}

/* Margin refinements - front page section spacing */
.features.section--white {
  padding-top: 64px;
  padding-bottom: 64px;
}
.integrations {
  padding-top: 64px;
  padding-bottom: 64px;
}
.testimonial {
  padding-top: 64px;
  padding-bottom: 64px;
}
.pricing.section--white {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* LTD banner margin - no gap between hero and banner */
.ltd-banner {
  margin: 0;
  padding: 32px 0;
}

/* Section header spacing consistency */
.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  margin-bottom: 12px;
}
.section-header p {
  margin-top: 0;
}

/* Fix: nav button text must be white */
.site-nav a.btn-primary,
.mobile-nav a.btn-primary {
  color: #fff !important;
}

/* Fix: LTD CTA section - all text white on blue */
.ltd-cta h2,
.ltd-cta p,
.ltd-cta a {
  color: #fff !important;
}
.ltd-cta a.btn-white {
  color: var(--color-primary) !important;
  background: #fff;
}

/* Fix: LTD hero button text white */
.ltd-hero a.btn-primary {
  color: #fff !important;
}

/* Etusivu link in nav */

/* Fix: LTD hero - ALL text must be white */
.ltd-hero,
.ltd-hero h1,
.ltd-hero p,
.ltd-hero span,
.ltd-hero div,
.ltd-hero a,
.ltd-hero .ltd-badge,
.ltd-hero .ltd-hero-sub,
.ltd-hero .ltd-amount,
.ltd-hero .ltd-per,
.ltd-hero .ltd-minimum {
  color: #fff !important;
}
.ltd-hero .ltd-per,
.ltd-hero .ltd-minimum {
  opacity: 0.7;
}
.ltd-hero a.btn-primary {
  background: #fff !important;
  color: var(--color-primary) !important;
}
.ltd-hero a.btn-primary:hover {
  background: var(--color-light-blue) !important;
}
