:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #141821;
  background: #f5f5f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 25%, #e4edf9, transparent 65%) #f5f5f7;
}
.card {
  position: relative;
  isolation: isolate;
  width: min(100%, 610px);
  padding: clamp(24px, 6vw, 60px);
  text-align: center;
  border-radius: 36px;
  border: 1px solid white;
  background: linear-gradient(155deg, #fff 25%, #f5f7fa);
  box-shadow: 0 32px 74px -24px #243b6040, 0 3px 12px #243b600c;
}
.card-face :is(.actions, .back-actions) .button { position: relative; }
.card-face :is(.actions, .back-actions) .button::after,
.card-back #open-review::after,
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 34%, #4383dbb0 45%, #df534e98 51%, #ecc051b0 57%, transparent 68%) 100% 0 / 300% 100%;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
}
.brand { margin: 0 auto 24px; }
.brand img { display: block; margin: auto; width: clamp(126px, 32vw, 172px); height: 74px; object-fit: contain; }
h1 {
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 5rem);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 720;
}
h1 span { color: #194e95; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: #194e95; color: white; }
.secondary { background: #eaf0fa; border-color: #dbe5f4; color: #194477; }
.button:hover { filter: brightness(.94); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-footer { margin-top: 28px; display: grid; gap: 15px; justify-items: center; }
.card-footer a { color: #4c5768; text-decoration: none; }
.card-footer a:hover { text-decoration: underline; }
.website { font-size: .85rem; font-weight: 650; }
.legal-footer nav { display: flex; gap: 16px; font-size: .73rem; }
:focus-visible { outline: 3px solid #4383db; outline-offset: 3px; }
dialog {
  width: min(calc(100% - 28px), 440px);
  max-height: calc(100svh - 28px);
  border: 0;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 20px 70px #14213733;
}
/* Match the dimmed backdrop where mobile Safari exposes the root canvas. */
:root:has(dialog[open]) { background-color: #adb2ba; }
:root:has(#review-dialog[open]) { background-color: #9b9da1; }
dialog::backdrop {
  inset: 0;
  min-height: 100lvh;
  background: #14182166;
}
dialog h2 { margin: 0 40px 18px 0; letter-spacing: -.04em; }
.close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef1f6; font-size: 1.4rem; cursor: pointer; }
form { display: grid; gap: 12px; }
form[hidden] { display: none; }
label { display: grid; gap: 5px; font-size: .85rem; font-weight: 650; }
input, textarea { width: 100%; font: inherit; font-size: 1rem; font-weight: 400; padding: 10px; border: 1px solid #aeb8c8; border-radius: 10px; }
textarea { resize: vertical; }
.privacy, .status { font-size: .85rem; line-height: 1.45; }
.privacy { margin: 0; color: #4c5768; }
.privacy a { color: inherit; }
.status:empty { display: none; }
@media (max-height: 580px) {
  .card { padding-block: 20px; }
  .brand { margin-bottom: 14px; }
  .actions, .card-footer { margin-top: 16px; }
}

@keyframes edge-reflection-idle {
  0% { opacity: 0; background-position: 100% 0; }
  5%, 16.65% { opacity: 1; }
  22.5%, 100% { opacity: 0; background-position: 0 0; }
}
@keyframes sheet-in {
  from { transform: translateY(32px); opacity: .65; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .card-face :is(.actions, .back-actions) .button::after,
  .card-back #open-review::after,
  .card::before { animation: edge-reflection-idle 6s .15s ease-out infinite both; }
}
@media (max-width: 540px) {
  dialog {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 26px 26px 0 0;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 540px) and (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: sheet-in .26s ease-out both; }
}

body { align-content: center; gap: 20px; }
.card {
  width: min(100%, 520px);
  aspect-ratio: 1.65;
  padding: clamp(14px, 4vw, 30px);
  border-radius: clamp(23px, 5vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: linear-gradient(145deg, #fff 12%, #f1f5fb 96%);
  box-shadow: 0 3px 0 #d7deea, 0 26px 46px -18px #283e6470;
}
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 92% 22%, #b2d0f575, transparent 48%),
    radial-gradient(ellipse at 103% 41%, #eab0ad55, transparent 35%),
    radial-gradient(ellipse at 96% 69%, #edca7455, transparent 37%);
}
.brand { margin: 0; }
.brand img { margin: 0; height: auto; width: clamp(106px, 28vw, 150px); }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.actions .button { padding: 6px 3px; gap: 3px; font-size: clamp(.7rem, 2.7vw, .9rem); }
.actions svg { flex: 0 0 15px; }
.card-footer { margin-top: 0; gap: 8px; }

#review-form { display: block; }
#review-form [hidden] { display: none; }
.review-business { display: flex; align-items: center; gap: 12px; padding-right: 42px; margin-bottom: 20px; }
.review-business img { object-fit: contain; }
.review-business h2 { margin: 0; font-size: 1.1rem; }
#review-dialog-title:focus { outline: none; }
.review-business p, .review-step-label, .review-privacy, #rating-label { color: #4c5768; font-size: .85rem; }
.review-business p { margin: 4px 0 0; }
.review-step-label { margin-bottom: 15px; }
.rating-field { padding: 0; margin: 0 0 14px; border: 0; min-width: 0; }
.rating-field legend { font-weight: 650; margin-bottom: 10px; }
.rating-stars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rating-star { position: relative; place-items: center; min-height: 48px; border-radius: 10px; background: #eef1f6; color: #657289; font-size: 1.65rem; cursor: pointer; }
.rating-star input { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rating-star.active { background: #fff1c8; color: #885700; }
.rating-star:focus-within { outline: 2px solid #194e95; outline-offset: 2px; }
.review-next:disabled { opacity: .5; cursor: default; }
.review-label + .review-label { margin-top: 10px; }
.review-privacy { line-height: 1.5; }
.review-privacy a { color: inherit; }
.review-buttons { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.review-back { background: none; border: 0; min-height: 44px; font: inherit; color: #194e95; cursor: pointer; }
.review-success { text-align: center; }
.review-success svg { width: 58px; stroke: #194e95; stroke-width: 4; }

.actions { grid-template-columns: repeat(2, 48px); gap: 9px; }
.actions svg, .card-tools svg { width: 20px; height: 20px; flex-basis: 20px; }
.card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.card-tools { display: flex; flex-shrink: 0; gap: 2px; }
.card-tools .button { width: 44px; min-height: 44px; padding: 0; background: transparent; border-color: transparent; color: #405573; }
.card-tools .button { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .card-tools .button:hover:not(:focus) { background: #eaf0fa; }
}
#qr-title:focus { outline: none; }
.card-tools .button:active { background: #dce7f7; }
.card-tools svg { width: 17px; height: 17px; flex-basis: 17px; }
#card-status { margin: 0; text-align: center; }

/* Keep the card centered and the legal links at the bottom of the page. */
body {
  grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
  align-content: stretch;
}
.card { grid-row: 2; }
.card-footer { grid-row: 3; }
.legal-footer { grid-row: 5; display: grid; justify-items: center; gap: 7px; }
.legal-footer nav a { color: #4c5768; text-decoration: underline; text-underline-offset: 3px; padding-block: 8px; }

.card { touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent; }
.card:focus { outline: none; }
.card-face { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; }
.card-face[hidden] { display: none; }
.card-back { position: relative; }
.card-back .company-details { display: block; padding-inline-end: 52px; }
.company-details p { margin: 0 0 5px; color: #4c5768; font-size: .8rem; }
.company-details h1 { font-size: clamp(1.35rem, 5vw, 2.3rem); letter-spacing: -.035em; }
.company-details address { margin-top: 9px; font-style: normal; line-height: 1.4; font-size: .85rem; }
.back-actions { display: flex; gap: 8px; margin-top: 8px; }
.back-actions .button { min-height: 44px; padding: 6px 11px; font-size: .75rem; }
.back-actions .instagram-link, .card-back #open-review { width: 44px; min-height: 44px; padding: 0; }
.card-back #open-review { position: absolute; inset-block-start: 0; inset-inline-end: 0; }
.badge-credit {
  color: #526078;
  font-size: .68rem;
  line-height: 1.25;
  text-decoration: none;
}
.badge-credit:hover { color: #194e95; text-decoration: underline; text-underline-offset: 2px; }
.card-dots { position: relative; display: flex; gap: 7px; }
.card-dots span { width: 6px; height: 6px; border-radius: 50%; background: #a9b5c7; }
.card-dots .card-dot-active { position: absolute; inset: 0 auto auto 0; background: #194e95; }
.card.is-back ~ .card-footer .card-dot-active { translate: 13px 0; }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: box-shadow 180ms ease-out; }
  .card.is-pressed {
    box-shadow: 0 2px 0 #d7deea, var(--press-shadow-x) calc(18px + var(--press-shadow-y)) 34px -16px #283e6478;
  }
  .card-dot-active { transition: translate 280ms cubic-bezier(.22, .78, .25, 1); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#inquiry {
  width: min(480px, calc(100% - 24px));
  inset: 0;
  margin: auto;
  padding: 38px 25px 25px;
  max-height: calc(100dvh - 64px);
  border: 1px solid #ffffffd9;
  border-radius: 18px;
  color: #14212f;
  background: linear-gradient(145deg, #fffffff2, #f0f7ffe8);
  box-shadow: inset 0 1px 0 #fff, 0 24px 80px #10274430;
}
#inquiry::backdrop { background: #10203350; backdrop-filter: blur(4px); }
#inquiry form { display: block; }
#inquiry [hidden], #request-form.is-sent > :not(.inquiry-success) { display: none; }
.inquiry-modal-close {
  position: absolute; inset: 4px 6px auto auto; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: #526579;
  font-size: 28px; cursor: pointer;
}
.inquiry-modal-close:hover { background: #e7edf5; }
.inquiry-progress { color: #526d88; font-size: 11px; letter-spacing: .06em; }
.inquiry-track { height: 2px; margin: 14px 0 26px; background: #dce5ef; }
.inquiry-track span { display: block; height: 100%; background: #0768c6; transition: width .25s; }
.inquiry-step { min-height: 270px; }
.inquiry-step h3, .inquiry-success h3 { margin: 0 0 10px; font-size: clamp(25px, 4vw, 33px); font-weight: 500; letter-spacing: -.04em; }
.inquiry-step h3:focus, .inquiry-success h3:focus { outline: none; }
.inquiry-hint { margin: 0 0 24px; color: #576573; font-size: 14px; line-height: 1.6; }
.inquiry-options { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inquiry-options .inquiry-choice {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; padding: 13px; gap: 8px; background: #fff; border: 1px solid #d4dfe9;
  border-radius: 9px; cursor: pointer;
}
.inquiry-choice:last-child { grid-column: 1 / -1; }
.inquiry-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.inquiry-choice b {
  display: grid; place-items: center; flex-shrink: 0; width: 21px; height: 21px;
  border: 1px solid #b6c8d9; border-radius: 5px; color: transparent; font-size: 12px;
}
.inquiry-options .inquiry-choice:has(input:checked) { border-color: #0768c6; background: #e5effa; }
.inquiry-choice:has(input:checked) b { background: #0768c6; border-color: #0768c6; color: #fff; }
.inquiry-choice:focus-within { outline: 2px solid #0768c6; outline-offset: 3px; }
.inquiry-step label:not(.inquiry-choice) { color: #34485b; margin-bottom: 14px; }
.inquiry-step :is(input:not([type=checkbox]), textarea) { min-height: 52px; padding: 13px 14px; border-color: #cbd7e2; }
.inquiry-step textarea { min-height: 120px; }
.inquiry-actions { display: flex; gap: 10px; margin-top: 16px; }
.inquiry-actions .button { flex: 1; min-height: 52px; border-radius: 11px; background: #0768c6; padding: 12px 16px; }
.inquiry-actions .inquiry-back, .inquiry-restart {
  min-height: 44px; padding: 10px 14px; border: 1px solid #c9d8e5;
  border-radius: 8px; background: transparent; color: #45617b; font: inherit; font-size: .85rem; cursor: pointer;
}
#inquiry .privacy-form-note, #form-status, .inquiry-error { margin: 14px 0 0; color: #576573; font-size: .8rem; line-height: 1.5; }
#inquiry .privacy-form-note a { color: inherit; }
#inquiry .inquiry-error { color: #b32d3c; }
#form-status:empty, .inquiry-error:empty { display: none; }
.inquiry-success { text-align: center; padding: 22px 0 12px; }
.inquiry-success p { color: #576573; font-size: 14px; line-height: 1.65; }
.inquiry-success svg { display: block; width: 80px; margin: 0 auto 22px; stroke: #0768c6; }
.inquiry-success .success-ring { stroke-width: 1.5; }
.inquiry-success .success-check { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .inquiry-success .success-ring { stroke-dasharray: 214; animation: inquiry-draw .65s ease both; }
  .inquiry-success .success-check { stroke-dasharray: 55; animation: inquiry-draw .4s .4s ease both; }
}
@keyframes inquiry-draw { from { stroke-dashoffset: var(--inquiry-length); } to { stroke-dashoffset: 0; } }
.inquiry-success .success-ring { --inquiry-length: 214; }
.inquiry-success .success-check { --inquiry-length: 55; }
@media (max-width: 760px) {
  #inquiry { inset: auto 0 max(24px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 56px); padding: 38px 20px 20px; }
}

#qr-dialog, #save-dialog {
  width: min(370px, calc(100% - 28px));
  inset: 0;
  margin: auto;
  padding: 36px 24px 24px;
  border: 1px solid #ffffffd9;
  border-radius: 24px;
  text-align: center;
  color: #14212f;
  background: linear-gradient(145deg, #fffffff2, #f0f7ffe8);
  box-shadow: inset 0 1px 0 #fff, 0 24px 80px #10274430;
}
#qr-dialog::backdrop, #save-dialog::backdrop { background: #10203350; backdrop-filter: blur(4px); }
#qr-dialog .close, #save-dialog .close { top: 8px; right: 8px; background: transparent; color: #526579; }
#qr-dialog .close:hover, #save-dialog .close:hover { background: #e7edf5; }
#qr-dialog { width: min(272px, calc(100% - 28px)); padding: 16px; overflow: visible; }
#qr-dialog .close { top: calc(100% + 12px); right: auto; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; color: #fff; background: transparent; }
#qr-dialog .close:hover { background: transparent; opacity: .75; }
#qr-dialog[open] { animation: none; }
#qr-dialog img { display: block; width: 100%; height: auto; margin: 0; border-radius: 10px; }
#qr-dialog img:focus { outline: none; }
.qr-link { max-width: 100%; text-align: left; }
.qr-link[hidden] { display: none; }

.save-card {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: #194e95; font: inherit; font-size: .8rem;
  font-weight: 650; cursor: pointer;
}
.save-card:hover { background: #194e950c; }
.save-card svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
#save-dialog { width: min(410px, calc(100% - 28px)); text-align: left; }
#save-title { margin: 0 36px 6px 0; }
#save-title:focus { outline: none; }
.device-picker p { margin: 0 0 12px; color: #576573; font-size: .85rem; line-height: 1.5; }
.save-platform { padding: 13px 14px; border: 1px solid #e0e8f3; border-radius: 14px; background: #ffffffb3; }

.save-platform h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: .95rem; }
.save-platform h3 span { color: #576573; font-size: .72rem; font-weight: 500; }
.save-platform ol { margin: 0; padding-left: 21px; color: #34485b; font-size: .84rem; line-height: 1.5; }
.save-platform li + li { margin-top: 5px; }
.save-platform li::marker { color: #194e95; font-weight: 700; }
#save-dialog [hidden] { display: none; }
.device-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.device-options .button { min-height: 58px; padding: 12px; border-radius: 14px; }
.device-options .button svg { width: 30px; height: 30px; }
.save-platform h3:focus { outline: none; }
.save-dialog-actions:has(button:not([hidden])) { margin-top: 8px; }
.save-dialog-actions .button { background: transparent; color: #194e95; padding: 0 8px; font-size: .8rem; }

@media (prefers-reduced-motion: no-preference) {
  .button, .save-card, dialog .close {
    transition: transform 240ms cubic-bezier(.22, 1.48, .42, 1);
  }
  :is(.button, .save-card, dialog .close):active:not(:disabled) {
    transform: scale(.93);
    transition: transform 90ms ease-out;
  }
  .rating-star {
    transition: background-color 140ms ease, color 140ms ease;
  }
  .rating-star.active {
    transition-delay: var(--star-delay, 0ms);
  }
  .rating-star.active span {
    animation: star-bounce 310ms var(--star-delay, 0ms) ease-out both;
  }
  .rating-star:nth-child(2) { --star-delay: 35ms; }
  .rating-star:nth-child(3) { --star-delay: 70ms; }
  .rating-star:nth-child(4) { --star-delay: 105ms; }
  .rating-star:nth-child(5) { --star-delay: 140ms; }
}

@keyframes star-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-4px) scale(1.16); }
  72% { transform: translateY(1px) scale(.96); }
}
