* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020916;
  --panel: #111a2a;
  --panel-2: #172235;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --muted: rgba(244, 247, 255, 0.72);
  --blue: #2388ff;
  --cyan: #00d8ff;
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(35, 136, 255, 0.16), transparent 34rem), var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(4, 20, 43, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand img {
  border-radius: 10px;
}

nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

nav a,
.language-button,
.button,
.language-dialog button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

nav a {
  padding: 10px 14px;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.language-button img,
.language-list img {
  border-radius: 3px;
  object-fit: cover;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-images {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
}

.hero-images img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slideHero 30s infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 9, 22, 0.86), rgba(2, 9, 22, 0.34)), linear-gradient(0deg, rgba(2, 9, 22, 0.76), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  padding: clamp(34px, 6vw, 72px) 0 34px;
  margin: 0 auto;
}

.brandline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.brandline img {
  border-radius: 14px;
}

.brandline span {
  display: block;
  color: var(--cyan);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  margin-top: 18px;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  line-height: 0.94;
}

.hero p,
.section-title p,
.feature-copy p {
  max-width: 820px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.7vw, 1.7rem);
  line-height: 1.45;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.16);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 20px;
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
}

.download-button {
  margin-top: 26px;
}

.section,
.feature {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  scroll-margin-top: 92px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31, 42, 64, 0.96), rgba(11, 23, 35, 0.96));
}

.section {
  padding: 56px 0 22px;
}

.section-title {
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 390px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}

h3 {
  font-size: 1.55rem;
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 56px;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(90deg, rgba(2, 9, 22, 0.86), rgba(2, 9, 22, 0.54)), var(--feature-image);
  background-size: cover;
  background-position: center;
}

.feature-copy {
  position: relative;
  z-index: 1;
}

.app-details-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 980px);
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

.app-details-text {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
  align-content: center;
}

.app-details-text h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}

.app-details-text p {
  max-width: none;
  margin-top: 0;
  font-size: clamp(0.98rem, 1.55vw, 1.2rem);
  line-height: 1.38;
  text-wrap: balance;
}

.disabled-button {
  max-width: 100%;
  cursor: default;
  pointer-events: none;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.contact-section {
  padding-bottom: 24px;
}

.contact-rail {
  grid-auto-columns: minmax(220px, 250px);
}

.contact-card {
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: 18px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.contact-card strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card .value-image {
  display: block;
  width: min(100%, 178px);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
  object-position: center;
}

.language-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #101a2a;
  color: var(--text);
  padding: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

body.picker-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dialog-header button {
  padding: 10px 14px;
}

.language-list {
  display: grid;
  gap: 8px;
  max-height: min(70vh, 560px);
  overflow: auto;
}

.language-list button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

@keyframes slideHero {
  0%, 16% { transform: translateX(0); }
  20%, 36% { transform: translateX(-100%); }
  40%, 56% { transform: translateX(-200%); }
  60%, 76% { transform: translateX(-300%); }
  80%, 96%, 100% { transform: translateX(-400%); }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .language-button {
    margin-left: auto;
  }

  .hero {
    min-height: 360px;
  }

  .hero-content {
    width: min(100% - 24px, 680px);
    padding-top: 28px;
  }

  .rail {
    grid-auto-columns: minmax(286px, 88vw);
  }

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

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-images img {
    animation: none;
  }
}

/* Cookie policy and preference controls */
.cookie-popup[hidden] { display: none; }
.cookie-popup { position: fixed; z-index: 30; bottom: 16px; right: 16px; width: min(540px, calc(100% - 32px)); max-height: 70dvh; overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #0b1723; color: var(--text); box-shadow: 0 12px 48px #0009; }
.cookie-popup h2 { font-size: 1.4rem; }
.cookie-popup p { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
.cookie-popup a { text-decoration: underline; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.cookie-actions button { min-height: 48px; padding: 12px; border: 1px solid var(--cyan); border-radius: 12px; background: #16314b; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.cookie-actions button:hover { background: #244e72; }
.cookie-actions button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Center the top cell content at every screen size. */
.hero-content { text-align: center; }
.hero-content h1, .hero-content > p { margin-left: auto; margin-right: auto; }

/* Compact request form details after removing the subheading and badge. */
.app-details-feature { min-height: 0; }
.app-details-copy > h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }

/* Center the Contact heading and description in every language. */
#contact .section-title { text-align: center; }
#contact .section-title p { margin-left: auto; margin-right: auto; }

.service-request-form { width: 100%; margin-top: 24px; min-width: 0; }
.request-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.request-tabs button { padding: 12px; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: #10253c; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.request-tabs button[aria-selected="true"] { background: #175995; border-color: var(--cyan); }
.request-tabs button:focus-visible, .request-panel textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.request-panel { margin-top: 22px; text-align: left; }
.request-panel[hidden] { display: none; }
.request-panel label { display: block; margin-bottom: 10px; font-weight: 700; }
.request-panel textarea { box-sizing: border-box; width: 100%; min-height: 140px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #081727; color: var(--text); font: inherit; resize: vertical; }
@media (max-width: 600px) { .request-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.request-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.request-field { min-width: 0; }
.request-field input, .request-field select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #081727; color: var(--text); font: inherit; }
.request-field input:focus-visible, .request-field select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 600px) { .request-contact-grid { grid-template-columns: 1fr; } }


.request-summary { margin: 24px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 23, 39, .92); }
.request-summary h3 { font-size: 1.2rem; }
.request-summary-text { margin: 16px 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .95rem; line-height: 1.6; }
.request-send-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.request-send-actions .button { background: #175995; text-align: center; }
@media (max-width: 600px) { .request-send-actions { flex-direction: column; } }

.request-details-first { margin-bottom: 24px; }
.required-field-note { display: block; margin-top: 6px; color: #ffdf00; font-weight: 700; font-size: .85rem; }

.scan-object-field { margin-bottom: 24px; }

.scan-size-field { margin-bottom: 24px; }

.scan-output-field { margin-bottom: 24px; }

.scan-accuracy-field { margin-bottom: 24px; }

.scan-upload-field { margin-bottom: 24px; }
.scan-upload-field p, #scan-file-list { font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.scan-upload-field input { max-width: 100%; }

#scan-file-list { list-style: none; padding: 0; }
#scan-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
#scan-file-list span { min-width: 0; overflow-wrap: anywhere; }
#scan-file-list button { flex-shrink: 0; width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #16314b; color: var(--text); font-size: 1.5rem; cursor: pointer; }
#scan-file-list button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* One shared field for the picker and selected filename chips. */
.scan-files-control { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #081727; }
.scan-choose-files { flex-shrink: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #16314b; color: var(--text); font: inherit; cursor: pointer; }
.scan-choose-files:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.scan-files-control #scan-file-list { display: flex; flex: 1 1 180px; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.scan-files-control #scan-file-list:empty { display: none; }
.scan-files-control #scan-file-list li { max-width: 100%; box-sizing: border-box; margin: 0; padding: 2px 6px 2px 10px; }

#scan-files-help.required-field-note { display: block; margin-top: 6px; color: #ffdf00; font-weight: 700; font-size: .85rem; }

/* Structured request review card. */
.request-summary { padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(126, 186, 235, .25); border-radius: 18px; background: linear-gradient(145deg, #10263c, #091827); box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
.request-summary > h3 { margin: 0; font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; }
.summary-service { display: inline-block; margin: 14px 0 22px; padding: 7px 12px; border: 1px solid rgba(82, 187, 255, .3); border-radius: 8px; color: #b9e8ff; background: rgba(45, 145, 211, .12); font-size: .88rem; font-weight: 700; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0 24px; }
.summary-item { min-width: 0; padding: 14px 0; border-top: 1px solid rgba(166, 200, 226, .13); }
.summary-item dt { margin-bottom: 6px; color: #9eb6cb; font-size: .8rem; font-weight: 600; }
.summary-item dd { margin: 0; color: #f1f7fc; font-size: 1rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-item dd.summary-empty { color: #71899f; }
.summary-item-wide { grid-column: 1 / -1; }
.request-summary .request-send-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(166, 200, 226, .2); gap: 12px; }
.request-summary .request-send-actions .button { flex: 1; min-height: 48px; border-radius: 10px; padding: 12px 16px; background: #1963a3; border: 1px solid #438bc7; font-size: .95rem; }
.request-summary .request-send-actions a[id^="send-whatsapp"] { background: #123a34; border-color: #327565; }
.request-summary .request-send-actions .button:hover { filter: brightness(1.15); }
.request-summary .request-send-actions .button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 600px) { .summary-grid { grid-template-columns: 1fr; } }

.scan-extra-field { margin-bottom: 24px; }
.request-service-label { width: 100%; margin: 20px 0 0; text-align: left; font-size: 1rem; font-weight: 700; }
.request-service-label + .service-request-form { margin-top: 10px; }

.scan-technical-label { margin-bottom: 14px; }

.request-service-label { text-align: center; }
.budget-section-label, .contact-section-label { margin: 24px 0 16px; }
.request-budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.request-checks { display: grid; gap: 14px; margin-bottom: 24px; }
.request-panel .request-check { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 0; font-weight: 400; line-height: 1.5; cursor: pointer; }
.request-check input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #2994e8; }
@media (max-width: 600px) { .request-budget-grid { grid-template-columns: 1fr; } }

/* Shared service selection cell with three horizontal columns. */
.scan-service-options { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 18px; margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 23, 39, .75); overflow-x: auto; }
.scan-service-options > .request-field { display: grid; grid-template-rows: 1fr auto; margin: 0; padding: 0; min-width: 0; }
.scan-service-options > .request-field label { align-self: start; }

/* Technical details share the Service cell styling with four columns. */
.scan-technical-options { grid-template-columns: repeat(4, minmax(180px, 1fr)); }

/* Four horizontal budget fields, matching Technical details in every tab. */
.request-budget-grid.scan-budget-options { grid-template-columns: repeat(4, minmax(180px, 1fr)); }

/* Matching horizontal cell with three accessible On/Off switches. */
.request-checks.request-toggle-group { grid-template-columns: repeat(3, minmax(210px, 1fr)); gap: 18px; }
.request-toggle-label { display: block; margin-bottom: 14px; font-weight: 700; line-height: 1.5; }
.request-toggle { display: inline-flex; align-items: center; justify-self: start; gap: 10px; padding: 8px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #10253c; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.toggle-track { position: relative; width: 38px; height: 22px; border-radius: 20px; background: #526276; flex-shrink: 0; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: white; border-radius: 50%; }
.request-toggle[aria-checked="true"] { background: #123a34; border-color: #428d77; }
.request-toggle[aria-checked="true"] .toggle-track { background: #248f70; }
.request-toggle[aria-checked="true"] .toggle-track::after { left: 19px; }
.request-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Keep each Yes/No switch alongside its label. */
.request-toggle-group > .request-field.request-toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.request-toggle-field .request-toggle-label { margin: 0; min-width: 0; }
.request-toggle-field .request-toggle { flex-shrink: 0; }

/* Hero title starts directly inside the top cell. */
.hero-content > h1:first-child { margin-top: 0; }


/* Slightly smaller, warm orange service headline. */
.hero-content > h1 {
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2.95vw, 2.2rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: .015em;
  color: #ed780b;
  line-height: 1.35;
  max-width: 980px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
@media (max-width: 680px) { .hero-actions { display: grid; } }

/* Fit the hero to its headline and action buttons without leftover fixed height. */
.hero { min-height: 0; }
.hero-content { padding: clamp(28px, 4vw, 48px) 0; }
.hero-actions { margin-top: 24px; }
@media (max-width: 680px) {
  .hero-content { padding: 26px 0; }
  .hero-actions { gap: 10px; margin-top: 20px; }
}

/* Compact first-screen header and hero; show every navigation action. */
.site-header { flex-wrap: wrap; gap: 10px 16px; padding: 10px clamp(12px, 3vw, 36px); }
.site-header nav { overflow: visible; flex-wrap: wrap; min-width: 0; }
.site-header nav a { white-space: normal; text-align: center; overflow-wrap: anywhere; }
.hero { min-height: 0; }
.hero-content { padding: clamp(18px, 3svh, 32px) 0; }
.hero-content > h1 { line-height: 1.25; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.hero-actions .button { white-space: normal; min-height: 44px; padding: 10px 14px; line-height: 1.3; text-align: center; }
@media (max-width: 1000px) {
  .site-header nav { order: 3; width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .site-header nav a { display: flex; align-items: center; justify-content: center; padding: 8px; font-size: .85rem; min-height: 40px; }
  .language-button { margin-left: auto; }
}
@media (max-width: 600px) {
  .site-header { gap: 8px; padding: 8px 12px; }
  .brand img { width: 34px; height: 34px; }
  .site-header nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header nav a { min-height: 36px; padding: 6px 8px; font-size: .8rem; }
  .hero-content { width: calc(100% - 24px); padding: 18px 0; }
  .hero-content > h1 { font-size: clamp(1.1rem, 4.8vw, 1.55rem); }
  .hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
  .hero-actions .button { padding: 9px 6px; font-size: .8rem; }
}
@media (max-height: 480px) and (min-width: 601px) {
  .hero-content { padding: 12px 0; }
  .hero-content > h1 { font-size: 1.4rem; }
  .hero-actions { margin-top: 12px; }
}

/* Compact opening section sized by the headline and action buttons. */
.hero { height: auto; min-height: 0; display: block; }
.hero-content { padding: 20px 0; }
.hero-content > h1 { font-size: clamp(1.2rem, 2.95vw, 2.2rem); }
.hero-actions { margin-top: 16px; }
@media (max-width: 600px) {
  .hero-content { padding: 16px 0; }
  .hero-content > h1 { font-size: clamp(1.1rem, 4.8vw, 1.55rem); }
  .hero-actions { margin-top: 12px; }
}

/* Keep the menu in document flow so it cannot cover the hero headline. */
.site-header { position: relative; top: auto; }
.hero { height: auto; min-height: 0; }
.hero-content { width: min(1180px, calc(100% - 32px)); padding: 22px 0 20px; }
.hero-content > h1 { max-width: 100%; margin: 0 auto; line-height: 1.35; }
.hero-actions { margin-top: 16px; }
@media (max-width: 600px) {
  .hero-content { width: calc(100% - 24px); padding: 18px 0; }
}

/* Visible menu plus measured anchor offset; hero stays in normal document flow. */
.site-header { position: sticky; top: 0; z-index: 20; }
html { scroll-padding-top: var(--header-offset, 100px); }
main section[id] { scroll-margin-top: 0; }

/* Distinctive editorial typography for the services headline. */
.hero-content > h1 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.4;
}

.app-details-copy > h2 { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: .025em; color: #fff; }
.app-details-text p { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: .025em; color: #ed780b; font-size: clamp(1.08rem, 2.7vw, 1.7rem); line-height: 1.45; }

.about-feature { position: relative; background-image: none; }
.about-feature .feature-copy { position: relative; z-index: 1; }
.about-feature h2 { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: .025em; color: #fff; font-size: clamp(2rem, 6vw, 4rem); }
.about-feature p { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: .025em; color: #ed780b; font-size: clamp(1.08rem, 2.7vw, 1.7rem); line-height: 1.45; }

#contact .section-title h2 { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: .025em; color: #fff; }
#contact .section-title p { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-style: italic; letter-spacing: .025em; color: #ed780b; }

/* Smaller, regular-weight orange text across both sites. */
.hero-content > h1 { font-weight: 400; font-size: clamp(1.08rem, 2.65vw, 1.98rem); }
.metrics article > span { font-weight: 400; font-size: 1.08rem; }
#services .section-title p, #industries .section-title p, #contact .section-title p { font-weight: 400; font-size: 1rem; }
#services .poster-body p, #industries .poster-body > p, #services .poster-body .button { font-weight: 400; font-size: .95rem; }
#request .feature-copy > p, .about-feature p, .app-details-text p { font-weight: 400; font-size: clamp(1rem, 2.4vw, 1.5rem); }
@media (max-width: 600px) { .hero-content > h1 { font-size: clamp(1rem, 4.3vw, 1.4rem); } }

/* Shared About alignment and contact typography. */
#about .feature-copy { display: grid; justify-items: center; width: min(100%, 980px); max-width: none; margin: 0 auto; text-align: center; }
#about .feature-copy h2 { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: clamp(2rem, 6vw, 4rem); font-style: italic; font-weight: 600; letter-spacing: .025em; color: #fff; }
#about .feature-copy p { max-width: none; margin-top: 18px; font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: clamp(1rem, 2.4vw, 1.5rem); font-style: italic; font-weight: 400; letter-spacing: .025em; color: #ed780b; line-height: 1.45; text-wrap: balance; }
#contact .section-title p, #contact .contact-card strong { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-size: 1rem; font-style: italic; font-weight: 400; letter-spacing: .025em; color: #ed780b; line-height: 1.45; }

/* Descriptive text matches the 3D Scanning service description in every language. */
#services .poster-body p,
#about .feature-copy p,
#request .feature-copy > p,
#request .app-details-text p {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: .95rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .025em;
  color: #ed780b;
  line-height: 1.5;
}

/* Bold hero heading; the top card has no action buttons. */
.hero-content > h1 { font-weight: 700; }

/* Dedicated request panels, retaining the existing budget and contact layout. */
.request-technical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin: 16px 0; }
.request-technical-grid .request-field { min-width: 0; }
.request-technical-grid textarea { width: 100%; min-height: 86px; resize: vertical; }
.request-technical-grid input, .request-technical-grid select { width: 100%; min-width: 0; }
.request-industry-help, .request-evaluation { font-size: .9rem; line-height: 1.5; margin: 12px 0; color: var(--muted); }
.request-files-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.request-files-list li { display: flex; align-items: center; gap: 6px; max-width: 100%; overflow-wrap: anywhere; }
.request-files-list button { border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 50%; cursor: pointer; min-width: 28px; min-height: 28px; }
.request-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
.request-tabs button { flex: 1 0 auto; white-space: nowrap; overflow-wrap: normal; padding: 10px 12px; font-size: .85rem; }
.request-summary-content { overflow-wrap: anywhere; }
.request-panel[hidden] { display: none; }
@media(max-width: 900px) { .request-technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 600px) { .request-technical-grid { grid-template-columns: minmax(0, 1fr); } }

/* Keep the active summary below the sticky navigation. */
main section#request-summary { scroll-margin-top: 100px; }

.request-technical-grid .request-field[hidden] { display: none; }

/* Inline validation messages remain hidden until validation fails. */
.required-field-note[hidden] { display: none; }

/* Hosting project and domain share a row; input/select controls have equal height. */
#hosting-industry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#hosting-industry-fields > .request-field { display: grid; grid-template-rows: auto 48px auto; align-content: start; }
#hosting-industry-project_project_type,
#hosting-technical-domain,
#hosting-technical-storage,
#hosting-technical-runtime,
#hosting-technical-email_count { height: 48px; min-height: 48px; max-height: 48px; box-sizing: border-box; }
@media (max-width: 600px) { #hosting-industry-fields { grid-template-columns: minmax(0, 1fr); } }

/* Service tabs match the Services and Industries card headings on www. */
.request-tabs button {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .025em;
  color: #fff;
}

.request-industry-help:empty { display: none; }

/* Form descriptions match the orange italic descriptions on www. */
.service-request-form label,
.service-request-form .request-toggle-label,
.service-request-form .request-industry-help,
.service-request-form .request-evaluation,
.service-request-form .summary-item dt {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .025em;
  color: #ed780b;
}

/* Consistent field rows for production requests, without changing contact controls. */
.request-selection-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; align-items: start; }
.request-selection-row label,
.request-technical-grid label { display: block; min-height: 2.8em; margin-bottom: 6px; }
.request-selection-row select,
.request-technical-grid input,
.request-technical-grid select { box-sizing: border-box; height: 48px; min-height: 48px; }
.request-technical-grid textarea { box-sizing: border-box; min-height: 86px; }
.request-technical-grid:empty { display: none; }
.service-request-form [data-i18n="rf_budget_delivery"],
.service-request-form .request-service-label[data-i18n="contact"],
.service-request-form .request-summary h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic; font-weight: 600; letter-spacing: .025em; color: #fff;
}
.service-request-form .request-summary h3 { width: 100%; text-align: center; }
@media (max-width: 600px) { .request-selection-row { grid-template-columns: minmax(0, 1fr); } }

/* Compact label-to-control spacing across all seven request panels. */
.request-panel label,
.request-selection-row label,
.request-technical-grid label { min-height: 0; margin-bottom: 4px; }
.request-toggle-field .request-toggle-label { margin-bottom: 0; }

.site-header nav a { font-style: italic; }

#hosting-technical-backup, #hosting-technical-maintenance { height: 48px; min-height: 48px; box-sizing: border-box; }

/* Uniform 48px controls, matching Project type across all request panels. */
.request-panel .request-field input:not([type="file"]):not([type="checkbox"]),
.request-panel .request-field select,
.request-panel .request-toggle {
  height: 48px; min-height: 48px; max-height: 48px; box-sizing: border-box;
}
.request-panel .scan-files-control {
  height: 48px; min-height: 48px; box-sizing: border-box;
  padding: 4px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
}
.request-panel .scan-choose-files {
  height: 38px; min-height: 38px; box-sizing: border-box; padding: 6px 12px;
}
.request-panel .scan-files-control .request-files-list,
.request-panel .scan-files-control #scan-file-list {
  display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center;
  gap: 8px; margin: 0; padding: 0;
}
.request-panel .scan-files-control .request-files-list li {
  flex-shrink: 0; white-space: nowrap; margin: 0; padding: 2px 6px;
}
.request-panel .scan-files-control .request-files-list button {
  width: 28px; height: 28px; min-height: 28px; padding: 0;
}

/* Section headings share the wwwapp Contact typography. */
#request .app-details-copy h2,
#your-request .app-details-copy > h2,
#serviceRequestForm .request-service-label,
#serviceRequestForm .request-summary h3,
#about .feature-copy h2,
#contact .section-title h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(1.377rem, 4.131vw, 2.754rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: .025em;
  color: #fff;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Form section headings must not inherit the 820px paragraph width limit. */
#serviceRequestForm .request-service-label[data-i18n="scan_technical_details"],
#serviceRequestForm .request-service-label[data-i18n="rf_budget_delivery"],
#serviceRequestForm .request-service-label[data-i18n="contact"] {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

/* Two centered preferences above the full-width consent row in all services. */
#serviceRequestForm .request-checks.request-toggle-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  overflow-x: visible;
}
#serviceRequestForm .request-toggle-group > .request-toggle-field {
  justify-content: center;
  align-items: center;
  text-align: center;
}
#serviceRequestForm .request-toggle-group > .request-toggle-field:last-child {
  grid-column: 1 / -1;
}
#serviceRequestForm .request-toggle-field .request-toggle-label {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  #serviceRequestForm .request-checks.request-toggle-group { gap: 16px 12px; padding: 12px; }
  #serviceRequestForm .request-toggle-group > .request-toggle-field { gap: 8px; }
  #serviceRequestForm .request-toggle-field .request-toggle { padding: 8px; gap: 5px; }
}

/* Keep explanatory and required-field notes yellow across all seven services. */
#serviceRequestForm .required-field-note,
#serviceRequestForm .request-evaluation {
  color: #ffdf00;
}
#serviceRequestForm .required-field-note { font-weight: 700; }

/* Three centered permissions on the first row; consent spans the next row. */
#serviceRequestForm .request-checks.request-toggle-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Hosting has only NDA and invoice preferences above consent. */
#serviceRequestForm #request-panel-hosting .request-checks.request-toggle-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Scanning dimensions stay together in one row. */
.request-technical-grid .scan-dimensions-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1; gap: 14px; min-width: 0;
}

#scan-industry-fields .scan-reference-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1; gap: 14px; min-width: 0;
}

#scan-technical-fields .scan-output-row {
 display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
 grid-column: 1 / -1; gap: 14px; min-width: 0;
}

/* NDA and invoice share the first row for scanning, printing and design. */
#serviceRequestForm #request-panel-scan .request-checks.request-toggle-group,
#serviceRequestForm #request-panel-print .request-checks.request-toggle-group,
#serviceRequestForm #request-panel-cad .request-checks.request-toggle-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Printing reference, preferred material and quantity share one row. */
#print-industry-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

#print-technical-fields .scan-dimensions-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Consistent spacing under file selectors in every service. */
#serviceRequestForm .scan-upload-field .scan-files-control { margin-bottom: 0; }
#serviceRequestForm .scan-upload-field > .required-field-note {
  margin: 6px 0 0;
  padding: 0;
  line-height: 1.5;
}
#cad-industry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#cad-industry-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

#scan-industry-fields .scan-reference-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#print-technical-fields .scan-dimensions-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Scanning and printing show the same three preferences as laser engraving. */
#serviceRequestForm #request-panel-scan .request-checks.request-toggle-group,
#serviceRequestForm #request-panel-print .request-checks.request-toggle-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#laser-industry-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

#serviceRequestForm #request-panel-laser .request-checks.request-toggle-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#cutting-industry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#serviceRequestForm #request-panel-cutting .request-checks.request-toggle-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#drawing-industry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#serviceRequestForm #request-panel-drawing .request-checks.request-toggle-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
