/* binatlas.app: the BinAtlas website. Colors and type follow the app's design system
   (design/design-system/tokens.json): white paper, near-black ink, brand orange, and
   SF Pro Rounded for titles and BIN numbers, as on the printed labels. */

@font-face {
  /* The wordmark's typeface, for titles where SF Pro Rounded isn't available. Open license
     (SIL OFL, assets/fonts/Nunito-OFL.txt). */
  font-family: "Nunito BinAtlas";
  src: url("/assets/fonts/nunito-900.woff") format("woff");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #FFFFFF;
  --surface: #F5F5F7;
  --fill: #EFEFF2;
  --line: #E3E3E8;
  --ink: #1D1D1F;
  --ink-2: #67676C;
  --brand: #E8701A;
  --brand-deep: #C85D0F;
  --on-brand: #1D1D1F;
  --accent: #B04B00;
  --tint: #FFF2E8;
  --bin: #E9E9EE;
  --bin-edge: #D9D9E0;
  --shadow: 0 1px 2px rgb(29 29 31 / 0.08), 0 10px 30px rgb(29 29 31 / 0.10);

  --rounded: ui-rounded, "SF Pro Rounded", "Nunito BinAtlas", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --page: 70rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E0E10;
    --surface: #1C1C1F;
    --fill: #2C2C31;
    --line: #3A3A40;
    --ink: #F5F5F7;
    --ink-2: #A1A1A8;
    --on-brand: #0E0E10;
    --accent: #F28C45;
    --tint: #3A2416;
    --bin: #26262B;
    --bin-edge: #34343A;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
  }
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--rounded);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.3125rem; line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure { max-width: 36rem; }

.lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); color: var(--ink-2); }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.skip:focus { left: 0.5rem; z-index: 10; }

/* Header and footer */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-header .brand img { width: 9.375rem; height: auto; }

.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.site-nav a:hover { background: var(--fill); }
.site-nav a[aria-current="page"] { color: var(--accent); }

.site-footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--ink-2); }
.site-footer .brand img { width: 6.5rem; height: auto; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 0;
  font: 600 1.0625rem/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--brand); color: var(--on-brand); }
.button-primary:hover { background: var(--brand-deep); }
.button-secondary { background: var(--fill); color: var(--accent); }

/* "Coming soon": not a link until the App Store has BinAtlas. */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: 0 1.25rem 0 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.availability img { width: 32px; height: 32px; border-radius: 8px; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero .lede { margin-top: 1.5rem; max-width: 34rem; }

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.hero-actions .price { color: var(--ink-2); font-size: 0.9375rem; }

/* The bin with its label: the one picture on the page. The label is drawn to the proportions
   of the printed 3 by 5 inch card; its parts are sized as fractions of --label-w, its width. */

.bin-scene {
  --label-w: clamp(12rem, 20vw, 15rem);
  position: relative;
  justify-self: center;
  width: min(100%, 25rem);
}

.bin {
  position: relative;
  border-radius: 28px 28px 34px 34px;
  background: var(--bin);
  border: 1px solid var(--bin-edge);
  padding: 2.75rem 0 5.5rem;
  display: flex;
  justify-content: center;
}
.bin::before {
  /* The lid. */
  content: "";
  position: absolute;
  inset: -10px -14px auto;
  height: 26px;
  border-radius: 14px;
  background: var(--bin);
  border: 1px solid var(--bin-edge);
  box-shadow: 0 6px 0 -3px var(--bin-edge);
}

.label {
  position: relative;
  width: var(--label-w);
  aspect-ratio: 3 / 5;
  background: #FFFFFF;
  color: #000000;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--label-w) * 0.13) calc(var(--label-w) * 0.1) calc(var(--label-w) * 0.09);
  margin: 0;
}

.label-qr {
  position: relative;
  width: calc(var(--label-w) * 0.75);
  aspect-ratio: 1;
}
.label-qr svg { width: 100%; height: 100%; }

.label-number {
  margin-top: calc(var(--label-w) * 0.13);
  font-family: var(--rounded);
  font-weight: 900;
  font-size: calc(var(--label-w) * 0.19);
  line-height: 1;
  letter-spacing: 0.01em;
}
.label-name { margin-top: calc(var(--label-w) * 0.025); font-weight: 600; font-size: calc(var(--label-w) * 0.064); line-height: 1.2; }
.label-place { margin-top: calc(var(--label-w) * 0.015); font-size: calc(var(--label-w) * 0.049); line-height: 1.2; }
.label-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: calc(var(--label-w) * 0.03);
  font-size: calc(var(--label-w) * 0.036);
  font-weight: 500;
}
.label-foot img { width: calc(var(--label-w) * 0.26); height: auto; }

/* The scanner's frame, as the Scan screen draws it, settling on the QR code once. */
.scan-frame {
  position: absolute;
  inset: calc(var(--label-w) * -0.09);
  pointer-events: none;
}
.scan-frame span {
  position: absolute;
  width: calc(var(--label-w) * 0.18);
  height: calc(var(--label-w) * 0.18);
  border: 0 solid var(--brand);
  border-radius: 0;
}
.scan-frame span:nth-child(1) { top: 0; left: 0; border-width: calc(var(--label-w) * 0.024) 0 0 calc(var(--label-w) * 0.024); border-top-left-radius: calc(var(--label-w) * 0.07); }
.scan-frame span:nth-child(2) { top: 0; right: 0; border-width: calc(var(--label-w) * 0.024) calc(var(--label-w) * 0.024) 0 0; border-top-right-radius: calc(var(--label-w) * 0.07); }
.scan-frame span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 calc(var(--label-w) * 0.024) calc(var(--label-w) * 0.024); border-bottom-left-radius: calc(var(--label-w) * 0.07); }
.scan-frame span:nth-child(4) { bottom: 0; right: 0; border-width: 0 calc(var(--label-w) * 0.024) calc(var(--label-w) * 0.024) 0; border-bottom-right-radius: calc(var(--label-w) * 0.07); }

/* What scan to peek shows for the bin: the card that comes up on the Scan screen. It overlaps
   the bin's bottom edge, below the label. */
.peek {
  position: relative;
  width: min(92%, 21rem);
  margin: -2.75rem auto 0;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 0.875rem 1rem 1rem;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.25rem 0.875rem;
  align-items: center;
}
.peek-photo {
  grid-row: span 2;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
}

/* Stand-ins for photos of what's in a bin, drawn in CSS like the app's sample photos. */
.photo-camping {
  background:
    radial-gradient(circle at 30% 70%, #8FB873 0 22%, transparent 23%),
    radial-gradient(circle at 70% 35%, #6C9AC8 0 24%, transparent 25%),
    radial-gradient(circle at 72% 78%, #C7A27C 0 18%, transparent 19%),
    #DCE8D0;
}
.photo-stakes {
  background:
    linear-gradient(115deg, transparent 0 38%, #A27A55 38% 44%, transparent 44% 52%, #A27A55 52% 58%, transparent 58%),
    radial-gradient(circle at 75% 30%, #E2C9A8 0 20%, transparent 21%),
    #F1E6DA;
}
.photo-toys {
  background:
    radial-gradient(circle at 32% 35%, #A58BD0 0 22%, transparent 23%),
    radial-gradient(circle at 68% 62%, #8FB873 0 26%, transparent 27%),
    radial-gradient(circle at 28% 78%, #F2C14E 0 12%, transparent 13%),
    #ECE6F6;
}
.photo-lights {
  background:
    radial-gradient(circle at 22% 30%, #F2C14E 0 9%, transparent 10%),
    radial-gradient(circle at 52% 52%, #E5484D 0 9%, transparent 10%),
    radial-gradient(circle at 78% 30%, #46A758 0 9%, transparent 10%),
    radial-gradient(circle at 36% 76%, #3E8ED0 0 9%, transparent 10%),
    radial-gradient(circle at 70% 78%, #F2C14E 0 9%, transparent 10%),
    #3A3A40;
}
.photo-clothes {
  background:
    linear-gradient(160deg, transparent 0 30%, #6C9AC8 30% 62%, transparent 62%),
    radial-gradient(circle at 74% 74%, #E5484D 0 16%, transparent 17%),
    #E3ECF5;
}
.peek-title { display: flex; align-items: baseline; gap: 0.5rem; font-weight: 600; }
.peek-title b { font-family: var(--rounded); font-weight: 900; color: var(--accent); }
.peek-place { color: var(--ink-2); font-size: 0.875rem; }
.peek-items {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding: 0.625rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.875rem;
}
.peek-items li { background: var(--fill); border-radius: 999px; padding: 0.125rem 0.625rem; }

@media (prefers-reduced-motion: no-preference) {
  .scan-frame { animation: lock-on 700ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 400ms both; }
  .peek { animation: peek-up 500ms cubic-bezier(0.2, 0.8, 0.2, 1) 1200ms both; }
}

@keyframes lock-on {
  from { opacity: 0; transform: scale(1.35); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes peek-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */

.section { padding-top: clamp(3.5rem, 9vw, 6.5rem); }
.section > .wrap > h2 + p { margin-top: 1rem; }

.steps {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  font: 900 1.125rem/1 var(--rounded);
}
.steps p { margin-top: 0.5rem; color: var(--ink-2); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.feature .copy p { margin-top: 1rem; color: var(--ink-2); }
.feature .copy p:first-of-type { margin-top: 1rem; }
.feature-flip .copy { order: 2; }

/* Pieces of the app's own screens, drawn in HTML. */
.screen {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.875rem;
  border-radius: 12px;
  background: var(--fill);
  font-size: 1.0625rem;
}
.search-field svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.search-field .caret { width: 2px; height: 1.25rem; background: var(--brand); border-radius: 1px; }

.results { margin: 1rem 0 0; padding: 0; list-style: none; }
.results li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 0.875rem;
  align-items: center;
  padding: 0.75rem 0;
}
.results li + li { border-top: 1px solid var(--line); }
.results .thumb { grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 10px; }
.results .name { font-weight: 600; }
.results .name mark { background: none; color: inherit; font-weight: 800; }
.results .where { color: var(--ink-2); font-size: 0.875rem; }
.results .where b { font-family: var(--rounded); font-weight: 900; color: var(--ink); }

.place-card { background: var(--surface); border-radius: 24px; padding: clamp(1.25rem, 3vw, 1.75rem); }
.place-card h3 { font-size: 1.625rem; }
.place-card .total { margin-top: 1rem; font: 800 1.5rem/1.1 var(--rounded); }
.place-card .note { color: var(--ink-2); font-size: 0.9375rem; }
.place-card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.place-card li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; border-top: 1px solid var(--line); }
.place-card li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.report-chip {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Settings › Household, as the app shows it to the person who shares. */
.household {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.household .faces { display: flex; }
.household .faces span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 3px solid var(--surface);
  font: 800 1.125rem/1 var(--rounded);
  color: #1D1D1F;
}
.household .faces span + span { margin-left: -0.75rem; }
.household h3 { margin-top: 1rem; }
.household .note { margin-top: 0.25rem; color: var(--ink-2); font-size: 0.9375rem; }

.privacy-panel {
  background: var(--tint);
  border-radius: 28px;
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.privacy-panel ul { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.privacy-panel li { display: flex; gap: 0.75rem; align-items: flex-start; }
.privacy-panel li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }

.plans {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2rem);
}
.plan-family { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan .price-line { margin-top: 1rem; font: 800 2rem/1.1 var(--rounded); }
.plan .price-line small { font: 500 1rem/1.4 var(--text); color: var(--ink-2); }
.plan .or { margin-top: 0.25rem; color: var(--ink-2); }
.plan ul { margin: 1.25rem 0 0; padding-left: 1.25rem; }
.plan li + li { margin-top: 0.375rem; }
.fine { margin-top: 1.5rem; color: var(--ink-2); font-size: 0.9375rem; max-width: 44rem; }

/* Pages of text: privacy and help. */
.doc { padding-top: clamp(1.5rem, 5vw, 3rem); }
.doc h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); }
.doc .updated { margin-top: 0.75rem; color: var(--ink-2); }
.doc h2 { margin-top: 3rem; font-size: 1.625rem; }
.doc h3 { margin-top: 2rem; }
.doc p, .doc ul { margin-top: 0.875rem; max-width: 42rem; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.375rem; }

.faq { margin-top: 1rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  font-weight: 600;
  font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: 0.45rem;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.7rem; }
.faq .answer { padding-bottom: 1.25rem; color: var(--ink-2); }
.faq .answer p + p { margin-top: 0.75rem; }

/* The page a label opens without the app (mockup W1). */
.label-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.label-page main {
  flex: 1;
  width: 100%;
  max-width: 35rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 4rem) 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.label-page .badge {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  background: var(--tint);
  color: var(--accent);
}
.label-page h1 { margin-top: 1.5rem; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.25rem); line-height: 1.2; }
.label-page .intro { margin-top: 1rem; color: var(--ink-2); }
.label-page .private {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.label-page .private svg { flex: none; margin-top: 1px; color: var(--ink-2); }
.label-page .actions { margin-top: 2rem; width: 100%; max-width: 22.5rem; display: grid; gap: 0.75rem; }
.label-page .hint { margin-top: 1rem; color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; }
.label-page footer {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.label-page footer a {
  min-height: 44px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Small screens */

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .bin-scene { width: min(100%, 22rem); --label-w: min(58vw, 13.5rem); }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-flip .copy { order: 0; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 26rem) {
  .site-nav a { padding: 0 0.5rem; }
  .site-header .brand img { width: 7.75rem; }
}
