/* The website's one stylesheet (tools/build_site.py copies it to site/style.css). No web fonts and no requests
   elsewhere: the type is the system's own, SF Pro Rounded for headings on Apple devices (the app's rounded cards),
   and the colours are the icon's: the jar's teal on the mint glass of its background, dark teal at night.
   The one bold thing is the jar itself, large in the hero; the rest stays quiet. */
:root {
  --paper: #ffffff;
  --mint: #e4f5f1;          /* the icon's background, top */
  --mint-deep: #cdebe4;
  --ink: #0e2b28;           /* text, and the privacy band */
  --soft: #4d6662;          /* secondary text: 6.3:1 on white */
  --teal: #13706a;          /* links and accents: 5.9:1 on white, as in the app */
  --line: #d6e8e3;
  --on-band: #e9f6f3;
  --band-accent: #7dd8cd;
  --todo: #fff1a8;
  --phone: #0f2624;
  --shadow: 0 2.5rem 4rem -2rem rgba(14, 43, 40, 0.45);
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1a18;
    --mint: #123d38;          /* the icon's dark background, top */
    --mint-deep: #0f312d;
    --ink: #e6f2ef;
    --soft: #a3bcb7;
    --teal: #5cc8bc;
    --line: #1d3b37;
    --on-band: #0e2b28;       /* at night the privacy band turns to mint, the one light thing */
    --band-accent: #13706a;
    --todo: #5c4d00;
    --phone: #000000;
    --shadow: 0 2.5rem 4rem -2rem rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection { background: #f5c542; color: #0e2b28; }   /* the yellow of the video card in the jar */

img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

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

mark.todo { background: var(--todo); color: inherit; padding: 0 0.15em; border-radius: 3px; }

/* The bar on top: the jar and the name, the other language. It sits on the hero's mint. */
.top { background: var(--mint); }
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font: 700 1.2rem/1 var(--display);
  text-decoration: none;
}


/* The hero: what Jarlet does for you, beside the app itself with the jar standing in front of it, on the icon's
   mint fading to paper. */
.hero {
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint) 45%, var(--paper) 100%);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
.hero .lede {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--soft);
  max-width: 34ch;
  margin: 0 0 2rem;
  text-wrap: pretty;
}
.soon {
  display: inline-block;
  margin: 0;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--paper);
  background: var(--teal);
  border-radius: 999px;
}
.soon-note { margin: 0.9rem 0 0; font-size: 0.98rem; color: var(--soft); }

/* The app, and the jar in front of it, settling into place once when the page opens. */
.hero-visual { position: relative; justify-self: center; width: min(24rem, 100%); }
.hero-visual .phone { width: min(18.5rem, 72vw); margin-left: auto; transform: rotate(3deg); }
.hero-visual .hero-jar {
  position: absolute;
  left: -2.5rem;
  bottom: -1.5rem;
  width: 48%;
  filter: drop-shadow(0 1.25rem 1.5rem rgba(14, 43, 40, 0.3));
  animation: settle 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.15s both;
}
.hero-visual:not(.with-phone) .hero-jar { position: static; width: 100%; }

@keyframes settle {
  from { opacity: 0; transform: translateY(-1.5rem) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}

/* How it works: the three steps, each with its screen, numbered because they happen in that order. */
.steps .wrap { padding-top: 5rem; padding-bottom: 4rem; }
.steps h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 3rem;
}
.steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.steps li { counter-increment: step; display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps li p { margin: 1.75rem 0 0; font-size: 1.1rem; max-width: 18rem; }
.steps li p::before {
  content: counter(step);
  display: block;
  margin: 0 auto 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  line-height: 2.2rem;
  border-radius: 50%;
  font: 800 1.1rem/2.2rem var(--display);
  color: var(--paper);
  background: var(--teal);
}
/* The iPad: the same frame, wider and a little less round. */
.tablet {
  width: min(34rem, 90vw);
  border-radius: 1.75rem;
  border: 0.6rem solid var(--phone);
  background: var(--phone);
  box-shadow: var(--shadow);
}
.phone.small { width: min(13.5rem, 60vw); border-radius: 2rem; border-width: 0.45rem; }

/* A feature: what Jarlet does, beside the app itself. Screenshots alternate sides down the page. */
.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.feature.shots-left .shots { order: -1; }

.feature h2, .devices h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.feature ul, .band ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
  max-width: 34rem;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.shots {
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}
.phone {
  width: min(17.5rem, 70vw);
  border-radius: 2.6rem;
  border: 0.55rem solid var(--phone);
  background: var(--phone);
  box-shadow: var(--shadow);
}
.text-only .wrap { grid-template-columns: 1fr; max-width: 46rem; }

/* On every device: three short lines side by side. */
.devices { background: var(--mint); }
.devices .wrap { padding-top: 5rem; padding-bottom: 5rem; text-align: center; }
.devices ul {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 58rem;
}
.devices li {
  font: 600 1.2rem/1.4 var(--display);
  padding-top: 1.25rem;
  border-top: 3px solid var(--teal);
  text-align: left;
}

/* Private by default: the one band in the other colour. */
.band { background: var(--ink); color: var(--on-band); }
.band .wrap { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.band h2 {
  color: var(--on-band);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 2rem;
}
.band ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.band li {
  font-size: 1.15rem;
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 3px solid var(--band-accent);
}

/* Free to start: the jar again, the price in plain words, and the same line as at the top. */
.closing { background: linear-gradient(180deg, var(--paper) 0%, var(--mint) 100%); }
.closing .wrap { padding-top: 5rem; padding-bottom: 6rem; max-width: 46rem; text-align: center; }
.closing-jar { width: 7.5rem; margin: 0 auto 1.5rem; filter: drop-shadow(0 1rem 1.25rem rgba(14, 43, 40, 0.25)); }
.closing h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}
.closing p { font-size: 1.15rem; color: var(--soft); text-wrap: pretty; margin: 0 0 2rem; }
.closing .soon { color: var(--paper); margin: 0; }

/* Privacy, support and not-found pages: a column to read, under the same mint. */
.prose { background: linear-gradient(180deg, var(--mint) 0, var(--paper) 16rem) no-repeat; }
.prose .wrap { max-width: 44rem; padding-top: 3rem; padding-bottom: 5rem; }
.prose h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.prose h2 { font-size: 1.5rem; line-height: 1.25; margin: 3rem 0 0.75rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.15rem; line-height: 1.35; margin: 2rem 0 0.4rem; }
.prose p, .prose ul { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--teal); }
.prose .lede { font-size: 1.2rem; color: var(--soft); }
.missing .wrap { padding-top: 6rem; padding-bottom: 8rem; }

footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  font-size: 0.95rem;
}
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--teal); text-decoration: underline; }

/* Narrower screens: one column; the headline first, then the app and the jar, the screens under their text. */
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1.75rem; padding-bottom: 3.5rem; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-visual { width: min(19rem, 88%); }
  .hero-visual .phone { width: 78%; }
  .hero-visual .hero-jar { left: -0.5rem; width: 46%; }
  .steps ol { grid-template-columns: 1fr; gap: 3rem; }
  .feature .wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; }
  .feature.shots-left .shots { order: 0; }
  .devices ul, .band ul { grid-template-columns: 1fr; gap: 1.25rem; }
  .phone { width: min(15rem, 62vw); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-jar { animation: none; }
}
