/* Layout: white header, full-bleed blue hero with the W line from the logo,
   two full-bleed product halves, custom apps, navy footer. Colors come from the Wisar logo. */
:root {
  --blue: #1f5fd6;
  --navy: #14213d;
  --slate: #48556f;
  --white: #fff;
  --blue-tint: #e6eefc;
  --orange-tint: #ffeddc;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 1.125rem/1.55 var(--body); }
img, svg { display: block; max-width: 100%; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.button {
  display: inline-block; padding: 0.8em 1.4em; border-radius: 14px;
  background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline-color: var(--navy); border-radius: 14px; }

/* Header */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.logo img { width: auto; height: 40px; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.site-header nav a { padding-block: 8px; font-size: 1rem; font-weight: 500; text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }

/* Hero */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(48px, 7vw, 104px);
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.hero p { margin-block: 28px 36px; max-width: 34ch; font-size: clamp(1.125rem, 1.5vw, 1.3rem); }
.hero .button { background: var(--white); color: var(--navy); }
.hero .button:focus-visible { outline-color: var(--white); }
.hero-mark { width: 100%; height: auto; }
.w-line { fill: none; stroke: #fff; stroke-width: 50; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .w-line { stroke-dasharray: 100; animation: draw 1.1s cubic-bezier(0.6, 0, 0.2, 1) backwards; }
  @keyframes draw { from { stroke-dashoffset: 100; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; }
.product { padding: clamp(56px, 7vw, 104px) var(--gutter); }
.product-dimelet { background: var(--blue-tint); }
.product-pinjunket { background: var(--orange-tint); }
.product-inner { width: 100%; max-width: 30rem; }
/* Line the left panel's text up with the 1280px page column on wide screens */
.product-dimelet { padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); }
.product h2 { margin-top: 28px; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.product p { margin-block: 16px 32px; max-width: 36ch; color: var(--slate); }

/* Custom apps */
.custom { padding-block: clamp(56px, 7vw, 104px); }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 0; align-items: start; }
.custom h2 { max-width: 11ch; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.custom-copy { padding-left: var(--gutter); }
.custom-copy p { max-width: 44ch; color: var(--slate); }
.custom-copy p + p { margin-top: 20px; color: var(--navy); font-weight: 600; }
/* Footer */
.site-footer { background: var(--navy); color: #c9d4ea; font-size: 1rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 36px; }
.footer-row img { width: auto; height: 36px; }

@media (max-width: 760px) {
  .hero-grid, .products, .custom-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { max-width: 360px; margin-inline: auto; }
  .custom-copy { padding-left: 0; }
  .logo img { height: 34px; }
}
