/* Zen Dots (OFL, see /webfont/zen-dots-OFL.txt) is served from this origin so
   the page still makes no third-party requests. */
@font-face {
  font-family: 'Zen Dots';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/webfont/zen-dots-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}

@font-face {
  font-family: 'Zen Dots';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/webfont/zen-dots-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF
}

:root {
  color-scheme: light;
  --display: 'Zen Dots',ui-sans-serif,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --cyan: #0d9bd0;
  --cyan-dark: #0b7ba5;
  --cyan-deep: #06556f;
  --lime: #d8f24a;
  --lime-dark: #c3e024;
  --ink: #04252f;
  --ink-soft: #3e5b66;
  --line: #dde5e8;
  --shell: #eef4f6;
  --error: #9c2222
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px
}

body {
  margin: 0;
  background: var(--cyan);
  color: var(--ink);
  font-family: ui-sans-serif,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

button,input {
  font: inherit
}

button,a,label {
  -webkit-tap-highlight-color: transparent
}

a {
  color: var(--ink)
}

button {
  cursor: pointer
}

button:disabled {
  cursor: wait;
  opacity: .5
}

[hidden] {
  display: none!important
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px
}

h1,h2,h3,p {
  margin: 0
}

h1,h2,h3 {
  line-height: 1.15;
  font-weight: 800
}

/* Zen Dots ships a single weight, so display text stays at 400 and skips the
   tight tracking the grotesque headings used. */
h1,h2,.brand,.hero-tile strong {
  font-family: var(--display);
  font-weight: 400
}

/* Stays at or above 24px so white headings on the cyan keep the 3:1
   large-text contrast ratio. */
h2 {
  font-size: clamp(1.5rem,2.4vw,1.75rem);
  letter-spacing: -.01em;
  line-height: 1.3
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -.02em
}

.wrap {
  width: min(1120px,calc(100% - 48px));
  margin-inline: auto
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  z-index: 5
}

.skip-link:focus {
  top: 10px
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  gap: 24px
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -.01em;
  color: #fff
}

.brand-icon {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  background: var(--lime);
  color: var(--ink);
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 32px
}

.brand-icon span {
  font-size: .9rem
}

.site-header nav {
  display: flex;
  gap: 30px
}

.site-header nav a {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent
}

.site-header nav a:hover {
  border-bottom-color: var(--lime)
}

.intro,.page-intro {
  display: grid;
  grid-template-columns: minmax(0,1.85fr) minmax(0,1fr);
  gap: 40px;
  align-items: end;
  padding: 44px 0 46px
}

.page-intro>div:only-child {
  grid-column: 1/-1
}

.eyebrow {
  color: var(--ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px
}

.privacy-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime)
}

h1 {
  font-size: clamp(1.9rem,3.9vw,3.05rem);
  letter-spacing: -.01em;
  line-height: 1.22;
  margin: 22px 0 20px;
  color: #fff
}

h1 span {
  color: var(--lime)
}

.intro-copy {
  max-width: 46ch;
  font-size: 1.02rem
}

.hero-tile {
  background: var(--lime);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start
}

.hero-tile strong {
  font-size: 1rem;
  line-height: 1.35
}

.hero-tile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: .85rem;
  font-weight: 700
}

.hero-tile li {
  display: flex;
  align-items: baseline;
  gap: 9px
}

.hero-tile li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--ink);
  flex: none
}

.panel {
  background: #fff;
  padding: 32px
}

.cleaner-panel {
  scroll-margin-top: 24px
}

.form-panel {
  max-width: 760px
}

.panel+.panel,.panel+.ad-slot {
  margin-top: 20px
}

.panel>.actions {
  margin-top: 18px
}

.ad-slot {
  margin: 20px 0 64px;
  max-width: 100%;
  overflow: hidden
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.panel-heading h2 {
  font-size: 1.35rem;
  letter-spacing: -.03em
}

.local-badge {
  background: var(--cyan-deep);
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  white-space: nowrap
}

.privacy-note {
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 10px 0 22px
}

.drop-zone {
  background: var(--shell);
  border: 2px dashed var(--cyan-dark);
  text-align: center;
  padding: 30px 16px;
  transition: background .15s,border-color .15s
}

.drop-zone.dragging {
  background: #e3f6d9;
  border-color: var(--cyan)
}

.upload-icon {
  width: 44px;
  height: 44px;
  color: var(--cyan-dark);
  margin-bottom: 8px
}

.drop-zone h3 {
  font-size: 1.2rem
}

.drop-zone p {
  color: var(--ink-soft);
  font-size: .87rem;
  margin: 6px 0 16px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid transparent;
  padding: 10px 20px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.4;
  transition: background .15s,border-color .15s
}

.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink)
}

.primary:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark)
}

.quiet {
  background: transparent;
  border-color: #c3d2d7;
  color: var(--ink)
}

.quiet:hover {
  border-color: var(--ink)
}

.danger:hover {
  border-color: var(--error);
  color: var(--error)
}

.button .icon {
  width: 15px;
  height: 15px;
  flex: none
}

.file-picker {
  position: relative;
  overflow: hidden;
  cursor: pointer
}

.file-picker:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px
}

.file-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer
}

.file-picker:has(input:disabled) {
  opacity: .5;
  cursor: default
}

.drop-zone .file-limits {
  font-size: .73rem;
  margin: 14px 0 0
}

.drop-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  font-size: .83rem;
  font-weight: 700;
  color: var(--cyan-deep)
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid rgba(4,37,47,.18);
  border-top-color: var(--cyan-dark);
  border-radius: 50%;
  animation: spin .7s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.options {
  margin-top: 18px
}

.options label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .84rem;
  font-weight: 700;
  min-height: 32px
}

.options input {
  width: 17px;
  height: 17px;
  accent-color: var(--cyan)
}

.options p {
  font-size: .76rem;
  color: var(--ink-soft);
  margin: 3px 0 0 28px
}

.notice {
  padding: 12px 14px;
  font-size: .86rem;
  margin-top: 16px
}

.error {
  color: var(--error);
  background: #fdf0ee;
  border-left: 4px solid var(--error)
}

.batch-toolbar {
  border-top: 2px solid var(--ink);
  margin-top: 26px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap
}

.batch-toolbar h3 {
  font-size: 1.05rem
}

.batch-toolbar p {
  color: var(--ink-soft);
  font-size: .8rem;
  margin-top: 5px
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.photo-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 12px
}

.photo-card {
  padding: 16px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 84px minmax(0,1fr);
  gap: 16px;
  align-items: start
}

.photo-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: var(--shell)
}

.photo-card h4 {
  font-size: .92rem;
  line-height: 1.4;
  margin: 0 0 4px;
  overflow-wrap: anywhere
}

.photo-meta,.photo-status,.quality-note {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: 4px
}

.photo-status {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px
}

.photo-status .spinner {
  width: 13px;
  height: 13px
}

.photo-card[data-state=checking],.photo-card[data-state=processing] {
  border-left: 4px solid var(--cyan-dark)
}

.photo-card[data-state=checking] .photo-status,.photo-card[data-state=processing] .photo-status {
  color: var(--cyan-deep)
}

.photo-card[data-state=done] .photo-status {
  color: var(--cyan-deep)
}

.photo-card[data-state=error] .photo-status {
  color: var(--error)
}

.photo-card[data-state=done] {
  border-left: 4px solid var(--lime)
}

.photo-card[data-state=error] {
  border-left: 4px solid var(--error)
}

.photo-card .actions {
  margin-top: 12px
}

.photo-card .button {
  font-size: .68rem;
  padding: 8px 12px;
  min-height: 38px
}

.photo-card details {
  margin-top: 12px;
  font-size: .78rem
}

.photo-card summary {
  color: var(--cyan-deep);
  cursor: pointer;
  padding: 5px 0;
  font-weight: 700
}

.metadata-list {
  padding-left: 18px;
  color: var(--ink-soft);
  margin: 6px 0
}

.quality-note {
  color: #7a5410
}

.batch-tip {
  font-size: .76rem;
  color: var(--ink-soft);
  margin-top: 18px
}

#batch-progress {
  margin-top: 18px
}

.progress-head {
  display: flex;
  align-items: center;
  gap: 9px
}

#progress-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--cyan-deep)
}

progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--cyan)
}

.form-field {
  margin-bottom: 22px
}

.form-field label {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 9px
}

.form-field input[type=text],.form-field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .95rem
}

.form-field textarea {
  resize: vertical
}

.form-field input[type=text]:focus,.form-field textarea:focus {
  border-color: var(--cyan-dark);
  outline: none
}

.field-error {
  color: var(--error);
  font-size: .8rem;
  font-weight: 700;
  margin-top: 8px
}

.captcha {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px
}

.captcha img {
  border: 1px solid var(--line);
  max-width: 100%
}

.captcha input[type=text] {
  width: 110px
}

.how-section {
  padding: 72px 0 64px
}

.how-section>h2 {
  color: #fff;
  max-width: 14ch;
  margin-bottom: 34px
}

.steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px
}

.steps article {
  background: #fff;
  padding: 26px 24px 30px
}

.step-number {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 5px 9px
}

.steps h3 {
  margin: 16px 0 10px
}

.steps p {
  color: var(--ink-soft);
  font-size: .88rem
}

.faq-section {
  padding: 8px 0 76px
}

.faq-section h2 {
  color: #fff;
  margin-bottom: 22px
}

.faq-list {
  background: #fff;
  padding: 8px 28px
}

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

.faq-list details:last-child {
  border-bottom: 0
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  font-size: .92rem;
  font-weight: 700
}

.faq-list p {
  font-size: .86rem;
  color: var(--ink-soft);
  margin: 0 0 16px
}

.site-footer {
  border-top: 2px solid rgba(4,37,47,.25);
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px
}

.footer-brand {
  font-size: 1.05rem;
  color: var(--ink)
}

.site-footer p,.site-footer span {
  font-size: .74rem;
  font-weight: 600
}

@media(max-width:900px) {
  .intro,.page-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px
  }
  .steps {
    grid-template-columns: 1fr
  }
}

@media(max-width:640px) {
  .wrap {
    width: calc(100% - 32px)
  }
  .site-header {
    min-height: 72px;
    gap: 12px
  }
  .brand {
    font-size: 1.1rem
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 1.1rem
  }
  .site-header nav {
    gap: 16px
  }
  .site-header nav a {
    font-size: .64rem;
    letter-spacing: .1em
  }
  .site-header nav a:first-child {
    display: none
  }
  .intro,.page-intro {
    padding: 26px 0 30px
  }
  h1 {
    font-size: 1.85rem;
    margin: 16px 0
  }
  .intro-copy {
    font-size: .95rem
  }
  .hero-tile {
    padding: 20px
  }
  .panel {
    padding: 20px
  }
  .panel-heading {
    align-items: flex-start
  }
  .panel-heading h2 {
    font-size: 1.15rem
  }
  .privacy-note {
    font-size: .8rem
  }
  .drop-zone {
    padding: 24px 12px
  }
  .options p {
    font-size: .73rem
  }
  .batch-toolbar>.actions {
    width: 100%
  }
  .batch-toolbar>.actions .primary {
    flex: 1
  }
  .photo-card {
    grid-template-columns: 56px minmax(0,1fr);
    gap: 12px;
    padding: 12px
  }
  .photo-card img {
    width: 56px;
    height: 68px
  }
  .photo-card .actions .primary {
    width: 100%
  }
  .how-section {
    padding: 46px 0 40px
  }
  .steps {
    gap: 14px
  }
  .steps article {
    padding: 20px
  }
  .faq-section {
    padding-bottom: 48px
  }
  .faq-list {
    padding: 4px 18px
  }
  .site-footer {
    flex-wrap: wrap
  }
  .site-footer p {
    display: none
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
  * {
    transition: none!important
  }
  .spinner {
    animation: none;
    border-top-color: var(--cyan-dark);
    border-right-color: var(--cyan-dark)
  }
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  background: var(--shell);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-soft)
}

@media(max-width:640px) {
  .photo-placeholder {
    width: 56px;
    height: 68px
  }
}
