/* Focor website: Request access, in steps (round 16). A light Focor surface in the middle of the window, over the
   same softly dimmed page as "About this comparison". The glass is its own layer, so the dialog never fades it: it
   eases to each step's height by transform (js/access.js), and only the content moves. */
.ad-dialog {
  position: fixed; inset: 0; margin: auto; width: min(560px, calc(100vw - 32px)); height: fit-content; max-height: calc(100svh - 32px);
  padding: 0; border: 0; overflow: visible; background: none; color: #2b2722; font-family: 'Hanken Grotesk', sans-serif;
}
.ad-dialog::backdrop { background: rgba(43, 39, 34, 0.26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ad-dialog[open]::backdrop { animation: ad-dim 0.3s ease both; }
@keyframes ad-dim { from { opacity: 0; } }
.ad-dialog:focus { outline: none; }
.ad-glass {
  position: absolute; inset: 0; border-radius: 26.4px; transform-origin: 50% 0; pointer-events: none;
  background: rgba(250, 248, 246, 0.92); -webkit-backdrop-filter: blur(24px) saturate(1.1); backdrop-filter: blur(24px) saturate(1.1);
  box-shadow: 0 0 0 1px rgba(43, 39, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 20px 56px -22px rgba(67, 52, 36, 0.3), 0 6px 16px rgba(67, 52, 36, 0.08);
}
.ad-scroll { position: relative; max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 26px 36px 28px; scrollbar-width: thin; isolation: isolate; }
.ad-dialog [hidden] { display: none !important; }

/* The head: the aperture, the invitation, a quiet step indicator and the close button. */
.ad-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ad-mark { display: grid; place-items: center; width: 26px; height: 26px; color: #2b2722; }
.ad-mark svg { width: 22px; height: 22px; }
.ad-eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #6e665b; }
.ad-steps { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6e665b; transition: opacity 0.3s ease; }
.ad-steps.gone { opacity: 0; }
.ad-dots { display: flex; gap: 5px; }
.ad-dots i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: rgba(43, 39, 34, 0.16); }
.ad-dots i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2b7a6f; opacity: 0; transform: scale(0.6); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.ad-dots i.on::after { opacity: 0.45; transform: scale(1); }
.ad-dots i.now::after { opacity: 1; }
.ad-close { display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -10px -6px 4px; padding: 0; border-radius: 50%; color: #6e665b; transition: background-color 0.2s ease, color 0.2s ease; }
.ad-close svg { width: 18px; height: 18px; }
.ad-close:hover { background: rgba(43, 39, 34, 0.06); color: #2b2722; }

/* A step: its title, one line of lead, its fields, and its buttons. */
.ad-step { position: relative; }
.ad-step h2 { margin: 0 0 8px; font: 500 34px/1.08 'Cormorant Garamond', serif; letter-spacing: -0.01em; color: #2b2722; }
.ad-step h2:focus { outline: none; }
.ad-step h2 em { font-style: normal; color: #2b7a6f; }
.ad-lead { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: #615d55; max-width: 44ch; }
.ad-field { display: block; margin: 0 0 16px; min-width: 0; }
.ad-label { display: block; margin: 0 0 7px; padding: 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: #514f47; }
.ad-label b { font-weight: 400; color: #2b7a6f; }
.ad-label small { margin-left: 4px; font-size: 11px; font-weight: 400; color: #8a857a; white-space: nowrap; }
.ad-input { position: relative; display: block; }
.ad-input > svg, .ad-input > img { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #8a857a; object-fit: contain; pointer-events: none; }
.ad-field input, .ad-field textarea {
  display: block; width: 100%; min-width: 0; padding: 12px 14px 12px 42px; border: 1px solid #d6d1c6; border-radius: 10px;
  background: #fcfbf8; color: #2b2722; font: 15px/1.4 'Hanken Grotesk', sans-serif; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ad-field textarea { padding-left: 14px; min-height: 66px; resize: vertical; }
.ad-field input::placeholder, .ad-field textarea::placeholder { color: #9a958a; opacity: 1; }
.ad-field input:hover, .ad-field textarea:hover { border-color: rgba(43, 122, 111, 0.45); }
.ad-field input:focus, .ad-field textarea:focus { outline: none; border-color: #2b7a6f; box-shadow: 0 0 0 3px rgba(43, 122, 111, 0.12); background: #fffefb; }
.ad-error { display: block; margin-top: 6px; font-size: 12px; color: #9c5142; }

/* Where you'd start: six quiet tiles. */
.ad-platforms { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.ad-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ad-option { position: relative; display: block; cursor: pointer; }
.ad-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-option span {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: #3d3831;
  background: #fcfbf8; box-shadow: inset 0 0 0 1px #d6d1c6; transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ad-option svg, .ad-option img { flex: none; width: 18px; height: 18px; color: #6e665b; object-fit: contain; }
.ad-option:hover span { box-shadow: inset 0 0 0 1px rgba(43, 122, 111, 0.5); }
.ad-option input:checked + span { background: rgba(43, 122, 111, 0.08); box-shadow: inset 0 0 0 1.5px #2b7a6f; color: #22665c; }
.ad-option input:checked + span svg { color: #2b7a6f; }
.ad-option input:focus-visible + span { box-shadow: inset 0 0 0 1.5px #2b7a6f, 0 0 0 3px rgba(43, 122, 111, 0.16); }

/* The tool picker: chosen tools as chips with their marks, then a search box and its list. */
.ad-picker { position: relative; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.ad-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 4px 0 10px; border-radius: 999px; font-size: 13.5px; color: #2b2722; background: #fcfbf8; box-shadow: inset 0 0 0 1px #d6d1c6; }
.ad-chip img, .ad-list img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.ad-chip button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; color: #8a857a; }
.ad-chip button:hover { background: rgba(43, 39, 34, 0.07); color: #2b2722; }
.ad-chip button svg { width: 14px; height: 14px; }
.ad-tile { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 1; color: #514f47; background: rgba(43, 39, 34, 0.08); }
.ad-chip .ad-tile { width: 16px; height: 16px; font-size: 10px; }
.ad-tile-add { color: #2b7a6f; background: rgba(43, 122, 111, 0.1); font-size: 14px; font-weight: 500; }
.ad-list { margin: 6px 0 0; padding: 4px; max-height: 216px; overflow-y: auto; list-style: none; border-radius: 12px; background: #fffefb; box-shadow: 0 0 0 1px rgba(43, 39, 34, 0.1), 0 10px 24px -14px rgba(67, 52, 36, 0.35); scrollbar-width: thin; }
.ad-list li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: #2b2722; cursor: pointer; }
.ad-list li.active { background: rgba(43, 122, 111, 0.09); }
.ad-list .ad-empty { color: #8a857a; cursor: default; font-size: 13px; }

/* The buttons: the step's next move on the right, quiet Back and Skip beside it, the fine print on the left. */
.ad-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ad-buttons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ad-dialog .ad-primary { gap: 14px; padding: 13px 20px; min-height: 46px; border-radius: 10px; font-size: 14px; }
.ad-dialog .ad-primary .arrow { width: 18px; height: 18px; }
.ad-quiet { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 10px; font-size: 14px; color: #514f47; transition: background-color 0.2s ease, color 0.2s ease; }
.ad-quiet:hover { background: rgba(43, 39, 34, 0.06); color: #2b2722; }
.ad-back-icon { width: 16px; height: 16px; }
.ad-fine { margin: 0; font-size: 12px; line-height: 1.45; color: #8a857a; }
.ad-fine a { color: inherit; text-underline-offset: 0.18em; }
.ad-invite { display: flex; align-items: center; gap: 8px; }
.ad-invite svg { width: 18px; height: 18px; flex: none; color: #6e665b; }

/* Sending (the live site): the button waits calmly; a message, if it fails, sits above the buttons. */
.ad-dialog .ad-primary.is-sending { cursor: progress; background: #3f8a7f; }
.ad-dialog .ad-primary.is-sending .arrow { animation: ad-wait 1.2s ease-in-out infinite; }
@keyframes ad-wait { 0%, 100% { opacity: 0.35; transform: translateX(0); } 50% { opacity: 1; transform: translateX(3px); } }
.ad-send-error { margin: 18px 0 -6px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #8a4637; background: rgba(156, 81, 66, 0.08); }
/* The honeypot: off-screen, never focused, never filled in by people. */
.ad-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Done: the night room, and a calm line. */
.ad-done { text-align: left; }
.ad-done-room { display: block; height: 150px; margin: 0 0 22px; border-radius: 16px; overflow: hidden; }
.ad-done-room img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% 62%; }
.ad-done .ad-eyebrow { margin-bottom: 10px; }

/* Between steps: the step leaving slides and fades (forwards to the left, back to the right). */
.ad-step.ad-leave, .ad-step.ad-leave-back { transition: opacity 0.18s ease, translate 0.18s ease; opacity: 0; }
.ad-step.ad-leave { translate: -14px 0; }
.ad-step.ad-leave-back { translate: 14px 0; }

@media (max-width: 640px) {
  .ad-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .ad-scroll { max-height: calc(100svh - 24px); padding: 20px 20px 22px; }
  .ad-glass { border-radius: 20px; }
  .ad-head { gap: 8px; }
  .ad-eyebrow { white-space: nowrap; font-size: 10.5px; letter-spacing: 0.12em; }
  .ad-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ad-step h2 { font-size: 29px; }
  .ad-lead { font-size: 14.5px; margin-bottom: 18px; }
  .ad-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-field input, .ad-field textarea { font-size: 16px; }
  .ad-actions { flex-wrap: wrap; }
  .ad-actions .ad-fine { order: 2; flex-basis: 100%; }
  .ad-done-room { height: 120px; }
}
@media (max-height: 760px) and (min-width: 641px) {
  .ad-scroll { padding: 20px 32px 22px; }
  .ad-head { margin-bottom: 16px; }
  .ad-step h2 { font-size: 30px; }
  .ad-lead { margin-bottom: 16px; }
  .ad-field { margin-bottom: 12px; }
  .ad-actions { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-dialog[open]::backdrop { animation: none; }
  .ad-step.ad-leave, .ad-step.ad-leave-back { transition: none; }
  .ad-dots i::after, .ad-steps { transition: none; }
  .ad-dialog .ad-primary.is-sending .arrow { animation: none; }
}
