:root{color-scheme:dark;--base:#171a17;--panel:#20241f;--line:#394139;--text:#f4f1e8;--muted:#b2baae;--accent:#d2e18b}*{box-sizing:border-box}body{margin:0;background:var(--base);color:var(--text);font-family:system-ui,sans-serif}button,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,select:focus-visible,label:focus-within{outline:2px solid #e3f6a5;outline-offset:4px}[hidden]{display:none!important}.top,footer{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:19px max(5vw,24px);border-bottom:1px solid var(--line)}.logo{letter-spacing:.135em;font-size:1.08rem;font-weight:900;white-space:nowrap}.logo span{color:var(--accent)}nav,.policies{display:flex;align-items:center;flex-wrap:wrap;gap:22px}nav button,.policies button,.close,.remove{border:0;background:none;color:inherit;padding:5px}#count{background:var(--accent);color:#171a17;border-radius:20px;padding:1px 7px;margin-left:5px}main{max-width:1440px;margin:auto;padding:48px max(5vw,24px) 0}.product{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(28px,5vw,76px);align-items:center}.photo{margin:0}.visual{aspect-ratio:1.3;background:radial-gradient(ellipse at 50% 40%,#454b44,#252924 65%,#1d201d);border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;overflow:hidden}.visual img{width:100%;height:100%;object-fit:cover}figcaption,footer small,.material,.picker span,#feedback{color:var(--muted);font-size:.82rem}figcaption{margin-top:10px}.material{letter-spacing:.16em;font-weight:700;margin:0 0 9px}.details h1{font-size:clamp(2.8rem,6.6vw,6.4rem);font-weight:850;letter-spacing:-.075em;line-height:.91;margin:0}.description,.info p,#policy-body{color:var(--muted);line-height:1.6}.offer{border:none;padding:0;margin:22px 0 15px}.offer legend{padding:0;margin-bottom:9px;font-weight:650}.options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.options label{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:10px;cursor:pointer;display:flex;align-items:flex-start;gap:7px;font-size:.9rem}.options label:has(input:checked){border-color:var(--accent)}input{accent-color:var(--accent)}.options strong,.options small{display:block;margin-top:4px}.options small{color:var(--accent)}.picker{display:flex;gap:12px;align-items:end;margin-bottom:15px}.picker label{flex:1;min-width:0}.picker label span{display:block;margin-bottom:4px}.picker #plus{padding-bottom:11px;font-size:1.1rem}.picker select{width:100%;background:var(--panel);border:1px solid var(--line);border-radius:7px;color:var(--text);padding:9px}.primary{width:100%;background:var(--accent);color:#1b2112;border:0;border-radius:7px;padding:13px;font-weight:800}.primary:hover:enabled{background:#e1eea8}#feedback{min-height:1.2em;margin:8px 0 0}.info{display:grid;grid-template-columns:1fr 1.5fr;gap:20px;margin-top:55px;border-top:1px solid var(--line);padding:20px 0 30px}.info h2{font-size:1.3rem}footer{border-bottom:0;border-top:1px solid var(--line)}.policies{gap:12px;color:var(--muted);font-size:.87rem}dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;width:min(460px,calc(100vw - 32px));padding:23px}dialog::backdrop{background:#0a0b0ad0}.dialog-head,.line,.subtotal{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{margin:0}.close{font-size:1.7rem}.line,.subtotal{padding:13px 0;border-bottom:1px solid var(--line)}.line small{display:block;color:var(--muted);margin-top:4px}.remove{text-decoration:underline;font-size:.85rem}.subtotal{margin-bottom:14px}.empty{color:var(--muted)}@media(max-width:760px){main{padding-top:24px}.product,.info{grid-template-columns:1fr}.product{gap:23px}.details h1 br{display:none}.info{margin-top:28px;gap:0}footer{flex-wrap:wrap}.visual{aspect-ratio:1.58}}

body {
  background: #161b1e;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #10171c29, #10171c78 58%, #10171cb8),
    linear-gradient(0deg, #111719ed, #11171914 82%),
    url("valley.webp") center 46% / cover no-repeat;
}
.top, footer {
  background: #111719d9;
}
.details {
  container-type: inline-size;
  padding: clamp(20px, 3vw, 38px);
  background: #141a1de8;
  border: 1px solid #b4bfab30;
  border-radius: 12px;
}
.visual {
  background: #161b1e;
  box-shadow: 0 18px 50px #080c1190;
}
.visual img {
  transform: scale(1.025) translate(var(--photo-x, 0px), var(--photo-y, 0px));
  transition: transform 220ms ease-out;
}
figcaption {
  color: var(--text);
  text-shadow: 0 1px 5px #000;
}
.info {
  background: #141a1de8;
  padding: 20px clamp(20px, 3vw, 38px);
  margin-bottom: 24px;
  border: 1px solid #b4bfab30;
  border-radius: 12px;
}
@media(max-width:760px) {
  body::before { background-position: center, center, 43% center; }
}
@media(prefers-reduced-motion:reduce) {
  .visual img { transform: none; transition: none; }
}

.top .logo span { color: inherit; }

.logo img { display: block; width: clamp(135px, 19vw, 190px); height: auto; }
footer .logo img { width: 125px; }
.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  padding-block: 11px;
}
.header-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--text);
  background: transparent;
  border: 0;
}
#open-menu { justify-self: start; }
.hamburger { display: grid; gap: 4px; }
.hamburger i {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
#site-menu {
  inset: 0 auto 0 0;
  margin: 0;
  padding: 0;
  width: min(22rem, 86vw);
  height: 100%;
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #171c1c;
}
#site-menu::backdrop { background: rgb(8 12 12 / 68%); }
html:has(#site-menu[open]) { overflow: hidden; }
.menu-sheet {
  min-height: 100%;
  padding: 20px clamp(20px, 4vw, 32px);
  padding-top: max(20px, env(safe-area-inset-top));
}
.menu-sheet .dialog-head {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.menu-sheet h2 { font-size: 1.3rem; }
.menu-sheet .close { width: 44px; min-height: 44px; }
.menu-links { display: grid; gap: 0; }
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
  padding-inline: 3px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.menu-links a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border: solid var(--muted);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.menu-links a:hover, .menu-links a:focus-visible { background: var(--panel); }
@media(prefers-reduced-motion: no-preference) {
  #site-menu[open]::backdrop { animation: menu-backdrop 150ms ease-out; }
  @keyframes menu-backdrop { from { opacity: 0; } }
}

#open-cart {
  justify-self: end;
  gap: 6px;
}
.cart-icon { flex: none; }
@font-face {
  font-family: "Alpine Headline";
  src: url("alpine-headline.otf") format("opentype");
  font-weight: 700;
  font-style: oblique;
  font-display: swap;
}

.details h1 {
  font-family: "Alpine Headline", "Arial Narrow", Arial, sans-serif;
  font-size: min(clamp(2.5rem, 5vw, 5.35rem), 11.65cqi);
  font-weight: 700;
  font-style: oblique;
  letter-spacing: .055em;
  line-height: .96;
  -webkit-text-stroke: .032em currentColor;
  transform: scaleY(.86);
  transform-origin: left center;
  mask: url("headline-grain.png") center / 100% 100% no-repeat;
  text-transform: uppercase;
}
.details h1 > span { display: block; }
.details h1 > span + span {
  /* The oblique M has a 41-unit wider left side bearing than A. */
  margin-inline-start: -.041em;
}
.product-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}
.product-details summary {
  cursor: pointer;
  padding: 13px 0 6px;
  font-weight: 650;
}
.product-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.product-details dl { margin: 8px 0; }
.product-details dl div {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.product-details dd { margin: 0; }
.product-details dd, .product-details p { color: var(--muted); }
@media(max-width:760px) {
  .details h1 { font-size: min(clamp(2.1rem, 7.6vw, 4.2rem), 11.65cqi); }
}

.installed { margin-top: 40px; padding: clamp(17px, 3vw, 34px); background: #141a1de8; border: 1px solid #b4bfab30; border-radius: 12px; }
.installed h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.25rem); }
.installed > p { margin: 7px 0 18px; color: var(--muted); }
.installed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.installed-grid figure { margin: 0; }
.installed-grid a { display: block; cursor: zoom-in; }
.installed-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.installed + .info { margin-top: 24px; }
.support-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #141a1de8;
  border: 1px solid #b4bfab30;
  border-radius: 12px;
  margin-bottom: 32px;
}
.support-sections section { padding: 20px clamp(20px, 3vw, 38px); }
.support-sections section + section { border-left: 1px solid var(--line); }
.support-sections h2 { font-size: 1.3rem; margin: 0; }
.support-sections p { color: var(--muted); margin: 6px 0 0; line-height: 1.55; }
.policies a { padding: 5px; }
main section[id] { scroll-margin-block-start: 1rem; }
main section[id]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .installed-grid, .support-sections { grid-template-columns: 1fr; }
  .support-sections section + section { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .header-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.frame-stage {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 40%, #525c60, #242d30 74%, #181e20);
}
.frame-stage img, .frame-stage canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.frame-stage img { object-fit: contain; border-radius: inherit; }
.frame-stage canvas { touch-action: none; cursor: grab; border-radius: inherit; }
.frame-stage canvas:active { cursor: grabbing; }
.frame-stage canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.frame-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.frame-controls button {
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--base);
  color: var(--text);
}
.frame-controls button:hover { border-color: var(--accent); }

.frame-touch-help { display: none; }
@media (pointer: coarse) {
  .frame-mouse-help { display: none; }
  .frame-touch-help { display: inline; }
}

.frame-key-help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

#installed-photo {
  width: min(1180px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(8px, 2vw, 16px);
  margin: auto;
  background: #121719;
}
#installed-photo .dialog-head { margin-bottom: 8px; }
#installed-photo h2 { font-size: clamp(1rem, 2.6vw, 1.28rem); }
#installed-photo .close { min-height: 44px; min-width: 44px; line-height: 1; }
#installed-photo img {
  display: block;
  height: auto;
  width: 100%;
  max-height: calc(100dvh - 106px);
  object-fit: contain;
  border-radius: 6px;
}

.frame-model-choice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: #c3c9ce;
  font-size: .875rem;
}
.frame-model-choice > span { font-weight: 700; }
.frame-model-choice select {
  appearance: none;
  min-height: 44px;
  min-width: 154px;
  padding: 6px 34px 6px 12px;
  border: 1px solid #515c65;
  border-radius: 7px;
  color: #f1f3f5;
  font: inherit;
  font-weight: 600;
  background:
    linear-gradient(45deg, transparent 50%, #c3c9ce 50%) right 17px center / 5px 5px no-repeat,
    linear-gradient(135deg, #c3c9ce 50%, transparent 50%) right 12px center / 5px 5px no-repeat,
    #222a30;
}
.frame-model-choice select:hover { border-color: #84909b; }
.frame-model-choice select:focus { border-color: #9da8b2; outline: none; }
.frame-model-choice select:focus-visible { outline: 2px solid #a7b2bd; outline-offset: 2px; }

#open-menu { font-weight: 700; }
#open-menu .hamburger i { height: 3px; }
.picker label:focus-within { outline: none; }
.picker select:focus { border-color: #9da8b2; outline: none; }
.picker select:focus-visible { outline: 2px solid #a7b2bd; outline-offset: 2px; }

.product-details h3 { margin: 14px 0 0; font-size: .95rem; }
#faqs details { margin-top: 12px; }
#faqs summary { cursor: pointer; font-weight: 650; }

#policy {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
}
#policy[open] { display: flex; flex-direction: column; }
#policy-body { overflow-y: auto; line-height: 1.55; }
#policy-body h3 { font-size: 1rem; margin: 1.1em 0 .3em; }
#policy-body h3 + p { margin-top: 0; }

.try-plate-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .85rem;
  padding: .55rem .95rem;
  border: 1px solid #878d8d;
  border-radius: 7px;
  background: #282e30;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}
.try-plate-link:hover { background: #363e41; border-color: var(--text); }
.plate-preview {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  margin-top: 40px;
  padding: clamp(17px, 3vw, 34px);
  background: #141a1de8;
  border: 1px solid #b4bfab30;
  border-radius: 12px;
}
.plate-preview h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.25rem); }
.plate-preview p, .plate-preview small { color: var(--muted); line-height: 1.5; }
.plate-preview label { display: block; margin: .75rem 0 .3rem; font-weight: 600; }
.plate-preview small { display: block; margin-top: .5rem; }
.plate-preview input[type="file"] { font: inherit; max-width: 100%; }
.plate-preview select, .plate-preview button, .plate-preview ::file-selector-button {
  padding: .6rem .75rem;
  border-radius: 7px;
  border: 1px solid #515c65;
  color: var(--text);
  background: #222a30;
  font: inherit;
}
.plate-preview fieldset { min-inline-size: 0; margin: 1rem 0 0; border: 1px solid var(--line); border-radius: 7px; }
.plate-preview input[type="range"] { display: block; width: 100%; margin: .4rem 0; }
.plate-preview-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
#plate-preview-status { margin-bottom: 0; }
#plate-preview-status:empty { display: none; }
.plate-preview-result { margin: 0; min-width: 0; }
.plate-preview-result canvas { display: block; width: 100%; height: auto; background: #252d32; border-radius: 8px; }
.plate-preview-result figcaption { margin-top: .65rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) {
  .plate-preview { grid-template-columns: minmax(0, 1fr); }
}
