/* gigreply.com – aligned with MOEWE APP / webapp: mobile-first, current design guidelines */

:root {
  --text: #1d1d1d;
  --text-muted: #6b6b6b;
  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --bg-grouped-soft: #e8e8ed;
  --border: rgba(0, 0, 0, 0.06);
  --border-glass: rgba(255, 255, 255, 0.6);
  --link: #007aff;
  --link-hover: #0051a4;
  --accent: #007aff;
  --max-width: 38rem;
  --spacing: 1rem;
  --inset: 1rem; /* horizontal content inset, app-style */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --edge-gap: 0;
}

/* Mobile: slightly wider equal side spacing + gap from screen edge for card backgrounds */
@media (max-width: 767px) {
  :root {
    --inset: 1.25rem;
    --edge-gap: 1.25rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card-glass,
  .button,
  .lang-option,
  .lang-toggle-btn,
  .skip-link {
    transition-duration: 0.01ms;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-grouped);
  background-image: linear-gradient(180deg, var(--bg-grouped) 0%, var(--bg-grouped-soft) 100%);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: max(1rem, var(--safe-bottom));
}

/* Skip link – visible on focus only */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--spacing);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--bg);
  color: var(--link);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--safe-top);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== Header – webapp-style, compact on mobile ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem var(--inset);
  padding-top: max(0.5rem, var(--safe-top));
}

.nav {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

/* Desktop: full nav bar */
.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .site-header {
    padding: 0.75rem var(--spacing);
    padding-top: max(0.75rem, var(--safe-top));
  }
  .nav {
    gap: 0.5rem 0.6rem;
    flex-wrap: nowrap;
  }
  .nav-brand {
    flex-shrink: 0;
  }
  .nav-brand span {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .nav-desktop {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem 0.5rem;
    min-width: 0;
    margin-left: auto;
  }
  .lang-switch-mobile {
    display: none !important;
  }
}

/* Mobile: language switch = flags only */
.lang-switch-mobile {
  margin-left: auto;
}

/* Mobile: icon always before text (section titles, blocks, buttons, nav) */
@media (max-width: 767px) {
  .section-title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .section-icon {
    order: -1;
    flex-shrink: 0;
  }
  .blocks-grid .block-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .blocks-grid .block-icon {
    order: -1;
  }
  .button {
    flex-direction: row;
  }
  .button .button-icon {
    order: -1;
    flex-shrink: 0;
  }
  .nav-brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
  }
  .nav-brand .nav-logo {
    order: -1;
    flex-shrink: 0;
  }
}


.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  min-height: 44px;
  min-width: 0;
  flex-shrink: 1;
  -webkit-tap-highlight-color: transparent;
}

.nav-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-brand:hover {
  color: var(--text);
  opacity: 0.9;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

@media (max-width: 640px) {
  .nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  min-height: 44px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
  color: var(--link);
  background: rgba(0, 122, 255, 0.08);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-link-app {
  color: var(--link);
  font-weight: 600;
}

/* Web App button – pill style, right of language switch */
.nav-btn-webapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn-webapp:hover {
  background: var(--link-hover);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.nav-btn-webapp:focus {
  outline: none;
}

.nav-btn-webapp:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Language switcher – flags (no button style), always right in nav */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* EN/DE toggle switch */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 64px;
  height: 30px;
  background: var(--bg-grouped-soft);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 0;
  user-select: none;
}

.lang-toggle-option {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 26px;
  color: var(--text-muted);
  transition: color 0.25s ease;
  pointer-events: none;
}

.lang-toggle-option.active {
  color: #fff;
}

.lang-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-lang-active="de"] .lang-toggle-thumb {
  transform: translateX(100%);
}

.lang-toggle-btn:hover .lang-toggle-track {
  background: var(--bg-grouped-soft);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lang-toggle-btn:focus {
  outline: none;
}

.lang-toggle-btn:focus-visible .lang-toggle-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-option {
  font: inherit;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0.35rem 0.5rem;
  min-height: 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.lang-option:focus {
  outline: none;
}

.lang-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
  }
  .nav-link-contact {
    margin-left: 0;
  }
}

@media (max-width: 400px) {
  .nav-link-contact .nav-label {
    display: none;
  }
}

/* ========== Mobile menu – full-screen overlay (simple, no overlap) ========== */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-drawer[data-open="true"] {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.nav-drawer-backdrop {
  display: none;
}

.nav-drawer-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: max(env(safe-area-inset-top), 0.5rem);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--inset) 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-drawer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -0.5rem -0.5rem -0.5rem 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}

.nav-drawer-close:hover {
  background: var(--bg-grouped-soft);
}

.nav-drawer-close:focus {
  outline: none;
}

.nav-drawer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-drawer-links {
  flex: 1;
  overflow: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--inset);
  min-height: 52px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-drawer-link:hover,
.nav-drawer-link:focus {
  background: var(--bg-grouped-soft);
}

.nav-drawer-link:focus {
  outline: none;
}

.nav-drawer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nav-drawer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--link);
  opacity: 0.9;
  flex-shrink: 0;
}

.nav-drawer-icon svg {
  width: 22px;
  height: 22px;
}

.nav-drawer-app {
  color: var(--link);
  font-weight: 600;
}

.nav-drawer-app .nav-drawer-icon {
  color: var(--link);
}

.nav-drawer-footer {
  padding: 1rem var(--inset);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-drawer-webapp {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-drawer-webapp:hover {
  color: var(--link);
  text-decoration: underline;
}

.lang-switch-drawer {
  margin: 0;
}

@media (min-width: 768px) {
  .nav-drawer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer {
    transition-duration: 0.01ms;
  }
}

/* ========== Main – Mobile First, centered in viewport ========== */
main {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  padding-inline: calc(var(--inset) + var(--edge-gap));
  flex: 1;
  text-align: center;
  box-sizing: border-box;
}

main:not(.legal-page) {
  padding-top: 1rem;
}

@media (min-width: 768px) {
  main {
    padding: 2rem 0 4rem;
    padding-inline: var(--spacing);
  }
  main:not(.legal-page) {
    padding-top: 1.5rem;
  }
}

/* ========== Hero – centered on mobile, professional ========== */
.hero {
  text-align: center;
  margin-bottom: 1.5rem;
  margin-inline: calc(-1 * var(--inset));
  padding: 2rem var(--inset) 2.25rem;
  padding-inline: var(--inset);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-glass);
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  margin: 0 auto 1.25rem;
  display: block;
}

.hero h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.hero-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 1.25rem auto 0;
  line-height: 1.55;
  max-width: 26rem;
  text-align: center;
}

@media (max-width: 360px) {
  .hero {
    padding: 1.5rem var(--inset) 1.75rem;
  }
  .hero-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-intro {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .hero {
    text-align: center;
    margin-inline: auto;
    margin-bottom: 2rem;
    padding: 2rem var(--spacing);
  }
  .hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin-inline: auto;
    margin-bottom: 1rem;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero-tagline {
    font-size: 1.2rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .hero-intro {
    font-size: 1rem;
    margin-inline: auto;
  }
}

/* ========== App screenshots – marketing showcase ========== */
.app-showcase {
  margin-bottom: 1.25rem;
  margin-inline: calc(-1 * var(--inset));
  padding: 1rem var(--inset);
  padding-inline: var(--inset);
}

.showcase-lead {
  margin-bottom: 1rem;
}

.showcase-screens {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.25rem;
  margin-top: 1rem;
  margin-inline: calc(-1 * var(--inset));
  padding-inline: calc(var(--inset) + var(--edge-gap));
  padding-bottom: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

@media (max-width: 767px) {
  .showcase-screens {
    margin-inline: 0;
    padding-inline: 1.5rem;
  }
}

.showcase-item {
  margin: 0;
  flex: 0 0 auto;
  width: min(280px, 78vw);
  text-align: center;
  scroll-snap-align: start;
}

.showcase-phone {
  overflow: hidden;
  margin: 0 auto 0.75rem;
}

.showcase-phone img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.showcase-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .app-showcase {
    margin-inline: auto;
    margin-bottom: 2rem;
    padding: 2rem var(--spacing);
  }
  .showcase-screens {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .showcase-item {
    flex: 1 1 0;
    max-width: 25%;
    width: auto;
    scroll-snap-align: none;
  }
  .showcase-phone {
    margin-bottom: 1rem;
  }
  .showcase-caption {
    font-size: 0.875rem;
    min-height: 2.8em;
  }
}

/* ========== Section Titles – centered on mobile and desktop ========== */
.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 auto 0.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  width: 100%;
  text-align: center;
}

.section-icon {
  display: inline-flex;
  color: var(--link);
  opacity: 0.95;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.25rem;
    margin: 0 auto 0.5rem;
    width: 100%;
    justify-content: center;
  }
}

/* ========== Zielgruppen – grouped style ========== */
.target-audience {
  margin-bottom: 1.25rem;
  margin-inline: calc(-1 * var(--inset));
  padding: 1rem var(--inset);
  padding-inline: var(--inset);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-glass);
}

.section-lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 auto 0.75rem;
  line-height: 1.5;
  text-align: center;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .target-audience {
    margin-inline: auto;
    margin-bottom: 2rem;
    padding: 1.5rem var(--spacing);
    text-align: center;
  }
  .section-lead {
    font-size: 0.95rem;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
    text-align: center;
  }
}

.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .audience-list {
    gap: 0.5rem;
  }
}

.audience-pill {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--glass-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

/* ========== Feature Sections & Cards – grouped list style on mobile ========== */
.feature,
.about,
.about-block,
.cta {
  margin-bottom: 1.25rem;
  margin-inline: calc(-1 * var(--inset));
  padding: 1rem var(--inset);
  padding-inline: var(--inset);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-glass);
}

.card-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-glass);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  .feature,
  .about,
  .about-block,
  .cta {
    margin-inline: auto;
    margin-bottom: 2rem;
    padding: 1.5rem var(--spacing);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .blocks-grid .card-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  }
}

.feature h2,
.about h2,
.about-block h2,
.cta h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 auto 0.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  justify-content: center;
  width: 100%;
}

.block-icon {
  display: inline-flex;
  color: var(--link);
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.feature p,
.about p,
.about-block p,
.cta p {
  margin: 0 auto 0.4rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 32rem;
  text-align: center;
}

@media (min-width: 768px) {
  .feature,
  .about,
  .about-block,
  .cta {
    text-align: center;
  }
  .feature h2,
  .about h2,
  .about-block h2,
  .cta h2 {
    font-size: 1.35rem;
    margin: 0 auto 0.5rem;
    justify-content: center;
    width: 100%;
  }
  .feature p,
  .about p,
  .about-block p,
  .cta p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 0.5rem;
    text-align: center;
  }
}

.feature p:last-child,
.about p:last-child {
  margin-bottom: 0;
}

/* What you do with gigReply – title above list, clear block layout */
.feature.highlight {
  text-align: center;
}

.feature.highlight h2.section-title {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.feature.highlight .feature-list {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding-left: 0;
  list-style-position: inside;
  list-style-type: disc;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
}

.feature-list li {
  margin-bottom: 0.35rem;
  padding-left: 0;
}

@media (min-width: 768px) {
  .feature.highlight {
    text-align: center;
  }
  .feature.highlight h2.section-title {
    justify-content: center;
  }
  .feature.highlight .feature-list {
    margin-inline: auto;
    max-width: 32rem;
    font-size: 0.95rem;
    text-align: center;
  }
}

.feature.highlight .feature-list li:last-child {
  margin-bottom: 0;
}

/* Blocks Grid – Dates, Equipment, Survey, More */
.blocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  margin-inline: calc(-1 * var(--inset));
}

.blocks-grid .block-item {
  margin-bottom: 0;
  text-align: center;
}

/* Mobile: edge spacing + content centered in each card */
@media (max-width: 767px) {
  .blocks-grid {
    padding-inline: var(--edge-gap);
  }
  .blocks-grid .block-item {
    display: block;
    text-align: center;
  }
  .blocks-grid .block-icon {
    display: block;
    margin-inline: auto;
    margin-bottom: 0.5rem;
    margin-top: 0;
  }
  .blocks-grid .block-icon svg {
    width: 22px;
    height: 22px;
  }
  .blocks-grid .block-item h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    text-align: center;
  }
  .blocks-grid .block-item p {
    margin-top: 0;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .blocks-grid {
    margin-inline: auto;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    grid-template-columns: 1fr 1fr;
    padding-inline: 0;
    max-width: 56rem;
  }
  .blocks-grid .block-item {
    display: block;
    text-align: center;
  }
  .blocks-grid .block-icon {
    margin-inline: auto;
    margin-bottom: 0.4rem;
  }
  .blocks-grid .block-item h2 {
    margin: 0 auto 0.4rem;
    text-align: center;
  }
  .blocks-grid .block-item p {
    margin-top: 0;
    margin-inline: auto;
    text-align: center;
  }
}

/* ========== CTA Button ========== */
.support-block a {
  color: var(--link);
  text-decoration: none;
}

.support-block a:hover {
  text-decoration: underline;
}

.cta-link {
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
}

.cta .cta-link .button {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .cta .cta-link .button {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 52px;
  }
}

.button-icon {
  display: inline-flex;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  box-sizing: border-box;
  background: var(--link);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.35);
}

.button:hover {
  background: var(--link-hover);
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover {
    transform: translateY(-1px);
  }
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ========== Bottom Nav – replaced by burger menu on mobile ========== */
.bottom-nav {
  display: none;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ========== Footer – webapp-style ========== */
.site-footer {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 1rem var(--inset) 1.25rem;
  padding-bottom: max(1rem, var(--safe-bottom));
  padding-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 1.25rem var(--spacing) 1.5rem;
    padding-bottom: max(1.25rem, var(--safe-bottom));
  }
}

.footer-links {
  margin: 0 0 0.35rem;
}

.footer-links a {
  color: var(--link);
  text-decoration: none;
  padding: 0.4em 0.5em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.footer-links a + a {
  margin-left: 0.5rem;
}

.footer-copy {
  margin: 0;
}

.footer-channels {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-trademark {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========== Legal Pages ========== */
.legal-page main {
  padding-bottom: 2rem;
  text-align: left;
}

body.legal-page-body {
  padding-bottom: 0;
}

.legal-block {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-glass);
  padding: 1.5rem var(--spacing);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-block h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.legal-block h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
}

.legal-block p,
.legal-block li {
  margin: 0 0 0.6rem;
  line-height: 1.7;
  color: var(--text);
}

.legal-block ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-block ul li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.legal-block a {
  color: var(--link);
  text-decoration: none;
}

.legal-block a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.legal-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-back {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legal-back a {
  font-weight: 500;
  color: var(--link);
}

.page-header .nav-brand img {
  width: 36px;
  height: 36px;
}

/* ========== Responsive Refinements ========== */
@media (max-width: 640px) {
  :root {
    --spacing: 0.875rem;
  }
  .feature,
  .about,
  .cta {
    padding: 1.25rem var(--spacing);
    margin-bottom: 1.5rem;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
  }
  .footer-links a + a {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-tagline {
    font-size: 1.05rem;
  }
  .nav-brand span {
    font-size: 1rem;
  }
}
