/*
 * Botanisia AB2 "two-ink print". Same tokens as the storefront (apps/storefront/src/app/globals.css):
 * cool paper, forest for brand and buttons, riso green and coral for illustration only,
 * stamp coral for labels with white text. 4px corners, 1px rules, no shadows or gradients.
 */
:root {
  --paper: #f3f4f6;
  --white: #ffffff;
  --ink: #14181a;
  --forest: #1c4d3a;
  --riso-green: #2e7a5c;
  --riso-coral: #e2553f;
  --stamp: #c23b28;
  --graphite: #4d5459;
  --line: #c9cdd1;
  --lichen: #cfe0d7;
  --placeholder: #e3e7ea;

  --f-sans: "Commissioner", system-ui, sans-serif;
  --f-latin: "Literata", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-logo: "Young Serif", Georgia, serif;
  --r: 4px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--lichen);
  color: var(--forest);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.display {
  margin: 0;
  color: var(--forest);
  font-weight: 800;
  font-variation-settings: "FLAR" 100, "VOLM" 100;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.eyebrow {
  margin: 0;
  color: var(--graphite);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}

/* Every italic on the site is a botanical name: set it in Literata italic. */
em {
  font-family: var(--f-latin);
  font-style: italic;
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

/* Logo: germinating seed + Young Serif wordmark. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.logo span {
  color: var(--forest);
  font-family: var(--f-logo);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Header */
.top {
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}

.top .spacer {
  flex: 1;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.lang select {
  max-width: 9.5rem;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.weblink {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 560px) {
  .top .weblink {
    display: none;
  }
}

/* Hero */
.hero .wrap {
  display: grid;
  gap: 56px;
  align-items: center;
  padding-block: 56px 72px;
}

@media (min-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    padding-block: 72px 96px;
  }
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--graphite);
  font-size: 1.15rem;
}

/* Store buttons. Swap for the official Apple and Google badges once the apps are listed. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  padding: 9px 18px 9px 14px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.store:hover {
  background: var(--forest);
}

.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store small {
  display: block;
  font-size: 0.68rem;
  line-height: 1.1;
  opacity: 0.85;
}

.store b {
  display: block;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.15;
}

.web-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
}

.web-cta a {
  color: var(--forest);
  font-family: var(--f-mono);
  font-weight: 500;
  text-underline-offset: 3px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--graphite);
  font-family: var(--f-mono);
  font-size: 0.78rem;
}

.facts li::before {
  content: "● ";
  color: var(--riso-coral);
}

/* QR card, only where a phone is not the device in hand. */
.qr {
  display: none;
  align-items: center;
  gap: 14px;
  max-width: 22rem;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.qr img {
  width: 88px;
  height: 88px;
  flex: none;
}

.qr p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.88rem;
}

.qr b {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

@media (min-width: 920px) and (hover: hover) {
  .qr {
    display: flex;
  }
}

/* Riso plate with the phone */
.plate {
  position: relative;
  justify-self: center;
  width: min(100%, 34rem);
  max-width: 100%;
  aspect-ratio: 1 / 1.02;
  margin-bottom: 30px;
  isolation: isolate;
}

.sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--white);
}

.ink {
  position: absolute;
  mix-blend-mode: multiply;
}

.ink.coral {
  top: 7%;
  right: 6%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--riso-coral);
}

.ink.green {
  bottom: 8%;
  left: 7%;
  width: 44%;
  height: 58%;
  background: var(--riso-green);
}

/* Halftone dots, the texture of a riso print. */
.ink.grain {
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(var(--ink) 0.6px, transparent 0.7px);
  background-size: 5px 5px;
}

.plate .caption {
  position: absolute;
  right: 0;
  bottom: -30px;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: var(--graphite);
  font-family: var(--f-mono);
  font-size: 0.72rem;
}

.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 44%;
  aspect-ratio: 9 / 19;
  padding: 7px;
  translate: -46% -50%;
  border-radius: 30px;
  background: var(--ink);
}

.screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  font-size: clamp(7px, 1.6vw, 10px);
}

.s-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.9em 1.4em 0.4em;
  font-family: var(--f-mono);
  font-size: 0.85em;
}

.s-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4em 1.2em 0.8em;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.s-head .logo svg {
  width: 1.9em;
  height: 1.9em;
}

.s-head .logo span {
  font-size: 1.6em;
}

.s-body {
  display: grid;
  gap: 0.9em;
  padding: 1em 1.1em;
}

.s-label {
  color: var(--graphite);
  font-family: var(--f-mono);
  font-size: 0.85em;
}

.live {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--white);
}

.live .pic {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lichen);
}

.leaf {
  position: absolute;
  mix-blend-mode: multiply;
}

.leaf.l1 {
  top: 30%;
  left: 8%;
  width: 70%;
  height: 120%;
  rotate: -18deg;
  border-radius: 0 100% 0 100%;
  background: var(--riso-green);
}

.leaf.l2 {
  top: -12%;
  right: -8%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--riso-coral);
}

.stamp {
  padding: 0.2em 0.55em;
  border-radius: 2px;
  background: var(--stamp);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pic .stamp {
  position: absolute;
  top: 0.8em;
  left: 0.8em;
}

.live .meta {
  display: grid;
  gap: 0.35em;
  padding: 0.8em;
}

.live .name {
  font-size: 1.15em;
}

.live .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.live .seller {
  color: var(--graphite);
  font-size: 0.85em;
}

.bid {
  padding: 0.5em 0.9em;
  border-radius: var(--r);
  background: var(--forest);
  color: var(--white);
  font-size: 0.95em;
  font-weight: 650;
}

.mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
}

.mini > div {
  display: grid;
  gap: 0.2em;
  padding: 0.6em;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.mini i {
  display: block;
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--placeholder);
}

.mini em {
  font-size: 0.9em;
}

.mini b {
  font-family: var(--f-mono);
  font-size: 0.85em;
  font-weight: 400;
}

/* Sections */
.band {
  border-top: 1px solid var(--ink);
}

.band > .wrap {
  display: grid;
  gap: 32px;
  padding-block: 64px;
}

.sec-head {
  display: grid;
  gap: 10px;
  max-width: 40rem;
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.sec-head p:not(.eyebrow) {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
}

.card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.card svg {
  width: 44px;
  height: 44px;
}

.card h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.2rem;
  font-weight: 750;
  font-variation-settings: "FLAR" 100, "VOLM" 100;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--graphite);
}

/* Live band */
.band.dark {
  border-top-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.dark .display {
  color: var(--white);
}

.dark .eyebrow,
.dark .sec-head p {
  color: var(--lichen);
}

.dark .card {
  border-color: rgb(255 255 255 / 0.35);
  background: transparent;
}

.dark .card h3 {
  color: var(--white);
}

.dark .card p {
  color: var(--lichen);
}

.dark .card .stamp {
  justify-self: start;
}

/* Growers */
.growers {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .growers {
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
  }
}

.growers .copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.growers .copy p {
  max-width: 34rem;
  margin: 0;
  color: var(--graphite);
}

.btn-outline {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--forest);
  border-radius: var(--r);
  color: var(--forest);
  font-weight: 650;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--white);
}

.tile.solid {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.tile .eyebrow {
  font-size: 0.72rem;
}

.tile.solid .eyebrow {
  color: var(--lichen);
}

.tile .big {
  font-size: 2.4rem;
  font-weight: 800;
  font-variation-settings: "FLAR" 100, "VOLM" 100;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tile p {
  margin: 0;
  font-size: 0.88rem;
}

/* Closing CTA */
.closing > .wrap {
  justify-items: start;
  gap: 22px;
}

.closing h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

/* Footer */
footer {
  border-top: 1px solid var(--ink);
  background: var(--white);
  font-size: 0.88rem;
}

footer > .wrap {
  display: grid;
  gap: 28px;
  padding-block: 36px;
}

@media (min-width: 760px) {
  footer > .wrap {
    grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  }
}

footer h2 {
  margin: 0 0 8px;
  color: var(--graphite);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 400;
}

footer ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a[aria-current] {
  text-decoration: underline;
}

.about p {
  max-width: 24rem;
  margin: 10px 0 0;
  color: var(--graphite);
}

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

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

.legal .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  color: var(--graphite);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: no-preference) {
  .ink.coral {
    animation: drift-a 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .ink.green {
    animation: drift-b 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes drift-a {
    from {
      translate: 10px -8px;
    }
  }

  @keyframes drift-b {
    from {
      translate: -10px 8px;
    }
  }
}

/* "Coming soon" state, before the apps are listed: outlined, not clickable. */
.store.is-soon {
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: default;
}

.store.is-soon:hover {
  background: var(--white);
}

.store.is-soon small {
  color: var(--stamp);
  font-family: var(--f-mono);
  font-weight: 500;
  opacity: 1;
}

.soon-note {
  max-width: 34rem;
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
}

.soon-note .stamp {
  margin-right: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  vertical-align: 1px;
}
