/* ============================================================
   SmartStandard – Landingsside (index.html)
   ============================================================ */

/* ── TOPBAR ── */
.topbar {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--accent);
  gap: 16px;
}

.topbar .brand-name { color: var(--paper); }
.topbar .brand-name span { color: var(--amber-lt); }

.topbar-spacer { flex: 1; }

.topbar-login {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rule);
  background: #2a2a28;
  border: 1px solid #3a3a38;
  border-radius: var(--radius);
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.topbar-login:hover { color: var(--paper); border-color: #666; }

/* ── HERO ── */
.hero {
  background: var(--ink);
  padding: 72px 32px 56px;
  border-bottom: 3px solid var(--accent);
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--paper);
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 16px;
}

.hero-title strong {
  font-weight: 700;
  font-style: italic;
  color: #fff;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #aaa;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Hero søkefelt */
.hero-search {
  display: flex;
  max-width: 680px;
  margin: 0 auto 32px;
  background: #fff;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}

.hero-search:focus-within { border-color: var(--amber-lt); }

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 20px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
}

.hero-search input::placeholder { color: #999; font-style: italic; }

.hero-search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-search-btn:hover { background: var(--accent-lt); }

/* Bransje-tags i hero */
.hero-bransjer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}

.bransje-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #3a3a38;
  color: #ccc;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.13s;
  white-space: nowrap;
}

.bransje-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── SLIK FUNGERER DET ── */
.how-section {
  padding: 72px 32px;
  text-align: center;
  background: var(--paper);
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.5% + 24px);
  right: calc(16.5% + 24px);
  height: 2px;
  background: var(--rule);
  pointer-events: none;
}

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

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber-lt);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--ink3);
  line-height: 1.65;
  max-width: 220px;
}

/* ── EKSEMPEL-SVAR ── */
.example-section {
  background: var(--paper-2);
  padding: 72px 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.example-inner {
  max-width: 820px;
  margin: 0 auto;
}

.example-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 6px;
}

.example-question {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink2);
  margin-bottom: 24px;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* Bruker .ai-answer fra style.css */

.example-sources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

/* ── CTA ── */
.cta-section {
  background: var(--ink);
  padding: 72px 32px;
  text-align: center;
  border-top: 3px solid var(--accent);
}

.cta-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--paper);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-title strong { font-weight: 700; font-style: italic; color: #fff; }

.cta-sub {
  font-size: 1rem;
  color: #888;
  margin-bottom: 36px;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  border-top: 1px solid #2a2a28;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { color: var(--paper); font-size: 0.95rem; }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  transition: color 0.13s;
}
.footer-links a:hover { color: var(--rule); }

.footer-copy {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #444;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .topbar { padding: 0 16px; }

  .hero { padding: 48px 20px 40px; text-align: left; }
  .hero-title, .hero-sub { margin-left: 0; margin-right: 0; text-align: left; }
  .hero-search { max-width: none; }
  .hero-bransjer { justify-content: flex-start; }

  .how-section { padding: 48px 20px; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps-grid::before { display: none; }
  .step { flex-direction: row; align-items: flex-start; text-align: left; }
  .step-desc { max-width: none; }

  .example-section { padding: 48px 20px; }
  .example-sources { grid-template-columns: 1fr; }

  .cta-section { padding: 48px 20px; }
  .cta-title, .cta-sub { text-align: left; }

  .footer { flex-direction: column; padding: 28px 20px; gap: 16px; }
}
