@import url("/theme.css");

/* App frame */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
  background: color-mix(in srgb, var(--background) 84%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.topbar.has-title {
  background: color-mix(in srgb, var(--background) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}

.topbar-inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  min-height: calc(44px + var(--safe-top) + 18px);
  margin: 0 auto;
  padding: calc(var(--safe-top) + 9px) 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-title {
  opacity: 0;
  transform: translateY(2px);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.topbar.has-title .topbar-title {
  opacity: 1;
  transform: none;
}

.icon-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-size: 21px;
}

.icon-button:hover {
  background: var(--surface-raised);
}

.gear-button {
  position: absolute;
  top: calc(var(--safe-top) + 16px);
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 21px;
  pointer-events: auto;
}

.gear-button .icon {
  width: 23px;
  height: 23px;
}

.topbar-brand {
  position: absolute;
  top: calc(var(--safe-top) + 16px);
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.topbar-brand .icon {
  width: 18px;
  height: 18px;
}

.topbar-brand span {
  display: none;
}

@media (min-width: 700px) {
  .topbar-brand span {
    display: inline;
  }
}

.view {
  width: 100%;
  margin: 0 auto;
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: calc(var(--safe-bottom) + 16px);
  left: 16px;
  z-index: 100;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: 14px;
  text-align: center;
}

.noscript-note span {
  color: var(--secondary);
  font-size: 13px;
}

.view-search {
  max-width: 568px;
  padding: 0 clamp(18px, 4.4vw, 28px);
}

.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(132px, 20vh, 208px) 0 calc(138px + var(--safe-bottom));
  padding-top: clamp(132px, 20dvh, 208px);
}

.search-hero {
  text-align: center;
}

.search-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6.2vw, 44px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.042em;
}

.search-hero p {
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
  letter-spacing: -0.005em;
}

.photo-actions {
  width: 100%;
  max-width: 500px;
  margin-top: clamp(44px, 7.2vh, 76px);
  margin-top: clamp(44px, 7.2dvh, 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.photo-entry {
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 17px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.photo-entry:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.photo-entry:active {
  transform: scale(0.996);
}

.photo-entry.is-dragging {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.photo-entry-icon {
  width: 22px;
  height: 22px;
  color: var(--secondary);
}

.photo-entry-plus {
  width: 19px;
  height: 19px;
  margin-left: auto;
  color: var(--secondary);
}

.camera-button {
  min-height: 44px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--secondary);
  font-size: 15.5px;
  font-weight: 500;
}

.camera-button .icon {
  width: 20px;
  height: 20px;
}

.camera-button:hover {
  color: var(--text);
}

.recent-block {
  width: 100%;
  max-width: 500px;
  margin-top: 44px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-heading .text-button {
  font-size: 15px;
  min-height: 38px;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recent-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.recent-thumb {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--fill);
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recent-thumb .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 19px;
  transform: translate(-50%, -50%);
  color: var(--secondary);
}

.recent-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recent-title {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-subtitle {
  overflow: hidden;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-main > .chevron {
  width: 14px;
  height: 14px;
  color: var(--tertiary);
}

.recent-menu {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--secondary);
  font-size: 19px;
}

.recent-menu:hover {
  background: var(--fill);
}

/* Results */

.view-results {
  max-width: 680px;
  padding: calc(var(--safe-top) + 68px) clamp(18px, 4.4vw, 30px) calc(152px + var(--safe-bottom));
}

.results-inner {
  width: 100%;
}

.latest-results {
  width: 100%;
}

.latest-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.latest-photo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--fill);
}

.latest-photo {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.latest-photo-wrap.has-image .latest-photo {
  display: block;
}

.latest-photo-wrap.has-image .latest-photo-placeholder {
  display: none;
}

.latest-photo-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  color: var(--secondary);
}

.latest-copy {
  min-width: 0;
  flex: 1;
}

.latest-copy h2 {
  margin: 0 0 4px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
}

.latest-copy p {
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
}

.latest-toggle,
.new-search-button {
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--secondary);
}

.latest-toggle {
  width: 36px;
  height: 36px;
}

.new-search-button {
  width: 44px;
  height: 44px;
  margin-left: 2px;
  color: var(--text);
  font-size: 22px;
}

.latest-toggle:hover,
.new-search-button:hover {
  background: var(--fill);
}

.demo-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--warning) 24%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--warning) 7%, var(--surface));
  color: var(--secondary);
}

.demo-callout .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: color-mix(in srgb, var(--warning) 72%, var(--text));
}

.demo-callout p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.42;
}

.demo-callout strong {
  color: var(--text);
  font-weight: 600;
}

.similarity-note {
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 15px;
}

.result-list {
  margin-top: 2px;
}

.result-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

a.result-row:hover .result-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.result-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--fill);
}

.result-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.result-thumb .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
  color: var(--secondary);
}

.result-copy {
  min-width: 0;
  padding-top: 1px;
}

.result-source {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.result-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-badge {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #6e6e73;
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.platform-badge.instagram {
  background: radial-gradient(circle at 28% 105%, #fdf497 0 5%, #fd5949 44%, #d6249f 62%, #285aeb 96%);
}

.platform-badge.instagram::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.6px solid #fff;
  border-radius: 3.2px;
}

.platform-badge.instagram::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 1.6px;
  height: 1.6px;
  border-radius: 50%;
  background: #fff;
}

.platform-badge.facebook { background: #1877f2; font-size: 13px; }
.platform-badge.linkedin { background: #0a66c2; font-size: 9px; }
.platform-badge.x { background: #000; font-size: 12px; }
.platform-badge.tiktok { background: #000; font-size: 14px; }
.platform-badge.threads { background: #000; font-size: 13px; }
.platform-badge.vk { background: #0077ff; font-size: 8px; }
.platform-badge.pinterest { background: #e60023; font-size: 12px; }
.platform-badge.reddit { background: #ff4500; font-size: 12px; }
.platform-badge.youtube { background: #ff0033; }
.platform-badge.youtube::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 1px;
  border-top: 3.4px solid transparent;
  border-bottom: 3.4px solid transparent;
  border-left: 5.4px solid #fff;
}
.platform-badge.vimeo { background: #1ab7ea; font-size: 11px; }
.platform-badge.telegram { background: #2aabee; font-size: 12px; }
.platform-badge.news { background: #6e6e73; font-size: 10px; }
.platform-badge.web { background: #6e6e73; font-size: 10px; }
.platform-badge .badge-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.result-name {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result-domain {
  margin-top: 4px;
  overflow: hidden;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-score {
  margin-top: 3px;
  color: var(--secondary);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.result-arrow {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--secondary);
  justify-self: end;
}

.no-matches {
  padding: 28px 0;
  color: var(--secondary);
  font-size: 15px;
  text-align: center;
}

.results-empty {
  padding: clamp(60px, 14vh, 130px) 0 40px;
  padding-top: clamp(60px, 14dvh, 130px);
  text-align: center;
}

.empty-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--secondary);
}

.results-empty h2 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.results-empty p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.empty-action {
  margin-top: 8px;
}

.recent-results {
  max-width: none;
  margin-top: 38px;
}

.recent-results .section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.recent-results .recent-main {
  gap: 15px;
  padding: 9px 0;
}

.recent-results .recent-thumb {
  width: 56px;
  height: 56px;
}

.recent-results .recent-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.recent-results .recent-subtitle {
  font-size: 14px;
}

.recent-results .recent-main > .chevron {
  display: none;
}

/* Floating navigation */

.floating-tabs {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + clamp(10px, 1.8dvh, 16px));
  z-index: 25;
  display: flex;
  gap: 2px;
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: var(--shadow-float);
}

.tab {
  width: clamp(76px, 22vw, 94px);
  height: clamp(50px, 6.4dvh, 56px);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  transition: background 160ms ease, color 160ms ease;
}

.tab .icon {
  width: 22px;
  height: 22px;
}

.tab[aria-current="page"] {
  background: var(--tab-active);
  color: var(--text);
}

.tab:hover {
  color: var(--text);
}

/* Full-screen flows */

.screen-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--background);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.screen-dialog::backdrop {
  background: var(--background);
}

.screen-dialog[open] {
  animation: screen-rise 260ms cubic-bezier(0.22, 0.85, 0.24, 1);
}

.screen-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: calc(50px + var(--safe-top));
  padding: calc(var(--safe-top) + 7px) 20px 8px;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.screen-topbar h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
}

.screen-topbar > :first-child {
  justify-self: start;
}

.topbar-spacer {
  width: 42px;
  justify-self: end;
}

.crop-content {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 24px calc(28px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crop-hint {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  text-align: center;
}

.crop-stage-wrap {
  display: flex;
  justify-content: center;
}

.crop-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 440px, 50vh);
  width: min(100%, 440px, 50dvh);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.crop-stage:active {
  cursor: grabbing;
}

.crop-stage:focus-visible {
  box-shadow: 0 0 0 3px var(--background), 0 0 0 5px var(--accent);
}

.crop-image {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.crop-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.crop-shade-fill { fill: rgba(0, 0, 0, 0.22); }
.crop-ellipse-back { fill: none; stroke: rgba(0, 0, 0, 0.4); stroke-width: 2.5px; }
.crop-ellipse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.25px;
  stroke-dasharray: 5px 4px;
}

.crop-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: -2px;
}

.crop-controls .text-button {
  color: var(--secondary);
  font-size: 14px;
}

.crop-controls .text-button .icon {
  width: 16px;
  height: 16px;
}

.consent-copy {
  margin: 2px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.consent-row {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.switch-label {
  flex: 1;
}

.consent-row .switch-track {
  margin-left: auto;
}

.crop-content .primary-button {
  margin-top: 2px;
}

/* Paywall */

.paywall-content {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 28px calc(42px + var(--safe-bottom));
}

.paywall-photo-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--fill);
}

.paywall-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.paywall-title {
  margin: 0 0 13px;
  font-size: clamp(36px, 7vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.paywall-lead {
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.48;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  font-size: 17px;
}

.price-row strong {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.paywall-content .primary-button {
  margin-top: 0;
}

#paywall-note {
  margin-top: 14px;
  text-align: center;
}

.paywall-live-note {
  margin-top: 10px;
  color: color-mix(in srgb, var(--warning) 72%, var(--text));
  text-align: center;
}

.paywall-demo-note {
  margin-top: 10px;
}

.paywall-legal-note {
  margin-top: 14px;
  color: var(--secondary);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.paywall-legal-note a {
  color: var(--accent);
  text-decoration: none;
}

.paywall-legal-note a:hover {
  text-decoration: underline;
}

/* Searching */

.search-screen {
  padding: 24px;
}

.search-progress {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}

.search-photo-wrap {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--fill);
}

.search-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.search-progress-copy h2 {
  margin: 3px 0 7px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.search-progress-copy p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.search-progress .demo-callout {
  width: 100%;
  margin-top: 8px;
  text-align: left;
}

.search-progress > .footnote:last-child {
  margin-top: 2px;
}

/* Loading */

.loading-screen {
  padding: 24px;
}

.loading-screen[open] {
  display: grid;
  place-items: center;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}

.loading-content h2 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.loading-content p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

/* Sheets */

.sheet-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.sheet-dialog::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  max-height: 92dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--background);
  box-shadow: var(--shadow-dialog);
}

.sheet-handle {
  width: 36px;
  height: 5px;
  flex: 0 0 auto;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--fill-strong);
}

.sheet-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 12px;
  flex: 0 0 auto;
}

.sheet-nav h2 {
  grid-column: 2;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-align: center;
  white-space: nowrap;
}

.sheet-nav .pill-button {
  grid-column: 3;
  justify-self: end;
}

.sheet-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px calc(24px + var(--safe-bottom));
}

.settings-section {
  margin: 0 0 22px;
}

.settings-label {
  margin: 0 0 7px;
  padding: 0 5px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.app-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
}

.app-mark .icon {
  width: 23px;
  height: 23px;
}

.app-identity h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.app-identity p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}

.app-identity .demo-badge {
  margin-left: auto;
}

.settings-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.settings-row {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  text-align: left;
  text-decoration: none;
}

.settings-group > .settings-row:last-child,
.settings-group > :last-child {
  border-bottom: 0;
}

.settings-row:hover {
  background: color-mix(in srgb, var(--fill) 48%, transparent);
}

.settings-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent);
}

.settings-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-copy > span {
  line-height: 1.3;
}

.settings-copy small {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.settings-row .chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--tertiary);
}

.settings-row.destructive,
.settings-row.destructive .settings-icon {
  color: var(--danger);
}

.settings-row.static {
  color: var(--text);
}

.settings-row.static .settings-copy small {
  font-family: var(--mono);
  font-size: 12px;
}

.settings-row.switch-row {
  cursor: pointer;
}

.settings-row.switch-row .switch-track {
  margin-left: auto;
}

.settings-explainer {
  padding: 12px 16px 15px;
  border-top: 1px solid var(--line);
}

.settings-explainer p {
  margin: 0;
  color: var(--secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.settings-about {
  margin-top: 4px;
  padding: 2px 0 8px;
  color: var(--secondary);
  font-size: 12.5px;
  text-align: center;
}

.settings-about p {
  margin: 3px 0;
}

.help-hero {
  padding: 16px 4px 28px;
}

.help-hero h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.step-number {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fill);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.step-list h4 {
  margin: 1px 0 5px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.step-list p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.45;
}

.sheet-demo-note {
  margin-top: 34px;
}

.info-section {
  margin: 0 0 26px;
  padding: 0 4px;
}

.info-section h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.info-section p {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.52;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.rule-card > .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--success);
}

.rule-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rule-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.45;
}

/* Alerts and action sheets */

.alert-dialog,
.action-dialog {
  max-width: calc(100vw - 40px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.alert-dialog::backdrop,
.action-dialog::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.alert-panel {
  width: min(320px, calc(100vw - 40px));
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-dialog);
  text-align: center;
}

.alert-panel h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.alert-panel p {
  margin: 0 0 17px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.45;
}

.alert-panel .primary-button {
  min-height: 48px;
  font-size: 16px;
}

.alert-actions {
  display: flex;
  gap: 9px;
}

.alert-actions > button {
  flex: 1;
  min-width: 0;
}

.destructive-button {
  background: var(--danger);
  color: #fff;
}

.action-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
}

.action-panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--safe-bottom) + 10px);
  left: 0;
  width: min(420px, calc(100vw - 24px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
}

.action-row {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  font-size: 17px;
  text-align: center;
}

.action-row:last-child {
  border-bottom: 0;
}

.action-row:hover {
  background: var(--surface-muted);
}

.action-row.destructive {
  color: var(--danger);
}

.action-row.cancel {
  font-weight: 600;
}

@keyframes screen-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */

@media (max-width: 560px) {
  .view-search,
  .view-results {
    padding-right: 20px;
    padding-left: 20px;
  }

  .view-results {
    padding-top: calc(var(--safe-top) + 64px);
  }

  .topbar-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .gear-button {
    right: 16px;
  }

  .latest-photo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

  .latest-copy h2 {
    font-size: 25px;
  }

  .latest-copy p {
    font-size: 16px;
  }

  .latest-toggle {
    display: none;
  }

  .new-search-button {
    margin-left: auto;
  }

  .result-row {
    grid-template-columns: 68px minmax(0, 1fr) 16px;
    gap: 13px;
    padding: 16px 0;
  }

  .result-thumb {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .result-name {
    font-size: 17px;
  }

  .result-domain,
  .result-score {
    font-size: 14px;
  }

  .recent-results .recent-thumb {
    width: 52px;
    height: 52px;
  }

  .recent-results .recent-title {
    font-size: 16px;
  }

  .paywall-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .crop-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .crop-stage {
    width: min(100%, 440px, 47vh);
    width: min(100%, 440px, 47dvh);
  }

  .sheet-nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sheet-scroll {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 380px) {
  .latest-photo-wrap {
    width: 62px;
    height: 62px;
  }

  .latest-copy h2 {
    font-size: 22px;
  }

  .latest-copy p {
    font-size: 15px;
  }

  .new-search-button {
    width: 38px;
  }

  .result-row {
    grid-template-columns: 60px minmax(0, 1fr) 14px;
    gap: 11px;
  }

  .result-thumb {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .result-name {
    font-size: 16px;
  }

}

@media (max-height: 700px) {
  .home {
    padding-top: 108px;
    padding-bottom: calc(126px + var(--safe-bottom));
  }

  .photo-actions {
    margin-top: 34px;
  }

  .crop-stage {
    width: min(100%, 440px, 42vh);
    width: min(100%, 440px, 42dvh);
  }
}

@media (min-width: 700px) {
  .screen-dialog {
    inset: auto;
    top: 50%;
    left: 50%;
    width: min(760px, calc(100vw - 48px));
    height: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: 0;
    transform: translate(-50%, -50%);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow-dialog);
    overscroll-behavior: contain;
  }

  .screen-dialog[open] {
    animation: screen-card-in 240ms cubic-bezier(0.22, 0.85, 0.24, 1);
  }

  .screen-dialog::backdrop {
    background: var(--backdrop);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .screen-topbar {
    min-height: 50px;
    padding: 8px 22px;
  }

  .screen-topbar h2 {
    font-size: 16px;
  }

  #screen-crop {
    width: min(780px, calc(100vw - 48px));
  }

  #screen-paywall {
    width: min(600px, calc(100vw - 48px));
  }

  #screen-search {
    width: min(520px, calc(100vw - 48px));
  }

  #screen-loading {
    width: min(420px, calc(100vw - 48px));
    min-height: 220px;
  }

  .loading-screen[open] {
    padding: 34px 26px;
  }

  .loading-content {
    padding: 12px 0;
  }

  .crop-content {
    padding-top: 14px;
    padding-bottom: 30px;
  }

  .paywall-content {
    padding-top: 20px;
    padding-bottom: 34px;
  }

  .search-progress {
    min-height: 0;
    padding: 48px 30px 40px;
  }

  .search-progress .demo-callout {
    margin-top: 4px;
  }
}

@keyframes screen-card-in {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
}

@media (max-height: 560px) {
  .home {
    padding-top: 72px;
    padding-bottom: calc(110px + var(--safe-bottom));
  }

  .home .demo-note {
    display: none;
  }

  .search-hero h1 {
    font-size: 32px;
  }

  .search-hero p {
    font-size: 15px;
  }

  .photo-actions {
    margin-top: 8px;
  }

.recent-block {
    margin-top: 26px;
  }

  .view-results {
    padding-top: calc(var(--safe-top) + 72px);
    padding-bottom: calc(120px + var(--safe-bottom));
  }
}

@media (max-width: 360px) {
  .view-search,
  .view-results {
    padding-right: 16px;
    padding-left: 16px;
  }

  .search-hero h1 {
    font-size: 32px;
  }

  .photo-entry {
    padding: 0 16px;
  }

  .paywall-content,
  .crop-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .screen-topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sheet-nav,
  .sheet-scroll {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 340px) {
  .app-identity {
    padding: 12px 14px;
    gap: 10px;
  }

  .app-mark {
    width: 40px;
    height: 40px;
  }

  .app-identity h3 {
    font-size: 16px;
  }

  .app-identity p {
    font-size: 12px;
  }

  .app-identity .demo-badge {
    display: none;
  }

  .settings-row {
    gap: 11px;
    padding: 10px 14px;
  }

  .settings-icon {
    width: 20px;
    height: 20px;
  }

  .settings-copy > span {
    font-size: 15px;
  }

  .settings-copy small {
    font-size: 12px;
  }
}

@media (min-width: 700px) {
  .view-results {
    padding-top: calc(var(--safe-top) + 74px);
  }

  .sheet-dialog[open] {
    display: grid;
    place-items: center;
  }

  .sheet-panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(600px, calc(100vw - 40px));
    max-height: min(82vh, 820px);
    max-height: min(82dvh, 820px);
    margin: 0;
    border-radius: 24px;
  }

  .sheet-handle {
    display: none;
  }

  .sheet-nav {
    padding-top: 17px;
  }

  .crop-content {
    padding-top: 16px;
  }

  .paywall-content {
    padding-top: 22px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .photo-entry:hover .photo-entry-plus,
  .photo-entry:hover .photo-entry-icon {
    color: var(--text);
  }

  .result-row:hover {
    background: color-mix(in srgb, var(--fill) 28%, transparent);
  }
}



.storage-banner {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 94px);
  z-index: 40;
  width: min(440px, calc(100vw - 32px));
  min-height: 48px;
  padding: 7px 10px 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--text);
  text-align: left;
}

.storage-banner:hover {
  border-color: color-mix(in srgb, var(--warning) 50%, var(--line-strong));
}

.storage-banner-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--warning) 13%, var(--surface));
  color: color-mix(in srgb, var(--warning) 72%, var(--text));
}

.storage-banner-icon .icon {
  width: 16px;
  height: 16px;
}

.storage-banner-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.storage-banner-copy strong {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.storage-banner-copy span {
  overflow: hidden;
  color: var(--secondary);
  font-size: 11.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-banner-action {
  flex: 0 0 auto;
  padding: 6px 1px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.photo-entry:disabled,
.camera-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.consent-lead {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
}

.consent-lead strong {
  color: var(--text);
  font-weight: 600;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.consent-actions > button {
  flex: 1 1 180px;
  width: auto;
  min-height: 48px;
  height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.2;
}

.consent-note {
  margin: 17px 0 0;
  color: var(--tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.consent-note a {
  color: var(--accent);
  text-decoration: none;
}

.consent-note a:hover {
  text-decoration: underline;
}

@media (max-width: 380px) {
  .storage-banner {
    width: calc(100vw - 24px);
  }

  .storage-banner-copy span {
    white-space: normal;
  }

  .consent-actions > button {
    flex-basis: 100%;
  }
}

@media (max-height: 560px) {
  .storage-banner {
    bottom: calc(var(--safe-bottom) + 90px);
  }
}

@media (min-width: 700px) {
  .topbar-inner {
    max-width: 960px;
    min-height: 90px;
    padding-top: 38px;
    padding-bottom: 12px;
  }

  .topbar-brand {
    top: 42px;
    left: 20px;
  }

  .gear-button {
    top: calc(var(--safe-top) + 42px);
    right: 20px;
  }

  .view-search {
    max-width: 960px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .view-results {
    padding-top: calc(var(--safe-top) + 104px);
    padding-bottom: calc(140px + var(--safe-bottom));
  }

  .home {
    max-width: 568px;
    margin: 0 auto;
  }
}

.storage-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 10px 0 0;
}

.storage-links a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 12.5px;
  text-decoration: none;
}

.storage-links a:hover {
  text-decoration: underline;
}

.storage-links span {
  color: var(--tertiary);
}

.topbar-links {
  display: none;
  position: absolute;
  top: 42px;
  left: 150px;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}

.topbar-links a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-size: 13px;
  text-decoration: none;
}

.topbar-links a:hover {
  color: var(--text);
}

@media (min-width: 900px) {
  .topbar-links {
    display: flex;
  }

  .topbar.has-title .topbar-links {
    display: none;
  }
}

.home-marketing {
  width: 100%;
  padding: 20px 0 calc(150px + var(--safe-bottom));
}

.site-section {
  margin: 0 0 74px;
}

.site-section-soft {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head-row > div {
  max-width: 640px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.55;
}

.step-grid,
.feature-grid,
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-card,
.feature-card,
.learn-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--background);
}

.step-index {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--tertiary);
  font-family: var(--mono);
  font-size: 12px;
}

.step-card h3,
.feature-card h3,
.learn-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step-card p,
.feature-card p,
.learn-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}

.feature-card .icon {
  width: 23px;
  height: 23px;
  margin-bottom: 18px;
  color: var(--accent);
}

.section-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.learn-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.learn-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.learn-tag {
  margin-bottom: 24px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.learn-card h3 {
  font-size: 19px;
}

.learn-arrow {
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 56px;
  padding: 17px 32px 17px 0;
  position: relative;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 4px;
  color: var(--secondary);
  font-size: 22px;
  font-weight: 300;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 680px;
  margin: -4px 0 18px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-brand-link img {
  width: 30px;
  height: 30px;
}

.footer-brand p {
  max-width: 230px;
  margin: 12px 0 14px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-column h3 {
  margin: 2px 0 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-column a,
.footer-link-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--secondary);
  font-size: 13px;
  text-decoration: none;
}

.footer-column a:hover,
.footer-link-button:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--tertiary);
  font-size: 11.5px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .step-grid,
  .feature-grid,
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .site-section {
    margin-bottom: 52px;
  }

  .site-section-soft {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}


.results-footer {
  max-width: 680px;
  margin: 44px auto 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--tertiary);
  font-size: 11.5px;
  text-align: center;
}

.results-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 16px;
  margin-bottom: 8px;
}

.results-footer a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  text-decoration: none;
}

.results-footer a:hover {
  color: var(--text);
}

.results-footer p {
  margin: 0;
}


@media (min-width: 700px) and (max-height: 560px) {
  .home {
    padding-top: 104px;
  }
}

.consent-pending .camera-button,
.consent-pending .demo-note {
  display: none;
}


@media (max-height: 560px) {

}
