@font-face {
  font-family: "DM Sans";
  src: url("art/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #262036;
  background: #fff9ee;
  --paper: #fff9ee;
  --muted: #5d5266;
  --blue: #344ab6;
  --line: #e3d8d1;
  --gutter: clamp(16px, 4vw, 58px);
  --rhythm: clamp(68px, 9vw, 130px);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 18px; }
body, h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #526bf3; outline-offset: 4px; }
.wrap, .wide { margin-inline: auto; width: calc(100% - 2 * var(--gutter)); }
.wrap { max-width: 1120px; }
.wide { max-width: 1300px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 4; padding: 10px; background: white; }

.header, .footer { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 18px; font-weight: 780; letter-spacing: -.04em; }
nav, .actions { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 29px); }
nav a { font-size: 14px; font-weight: 680; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 730;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.button:active { transform: scale(.97); }
.primary { background: #293894; color: #fff; }
.primary:hover { background: #25316f; }
.secondary, .install-link { background: #f0e6e1; color: #463354; }
.secondary:hover, .install-link:hover { background: #e9d9d9; text-decoration: none; }
.install-link { min-height: 39px; padding-inline: 16px; }

.hero { text-align: center; padding: clamp(44px, 6vw, 81px) 0 clamp(35px, 4.7vw, 65px); }
.compatibility { display: inline-flex; align-items: center; gap: 7px; color: #524263; padding: 7px 12px; border-radius: 999px; background: #f1e7e0; font-size: 13px; font-weight: 670; }
.compatibility span { width: 7px; height: 7px; border-radius: 50%; background: #5871ce; }
.hero h1 { margin-top: 22px; font-weight: 540; font-size: clamp(49px, 9.5vw, 130px); letter-spacing: -.083em; line-height: .91; }
.hero h1 span { color: var(--blue); }
.lede { max-width: 38ch; margin: 24px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.5; text-wrap: balance; }
.actions { justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }

.showcase { border-radius: 26px; padding: clamp(17px, 5vw, 68px); background: #303d80 url("art/bakery-dusk.webp") center 65% / cover; }
.showcase-panel { display: grid; grid-template-columns: minmax(230px, 390px) minmax(235px, 345px); align-items: center; justify-content: center; gap: clamp(19px, 5vw, 78px); }
.showcase-copy { min-width: 0; padding: clamp(16px, 3.3vw, 38px); border: 1px solid #5f628e; border-radius: 16px; background: #201c39; color: #fff9ef; box-shadow: 0 13px 45px #17153665; }
.showcase-copy h2 { max-width: 11ch; font-size: clamp(34px, 4.5vw, 56px); line-height: .97; font-weight: 590; letter-spacing: -.065em; }
.showcase-copy p { margin-top: 13px; color: #ded5ec; line-height: 1.5; min-height: 3em; }
.mascot { width: 55px; height: 55px; margin-bottom: 17px; background: #ffdd97; border-radius: 11px; box-shadow: inset 0 -4px #b87a55; }
.mascot button { width: 100%; height: 100%; display: grid; place-items: center; border: 0; background: none; border-radius: inherit; }
.mascot canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.preview-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 19px; }
.preview-controls button { min-height: 41px; padding: 0 10px; border-radius: 8px; border: 1px solid #80749a; color: #f5edf9; background: #332a4e; font-size: 13px; font-weight: 720; }
.preview-controls button[aria-pressed="true"] { border-color: #ffdb9c; color: #32233e; background: #ffdb9c; }

.product { min-width: 0; overflow: hidden; border-radius: 16px; background: #1c2435; border: 1px solid #d9d3ea; box-shadow: 0 20px 53px #17153681; }
.product figcaption { min-height: 39px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: 10px; background: #f7f4ff; color: #4e4362; font-size: 12px; font-weight: 740; }
.lights { display: flex; gap: 5px; }
.lights i, .swatch-header i { width: 7px; height: 7px; border-radius: 100%; background: #e58f99; }
.lights i:nth-child(2), .swatch-header i:nth-child(2) { background: #e3b664; }
.lights i:nth-child(3), .swatch-header i:nth-child(3) { background: #78b59b; }
.product-screen img { width: 100%; height: auto; }
.product:has(img[src$="light.png"]) { background: #f2f5fb; }

.edit, .formats, .privacy, .install, .faq { margin-top: var(--rhythm); }
.edit, .formats, .privacy, .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: clamp(19px, 6vw, 82px); row-gap: 20px; }
.edit { align-items: center; }
.edit h2, .formats h2, .privacy h2, .install h2, .faq h2, .closing h2 {
  font-size: clamp(37px, 5.4vw, 72px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -.066em;
  text-wrap: balance;
}
.edit-copy > p, .privacy p, .formats p { margin-top: 14px; color: var(--muted); line-height: 1.55; font-size: clamp(16px, 1.65vw, 19px); max-width: 39ch; }
.edit-notes { list-style: none; padding: 0; display: grid; gap: 13px; margin-top: 22px; }
.edit-notes li { display: flex; align-items: flex-start; gap: 11px; }
.edit-notes p { margin-top: 2px; line-height: 1.45; color: var(--muted); }
.edit-notes h3 { font-size: 16px; }
.note-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: #e9e1ff; color: #483484; font: 700 21px ui-monospace, monospace; }
.note-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.undo { background: #fce7bf; color: #704a28; }

.example { padding: clamp(12px, 2.5vw, 26px); border-radius: 20px; background: #e7ddf8; border: 1px solid #ded2f0; }
.example-head { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; margin-bottom: 13px; font-size: 13px; color: #55456a; font-weight: 650; }
.example-domain { font: 720 14px ui-monospace, monospace; color: #34254e; }
.sample-page { display: grid; gap: 6px; align-content: center; min-height: 153px; padding: 18px; border-radius: 12px; background: #fffaf4; color: #3f3153; transition: background-color 180ms ease, color 180ms ease; }
.sample-page[data-theme="dark"] { background: #28203f; color: #f6efff; }
.sample-page strong { font-size: 25px; letter-spacing: -.045em; }
.sample-page > span { font-size: 14px; }
.swatch-header { display: flex; gap: 5px; margin-bottom: 6px; }
.swatch-lines { display: flex; gap: 6px; margin-top: 7px; }
.swatch-lines i { width: 26px; height: 5px; border-radius: 9px; background: #8e78cb; }
.swatch-lines i:nth-child(2) { width: 43px; background: #dfa77b; }
.example figcaption { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; padding-top: 13px; }
.example-value { display: grid; gap: 3px; font-size: 12px; color: #57496e; }
.example-value code { font-size: 15px; color: #382c51; }
.example figcaption button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: #52418b; color: white; font-size: 13px; font-weight: 730; }
.example figcaption button:hover { background: #403272; }

.formats { padding: clamp(20px, 5vw, 57px); border-radius: 24px; background: #26203f; color: #faf5ff; }
.formats p, .formats dd { color: #e8daf4; }
.formats dl div { border-top: 1px solid #6a5b82; padding-block: 11px; }
.formats dt { font: 720 16px ui-monospace, monospace; color: #f6deaf; }
.formats dd { margin-top: 4px; line-height: 1.45; }
.privacy { padding-block: clamp(21px, 3vw, 40px); border-block: 1px solid var(--line); align-items: center; }
.privacy p { margin-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 13px; }
.section-heading a { font-size: 14px; font-weight: 700; }
.install ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding: 0; list-style: none; counter-reset: setup; }
.install li { padding: 17px; border-radius: 12px; background: #f3e8e6; counter-increment: setup; }
.install li::before { content: counter(setup, decimal-leading-zero); font: 730 14px ui-monospace, monospace; color: #564189; }
.install h3 { margin-top: 8px; letter-spacing: -.03em; }
.install p { margin-top: 5px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.answers details { border-top: 1px solid var(--line); }
.answers details:last-child { border-bottom: 1px solid var(--line); }
.answers summary { min-height: 48px; padding: 13px 23px 13px 0; position: relative; list-style: none; font-weight: 710; cursor: pointer; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after { position: absolute; right: 2px; content: "+"; }
.answers details[open] summary::after { content: "−"; }
.answers p { padding: 0 15px 13px 0; color: var(--muted); line-height: 1.5; }
@supports (interpolate-size: allow-keywords) {
  .answers details { interpolate-size: allow-keywords; }
  .answers details::details-content { block-size: 0; overflow: clip; transition: block-size 180ms ease, content-visibility 180ms allow-discrete; }
  .answers details[open]::details-content { block-size: auto; }
}

.closing { margin-top: var(--rhythm); text-align: center; display: grid; place-items: center; padding: 28px var(--gutter); min-height: clamp(310px, 40vw, 530px); background: #333b74 linear-gradient(#17133c20,#17133c35); background-image: linear-gradient(#17133c20,#17133c35),url("art/bakery-dusk.webp"); background-position: center 72%; background-size: cover; }
.closing > div { padding: clamp(20px, 4vw, 43px); border-radius: 18px; background: #fff1d8; }
.closing .button { margin-top: 16px; }
.footer { min-height: 83px; }

@media (max-width: 720px) {
  .showcase-panel { grid-template-columns: minmax(175px, 1fr) minmax(175px, 1fr); gap: 13px; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 530px) {
  .header { min-height: 65px; }
  .header .nav-link { display: none; }
  .hero h1 { font-size: clamp(44px, 11.4vw, 62px); }
  .showcase { border-radius: 18px; }
  .showcase-panel { grid-template-columns: minmax(0, 355px); }
  .showcase-copy h2 { max-width: 16ch; }
  .edit, .formats, .privacy, .faq, .install ol { grid-template-columns: minmax(0, 1fr); }
  .privacy { gap: 9px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 3px; padding-block: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:active { transform: none; }
}
