/* ============================================================
   EnterpriseFlow — landing page stylesheet
   Light enterprise-clean theme. Tokens from the brand sheet.
   ============================================================ */

:root {
  --brand-dark: #0f172a;
  --brand-primary: #3b82f6;
  --brand-primary-hover: #2563eb;
  --brand-accent: #10b981;
  --brand-accent-light: #34d399;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --page-bg: #f5f6f8;
  --page-bg-alt: #eceff4;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --surface: var(--white);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px -8px rgba(15, 23, 42, 0.12);
  --gradient: linear-gradient(to right, #60a5fa, #34d399);
}

html {
  --lumo-font-family: 'Inter', var(--font-sans);
  --aura-font-family: 'Inter', var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', var(--font-sans);
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  background: var(--page-bg);
  scroll-padding-top: 84px;
}

/* Flex and grid children default to `min-width: auto`, which lets long copy — or a single
   long word — push the page into horizontal overflow. Opt the layout children out. */
.top-nav > *,
.top-nav__end,
.top-nav__links,
.top-nav__actions,
.hero__inner > *,
.contact-grid > *,
.footer__grid > *,
.uc-card__headtext {
  min-width: 0;
}

/* A long unbreakable word (e-mail, a Czech compound) must not widen its column. */
.section-head__title,
.hero__title,
.product-card__title,
.uc-card__title,
.step-card__title,
.pilot-strip__title,
.footer__tagline,
.contact-info__item,
.form-status {
  overflow-wrap: break-word;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- layout ---------- */
.landing-page { min-height: 100vh; }
.container {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section {
  padding-block: 5.5rem;
  scroll-margin-top: 84px;
  background: transparent;
}
.section--gray { background: var(--page-bg-alt); }

/* ---------- section heads ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
}
.section-head--center { margin-inline: auto; text-align: center; max-width: 640px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.section-head__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
.section-head__sub { margin: 0; color: var(--text-muted); font-size: 1.0625rem; }

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.brand__mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.brand__name { font-weight: 800; font-size: 1.15rem; color: var(--gray-900); letter-spacing: -0.01em; }
.brand__accent { font-weight: 800; font-size: 1.15rem; color: var(--brand-accent); letter-spacing: -0.01em; }

/* ---------- top navigation (sticky) ---------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
  padding-inline: max(1.5rem, calc((100% - 1248px) / 2));
  background: rgba(245, 246, 248, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-nav__links { display: flex; align-items: center; gap: 1.75rem; margin-inline: auto; }
.top-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.top-nav__link:hover { color: var(--brand-primary); }
.top-nav__link--plain { font-weight: 600; color: var(--brand-primary); }
.top-nav__actions { display: flex; align-items: center; gap: 1rem; }

/* Trailing group holding the actions and the burger. Grouping them keeps the burger pinned
   to the right edge next to the CTA under `justify-content: space-between`. */
.top-nav__end { display: flex; align-items: center; gap: 0.75rem; flex: none; }

/* The language toggle is rendered twice — once for the bar, once for the collapsed menu.
   Exactly one of the two is ever visible; see the responsive block at the bottom. */
.top-nav__lang,
.top-nav__lang-bar { display: flex; align-items: center; gap: 0.25rem; }
.top-nav__lang { display: none; }

/* Burger button, shown instead of the inline links below 900px. */
.top-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.top-nav__burger:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.65);
}
.top-nav__burger:active { transform: scale(0.94); }
.top-nav__burger:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.top-nav__burger vaadin-icon { color: inherit; }

/* While the sheet is open the button reads as pressed, not as a fresh control. */
.top-nav--menu-open .top-nav__burger {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.65);
}

.lang-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 0.375rem;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--gray-700); }
.lang-btn--active { color: var(--brand-primary); background: var(--gray-100); }

/* ---------- CTA buttons (component: CTAButton) ---------- */
vaadin-button.cta-btn { border-radius: var(--radius-sm); font-family: inherit; }
vaadin-button.cta-btn::part(button) {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0 1.5rem;
  height: 44px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
vaadin-button.cta-btn:hover::part(button) { transform: translateY(-1px); }
vaadin-button.cta-btn--primary::part(button) { background: var(--brand-primary); color: #fff; }
vaadin-button.cta-btn--primary:hover::part(button) { background: var(--brand-primary-hover); box-shadow: var(--shadow-md); }
vaadin-button.cta-btn--secondary::part(button) { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-300); }
vaadin-button.cta-btn--secondary:hover::part(button) { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--gray-50); }
vaadin-button.cta-btn--sm::part(button) { height: 36px; padding: 0 1rem; font-size: 0.875rem; }
vaadin-button.cta-btn--lg::part(button) { height: 52px; padding: 0 2rem; font-size: 1.0625rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background: linear-gradient(to bottom, #eef1f6, var(--page-bg));
  scroll-margin-top: 84px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(500px 300px at 10% 110%, rgba(16, 185, 129, 0.1), transparent 70%);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--gray-900);
}
.hero__sub { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--text-muted); max-width: 34rem; }
.hero__ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__meta { font-size: 0.8125rem; color: var(--gray-400); }

/* hero product image + live flow strip */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.5rem;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.pipeline {
  width: 100%;
  max-width: 420px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* Never wrap — the strip stays a single row, with the labels wrapping inside a step if the
     viewport is too narrow for them. */
  flex-wrap: nowrap;
  gap: 0.5rem;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.pipeline__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--gray-800);
}
.pipeline__step span { min-width: 0; }
.pipeline__step--ai { border: 1px solid rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.06); color: var(--brand-primary); }
.pipeline__arrow {
  width: 22px;
  height: 2px;
  margin: 0;
  flex: none;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #60a5fa, #34d399);
}
.pipeline__arrow::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  width: 10px;
  height: 2px;
  background: var(--white);
  animation: flow-right 1.6s linear infinite;
}
@keyframes flow-right { to { left: 100%; } }

/* ---------- product ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59, 130, 246, 0.35); }

.product-card { display: flex; flex-direction: column; gap: 0.875rem; }

.card__badge {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--gray-100);
  color: var(--brand-primary);
  transition: background 0.25s ease, color 0.25s ease;
}

/* Flip colors on card hover: bg becomes blue, icon becomes white */
.card:hover .card__badge {
  background: var(--brand-primary);
  color: var(--white);
}

/* Ensure SVG / Vaadin Icon inherits text color */
.card__badge vaadin-icon,
.card__badge svg {
  fill: currentColor;
  color: currentColor;
}

.product-card__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }
.product-card__text { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  align-self: flex-start;
}

.pill--accent { background: rgba(16, 185, 129, 0.1); color: #047857; }
/* ---------- use cases ---------- */
.uc-frame {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.uc-tabs {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--gray-100);
  max-width: 100%;
  /* The tabs are `nowrap`, so rather than overflow the frame they scroll sideways. */
  overflow-x: auto;
  scrollbar-width: none;
}
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.uc-tab:hover { color: var(--gray-900); }
.uc-tab--active {
  background: var(--white);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.uc-tab vaadin-icon { color: inherit; }

.uc-panel { display: flex; flex-direction: column; gap: 1.25rem; }

.uc-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  padding: 1.75rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.uc-card .card__badge { width: 56px; height: 56px; }
.uc-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.uc-card__headtext { display: flex; flex-direction: column; gap: 0.25rem; }
.uc-card__title { margin: 0; font-size: 1.375rem; font-weight: 700; color: var(--gray-900); }
.uc-card__lead { margin: 0; font-size: 1rem; color: var(--gray-600); }
.uc-card__chevron {
  margin-left: auto;
  flex: none;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}
.uc-card--open .uc-card__chevron { transform: rotate(180deg); }

.uc-card__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.25s ease;
}
.uc-card--open .uc-card__body { grid-template-rows: 1fr; opacity: 1; }
.uc-card__body-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.uc-card__copy {
  margin: 0;
  padding: 1.125rem 1.25rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-700);
}

.uc-flow { display: flex; flex-direction: column; gap: 0.625rem; }
.uc-flow__label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}
.uc-flow__chips { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.step-card {
  position: relative; /* Anchor for absolute badge positioning */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  line-height: 1;
}

.step-card__num {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-card__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }
.step-card__text { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

/* ---------- video ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, 960px);
  max-width: 960px;
  margin-inline: auto;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--brand-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-caption { text-align: center; color: var(--text-muted); font-size: 0.9375rem; margin: 0.5rem 0 0; }

/* ---------- pilot strip ---------- */
.pilot-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.07), rgba(16, 185, 129, 0.07));
  padding: 1.75rem 2rem;
}
.pilot-strip__copy { min-width: 0; }
.pilot-strip__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pilot-strip__title vaadin-icon { color: var(--brand-accent); }
.pilot-strip__sub { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center; /* Centered vertically relative to info column */
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Response speed trust pill */
.contact-info__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand-primary, #2563eb);
  font-size: 0.8125rem;
  font-weight: 600;
  width: fit-content;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  margin-left: -0.75rem;
  border-radius: var(--radius-sm, 0.5rem);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-info__item:hover {
  color: var(--brand-primary);
  background: rgba(243, 244, 246, 0.8);
  transform: translateX(4px);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.12));
  color: var(--brand-primary);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-info__item:hover .contact-info__icon {
  transform: scale(1.08) rotate(-2deg);
  background: linear-gradient(135deg, var(--brand-primary, #2563eb), #4f46e5);
  color: #ffffff;
}
.contact-info__item--static:hover {
  color: var(--gray-700);
  background: transparent;
  transform: none;
}
.contact-info__item--static:hover .contact-info__icon {
  transform: none;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.12));
  color: var(--brand-primary);
}

/* Form Card with playful top accent line & elevated drop shadow */
.contact-form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}



.contact-form-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-form-card__title { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.contact-form-card__sub { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

/* Vaadin fields min-width fix */
.contact-form__row > * { min-width: 0; }

.contact-form__submit {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.contact-form__note { margin: 0; font-size: 0.8125rem; color: var(--gray-500); }

.form-status {
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  animation: formStatusFade 0.25s ease-out;
}

@keyframes formStatusFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-status--success { background: rgba(16, 185, 129, 0.1); color: #047857; }
.form-status--error { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }

/* Scoped Vaadin input overrides */
.contact-form-card vaadin-text-field,
.contact-form-card vaadin-email-field,
.contact-form-card vaadin-text-area { width: 100%; }

.contact-form-card vaadin-text-field::part(input-field),
.contact-form-card vaadin-email-field::part(input-field),
.contact-form-card vaadin-text-area::part(input-field) {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  box-shadow: none;
  min-height: 46px;
  padding: 0 0.875rem;
  color: var(--gray-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-card vaadin-text-area::part(input-field) { padding: 0.75rem 0.875rem; }

.contact-form-card vaadin-text-field::part(label),
.contact-form-card vaadin-email-field::part(label),
.contact-form-card vaadin-text-area::part(label) {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-form-card vaadin-text-field:focus-within::part(input-field),
.contact-form-card vaadin-email-field:focus-within::part(input-field),
.contact-form-card vaadin-text-area:focus-within::part(input-field) {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.contact-form-card vaadin-text-field::part(error-message),
.contact-form-card vaadin-email-field::part(error-message),
.contact-form-card vaadin-text-area::part(error-message) {
  color: #b91c1c;
  font-size: 0.8125rem;
}

/* ---------- footer ---------- */
.footer {
  background: var(--brand-dark);
  color: var(--gray-300);
  padding-block: 4rem 2rem;
}
.footer .brand__name { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__tagline { color: var(--gray-400); max-width: 22rem; margin: 0.5rem 0 0; font-size: 0.9375rem; }
.footer__founder { color: var(--white); font-weight: 600; font-size: 0.9375rem; margin-top: 0.75rem; }
.footer__contact-person { color: var(--white); font-weight: 600; font-size: 0.9375rem; }
.footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gray-500);
  margin: 0 0 0.625rem;
}
.footer__link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.15s;
}
.footer__link:hover { color: var(--white); }
.footer__link--plain { color: var(--brand-primary); font-weight: 600; }
.footer__link--muted { color: var(--gray-500); }
.footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- investor page ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--page-bg); }
.investor-body {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.investor-form-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  max-width: 560px;
}
.investor-form { display: flex; flex-direction: column; gap: 1.125rem; }
.investor-side {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.investor-side__label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.investor-side__text { color: var(--text-muted); font-size: 1rem; }
.investor-footnote {
  color: var(--text-muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin: 0;
}
.investor-footnote a { color: var(--brand-primary); text-decoration: none; }
.investor-footnote a:hover { text-decoration: underline; }

/* ---------- responsive ----------
   One breakpoint ladder: 1024 / 900 / 768 / 640 / 480.

   Note: Karibu-DSL writes `align-items` and `justify-content` as inline styles on the Vaadin
   layout components, so a media query cannot change them. Where a child has to fill the row
   on mobile, its `width` / `flex-basis` is set instead of the parent's `align-items`. */

@media (max-width: 1024px) {
  /* `minmax(0, …)` rather than plain `1fr`: a `1fr` track has an `auto` minimum, so one long
     word in a step card would push the grid past the viewport instead of wrapping inside it. */
  .product-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* --- navigation collapses into the burger panel --- */
  .top-nav__links { display: none; }
  .top-nav__lang-bar { display: none; }
  .top-nav__burger { display: flex; }

  /* `.top-nav--menu-open` is toggled server-side by TopNavigation. Reusing `.top-nav__links`
     as the panel avoids duplicating the links. The panel is taken out of flow so opening the
     menu overlays the page instead of pushing the sections down. `.top-nav` is `position: sticky`
     and therefore already the containing block for this absolutely positioned child. Inset from
     the bar edges so it reads as a sheet rather than as a second navigation bar. */
  .top-nav--menu-open .top-nav__links {
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    margin-inline: 0;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.25);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    animation: menuSheetIn 0.18s ease-out;
  }
  @keyframes menuSheetIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Menu rows: full-width tap targets with a hover surface, the way a native sheet behaves.
     `display` is set here rather than relying on the coarse-pointer rule, so a narrow desktop
     window gets the same rows as a phone. No `width: 100%` — the sheet is a column flex box with
     `align-items: stretch`, and combining a 100% width with horizontal padding would overflow. */
  .top-nav--menu-open .top-nav__link {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
  }
  .top-nav--menu-open .top-nav__link:hover {
    background: var(--gray-100);
    color: var(--brand-primary);
  }
  .top-nav--menu-open .top-nav__link--plain { color: var(--brand-primary); }

  .top-nav--menu-open .top-nav__lang {
    display: flex;
    margin-top: 0.375rem;
    padding: 0.5rem 0.75rem 0;
    border-top: 1px solid var(--border);
  }

  /* Single column: the headline and the copy come first, the visual below them. */
  .hero__inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .investor-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-grid { gap: 2rem; }
}

@media (max-width: 640px) {
  .container { padding-inline: 1.25rem; gap: 1.75rem; }
  .top-nav { padding-inline: 1.25rem; }
  .section { padding-block: 3rem; scroll-margin-top: 72px; }
  .hero { scroll-margin-top: 72px; }
  html { scroll-padding-top: 72px; }

  /* The product cards carry a paragraph each, so they read better full width. The four approach
     steps are short, so they stay 2x2 — the section keeps its shape instead of becoming a long
     single column, and the big step numbers still pair up as a sequence. */
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .card { padding: 1.25rem; }
  .uc-card { padding: 1.25rem; }
  .uc-card .card__badge { width: 44px; height: 44px; }
  .uc-card__title { font-size: 1.1875rem; }
  .uc-card__body-inner { padding-top: 1rem; }
  .uc-frame { padding: 1.25rem; }

  /* The product shot is a nice-to-have; on a phone the headline and the flow strip carry the
     hero, and the image is the first thing to go. */
  .hero-image { display: none; }
  .hero { padding-block: 3rem 3.5rem; }

  /* One row, no icons, tighter labels — the strip has to fit the narrowest phone. The icon
     size is an inline style from HeroSection, so it is hidden rather than resized. */
  .pipeline__step { padding: 0.3125rem 0.5rem; font-size: 0.6875rem; gap: 0.25rem; }
  .pipeline__step vaadin-icon { display: none; }
  .pipeline { gap: 0.25rem; }
  .pipeline__arrow { width: 14px; }

  /* The step badge is absolutely positioned top-right; on a half-width card it would land on top
     of the title, so let it take part in the flow instead. Badge is first in DOM (desktop: absolute,
     so order is invisible) — on phone the number must render first. */
  .step-card__badge { position: static; align-self: flex-start; }
  .step-card__num { order: -1; }

  /* 2x2 on a phone: the desktop step number is sized for a quarter of a 1248px row, so it is
     scaled down along with the internal gaps to keep the four cards a tidy block. */
  .step-card { gap: 0.5rem; }
  .step-card__num { font-size: 1.875rem; }
  .step-card__title { font-size: 1.0625rem; }
  .step-card__text { font-size: 0.875rem; }
  .step-card__badge { font-size: 0.6875rem; padding: 0.1875rem 0.5rem; }

  .pilot-strip { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .pilot-strip vaadin-button { width: 100%; }

  .contact-form-card { padding: 1.25rem; }
  .contact-info__item { margin-left: 0; }
  .contact-form__submit { flex-direction: column; align-items: flex-start; }
  .contact-form__submit vaadin-button { width: 100%; }

  .footer { padding-block: 3rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }

  .investor-form-card { padding: 1.25rem; }
  .investor-side { min-height: auto; }
}

@media (max-width: 480px) {
  .container { padding-inline: 0.875rem; gap: 1.5rem; }
  .top-nav { padding-inline: 0.875rem; }
  .section { padding-block: 2.25rem; }
  .top-nav { padding-block: 0.625rem; }
  .brand__name, .brand__accent { font-size: 1rem; }
  .brand__mark { width: 24px; height: 24px; }

  /* One step tighter than the 640px rules — phone widths are about density, not comfort. */
  .card, .uc-card { padding: 1rem; }
  .steps { gap: 0.625rem; }
  .step-card { padding: 0.875rem; gap: 0.375rem; }
  .step-card__num { font-size: 1.5rem; }
  .uc-frame, .contact-form-card, .investor-form-card { padding: 1rem; }
  .pilot-strip { padding: 1rem; }
  .uc-card .card__badge { width: 40px; height: 40px; }
  .uc-card__title, .step-card__title, .product-card__title { font-size: 1.0625rem; }
  .uc-card__body-inner { gap: 1rem; padding-top: 0.875rem; }
  .uc-card__copy { padding: 0.75rem 0.875rem; font-size: 0.9375rem; }
  .uc-card__head { gap: 0.75rem; }
  .contact-form__row { gap: 0.75rem; }
  .contact-form-card { gap: 0.875rem; }
  .section-head__sub { font-size: 1rem; }
  .section-head { gap: 0.5rem; }
  .footer { padding-block: 2.5rem 1.25rem; }
  .footer__legal { margin-top: 2rem; padding-top: 1rem; }
  .video-caption { font-size: 0.875rem; }

  /* The two hero CTAs sit in a `vaadin-horizontal-layout` whose `align-items: center` is an
     inline style, so they are given an explicit width rather than a stretched parent. */
  .hero__ctas { flex-direction: column; }
  .hero__ctas vaadin-button { width: 100%; }

  .uc-tabs { width: 100%; }
  .uc-tab { padding-inline: 0.75rem; }
  .contact-info__icon { width: 40px; height: 40px; }
  .contact-info__item { gap: 0.75rem; padding: 0.5rem; }
  .video-frame { border-radius: 0.75rem; }
}

/* Touch devices get ~44px tap targets. The footer column gap is tightened to compensate for
   the extra row height so the footer does not balloon. */
@media (pointer: coarse) {
  .top-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem; }
  .footer__link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__col { gap: 0; }
  .lang-btn { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.625rem; }
  .uc-tab { padding-block: 0.6875rem; }
  .contact-info__item { min-height: 44px; }
}

/* Decorative hover lifts must not stick after a tap. */
@media (hover: none) {
  .card:hover,
  .contact-info__item:hover,
  .contact-info__item:hover .contact-info__icon,
  .contact-form-card:hover,
  vaadin-button.cta-btn:hover::part(button) {
    transform: none;
  }
  .card:hover { box-shadow: var(--shadow-sm); }
}

/* ---------- demo (light theme skeletons) ---------- */
.demo-page {
  background: var(--page-bg);
  color: var(--text);
  padding: 2.5rem 1.25rem 4rem;
  box-sizing: border-box;
}
.demo-wrap {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  gap: 1rem;
}
.demo-card__title { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.demo-card__sub { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.demo-card vaadin-text-field,
.demo-card vaadin-password-field,
.demo-card vaadin-email-field,
.demo-mail vaadin-text-field,
.demo-mail vaadin-email-field,
.demo-mail vaadin-text-area { width: 100%; }
.demo-log {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  min-height: 120px;
  font-size: 0.875rem;
  color: var(--gray-700);
}
.demo-log__status { font-weight: 600; color: var(--gray-900); }
.demo-log__line { display: block; }
.demo-result__summary { margin: 0; font-size: 1.0625rem; color: var(--gray-800); }
.demo-result__h { margin: 1rem 0 0; font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.demo-result__line { margin: 0.25rem 0 0; color: var(--gray-700); }
.demo-result__note { font-size: 0.8125rem; color: var(--gray-500); }
.demo-mail {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  gap: 0.875rem;
}
.demo-mail__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }
.demo-steps { display: flex; flex-direction: column; gap: 0.625rem; margin: 0.25rem 0; }
.demo-steps__title { margin: 0.5rem 0 0; font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.demo-step { display: flex; align-items: flex-start; gap: 0.625rem; }
.demo-step__num { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 800; color: var(--white); background: var(--gradient); }
.demo-step__text { font-size: 0.9375rem; color: var(--gray-700); }
@media (max-width: 640px) {
  .demo-page { padding: 1.25rem 0.875rem 2.5rem; }
  .demo-card { padding: 1.25rem; }
}