/* ============================================================
   LAPLAND LOGIC — FRIENDLY SCANDINAVIAN LIGHT DESIGN SYSTEM
   Single merged site (ADR 0012). Modern, approachable, fast, non-dark UI.
   ============================================================ */

/* Self-hosted under SIL OFL 1.1; licenses: ../assets/fonts/LICENSE-*.txt */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-Light.woff2') format('woff2'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-Medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-SemiBold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  /* --- Light Palette (from Design/colors_and_type.css, light-surface tokens) --- */
  --bg-main:          #F8FAFC;   /* Soft Ice White */
  --bg-surface:       #FFFFFF;   /* Pure White Cards */
  --bg-subtle:        #F1F5F9;   /* Subtle Grey Fill */
  --bg-accent-light:  #E0F2FE;   /* Soft Glacial Blue Tint */

  --text-main:        #0F172A;   /* Deep Slate Primary Text */
  --text-muted:       #475569;   /* Muted Body Text */
  --text-subtle:      #5D6B7F;   /* Subtext / Hints - 4.95:1 auf --bg-subtle (WCAG AA) */

  --accent-blue:      #0EA5E9;   /* Vivid Arctic Cyan/Blue */
  --accent-blue-hover:#0284C7;   /* Deep Blue Hover */
  --accent-navy:      #0F172A;   /* Dark Navy Accent */

  /* --accent-blue is a UI/icon accent, not text-safe on light surfaces (~2.5:1).
     --text-link is the same brand blue, darkened until it clears 4.5:1 on --bg-subtle
     and --bg-surface (measured 5.4:1 / 5.9:1) — use it wherever the accent colour
     carries text, not decoration. */
  --text-link:        #0369A1;   /* AA text-safe Arctic Blue */
  --text-success:     #15803D;   /* Form success message, 4.6:1 on --bg-subtle */
  --text-error:       #B91C1C;   /* Form error message, 5.9:1 on --bg-subtle */

  --border-light:     #E2E8F0;   /* Clean Divider Border */
  --border-focus:     #7DD3FC;   /* Focus Border */

  --font-sans:        'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:        'IBM Plex Mono', monospace;

  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-pill:      9999px;

  --shadow-sm:        0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md:        0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg:        0 16px 36px rgba(14, 165, 233, 0.12);

  --transition:       all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Visible focus outline everywhere (accessibility requirement) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-blue-hover);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 6px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border-light);
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.lang-btn.active {
  background: var(--accent-blue);
  color: #FFFFFF;
}

/* Mobile hamburger toggle (kept hidden above 768px) — CSS-only checkbox pattern,
   works with JavaScript disabled entirely. The checkbox is the real, focusable
   control; the label is only its visual skin. */
.nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-checkbox:focus-visible + .mobile-menu-btn {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 140px 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--bg-accent-light);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-pill);
  color: var(--accent-blue-hover);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--accent-blue);
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

/* --- SECTION CONTAINER --- */
.section {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
}

/* --- PRICING CARDS --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 32px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.pricing-card.popular {
  border: 2px solid var(--accent-blue);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pricing-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-moms {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 32px;
}

.pricing-timeline-note {
  font-size: 12px;
  color: var(--text-subtle);
  margin: -24px 0 24px;
  font-style: italic;
}

.pricing-list {
  list-style: none;
  margin-bottom: 36px;
  flex-grow: 1;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.pricing-list li svg {
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

/* Open door if the price doesn't fit (ADR 0012 §4) — quiet, no CTA styling */
.price-flex-note {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-subtle);
}

/* --- 3 STEP PROCESS --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-accent-light);
  color: var(--accent-blue-hover);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.process-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.process-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- DEMO SHOWCASE (NO REAL CUSTOMER NAMES!) --- */
.demo-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.demo-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.demo-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.demo-btn:hover {
  background: var(--bg-accent-light);
  color: var(--accent-blue-hover);
}

.demo-btn.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}

.demo-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Grid items default to min-width:auto, which for a replaced element like <img> equals
   its intrinsic pixel width — this forced desktop AND mobile horizontal scroll. */
.demo-preview > * {
  min-width: 0;
}

.demo-note {
  margin: 10px auto 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* Outer frame: light "browser window" chrome in the site's own token system
   (fixes the B16 dark island). What is inside the frame is a faithful miniature
   of the actually-linked demo page (fixes B16's second, heavier issue: the
   mockup must show what it links to, not an invented generic bakery scene). */
.demo-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mockup-browserbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}

.mockup-url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

/* Colours and font-families inside .mockup-viewport intentionally come from the
   linked demo page's own palette (demos/bageri|hantverk|beauty.html), not from
   the Lapland Logic light system. This is a window onto someone else's page —
   the same way a screenshot inside a light portfolio card stays honest about
   what it depicts. Values are copy-checked 1:1 against the three demo files. */
.mockup-viewport {
  padding: 24px;
  transition: var(--transition);
}

.mockup-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.mockup-heading {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.mockup-lead {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

/* Bageri theme — matches demos/bageri.html (:root ink/cream/paper/berry). */
.mockup-viewport[data-theme="bageri"] { background: #FFFAF1; color: #30261F; }
.mockup-viewport[data-theme="bageri"] .mockup-kicker { color: #9F3D32; }
.mockup-viewport[data-theme="bageri"] .mockup-heading { font-family: Georgia, serif; font-weight: 400; }
.mockup-viewport[data-theme="bageri"] .mockup-lead { color: #655344; }

/* Hantverk theme — matches demos/hantverk.html (:root black/panel/sand/lime/fog).
   This demo is genuinely dark by its own editorial choice; the frame around it
   (.demo-mockup, .mockup-browserbar) stays light regardless of which industry
   tab is active, so the page itself never mixes light and dark chrome. */
.mockup-viewport[data-theme="hantverk"] { background: #151817; color: #F4F3ED; }
.mockup-viewport[data-theme="hantverk"] .mockup-kicker { color: #C8E36B; }
.mockup-viewport[data-theme="hantverk"] .mockup-heading { font-family: Arial, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.mockup-viewport[data-theme="hantverk"] .mockup-lead { color: #B7BDB8; }

/* Beauty theme — matches demos/beauty.html (:root ink/chalk/blush/sage).
   Kicker uses a darkened sage (#4F5B52, not the demo's lighter #68766A) — the
   original shade measures 4.4:1 on this background, just under the 4.5:1 floor. */
.mockup-viewport[data-theme="beauty"] { background: #F7F5F1; color: #242321; }
.mockup-viewport[data-theme="beauty"] .mockup-kicker { color: #4F5B52; }
.mockup-viewport[data-theme="beauty"] .mockup-heading { font-family: Georgia, serif; font-weight: 400; }
.mockup-viewport[data-theme="beauty"] .mockup-lead { color: #706C66; }

.demo-mockup-hint {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

/* The parallax image below is intentionally scaled beyond its box (transform: scale).
   Without a clipping container the scaled paint area was measured as page overflow and
   forced horizontal scrolling at every viewport width. */
.demo-photo-frame {
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 18px;
}

.demo-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transform: translate3d(0, var(--image-shift, 0), 0) scale(1.06);
  clip-path: inset(0 round 10px);
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1200;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, #0EA5E9, #14B8A6);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .demo-photo { transform: none; }
}

/* --- SECONDARY / NON-OFFER SECTIONS (ADR 0012 §3 + §4) --- */
/* Deliberately smaller, quieter and visually separated from the paid offer above. */
.section-secondary {
  padding: 64px 48px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.secondary-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  text-align: left;
}

.secondary-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.secondary-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CONTACT / FOOTER ---
   Lifted off the dark gradient it used to sit on (B16): the card now stands out
   through --bg-subtle + border + shadow only, per the light design system. */
.contact-card {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact-card h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text-link);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  font-size: 14px;
  color: var(--text-muted);
}

.legal-notice {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-subtle);
  font-style: italic;
  max-width: 480px;
}

/* --- CONTACT BLOCK: info + form --- */
.contact-card {
  text-align: left;
}

.contact-card h2,
.contact-card > p {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

/* Same min-width:auto grid pitfall as .demo-preview — the info column and the form
   column must be allowed to shrink below their content's natural width on narrow screens. */
.contact-grid > * {
  min-width: 0;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-info-item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-phone-placeholder {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-style: italic;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--text-link);
  outline-offset: 1px;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.contact-form button:focus-visible {
  outline: 2px solid var(--text-link);
  outline-offset: 3px;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.contact-form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.contact-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--text-success);
  font-size: 13px;
  font-weight: 600;
}

.contact-form-status.is-error { color: var(--text-error); }

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .hero { padding: 110px 24px 60px; }
  .section { padding: 64px 24px; }
  .section-secondary { padding: 48px 24px 16px; }
  .demo-preview { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 24px; }

  .mobile-menu-btn { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  /* Pure CSS, no JavaScript required: the checkbox precedes .nav-links in the DOM,
     so :checked ~ .nav-links works with native browser behaviour alone. */
  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 4px;
  }
}
