/* ImageTagger website. The colors come from the app icon: green hills, a yellow sun and a lavender frame. */

:root {
  color-scheme: light dark;

  --bg: #fbfbfd;
  --bg-band: #f1f1f8;
  --surface: #ffffff;
  --surface-sunken: #ececf5;
  --text: #16171c;
  --text-muted: #5b5e6b;
  --line: #e2e3eb;
  --accent: #0d7a3a;
  --accent-bright: #22c55e;
  --accent-soft: #e2f5e9;
  --sun: #ffc533;
  --sun-soft: #fff1cc;
  --button-bg: #16171c;
  --button-text: #ffffff;
  --chip-border: #16171c;
  --shadow: 0 1px 2px rgb(22 23 28 / 0.05), 0 8px 28px rgb(22 23 28 / 0.07);
  --radius: 20px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --bg-band: #15161c;
    --surface: #1b1d23;
    --surface-sunken: #111217;
    --text: #eceef3;
    --text-muted: #a3a6b4;
    --line: #2b2e38;
    --accent: #4ade80;
    --accent-bright: #22c55e;
    --accent-soft: rgb(74 222 128 / 0.13);
    --sun-soft: rgb(255 197 51 / 0.15);
    --button-bg: #f2f3f7;
    --button-text: #111216;
    --chip-border: rgb(255 255 255 / 0.2);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface-sunken);
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0 0.4em;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  line-height: 1.45;
  white-space: nowrap;
  font-family: var(--font);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--button-bg);
  color: var(--button-text);
}

.skip-link:focus {
  top: 12px;
}

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 32px;
}

.site-footer .nav {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
}

.site-footer p a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.actions.start {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: scale(0.98);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--button-bg);
  color: var(--button-text);
}

.button-primary:hover {
  opacity: 0.86;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-secondary:hover {
  box-shadow: inset 0 0 0 1px var(--text-muted);
}

.fineprint {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Hero */

.hero {
  padding: 72px 0 32px;
  text-align: center;
  overflow: hidden;
}

.hero-icon {
  width: 116px;
  height: 116px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 12px 22px rgb(22 23 28 / 0.16));
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  max-width: 880px;
  margin: 0 auto;
}

.lede {
  max-width: 42em;
  margin: 22px auto 0;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
}

.lede em {
  font-style: normal;
  color: var(--text);
  font-weight: 550;
}

.shot {
  position: relative;
  max-width: 1040px;
  margin: 48px auto 0;
}

.shot img {
  width: 100%;
}

/* The floating tags around the screenshot, drawn like the stickers of the icon. */
.float-tag {
  --delay: 0s;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 13px;
  border: 2px solid var(--chip-border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
  animation:
    tag-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) var(--delay) both,
    tag-bob 6s ease-in-out calc(var(--delay) + 0.6s) infinite;
}

.float-tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.float-tag.sun::before {
  background: var(--sun);
}

.tag-1 {
  --delay: 0.5s;
  top: 15%;
  left: -3%;
}

.tag-2 {
  --delay: 0.8s;
  top: 47%;
  left: -5%;
}

.tag-3 {
  --delay: 1.1s;
  bottom: 11%;
  left: 3%;
}

.tag-4 {
  --delay: 0.65s;
  top: 21%;
  right: -4%;
}

.tag-5 {
  --delay: 0.95s;
  bottom: 19%;
  right: -2%;
}

@keyframes tag-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.85);
  }
}

@keyframes tag-bob {
  50% {
    translate: 0 -7px;
  }
}

/* Sections */

.section {
  padding: 104px 0;
}

.band {
  background: var(--bg-band);
}

.section-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p:not(.kicker),
.split-text > p:not(.kicker) {
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--text-muted);
}

.kicker {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
  color: var(--accent);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--sun);
  color: #16171c;
  font-weight: 700;
}

.steps p,
.card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Features */

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

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg,
.file svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Two columns of text and an illustration */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split.reverse .split-text {
  order: 2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 550;
}

/* Saving: a Finder-like list of files */

.files {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.files ul {
  margin: 0;
  padding: 8px;
  list-style: none;
}

.file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.file + .file {
  border-top: 1px solid var(--line);
}

.file svg {
  color: var(--text-muted);
}

.file-name {
  font-family: var(--font-mono);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.green {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.sun {
  background: var(--sun-soft);
  color: var(--text);
}

.files pre {
  margin: 0;
  padding: 20px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--text-muted);
  font: 13.5px/1.65 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.files pre b {
  color: var(--accent);
  font-weight: 600;
}

/* Tag formats */

.stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 32px;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--text-muted);
}

.format-demo {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.format-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.format-file {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.format-file span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-sunken);
}

.segmented button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.14);
}

.format-output {
  min-height: 5.4em;
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface-sunken);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Command line */

.terminal {
  overflow: hidden;
  border: 1px solid #2a2c34;
  border-radius: 14px;
  background: #121317;
  color: #e6e7ec;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.28);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px 10px;
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal pre {
  margin: 0;
  padding: 6px 22px 24px;
  font: 14px/1.75 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal .prompt {
  color: #4ade80;
  user-select: none;
}

.terminal .file-path {
  color: #ffc533;
}

.terminal .dim {
  color: #8b8fa0;
}

/* Privacy and call to action */

.statement {
  text-align: center;
}

.statement-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}

.statement-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.statement p {
  max-width: 36em;
  margin: 20px auto 0;
  font-size: 19px;
  color: var(--text-muted);
}

.statement .more {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

.cta-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 10px 20px rgb(22 23 28 / 0.15));
}

/* Support and privacy pages */

.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero img {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 10px 18px rgb(22 23 28 / 0.15));
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.page-hero .lede {
  font-size: 19px;
}

.prose {
  padding-bottom: 96px;
}

.prose h2 {
  margin: 64px 0 20px;
  font-size: clamp(26px, 3.6vw, 34px);
}

.prose h3 {
  margin-top: 32px;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text);
}

.prose pre {
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface-sunken);
  font: 13.5px/1.65 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact h2 {
  margin: 0;
}

.contact .actions {
  margin-top: 24px;
}

.contact .fineprint {
  margin-top: 22px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

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

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq .answer {
  padding: 0 2px 18px;
}

.faq .answer > :first-child {
  margin-top: 0;
}

.shortcuts {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.shortcuts th,
.shortcuts td {
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.shortcuts td {
  text-align: right;
  white-space: nowrap;
}

.shortcuts th {
  color: var(--text-muted);
}

.updated {
  margin-top: 0;
  font-size: 15px;
}

/* Layout on smaller screens */

@media (max-width: 1120px) {
  .float-tag {
    font-size: 14px;
  }

  .tag-1,
  .tag-2 {
    left: 1%;
  }

  .tag-4,
  .tag-5 {
    right: 1%;
  }
}

@media (max-width: 900px) {
  .float-tag {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse .split-text {
    order: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .nav {
    gap: 18px;
  }

  .nav .optional {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .card,
  .steps li,
  .format-demo,
  .contact {
    padding: 24px;
  }

  .file {
    grid-template-columns: auto 1fr;
  }

  .file .badge {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }

  .site-footer .nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-tag {
    animation: none;
  }

  .button {
    transition: none;
  }
}
