/* Lake palette from burton-site. Dark mode stays on the night-water side. */

:root,
:root[data-theme="light"],
html[data-brand="burton"],
html[data-brand="burton"][data-theme="light"] {
  --color-bg: #fbfcfd;
  --color-surface: #f4f8fb;
  --color-fg: #14283a;
  --color-muted: #4f6778;
  --color-border: #d7e8f2;
  --color-accent: #2a5f7d;
  --color-accent-contrast: #f7fbfe;
  --shadow-color: 16 40 63;
  --color-code-bg: #e8f0f6;
  --color-code-fg: #14283a;
  --color-pre-bg: #eef4f8;
  --color-pre-fg: #14283a;
}

@media (prefers-color-scheme: dark) {
  :root,
  html[data-brand="burton"] {
    --color-bg: #071018;
    --color-surface: #0c1826;
    --color-fg: #e6eef4;
    --color-muted: #8aa0b0;
    --color-border: #163044;
    --color-accent: #7eb8d4;
    --color-accent-contrast: #071018;
    --shadow-color: 0 0 0;
    --color-code-bg: #0c1826;
    --color-code-fg: #e6eef4;
    --color-pre-bg: #050b12;
    --color-pre-fg: #e6eef4;
  }
}

:root[data-theme="dark"],
html[data-brand="burton"][data-theme="dark"] {
  --color-bg: #071018;
  --color-surface: #0c1826;
  --color-fg: #e6eef4;
  --color-muted: #8aa0b0;
  --color-border: #163044;
  --color-accent: #7eb8d4;
  --color-accent-contrast: #071018;
  --shadow-color: 0 0 0;
  --color-code-bg: #0c1826;
  --color-code-fg: #e6eef4;
  --color-pre-bg: #050b12;
  --color-pre-fg: #e6eef4;
}

.hero-lake {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(88vh, 46rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #f7fbfe;
  background: #071018;
}

.hero-lake-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-lake-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(16 40 63 / 0.18) 0%, rgb(16 40 63 / 0.28) 42%, rgb(16 40 63 / 0.82) 100%),
    linear-gradient(90deg, rgb(16 40 63 / 0.32), transparent 58%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-lake-shade,
  html[data-brand="burton"]:not([data-theme="light"]) .hero-lake-shade {
    background:
      linear-gradient(180deg, rgb(4 10 16 / 0.48) 0%, rgb(4 10 16 / 0.62) 40%, rgb(4 10 16 / 0.94) 100%),
      linear-gradient(90deg, rgb(4 10 16 / 0.46), transparent 60%);
  }
}

:root[data-theme="dark"] .hero-lake-shade,
html[data-brand="burton"][data-theme="dark"] .hero-lake-shade {
  background:
    linear-gradient(180deg, rgb(4 10 16 / 0.48) 0%, rgb(4 10 16 / 0.62) 40%, rgb(4 10 16 / 0.94) 100%),
    linear-gradient(90deg, rgb(4 10 16 / 0.46), transparent 60%);
}

.hero-lake .hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21.6rem);
  align-items: end;
  gap: clamp(var(--space-5), 4vw, var(--space-10));
  width: min(100% - var(--wide-gutter), var(--wide-width));
  max-width: none;
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 9rem) clamp(var(--space-8), 5vw, var(--space-20)) clamp(3.5rem, 7vw, 5.5rem);
}

.hero-copy-main {
  min-width: 0;
}

.hero-lake .hero-eyebrow {
  color: #d7e8f2;
}

.hero-lake .hero-title {
  max-width: 16ch;
  color: #f7fbfe;
  text-wrap: balance;
}

.hero-lake .hero-description {
  max-width: 42rem;
  color: #f7fbfe;
}

.hero-lake .hero-content {
  max-width: 42rem;
  color: #d7e8f2;
}

.hero-lake .hero-content p {
  margin: 0;
}

.hero-lake .button-primary {
  background: #f7fbfe;
  color: #10283f;
  border-color: #f7fbfe;
}

.hero-lake .button-primary:hover {
  background: #d7e8f2;
  color: #10283f;
}

.hero-lake .button-secondary {
  background: rgb(7 16 24 / 0.28);
  color: #f7fbfe;
  border-color: rgb(247 251 254 / 0.42);
}

.hero-lake .button-secondary:hover {
  background: rgb(7 16 24 / 0.48);
  color: #f7fbfe;
}

.home-page-wide .feature-grid-products {
  display: block;
  width: min(100% - var(--wide-gutter), var(--wide-width));
  margin: clamp(var(--space-16), 7vw, 6rem) auto 0;
}

.feature-grid-heading {
  max-width: 40rem;
  margin: 0 0 var(--space-8);
}

.feature-grid-heading h2 {
  margin: 0;
  font-size: clamp(var(--text-3xl), 3vw, 3rem);
  line-height: var(--leading-tight);
}

.feature-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-4), 2vw, var(--space-6));
}

.home-page .feature-card,
.products-list .feature-card {
  display: flex;
  flex-direction: column;
  min-height: 14rem;
}

.home-page .feature-card-head,
.products-list .feature-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.home-page .feature-card-head .feature-card-kicker,
.products-list .feature-card-head .feature-card-kicker {
  margin-bottom: 0;
}

.home-page .feature-card-title,
.products-list .feature-card-title {
  max-width: none;
  font-size: var(--text-2xl);
}

.products-list .feature-card-title a {
  color: inherit;
  text-decoration: none;
}

.products-list .feature-card-title a:hover {
  color: var(--color-accent);
}

.home-page .feature-card-badge {
  margin: 0;
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-align: right;
  line-height: var(--leading-snug);
}

.home-page .feature-card-description,
.products-list .feature-card-description {
  max-width: none;
}

.home-page .feature-card-links,
.products-list .feature-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: auto 0 0;
  padding-top: var(--space-5);
}

.home-page .feature-card-link,
.products-list .feature-card-link {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
}

.home-page .feature-card-link:hover,
.products-list .feature-card-link:hover {
  text-decoration: underline;
}

.home-page-wide .home-learn-overview-with-cards .home-learn-overview-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}

.home-learn-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-list .feature-card {
  position: relative;
  min-width: 0;
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  border: 0;
  border-radius: calc(var(--radius-lg) + var(--space-1));
  background: linear-gradient(
    145deg,
    var(--color-surface-raised),
    var(--color-surface-subtle)
  );
  box-shadow:
    inset 0 0 0 1px var(--color-border),
    var(--shadow-md);
}

.products-header {
  max-width: var(--content-width);
}

.products-intro {
  margin-bottom: var(--space-10);
}

.products-list {
  width: 100%;
  margin-top: 0;
}

.site-main:not(.site-main-home-wide) .products-list {
  max-width: none;
}

.os-callout {
  width: 100%;
  max-width: 21.6rem;
  margin: 0;
  justify-self: end;
}

.os-callout-ad {
  display: grid;
  gap: 0.55rem;
  color: #f7fbfe;
  text-decoration: none;
}

.os-callout-ad:hover,
.os-callout-ad:focus-visible {
  color: #f7fbfe;
  text-decoration: none;
}

.os-callout-stage {
  position: relative;
  overflow: visible;
  aspect-ratio: 5 / 4;
  border: 1px solid rgb(247 251 254 / 0.06);
  border-radius: 12px;
  background: rgb(2 8 14 / 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.os-callout-ad:hover .os-callout-stage,
.os-callout-ad:focus-visible .os-callout-stage {
  border-color: rgb(247 251 254 / 0.14);
  background: rgb(2 8 14 / 0.22);
}

.os-callout-screen {
  position: absolute;
  transform: none;
}

.os-callout-screen--back {
  z-index: 1;
  left: 22%;
  top: 3%;
  width: 76%;
  height: 64%;
}

.os-callout-screen--front {
  z-index: 2;
  left: 3%;
  top: 14%;
  width: 90%;
  height: 78%;
}

.os-callout-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(142 196 224 / 0.38);
  border-radius: 6px;
  background: #071018;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.45);
}

.os-callout-window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.18rem 0.4rem 0.18rem 0.35rem;
  background: #0c1826;
  color: #8ec4e0;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-callout-window-bar::before {
  width: 0.32rem;
  height: 0.32rem;
  flex-shrink: 0;
  margin-right: 0.85rem;
  border-radius: 50%;
  background: #8ec4e0;
  box-shadow: 0.42rem 0 0 #4f6778, 0.84rem 0 0 #4f6778;
  content: "";
}

.os-callout-window-view {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.os-callout-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.os-callout-title {
  margin: 0;
  color: #f7fbfe;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
}

.os-callout-more {
  margin: 0;
  color: #8ec4e0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.os-callout-ad:hover .os-callout-more,
.os-callout-ad:focus-visible .os-callout-more {
  color: #f7fbfe;
  text-decoration: underline;
}

.product-os {
  max-width: min(100%, 48rem);
}

.product-os .product-shot,
.product-os .how-it-works-diagram {
  margin: var(--space-8) 0 var(--space-10);
}

.product-os .product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: #071018;
}

.product-os .product-shot figcaption {
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.how-it-works-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.how-it-works-diagram__box,
.how-it-works-diagram__arrows-img {
  display: block;
  width: 100%;
  height: auto;
}

.how-it-works-diagram__arrows-img--landscape {
  display: none;
}

.how-it-works-diagram__arrows-img--portrait {
  display: block;
}

@media (max-width: 900px) {
  .feature-grid-cards,
  .home-learn-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-lake {
    min-height: min(78vh, 38rem);
  }

  .hero-lake .hero-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .os-callout {
    max-width: 19rem;
    justify-self: start;
  }
}

@media (min-width: 901px) {
  .how-it-works-diagram {
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 0.28fr) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
  }

  .how-it-works-diagram__arrows-img--landscape {
    display: block;
  }

  .how-it-works-diagram__arrows-img--portrait {
    display: none;
  }
}

.contact-dialog {
  width: min(28rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-fg);
  box-shadow: 0 24px 48px rgb(7 16 24 / 0.35);
}

.contact-dialog::backdrop {
  background: rgb(7 16 24 / 0.62);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.35rem 1.2rem;
}

.contact-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.contact-dialog-head h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.contact-dialog-close {
  margin: -0.2rem -0.35rem 0 0;
  padding: 0.15rem 0.45rem;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog-close:hover,
.contact-dialog-close:focus-visible {
  color: var(--color-fg);
}

.contact-dialog-lead {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
  color: var(--color-fg);
  font-size: var(--text-sm);
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-fg);
  font: inherit;
  font-weight: 400;
}

.contact-field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.contact-form-status {
  margin: 0;
  color: var(--color-accent);
  font-size: var(--text-sm);
}

.contact-form-status-error {
  color: #c45c4a;
}

.contact-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.contact-toast {
  position: fixed;
  z-index: 200;
  top: 1.15rem;
  left: 50%;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 1rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  box-shadow: 0 18px 36px rgb(7 16 24 / 0.32);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: 0.01em;
  transform: translateX(-50%);
}
