:root {
  --bg: #f5eee2;
  --bg-soft: #f1e4d2;
  --surface: rgba(255, 251, 243, 0.84);
  --surface-strong: #fffaf1;
  --ink: #1f2824;
  --ink-soft: #47524c;
  --line: rgba(98, 84, 55, 0.14);
  --accent: #7a6640;
  --accent-deep: #5f4d2f;
  --shadow: 0 18px 60px rgba(35, 44, 40, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --sans: Aptos, "Segoe UI", Candara, system-ui, sans-serif;
  --header-offset: 100px;
  --footer-offset: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 36%),
    radial-gradient(circle at right center, rgba(214, 185, 121, 0.22), transparent 28%),
    linear-gradient(180deg, #f8f1e6 0%, #f2e7d8 52%, #efe1ce 100%);
  line-height: 1.6;
}

main {
  display: grid;
  gap: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[data-lang="sv"],
[data-lang="en"] {
  display: none !important;
}

html[data-ui-lang="sv"] [data-lang="sv"] {
  display: revert !important;
}

html[data-ui-lang="en"] [data-lang="en"] {
  display: revert !important;
}

html[data-ui-lang="sv"] .button[data-lang="sv"],
html[data-ui-lang="en"] .button[data-lang="en"] {
  display: inline-flex !important;
}

html[data-ui-lang="sv"] .footer-line[data-lang="sv"],
html[data-ui-lang="en"] .footer-line[data-lang="en"] {
  display: flex !important;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 120px;
}

.site-header,
.hero,
.section,
.contact-band,
.site-footer {
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 16px 22px;
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(54, 69, 63, 0.1);
  box-shadow: 0 12px 30px rgba(35, 44, 40, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f2dfb6, #dbc590);
  border: 1px solid rgba(95, 77, 47, 0.14);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.8);
  border: 1px solid var(--line);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent-deep);
  color: #f7f2eb;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 0 0 12px;
  scroll-margin-top: 120px;
}

.hero-copy,
.hero-summary,
.info-card,
.step-card,
.faq-item,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-image-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--header-offset) - 96px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: clamp(280px, 38vw, 460px);
  object-fit: cover;
  object-position: center 18%;
}

.hero-copy {
  width: 100%;
  margin-inline: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.9rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.lead {
  font-size: 1rem;
  max-width: 58ch;
  color: var(--ink-soft);
  margin: 16px 0 0;
}

.lead-intro {
  margin-top: 18px;
  margin-bottom: -4px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-note {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button-inline {
  min-height: 42px;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #f9f6f0;
  background: linear-gradient(135deg, #8c7446, #5f4d2f);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 250, 243, 0.74);
  border: 1px solid var(--line);
}

.trust-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(49, 69, 61, 0.08);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-summary {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.9), rgba(245, 235, 215, 0.8)),
    rgba(255, 251, 243, 0.84);
}

.summary-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.summary-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.summary-item {
  margin: 0;
}

.summary-grid dt,
.contact-list dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.summary-grid dd,
.contact-list dd {
  margin: 0;
  font-size: 0.97rem;
}

.section {
  padding: 44px 0 0;
  scroll-margin-top: 120px;
}

.section-soft,
.section-accent,
.contact-band {
  margin-top: 28px;
  padding: 36px 0 0;
  border-radius: 0;
}

.section-soft {
  background: transparent;
}

.section-accent {
  background: transparent;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 + p,
.rich-copy p,
.faq-item p,
.step-card p,
.info-card p,
.contact-copy p {
  color: var(--ink-soft);
}

.grid.three-up,
.steps,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.step-card,
.faq-item {
  padding: 24px;
  border-radius: var(--radius-md);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.rich-copy {
  display: grid;
  gap: 16px;
  font-size: 1.05rem;
}

.about-portrait {
  width: min(100%, 220px);
  justify-self: end;
  margin: 0 0 8px 20px;
}

.about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step-card span {
  display: none;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  background: transparent;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 20px;
}

.contact-cta {
  display: block;
}

.contact-cta .button {
  width: 100%;
}

.contact-note {
  margin-top: -4px;
}

.contact-note p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.contact-note a {
  color: var(--accent-deep);
  font-weight: 600;
}

.contact-meta {
  margin-top: 4px;
}

.contact-meta a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  bottom: 12px;
  z-index: 20;
  margin-top: 32px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(54, 69, 63, 0.1);
  box-shadow: 0 12px 30px rgba(35, 44, 40, 0.08);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer a {
  text-decoration: none;
}

.footer-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.footer-line span + span::before,
.footer-line a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 14px;
  border-radius: 999px;
  background: rgba(49, 69, 61, 0.28);
  vertical-align: middle;
}

.footer-line a {
  color: var(--accent-deep);
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact-band {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .about-portrait {
    justify-self: start;
    margin: 4px 0 8px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 16px;
    top: 8px;
    border-radius: 28px;
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
    align-self: center;
  }

  .brand-text span {
    font-size: 1.05rem;
  }

  .brand-text small {
    font-size: 0.8rem;
  }

  .header-actions {
    display: contents;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 4px;
    font-size: 0.9rem;
  }

  .grid.three-up,
  .steps,
  .faq-list {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
  }
}

@media (min-width: 981px) {
  html {
    scroll-snap-type: y proximity;
  }

  main > :first-child {
    padding-top: var(--header-offset);
    padding-bottom: var(--footer-offset);
  }

  main > :last-child {
    padding-bottom: var(--footer-offset);
  }

  .hero {
    min-height: calc(100vh - var(--header-offset) - var(--footer-offset) - 64px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .section,
  .contact-band {
    min-height: auto;
    scroll-snap-align: start;
  }

  .section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .section-soft,
  .section-accent,
  .contact-band {
    margin-top: 0;
  }

  .hero {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .section {
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .section + .section,
  .section + .contact-band {
    margin-top: 44px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-bottom: 140px;
  }

  .hero-image {
    height: clamp(320px, 58vw, 500px);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .brand-text span {
    font-size: 0.98rem;
  }

  .brand-text small {
    font-size: 0.76rem;
  }

  .site-nav {
    gap: 8px 12px;
    font-size: 0.86rem;
  }

  .lang-button {
    padding: 6px 10px;
  }

  .site-footer {
    bottom: 8px;
    padding: 16px;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .hero-summary,
  .section-soft,
  .section-accent,
  .contact-band,
  .info-card,
  .step-card,
  .faq-item,
  .contact-card {
    padding: 22px;
  }

  .hero-summary,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  html[data-ui-lang="sv"] .footer-line[data-lang="en"],
  html[data-ui-lang="en"] .footer-line[data-lang="sv"] {
    display: none !important;
  }


  html[data-ui-lang="sv"] .footer-line[data-lang="sv"],
  html[data-ui-lang="en"] .footer-line[data-lang="en"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
  }

  .footer-line strong {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .footer-line a {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .footer-line span {
    grid-column: 1 / -1;
  }

  .footer-line span::before,
  .footer-line a::before {
    content: none;
  }
}
