@font-face {
  font-family: Inter;
  src: url("/assets/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #193d32;
  --secondary-text: #4f6259;
  --accent: #1d4937;
  --soft: #f1f5ed;
  --border: #cadccd;
  --tint: #dcecd7;
  font-family: Inter, system-ui, sans-serif;
  font-optical-sizing: none;
  color: var(--text);
  background: #fffefc;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
:root.blue {
  --text: #2b2235;
  --secondary-text: #5d5367;
  --accent: #382546;
  --soft: #f5f1f8;
  --border: #dcd2e5;
  --tint: #ece1f6;
}
:root.red {
  --text: #481e2a;
  --secondary-text: #715560;
  --accent: #662638;
  --soft: #fbf2f3;
  --border: #e7cbd0;
  --tint: #f7dce0;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 280px; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: progress; opacity: .68; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
[hidden] { display: none !important; }
.wide { --u: min(.0694444444vw, 1px); }
.compact { display: none; }
.section { scroll-margin-top: 12px; }
.canvas { max-width: 1440px; margin-inline: auto; }
.canvas *, .canvas { min-width: 0; }
.copy { align-self: start; overflow-wrap: break-word; }
.line { display: block; }
.artwork { align-self: stretch; display: grid; place-items: center; }
.artwork img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.store-links { display: flex; flex-wrap: wrap; align-content: start; column-gap: 1.2em; }
.section :is(a,button):hover, .store-links button:hover { filter: brightness(.92); }
.section :is(a,button):active { filter: brightness(.84); }
.mini-model { border: 1px solid var(--border); padding-inline: calc(15 * var(--u)); font-size: max(12px, calc(16 * var(--u))); }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 13px 21px; border: 1px solid transparent; border-radius: 11px;
  font-size: 15px; line-height: 1.3; font-weight: 600; text-align: start;
}
.primary { background: var(--accent); color: white; }
.secondary { background: white; color: var(--accent); border-color: var(--border); }
.primary:hover, .secondary:hover { filter: brightness(.94); }
.primary:active, .secondary:active { transform: translateY(1px); }
.text-button { font-size: 13px; line-height: 1.45; color: var(--secondary-text); text-decoration: underline; text-underline-offset: .2em; }

.device-check {
  position: relative; align-self: start; border: 1px solid var(--border);
  border-radius: calc(20 * var(--u)); background: white; color: var(--text);
  padding: calc(31 * var(--u)); min-height: calc(422 * var(--u));
  font-size: max(13px, calc(15 * var(--u))); line-height: 1.4;
}
.device-check h3 { font-size: calc(24 * var(--u)); line-height: 1.4; font-weight: 600; }
.device-check .form-copy { margin-block: calc(20 * var(--u)); color: var(--secondary-text); }
.device-check > label { display: block; color: var(--secondary-text); font-size: max(11px, calc(13 * var(--u))); }
.brand-select {
  width: 100%; min-height: 44px; padding: 0 12px; margin: 6px 0 14px;
  font: inherit; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: white;
}
.brand-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.search-field { position: relative; margin-top: calc(10 * var(--u)); }
.search-field input {
  width: 100%; height: max(44px, calc(54 * var(--u))); padding-inline: calc(15 * var(--u)) 42px;
  border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--text);
}
.search-icon { position: absolute; right: 15px; width: 18px; top: max(22px, calc(27 * var(--u))); transform: translateY(-50%); pointer-events: none; }
.search-field ul {
  list-style: none; overscroll-behavior: contain;
  padding: 5px; margin: 4px 0 0; max-height: min(200px, 32dvh); overflow-y: auto; background: white;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 23px #27202b17;
}
.search-field li { padding: 9px 11px; cursor: pointer; border-radius: 6px; }
.search-field li[aria-selected="true"], .search-field li:hover { background: var(--soft); }
.form-submit {
  margin-top: calc(20 * var(--u)); width: calc(269 * var(--u)); max-width: 100%;
  min-height: max(44px, calc(55 * var(--u))); padding-inline: calc(22 * var(--u));
}
.form-submit img { width: calc(19 * var(--u)); height: auto; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin-top: calc(20 * var(--u)); color: var(--secondary-text); font-size: max(11px, calc(12 * var(--u))); }
.consent input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--accent); }
.consent button { text-decoration: underline; text-underline-offset: 2px; }
.form-note { margin-top: calc(26 * var(--u)); font-size: max(11px, calc(13 * var(--u))); color: var(--secondary-text); }
.device-check [aria-invalid="true"] { outline: 2px solid #a62e48; outline-offset: 1px; }
.device-check .form-note.error { color: #96253e; }
.form-result { display: grid; gap: 14px; }
.device-check.has-result > :not(.form-result) { display: none; }
.form-result h3 { line-height: 1.2; }
.form-result .model { font-weight: 600; }
.form-result .result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.faq-list { display: flex; flex-direction: column; align-self: start; gap: calc(12 * var(--u)); }
.faq-list details { background: var(--soft); border-radius: calc(12 * var(--u)); color: var(--text); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--u));
  min-height: calc(71 * var(--u)); padding: calc(22 * var(--u)); list-style: none;
  cursor: pointer; font-size: calc(19 * var(--u)); font-weight: 600; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary img { width: calc(20 * var(--u)); flex: none; height: auto; }
.faq-list .faq-minus, .faq-list details[open] .faq-plus { display: none; }
.faq-list details[open] .faq-minus { display: block; }
.faq-list details[open] summary { padding-bottom: calc(10 * var(--u)); min-height: calc(59 * var(--u)); }
.faq-list details p {
  max-width: 84ch; padding: 0 calc(22 * var(--u)) calc(22 * var(--u));
  font-size: max(14px, calc(15 * var(--u))); color: var(--secondary-text); line-height: 1.5;
}
.faq-list details p:not(:last-child) { padding-bottom: calc(10 * var(--u)); }
.faq-list details p a { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }

dialog, .cookie-panel, .sticky-check { font-size: 15px; line-height: 1.45; color: var(--text); }
dialog {
  width: min(440px, calc(100vw - 28px)); max-height: 86dvh; padding: 24px;
  border: 1px solid var(--border); border-radius: 22px; background: #fffefc; box-shadow: 0 16px 64px #28182935;
}
dialog::backdrop { background: #201a245e; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-weight: 700; }
.close { width: 40px; height: 40px; background: var(--soft); border-radius: 50%; text-align: center; font-size: 25px; }
dialog h2 { font-size: 25px; line-height: 1.18; letter-spacing: -.6px; }
#dialog-body { display: grid; gap: 12px; margin-top: 15px; }
#dialog-body .dialog-link { display: block; padding: 11px 14px; border-radius: 9px; background: var(--soft); text-align: left; }
.cookie-panel {
  position: fixed; inset: auto 24px 18px; z-index: 5; max-width: 1312px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px;
  background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 8px 34px #28222b1c;
}
.cookie-panel h2 { font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.cookie-panel p { color: var(--secondary-text); font-size: 14px; }
.cookie-actions { flex: none; display: flex; align-items: center; gap: 10px; }
.cookie-actions .text-button { display: none; }
.sticky-check { display: none; }

@media (max-width: 1039px) {
  .wide { display: none; }
  .compact { display: block; --u: min(.2564102564vw, 1.38px); }
  .canvas { max-width: calc(390 * var(--u)); }
  .device-check { min-height: calc(459 * var(--u)); padding: calc(22 * var(--u)); }
  .form-submit { width: 100%; }
  .faq-list summary { min-height: calc(68 * var(--u)); padding: calc(20 * var(--u)); font-size: calc(17 * var(--u)); }
  .faq-list details p { padding-inline: calc(20 * var(--u)); }
  .cookie-panel { inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); max-width: 490px; padding: 21px; flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-panel h2 { font-size: 23px; }
  .cookie-actions { display: grid; gap: 8px; }
  .cookie-actions button { justify-content: center; text-align: center; }
  .cookie-actions .text-button { display: block; padding: 4px; }
  .sticky-check { position: fixed; z-index: 2; inset: auto 12px max(10px, env(safe-area-inset-bottom)); max-width: 490px; margin-inline: auto; display: grid; gap: 7px; padding: 11px; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: 0 4px 24px #27232a1a; }
  .sticky-check > span { text-align: center; font-size: 12px; }
  .sticky-check .primary { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
