/* ============================================================
   rAi LANDNINGSSIDA — VARM, CLEAN DESIGN
   System-ui (rubriker) + Georgia (brödtext)
   ============================================================ */

:root {
  --bg: #fefcf9;
  --text: #2d2a26;
  --text-soft: #6b6560;
  --accent: #c27a4a;
  --accent-soft: #e8d5c4;
  --olive: #7c8c5a;
  --olive-soft: #dce4cd;
  --white: #ffffff;
  --radius: 8px;

  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  --max-w: 1200px;
  --max-w-narrow: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-w-narrow);
}

.container-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- REVEAL ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- NAV ---- */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(254,252,249,0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: #ede8e2;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s;
  box-shadow: 0 4px 16px rgba(194,122,74,0.3);
}
.nav-cta:hover { background: #b06838; }

/* ---- BUTTONS ---- */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(194,122,74,0.3);
}
.btn-primary:hover { background: #b06838; }
.btn-primary.btn-large { font-size: 16px; padding: 16px 36px; }

.btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1.5px solid #d6cec4;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-text {
  display: inline-block;
  color: #99948e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms ease;
}
.btn-text:hover { color: var(--text); }

/* ---- HERO ---- */

.section-hero {
  padding: 160px 0 120px;
  background: var(--bg);
  text-align: center;
}

.section-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hero-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 580px;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* ---- SECTION DEFAULTS ---- */

.section {
  padding: 120px 0;
  background: var(--bg);
}

.section-light-alt {
  background: var(--white);
}

.section-dark {
  background: var(--text);
}

.section-centered {
  text-align: center;
}

.section-centered .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-h2.light { color: var(--white); }

.section-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 56px;
  max-width: 600px;
}

.section-sub.light { color: #99948e; }

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---- KONTRAST-SEKTION ---- */

.contrast-header {
  text-align: center;
  margin-bottom: 40px;
}

.contrast-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-top: 8px;
}

.contrast-panels {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.contrast-panel-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.contrast-panel {
  flex: 1 1 0;
  min-width: 0;
  background: var(--white);
  border: 1.5px solid #ede8e2;
  border-radius: 14px;
  padding: 36px 28px;
}

.contrast-panel-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.contrast-panel-ingress {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
  text-align: center;
  margin-bottom: 20px;
}

.contrast-copy {
  padding-top: 20px;
  font-family: var(--font-body);
  text-align: left;
}

.contrast-copy-headline {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.contrast-copy p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.contrast-copy p + p {
  margin-top: 6px;
}

.contrast-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.arrow-desktop { display: block; }
.arrow-mobile  { display: none; }

/* ---- KALKYLATOR ---- */

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  margin-top: 8px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-row label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #99948e;
  letter-spacing: 0.01em;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field input[type="number"] {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  padding: 8px 12px;
  width: 100%;
  outline: none;
  transition: border-color 200ms ease;
  -moz-appearance: textfield;
}
.calc-field input[type="number"]::-webkit-inner-spin-button,
.calc-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.calc-field input[type="number"]:focus { border-color: var(--olive); }

/* Slider styling */
.calc-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--olive);
  cursor: pointer;
  transition: transform 150ms ease;
}
.calc-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--olive);
  border: none;
  cursor: pointer;
}

/* Resultat-kort */
.calc-result {
  background: #1f1d19;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 40px;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-row.highlight .result-value { color: var(--olive); }

.result-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99948e;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.result-value.result-rai { color: #99948e; }

.result-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.result-pct {
  font-size: 13px;
  color: #99948e;
  line-height: 1.5;
}

/* ---- VALUE PROPS ---- */
.value-props {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-prop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-prop svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.value-prop span,
.value-prop a {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #99948e;
}

.value-prop a {
  color: var(--olive);
  text-decoration: underline;
}

.value-prop a:hover {
  color: var(--white);
}

/* ---- FEATURES GRID (#ingar) ---- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.feature-card {
  padding: 28px;
  border: 1.5px solid #ede8e2;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(194,122,74,0.1);
}

.feature-icon {
  display: flex;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feature-text {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.feature-builds {
  font-size: 0.85rem;
  color: var(--text-soft, #8a8a8a);
  margin-top: 8px;
  line-height: 1.5;
}
.feature-builds strong {
  color: var(--olive, #7a9a5e);
  font-weight: 600;
}

/* ---- USECASE GRID ---- */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 8px;
}

.usecase-card {
  background: var(--white);
  border: 1.5px solid #ede8e2;
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.usecase-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(194,122,74,0.08);
}

.usecase-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.usecase-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.usecase-card-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ---- ORG-GRID ---- */

.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.org-card {
  background: var(--white);
  border: 1px solid #ede8e2;
  border-radius: var(--radius, 8px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.org-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(194,122,74,0.08);
}

.org-icon {
  margin-bottom: 4px;
}

.org-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.org-text p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
  margin: 0;
}

.org-btn {
  margin-top: auto;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 0;
  text-align: left;
  transition: color 0.15s;
  font-family: var(--font-body);
}

.org-btn:hover {
  color: var(--olive, #7a9a5e);
}

@media (max-width: 768px) {
  .org-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- MODAL ---- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: scale(0.95);
  transition: transform 200ms ease;
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ede8e2;
  background: var(--white);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.org-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg);
  transition: background 200ms ease;
}

.org-modal-item:hover { background: var(--accent-soft); }

.org-modal-dot {
  flex-shrink: 0;
  padding-top: 3px;
}

.org-modal-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.org-modal-item-body strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.org-modal-item-body span {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ---- SAMMANFATTNING ---- */

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
  max-width: 680px;
}

.summary-body p {
  font-size: 16px;
  line-height: 1.75;
  color: #99948e;
}

.summary-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
  width: 100%;
  max-width: 680px;
}

.summary-pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.pillar-word {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pillar-desc {
  font-size: 13px;
  color: #99948e;
  line-height: 1.5;
}

/* ---- PRICING ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 8px;
  width: 100%;
  max-width: 900px;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid #ede8e2;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(194,122,74,0.15);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(194,122,74,0.1);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  align-self: flex-start;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pricing-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.85rem;
  color: #99948e;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-soft);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 800;
  font-size: 0.75rem;
}

.pricing-card .btn-primary {
  text-align: center;
  width: 100%;
}

/* ---- FOOTER ---- */

#footer {
  background: var(--text);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: #99948e;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

.footer-tagline {
  font-size: 14px;
  color: #99948e;
}

.footer-copy {
  padding-top: 24px;
}

.footer-copy span {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .calc-result {
    position: static;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .section-hero .container {
    flex-direction: column;
  }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .org-grid { grid-template-columns: 1fr 1fr; }
  .summary-pillars { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .contrast-panels {
    flex-direction: column;
    gap: 16px;
  }
  .contrast-panel {
    width: 100%;
  }
  .arrow-desktop { display: none; }
  .arrow-mobile  { display: block; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .section-hero { padding: 120px 0 80px; }
  .features-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr; gap: 12px; }
  .org-btn { padding: 24px; }
  .modal-box { padding: 32px 24px; border-radius: 12px; }
  .modal-items { grid-template-columns: 1fr; }
}
