@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --dark: #141328;
  --ivory: #f2f8fb;
  --accent: #ffd64d;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: #fff; font: 16px/1.5 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #178be0; outline-offset: 4px; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 5; background: var(--ivory); color: var(--dark); padding: 8px 12px; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - clamp(36px, 8vw, 120px), 1200px); margin-inline: auto; }
.top { border-bottom: 1px solid #414243; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.brand { font: 800 clamp(1.05rem, 2.2vw, 1.75rem)/1 var(--display); text-decoration: none; text-transform: uppercase; }
.brand img { max-height: 42px; width: auto; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); margin-left: auto; }
nav a { font-weight: 600; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 22px; border: 0; border-radius: 8px; background: var(--accent); color: #141414; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.button:hover { filter: brightness(1.1); }
.secondary { background: var(--dark); color: #fff; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 65%; height: 100%; object-fit: cover; object-position: 55% center; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(470px, 48vw, 620px); }
.hero-copy { width: 39%; padding-block: 44px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; }
h1 { max-width: 8ch; font-size: clamp(3.5rem, 6.6vw, 6.6rem); line-height: .92; letter-spacing: -.02em; }
.hero p { margin: 22px 0; max-width: 28ch; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4.1rem); line-height: .97; text-transform: uppercase; }
.section { padding-block: clamp(32px, 5vw, 64px); }
.light { background: var(--ivory); color: #101112; color-scheme: light; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.card { overflow: hidden; border-radius: 9px; background: #e3eef4; }
.card img { width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; }
.card-copy { padding: 14px 17px 18px; }
.card h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.15; }
.card p { margin-top: 6px; color: #45423f; }
.comparison { --position: 50%; position: relative; overflow: hidden; margin-top: 24px; border-radius: 9px; aspect-ratio: 2.5; }
.comparison img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.before { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.comparison-label { position: absolute; bottom: 12px; padding: 5px 10px; background: #151617; border-radius: 5px; pointer-events: none; font-size: .86rem; font-weight: 700; }
.before-label { left: 12px; }
.after-label { right: 12px; }
.divider { position: absolute; left: clamp(1px, var(--position), calc(100% - 1px)); top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: white; pointer-events: none; }
.divider span { display: grid; place-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: white; color: #151617; font-size: 12px; box-shadow: 0 2px 8px #0005; }
.comparison input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.comparison:focus-within { outline: 3px solid #178be0; outline-offset: 4px; }
.comparison-help { margin-top: 10px; color: #d2d2d2; font-size: .875rem; }
.area { padding-block: 32px; }
.area-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.area p { margin-top: 9px; font-size: 1.14rem; }
footer { padding: 21px 0; text-align: center; }
dialog { width: min(90%, 440px); padding: 28px; background: var(--ivory); color: var(--dark); border: 0; border-radius: 12px; }
dialog p { margin: 14px 0 20px; }
dialog::backdrop { background: #000a; }

@media (max-width: 800px) {
  .top-inner { flex-wrap: wrap; column-gap: 14px; row-gap: 4px; padding-block: 10px 6px; }
  .top .button { min-height: 42px; padding-inline: 14px; }
  nav { width: 100%; order: 3; margin: 0; justify-content: space-between; }
  nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-inner { min-height: unset; }
  .hero-copy { width: 100%; padding-block: 30px; }
  h1 { max-width: 13ch; }
  .hero-photo { position: relative; width: 100%; height: auto; max-height: 480px; aspect-ratio: 1.52; clip-path: none; }
  .comparison { aspect-ratio: 1.75; }
}
@media (max-width: 580px) {
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card img { aspect-ratio: 1.7; }
  .area-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.top .brand img { max-height: 57px; border-radius: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.outline { background: transparent; border: 1px solid #94dce1; color: white; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 18px 25px; flex-wrap: wrap; }
.footer-inner .brand img { border-radius: 3px; }
.footer-inner a { text-underline-offset: 4px; }
.preview-note { margin-top: 14px; padding-inline: 18px; color: #c6c9d8; font-size: .85rem; }
@media (max-width: 580px) {
  .top .brand img { max-height: 46px; }
  .footer-inner .brand { display: flex; justify-content: center; width: 100%; }
}
