/* ============================================================
   auktionsplattform.se — main stylesheet
   Design: Linear/Stripe-inspired, B2B SaaS, mobile-first
   Palette: #1e3d2f (primary), #c9a961 (gold/CTA), #f4f4f5 (bg)
   ============================================================ */

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1e3d2f;
  --green-dark:  #162e22;
  --green-light: #2c5443;
  --gold:        #c9a961;
  --gold-dark:   #b08d45;
  --white:       #ffffff;
  --gray-50:     #f9f9fa;
  --gray-100:    #f4f4f5;
  --gray-200:    #e8e8ea;
  --gray-400:    #a0a0a8;
  --gray-600:    #6b6b72;
  --gray-800:    #2a2a2e;
  --text:        #1a1a1e;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow:      0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.13);
  --max-w:       1100px;
  --transition:  0.18s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1.3;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--gold);
  color: #1a1a1e;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #1a1a1e; box-shadow: 0 4px 12px rgba(201,169,97,.35); }
.btn-secondary {
  background: var(--white);
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover { background: var(--green); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: transparent;
  padding-left: .5rem;
  padding-right: .5rem;
}
.btn-ghost:hover { color: var(--green-light); }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: .8rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo-dot { color: var(--green); }
.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.main-nav a {
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-600);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--gray-100); }
.main-nav .nav-cta { margin-left: .5rem; }
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(201,169,97,.18);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: 1.25rem;
}

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 4.5rem 0; }
.section-bg { background: var(--gray-100); }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .6rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.section-header { max-width: 600px; }
.section-header.centered { max-width: 700px; margin: 0 auto; text-align: center; }
.section-header.centered .section-sub { margin-left: auto; margin-right: auto; }

/* ── Value props ────────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(30,61,47,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.value-card h3 { margin-bottom: .5rem; color: var(--green); }
.value-card p { font-size: .92rem; color: var(--gray-600); }

/* ── Feature grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-sm); }
.feature-item-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.feature-item-body h4 { font-size: .9rem; margin-bottom: .2rem; color: var(--text); }
.feature-item-body p { font-size: .8rem; color: var(--gray-600); margin: 0; }
.feature-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-600);
  margin-top: .3rem;
}
.feature-badge.gold { background: rgba(201,169,97,.15); color: #7a5500; }
.feature-group-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 1.75rem 0 .6rem;
  grid-column: 1 / -1;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-top: 1rem;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow); }
.plan-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green), var(--shadow);
  transform: scale(1.02);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .25rem .75rem;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .4rem;
}
.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: .2rem;
}
.plan-price span { font-size: .9rem; font-weight: 400; color: var(--gray-600); }
.plan-price-note { font-size: .75rem; color: var(--gray-400); margin-bottom: 1rem; }
.plan-desc { font-size: .85rem; color: var(--gray-600); margin-bottom: 1.25rem; min-height: 2.8rem; }
.plan-features { font-size: .82rem; margin-bottom: 1.5rem; }
.plan-features li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .3rem 0;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--green); flex-shrink: 0; font-weight: 700; margin-top: .05rem; }
.plan-cta { width: 100%; justify-content: center; }

/* ── Comparison table ───────────────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comparison-table th { background: var(--gray-100); padding: .75rem 1rem; text-align: left; color: var(--gray-800); font-weight: 600; }
.comparison-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-200); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .val-us { color: #186230; font-weight: 600; }
.comparison-table .val-them { color: var(--gray-600); }
.comparison-table .highlight { background: rgba(30,61,47,.03); }
.comparison-overflow { overflow-x: auto; }

/* ── Social proof ───────────────────────────────────────────── */
.proof-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.proof-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.proof-quote { font-size: 1rem; font-style: italic; color: var(--gray-800); margin-bottom: .5rem; }
.proof-source { font-size: .82rem; color: var(--gray-400); }
.dog-food-banner {
  background: rgba(30,61,47,.06);
  border: 1px solid rgba(30,61,47,.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--green);
  display: flex;
  gap: .75rem;
  align-items: center;
}

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: var(--green);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.5); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 600px;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--gray-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30,61,47,.1);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group .field-help { font-size: .75rem; color: var(--gray-400); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 1.5rem; }
.flash {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .92rem;
}
.flash.success { background: #d4f5e0; color: #186230; border: 1px solid #b8e8cc; }
.flash.error   { background: #fee8e8; color: #8c0c0c; border: 1px solid #f5c0c0; }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--gray-100);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.page-hero p { color: var(--gray-600); font-size: 1.05rem; }

/* ── Prose (legal pages) ────────────────────────────────────── */
.prose {
  max-width: 760px;
}
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; color: var(--green); }
.prose h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { font-size: .95rem; color: var(--gray-800); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--green); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1.25rem 0; }
.prose table th { background: var(--gray-100); padding: .6rem .85rem; text-align: left; font-weight: 600; }
.prose table td { padding: .6rem .85rem; border-bottom: 1px solid var(--gray-200); }

/* ── Start / placeholder ────────────────────────────────────── */
.coming-soon-banner {
  background: #fff4d4;
  border: 1px solid #e8d080;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: .92rem;
  color: #7a5800;
  margin-bottom: 2rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: rgba(255,255,255,.9); }
.footer-brand .logo:hover { color: var(--white); }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.6); margin: .6rem 0 .4rem; }
.footer-legal { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-legal a { color: rgba(255,255,255,.6); text-decoration: underline; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h3 { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.footer-nav a { display: block; font-size: .85rem; color: rgba(255,255,255,.65); padding: .2rem 0; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.25rem 0;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); text-align: center; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { font-size: .8rem; color: var(--gray-400); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--gray-600); }
.breadcrumb span { margin: 0 .35rem; }

/* ── Onboarding wizard steps ────────────────────────────────── */
.onb-steps {
  list-style: none;
  display: flex;
  gap: .35rem;
  padding: 0;
  margin: 0 0 2rem;
  flex-wrap: wrap;
  counter-reset: onb;
}
.onb-step {
  flex: 1 1 80px;
  min-width: 80px;
  padding: .65rem .5rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: .75rem;
  color: var(--gray-600);
  position: relative;
  transition: background .2s, color .2s;
}
.onb-step.active {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}
.onb-step.done {
  background: #d4f5e0;
  color: #186230;
}
.onb-step-n {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: .15rem;
}
.onb-step-l { display: block; line-height: 1.2; }

/* ── Misc helpers ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 3rem 0; }

  .mobile-menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .65rem .75rem; font-size: .95rem; }
  .main-nav .nav-cta { margin-left: 0; margin-top: .25rem; width: 100%; justify-content: center; }

  .site-header { position: relative; }

  .hero { padding: 3.5rem 0 4rem; }
  .hero::after { height: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }

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

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .proof-block { flex-direction: column; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-band-actions { flex-direction: column; }
  .cta-band-actions .btn { width: 100%; justify-content: center; }
}
