:root {
  color-scheme: light;
  --surface: #f9f8f4;
  --paper: #fffdf8;
  --ink: #211a33;
  --muted: #514765;
  --line: #e2dbe9;
  --accent: #513594;
  --lavender: #d9cbff;
  --apricot: #ffd29b;
  --mint: #a9e8dc;
  --page: min(100% - 88px, 1170px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 24px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: var(--page); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.3125rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}
.wordmark img { flex: none; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 3vw, 35px); }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; }
.site-header nav a { padding-block: 7px; font-size: .9375rem; font-weight: 580; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .24em; }

.catalog { padding-block: clamp(22px, 3.3vw, 44px) clamp(46px, 6vw, 84px); }
.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr);
  align-items: end;
  gap: clamp(20px, 4vw, 68px);
  margin-bottom: clamp(14px, 2vw, 24px);
  padding: clamp(25px, 4.4vw, 59px);
  border-radius: 22px;
  background: var(--lavender);
}
.catalog-intro h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.7rem);
  font-weight: 760;
  letter-spacing: -.073em;
  line-height: .99;
}
.catalog-intro h1 span { color: var(--accent); }
.catalog-intro p { max-width: 33ch; padding-bottom: 4px; color: #3d2c66; font-size: clamp(1rem, 1.75vw, 1.2rem); line-height: 1.55; }

.products { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(14px, 2vw, 24px); }
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(14px, 2.05vw, 26px);
  border-radius: 22px;
}
.product-remote { background: var(--apricot); --product-ink: #582c17; }
.product-water { background: var(--mint); --product-ink: #154d45; }
.product-preview {
  height: clamp(190px, 25vw, 330px);
  overflow: hidden;
  border-radius: 13px;
  background: #ffffff50;
}
.product-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { display: flex; flex: 1; align-items: flex-start; flex-direction: column; padding: 19px 3px 2px; }
.product-heading { display: flex; align-items: center; gap: 13px; }
.app-icon { flex: none; border-radius: 12px; }
.product-heading h2 {
  font-size: clamp(1.19rem, 2.25vw, 1.75rem);
  font-weight: 695;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.product-copy > p { max-width: 48ch; margin-block: 13px 19px; color: var(--product-ink); }
.product-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; }
.product-links nav { display: flex; flex-wrap: wrap; gap: 7px 12px; font-size: .875rem; color: var(--product-ink); }
.product-links nav a { text-underline-offset: .19em; }
.store-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid var(--product-ink);
  border-radius: 8px;
  background: var(--product-ink);
  color: #fff;
  font-size: .875rem;
  font-weight: 690;
  text-decoration: none;
}
.store-link:hover { background: var(--paper); color: var(--product-ink); }

.support { background: var(--paper); border-block: 1px solid var(--line); }
.support-inner, .about-inner {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(38px, 5vw, 65px);
}
.support h2, .about h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 710;
  letter-spacing: -.042em;
  line-height: 1.15;
}
.support-inner > div > p, .about p { margin-top: 11px; color: var(--muted); }
.text-link { color: var(--accent); font-weight: 640; text-underline-offset: .2em; }
.text-link:hover { color: var(--ink); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding-block: 13px;
  font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 18px 14px 0; color: var(--muted); }

.about { background: #2d2249; color: #fffaf3; }
.about-inner { align-items: center; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); }
.about p { max-width: 57ch; color: #e2d8f7; }
.about h3 { margin-bottom: 5px; color: #e2d8f7; font-size: .9375rem; line-height: 1.4; }
.about .text-link { color: #b7f4e9; }
.about .text-link:hover { color: #fff; }
.about .text-link:focus-visible { outline-color: #b7f4e9; }
.site-footer { border-top: 1px solid #48395f; background: #2d2249; }
.footer-inner {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  color: #e2d8f7;
}
.footer-inner small, .site-footer nav { font-size: .875rem; }
.site-footer nav a { color: #e2d8f7; }
.site-footer nav a:hover { color: #fff; }
.site-footer nav a:focus-visible { outline-color: #b7f4e9; }

.legal-page { max-width: 790px; padding-block: clamp(32px, 6vw, 76px); }
.legal-heading { padding: clamp(20px, 4vw, 40px); border-radius: 17px; background: var(--lavender); }
.legal-heading h1 { margin-block: 7px 10px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.055em; }
.legal-heading p { color: #3d2c66; }
.legal-app { font-weight: 680; }
.legal-page article { padding: clamp(8px, 2vw, 20px); }
.legal-page article h2 { margin-block: 24px 7px; font-size: 1.3rem; line-height: 1.25; }
.legal-page article p + p { margin-top: 9px; }
.legal-page article a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  :root { --page: calc(100% - 40px); }
  .header-inner { min-height: 62px; }
  .catalog-intro { grid-template-columns: 1fr; gap: 13px; }
  .app-icon { width: 45px; height: 45px; border-radius: 10px; }
  .product-heading { gap: 10px; }
}

@media (max-width: 620px) {
  :root { --page: min(100% - 36px, 465px); }
  .products, .support-inner, .about-inner { grid-template-columns: 1fr; }
  .catalog-intro { border-radius: 16px; }
  .catalog-intro p { padding-bottom: 0; }
  .product { border-radius: 16px; }
  .product-preview { height: auto; aspect-ratio: 16 / 9; }
  .product-heading h2 { font-size: 1.375rem; }
  .product-copy { padding-top: 15px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 12px; }
  .wordmark { font-size: 1.125rem; gap: 6px; }
  .wordmark img { width: 25px; height: 25px; }
  .site-header nav { gap: 10px; }
}

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