/* ==========================================================================
   Academa — demo redesign
   Static marketing site. Design tokens + components.
   ========================================================================== */

:root {
  /* Brand */
  --blue:        #1670bd;
  --blue-600:    #1461a6;
  --blue-700:    #114f88;
  --navy:        #0f2a45;
  --navy-soft:   #1b3a5b;
  --teal:        #29a3b8;

  /* Surfaces */
  --bg:          #ffffff;
  --tint:        #eef4fb;
  --tint-2:      #e6f0fa;
  --hero-top:    #eaf3fc;
  --card:        #ffffff;
  --line:        #e6ebf2;

  /* Text */
  --ink:         #0f2a45;
  --body:        #4c5a6e;
  --muted:       #8391a3;

  /* Feedback */
  --green:       #17925f;
  --green-bg:    #e7f6ee;

  /* Shape & depth */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 4px 14px rgba(15, 42, 69, .05);
  --shadow:    0 14px 40px rgba(15, 42, 69, .08);
  --shadow-lg: 0 24px 60px rgba(15, 42, 69, .12);

  /* Rhythm — deliberately airy (more whitespace than the mockup) */
  --section-y: 116px;
  --container: 1180px;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* Reset-ish ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--soft { background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.section-head p { margin-top: 16px; font-size: 1.08rem; }
.lead { font-size: 1.18rem; color: var(--body); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(22, 112, 189, .28); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22, 112, 189, .34); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); padding-inline: 4px; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; color: var(--blue);
}
.arrow-link svg { width: 18px; height: 18px; transition: transform .18s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ======================================================================
   Header / nav
   ====================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(230, 235, 242, .8);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy); letter-spacing: -.01em; }
.brand .cap { width: 30px; height: 30px; color: var(--blue); }
.brand .dot { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li > a,
.nav-links > li > .dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  color: var(--navy); padding: 10px 16px; border-radius: 10px;
  background: none; border: none;
}
.nav-links > li > a:hover,
.nav-links > li > .dd-toggle:hover { color: var(--blue); background: var(--tint); }
.nav-links a.is-active { color: var(--blue); }
.nav-links a.is-active::after { content: ""; display: block; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Dropdown */
.dropdown { position: relative; }
.dd-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.dropdown.open .dd-toggle svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .18s ease;
}
.dropdown.open .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-menu a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--navy); font-weight: 500; }
.dd-menu a:hover { background: var(--tint); color: var(--blue); }

/* Hamburger */
.hamburger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; border-radius: 2px; transition: .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ======================================================================
   Hero
   ====================================================================== */
.hero { background: linear-gradient(180deg, var(--hero-top) 0%, #ffffff 78%); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: 96px 104px;
}
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4rem); font-weight: 700; color: var(--navy); }
.hero h1 .dot { color: var(--blue); }
.hero p { font-size: 1.24rem; margin: 26px 0 36px; max-width: 30ch; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ======================================================================
   Media placeholders (swap for real photos later)
   ====================================================================== */
.ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 10%, #dcebfb 0%, rgba(220,235,251,0) 60%),
    linear-gradient(150deg, #cfe3f7 0%, #eaf3fc 55%, #dbeafb 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.ph::after {
  content: "Platshållarbild"; position: absolute; bottom: 12px; right: 14px;
  font-family: var(--font-head); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: #6f8bab; background: rgba(255,255,255,.7); padding: 4px 9px; border-radius: 999px;
}
.ph .ph-icon { width: 30%; max-width: 120px; color: #7ba7d6; opacity: .85; }
.ph--photo { background: #cfe0f2; }
.ph--photo::after { content: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .ph { aspect-ratio: 5 / 5.4; }

/* ======================================================================
   Course cards
   ====================================================================== */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.course-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.course-grid--3 { grid-template-columns: repeat(3, 1fr); }
.course-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card .ph { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 11; }
.course-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.course-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--tint-2);
  color: var(--blue); display: grid; place-items: center; margin: -46px 0 18px; position: relative;
  border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.course-icon svg { width: 22px; height: 22px; }
.course-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.course-card p { font-size: .98rem; color: var(--body); flex: 1; }
.course-card .arrow-link { margin-top: 18px; }

/* ======================================================================
   Feature / trust strip
   ====================================================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .f-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.feature .f-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { font-size: .96rem; margin: 0; }

/* ======================================================================
   CTA band
   ====================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(120deg, var(--navy) 0%, #163a5e 60%, #14507f 100%);
  border-radius: var(--r-xl); padding: 66px 64px; color: #fff; position: relative; overflow: hidden;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 18ch; }
.cta-inner h2 .dot { color: #6fb2ee; }
.cta-inner p { color: #c7d8ea; margin: 16px 0 30px; max-width: 46ch; font-size: 1.1rem; }
.cta-inner .deco {
  position: absolute; right: -40px; bottom: -60px; width: 340px; color: rgba(255,255,255,.09);
}

/* ======================================================================
   Footer
   ====================================================================== */
.site-footer { background: #0c2137; color: #b7c6d6; padding-block: 70px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #b7c6d6; }
.site-footer a:hover { color: #fff; }
.footer-grid li { margin-bottom: 10px; }
.footer-about p { font-size: .96rem; color: #9fb2c4; max-width: 34ch; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.socials a:hover { background: var(--blue); }
.socials svg { width: 19px; height: 19px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.footer-contact svg { width: 18px; height: 18px; color: #6fb2ee; flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #7e93a8; }
.demo-flag { background: rgba(111,178,238,.16); color: #cfe4f7; padding: 3px 12px; border-radius: 999px; font-family: var(--font-head); font-size: .78rem; }

/* ======================================================================
   Breadcrumb
   ====================================================================== */
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); padding-top: 30px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: #c2cddb; }
.breadcrumb .current { color: var(--navy); font-weight: 500; }

/* ======================================================================
   Course detail
   ====================================================================== */
.course-hero { padding-top: 22px; padding-bottom: 8px; }
.course-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tag { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.course-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 700; color: var(--navy); margin: 12px 0 22px; }
.course-hero h1 .dot { color: var(--blue); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; margin: 24px 0 26px; }
.chip { display: flex; gap: 12px; align-items: center; }
.chip .c-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.chip .c-icon svg { width: 18px; height: 18px; }
.chip b { font-family: var(--font-head); color: var(--navy); font-size: .9rem; line-height: 1.25; display: block; }
.chip span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.course-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.course-hero-media .ph { aspect-ratio: 4 / 4.3; }

.detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; padding-top: 20px; }

/* Tabs */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 34px; }
.tab-btn {
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--muted);
  background: none; border: none; padding: 14px 6px; margin-right: 22px; position: relative;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.is-active { color: var(--blue); }
.tab-btn.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; }
.tab-panel { display: none; animation: fade .3s ease; }
.tab-panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tab-panel h3 { color: var(--navy); font-size: 1.35rem; margin: 4px 0 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.leads-to { background: var(--tint); border-radius: var(--r); padding: 26px 28px; margin-top: 8px; }
.leads-to h4 { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; margin-bottom: 16px; }
.leads-to li { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; font-weight: 500; color: var(--navy); }
.leads-to .l-icon { width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; }
.leads-to .l-icon svg { width: 18px; height: 18px; }

.info-panel { background: linear-gradient(125deg, #0f2a45 0%, #163a5e 58%, #14507f 100%); border: none; border-radius: var(--r-lg); padding: 32px 34px; box-shadow: 0 20px 46px rgba(15, 42, 69, .22); margin-bottom: 36px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 24px; }

/* Nav dropdown groups */
.dd-menu { min-width: 250px; max-height: 72vh; overflow: auto; }
.dd-group { display: block; font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 4px; }

/* Course pages: content blocks */
.course-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .96rem; }
.course-table th { text-align: left; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.course-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--body); }
.course-table td:last-child, .course-table th:last-child { text-align: right; white-space: nowrap; }
.note-box { background: var(--tint); border-radius: var(--r); padding: 18px 22px; margin-top: 22px; font-size: .95rem; }
.note-box b { font-family: var(--font-head); color: var(--navy); display: block; margin-bottom: 4px; }
.note-box p { margin: 0; }
.content-list li { margin-bottom: 16px; }
.content-list b { font-family: var(--font-head); color: var(--navy); display: block; margin-bottom: 2px; }
.learn-list { list-style: disc; padding-left: 22px; margin: 12px 0 26px; }
.learn-list li { margin-bottom: 8px; }
.catalog-group { margin-bottom: 64px; }
.catalog-group:last-child { margin-bottom: 0; }
.catalog-group h3 { font-size: 1.55rem; margin-bottom: 8px; }
.catalog-group > p { color: var(--muted); margin-bottom: 24px; }
.course-card.is-soon { opacity: .75; }
.soon-badge { display: inline-block; background: var(--tint); color: var(--blue); font-family: var(--font-head); font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.price-block { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; padding-top: 22px; }
.price-block h4 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 14px; display: flex; align-items: baseline; gap: 8px; }
.price-block h4 span { font-size: .74rem; color: #a9c2d8; font-weight: 500; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.price-row:last-child { border-bottom: 0; }
.price-row > span { color: #dce8f4; font-size: .95rem; }
.price-row em { color: #a9c2d8; font-style: normal; font-size: .82rem; margin-left: 5px; }
.price-row b { color: #fff; font-family: var(--font-head); font-size: 1rem; white-space: nowrap; }

/* Kostnad & finansiering tab (white background) */
.price-list { background: var(--tint); border-radius: var(--r); padding: 8px 24px; margin: 22px 0 6px; }
.price-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-item:last-of-type { border-bottom: 0; }
.price-item > span { color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: 1rem; }
.price-item em { color: var(--muted); font-style: normal; font-size: .84rem; margin-left: 6px; font-family: var(--font-body); }
.price-item b { color: var(--navy); font-family: var(--font-head); font-size: 1.08rem; white-space: nowrap; }
.price-note { font-size: .85rem; color: var(--muted); margin: 10px 2px 0; }
.roi-callout { background: var(--green-bg); border-left: 4px solid var(--green); border-radius: 10px; padding: 18px 22px; margin-top: 22px; }
.roi-callout p { margin: 0; color: #0f5c3c; font-size: .98rem; line-height: 1.6; }
.info-item svg { width: 22px; height: 22px; color: #7cb8f0; flex: none; margin-top: 2px; }
.info-item b { font-family: var(--font-head); color: #fff; font-size: .98rem; display: block; }
.info-item span { font-size: .85rem; color: #a9c2d8; }

/* FAQ (accordion) */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-head); font-weight: 500; font-size: 1.06rem; color: var(--navy); }
.faq-q svg { width: 20px; height: 20px; color: var(--blue); flex: none; transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 20px; margin: 0; color: var(--body); }

/* ======================================================================
   Quiz widget (sidebar)
   ====================================================================== */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px 28px; }
.quiz h3 { font-size: 1.28rem; color: var(--navy); margin-bottom: 6px; }
.quiz-sub { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }

/* Progress bar (Intresseanmälan) */
.quiz-progress { margin-bottom: 22px; }
.quiz-progress .lbl { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 500; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.quiz-progress .bar { height: 7px; background: var(--line); border-radius: 5px; overflow: hidden; }
.quiz-progress .bar span { display: block; height: 100%; background: var(--blue); border-radius: 5px; transition: width .3s ease; }

/* Multi-select options render as checkboxes */
.quiz-step[data-type="multi"] .opt .radio { border-radius: 6px; }
.quiz-step[data-type="multi"] .opt.selected .radio { background: var(--blue); border-color: var(--blue); }
.quiz-step[data-type="multi"] .opt.selected .radio::after { width: 5px; height: 9px; border: 2px solid #fff; border-top: 0; border-left: 0; border-radius: 0; background: transparent; transform: rotate(45deg) translate(-1px, -1px); }

/* Fields inside the form step */
.quiz-step .field { margin-bottom: 14px; }
.quiz-step .field:last-child { margin-bottom: 0; }
.quiz-step .field textarea { min-height: 96px; }

.stepper { display: flex; justify-content: space-between; margin-bottom: 26px; position: relative; }
.stepper::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--line); z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: .9rem; transition: .2s; }
.step .lbl { font-size: .74rem; color: var(--muted); font-family: var(--font-head); font-weight: 500; }
.step.done .dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.active .dot { background: #fff; border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px rgba(22,112,189,.14); }
.step.active .lbl, .step.done .lbl { color: var(--navy); }

.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fade .3s ease; }
.q-count { font-size: .82rem; color: var(--muted); font-family: var(--font-head); font-weight: 500; margin-bottom: 8px; }
.q-title { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.12rem; margin-bottom: 6px; line-height: 1.35; }
.q-hint { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }

.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 15px 16px;
  margin-bottom: 12px; font-size: .98rem; color: var(--navy); font-family: var(--font-body);
  transition: .15s;
}
.opt:hover { border-color: #b9d3ee; background: #f7fbff; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cdd8e5; flex: none; display: grid; place-items: center; transition: .15s; }
.opt .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: transparent; transition: .15s; }
.opt.selected { border-color: var(--blue); background: #f2f8fe; }
.opt.selected .radio { border-color: var(--blue); }
.opt.selected .radio::after { background: var(--blue); }

.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.quiz-nav .btn { padding: 13px 22px; }

/* Result */
.quiz-result { display: none; text-align: left; }
.quiz-result.is-active { display: block; animation: fade .3s ease; }
.result-head { display: flex; align-items: center; gap: 10px; color: var(--green); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.result-head svg { width: 26px; height: 26px; }
.result-lead { color: var(--body); font-size: .96rem; margin-bottom: 18px; }
.result-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--navy); font-size: .95rem; }
.result-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.result-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.quiz-restart { background: none; border: none; color: var(--muted); font-family: var(--font-head); font-size: .9rem; text-decoration: underline; margin-top: 4px; }

/* Fact box */
.fact { background: var(--tint); border-radius: var(--r-lg); padding: 24px 26px; display: flex; gap: 16px; }
.fact .fact-icon { width: 46px; height: 46px; border-radius: 12px; background: #fff; color: #e0a92e; display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.fact .fact-icon svg { width: 24px; height: 24px; }
.fact b { font-family: var(--font-head); color: var(--navy); display: block; margin-bottom: 4px; }
.fact p { font-size: .92rem; margin: 0; color: var(--body); }
.fact .src { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ======================================================================
   Contact
   ====================================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.contact-card .cc-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-card .cc-icon svg { width: 23px; height: 23px; }
.contact-card b { font-family: var(--font-head); color: var(--navy); display: block; margin-bottom: 3px; }
.contact-card p, .contact-card a { margin: 0; color: var(--body); font-size: .98rem; }

.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 38px; box-shadow: var(--shadow); }
.form-wrap h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.form-wrap > p { color: var(--muted); font-size: .96rem; margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--navy); margin-bottom: 8px; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--navy); background: #fbfcfe; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22,112,189,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: fade .3s ease; }
.form-success .fs-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .fs-icon svg { width: 32px; height: 32px; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }

.map-note { margin-top: 22px; font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.map-note svg { width: 18px; height: 18px; color: var(--blue); }

/* ======================================================================
   Demo banner
   ====================================================================== */
.demo-banner {
  background: linear-gradient(90deg, #114f88, #1670bd);
  color: #eaf3fc; text-align: center; font-size: .84rem; font-family: var(--font-head);
  padding: 8px 16px; letter-spacing: .01em;
}
.demo-banner b { color: #fff; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 980px) {
  :root { --section-y: 84px; }
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 78px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 16px 24px 24px; box-shadow: var(--shadow);
  }
  .nav-links.mobile-open > li > a, .nav-links.mobile-open .dd-toggle { width: 100%; }
  .nav-links.mobile-open .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 12px; }
  .hero-inner, .course-hero-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media, .course-hero-media { order: -1; max-width: 480px; }
  .detail-grid .sidebar { position: static; }
  .course-grid, .course-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .chips, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-inner { padding: 44px 34px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .course-grid, .course-grid--2, .course-grid--3, .info-grid, .chips, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px 22px; }
  .chips { gap: 16px; }
}

/* Promo band (paket medborgarskap) */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px 44px; box-shadow: var(--shadow-sm); }
.promo h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 4px 0 12px; }
.promo p { margin: 0; max-width: 62ch; }
.promo .btn { flex: none; }
@media (max-width: 980px) { .promo { flex-direction: column; align-items: flex-start; padding: 30px 26px; } }

/* Logo images (round 4) */
.brand img { height: 34px; width: auto; display: block; }
.site-footer .brand img { height: 30px; }
.nav-links > li > a, .nav-links > li > .dd-toggle { padding: 10px 12px; }
.btn-pill { border-radius: 999px; padding-inline: 34px; }
/* Home hero like the mock: unframed photo, soft fade on the left */
.hero-media--cutout .ph { border-radius: 0; box-shadow: none; background: none; aspect-ratio: 5 / 4.6; }
.hero-media--cutout .ph img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(0deg, transparent 0%, #000 26%), linear-gradient(180deg, transparent 0%, #000 18%); -webkit-mask-composite: source-in, source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(0deg, transparent 0%, #000 26%), linear-gradient(180deg, transparent 0%, #000 18%); mask-composite: intersect; }
.course-grid--4 { grid-template-columns: repeat(4, 1fr); }
.course-grid--4 .course-card h3 { font-size: 1.15rem; }
.course-grid--4 .course-card p { font-size: .92rem; }
.course-grid--4 .course-card-body { padding: 22px 20px 24px; }
@media (max-width: 1100px) { .course-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .course-grid--4 { grid-template-columns: 1fr; } }
/* Simple content pages */
.page-body { max-width: 760px; }
.page-body h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.page-body p { font-size: 1.05rem; }

/* Full-width home hero: photo bleeds to the right edge of the viewport */
.hero--full { position: relative; min-height: 620px; display: flex; align-items: center; }
.hero--full .hero-inner { grid-template-columns: minmax(0, 560px); width: 100%; }
.hero--full .hero-media { position: absolute; right: 0; top: 0; bottom: 0; width: 54vw; max-width: none; }
.hero--full .hero-media .ph { height: 100%; aspect-ratio: auto; }
.hero--full .hero-media .ph img { height: 100%; width: 100%; object-fit: cover; object-position: 45% center; }
@media (max-width: 980px) {
  .hero--full { min-height: 0; display: block; }
  .hero--full .hero-inner { grid-template-columns: 1fr; }
  .hero--full .hero-media { position: static; width: 100%; max-width: none; margin-bottom: 8px; }
  .hero--full .hero-media .ph { aspect-ratio: 16 / 10; height: auto; }
}

/* Round 5: content pages */
.h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 4px 0 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col--form { grid-template-columns: .8fr 1.2fr; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 18px; margin-bottom: 22px; }
.steps .step-n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
.steps li b { font-family: var(--font-head); color: var(--navy); display: block; margin-bottom: 4px; font-size: 1.08rem; }
.mini-grid { display: grid; gap: 22px; margin-top: 26px; }
.mini-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mini-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.mini-card b { font-family: var(--font-head); color: var(--navy); display: block; margin-bottom: 8px; font-size: 1.05rem; }
.mini-card p { margin: 0 0 10px; font-size: .96rem; }
.mini-card p:last-child { margin-bottom: 0; }
.accordion .faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; padding: 0 22px; }
.accordion .faq-q { padding: 18px 0; align-items: flex-start; }
.accordion .faq-q span { display: block; }
.accordion .faq-q b { display: block; font-family: var(--font-head); color: var(--navy); }
.accordion .faq-q small { display: block; color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: .92rem; margin-top: 2px; }
.accordion .faq-a p { padding: 0 0 10px; margin: 0; }
.process-fig { margin: 8px 0 44px; }
.process-fig img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-body h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.muted { color: var(--muted); font-size: .95rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 6px; }
.check-grid label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-weight: 400; font-size: .94rem; color: var(--body); }
.check-grid input { accent-color: var(--blue); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.mail-success { text-align: center; padding: 26px 10px; }
.mail-success b { font-family: var(--font-head); color: var(--green); display: block; font-size: 1.15rem; margin-bottom: 6px; }
.mail-success[hidden], .modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 42, 69, .55); }
.modal-box { position: relative; background: #fff; border-radius: var(--r-lg); padding: 34px 36px; width: min(620px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-box h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.6rem; color: var(--muted); line-height: 1; }
@media (max-width: 980px) { .two-col, .two-col--form, .mini-grid--3, .mini-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .two-col, .two-col--form, .mini-grid--3, .mini-grid--4, .check-grid { grid-template-columns: 1fr; } .modal-box { padding: 26px 20px; } }

/* Mobile fixes (round 6): no horizontal overflow, collapsible + scrollable menu */
html, body { overflow-x: hidden; }
.nav-mobile-cta { display: none; }
@media (max-width: 980px) {
  .course-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links.mobile-open { top: 78px; max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); overflow-y: auto; padding-bottom: 28px; }
  .nav-links.mobile-open > li > a, .nav-links.mobile-open .dd-toggle { padding: 13px 12px; font-size: 1.05rem; }
  .nav-links.mobile-open .dd-toggle { justify-content: space-between; }
  .nav-links.mobile-open .dd-menu { display: none; max-height: none; overflow: visible; padding: 4px 0 8px 12px; }
  .nav-links.mobile-open .dropdown.open .dd-menu { display: block; }
  .nav-links.mobile-open .nav-mobile-cta { display: block; margin-top: 14px; }
  .nav-links.mobile-open .nav-mobile-cta .btn { display: flex; width: 100%; justify-content: center; padding: 14px 20px; }
  .course-table td:last-child, .course-table th:last-child { white-space: normal; }
}
@media (max-width: 560px) {
  .course-grid--4 { grid-template-columns: 1fr; }
  .price-item { flex-wrap: wrap; gap: 4px 12px; }
  .cta-inner { padding: 38px 24px; }
  .promo { padding: 26px 20px; }
}
/* Mobile polish (round 6b): grid children may shrink, wide buttons wrap, tabs become a swipeable strip */
.two-col > *, .mini-grid > *, .course-grid > *, .detail-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .two-col, .two-col--form { grid-template-columns: minmax(0, 1fr); }
  .btn { white-space: normal; text-align: center; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 2px; margin-inline: -20px; padding-inline: 20px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex: none; }
}

/* Launch prep */
.consent { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; line-height: 1.5; }
.consent a { color: var(--blue); }
.mail-success h3 { color: var(--green); margin: 8px 0 6px; }
.mail-success .fs-icon { margin: 0 auto 4px; }
