/* Same palette and type as the app (mobile/src/theme.ts). */
:root {
  --paper: #f6f1e8;
  --paper-alt: #efe7da;
  --paper-bright: #fffdf9;
  --border: #d6cfc4;
  --border-faint: #e8e2d9;
  --ink: #1c1c1c;
  --ink-gloss: #3e3b36;
  --ink-muted: #756b5e;
  --ink-faint: #a0978a;
  --navy: #1e2a38;
  --crimson: #8b2c2c;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --column: 680px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* One language at a time; <html data-lang> is set before first paint. */
html[data-lang="en"] [data-l="fr"],
html[data-lang="fr"] [data-l="en"] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

.fr,
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
}
.fr {
  font-style: italic;
}

.wrap {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-wide {
  max-width: calc(960px + 2 * var(--gutter));
}

/* ---- Header ---- */
.site-header {
  border-bottom: 2px solid var(--crimson);
  background: var(--paper-alt);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  /* The app's wordmark (login screen): system sans, bold, tight. */
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.brand svg {
  width: 20px;
  height: 25px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.lang button {
  font: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 6px 6px;
  cursor: pointer;
  color: var(--ink-faint);
}
.lang button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
}
.lang span {
  color: var(--border);
}

/* ---- Home ---- */
.hero {
  padding-block: 64px 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

/* Two entries, cropped to their top and faded into the page. */
.hero-shots {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 360px;
  margin: 0 auto;
}
.hero-shot {
  position: absolute;
  margin: 0;
  width: 60%;
  aspect-ratio: 640 / 835;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-shot.back {
  top: 0;
  right: 0;
}
.hero-shot.front {
  top: 56px;
  left: 0;
  box-shadow: 0 18px 40px -18px rgba(30, 42, 56, 0.3);
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr 380px;
    gap: 56px;
  }
}
.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pos {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 20px;
}
.gloss {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 19px;
}
.lead {
  margin: 36px 0 0;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-gloss);
  max-width: 30em;
}
.meta {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--ink-muted);
  font-size: 15px;
}

/* Store-badge shape; site.js swaps the small line to "Download on the" once live. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 8px 13px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper-bright);
  text-decoration: none;
}
.store svg {
  width: 15px;
  height: 22px;
  flex-shrink: 0;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-text small {
  font-size: 11px;
  letter-spacing: 0.01em;
  opacity: 0.85;
}
.store-text strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.store.live:hover {
  background: var(--navy);
}

.section {
  padding-block: 56px;
  border-top: 1px solid var(--border-faint);
}
.section h2 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section p {
  margin: 0 0 16px;
  color: var(--ink-gloss);
}
.section p:last-child {
  margin-bottom: 0;
}

/* Signed with the mark instead of a name. */
.note .sign {
  display: block;
  width: 16px;
  height: 20px;
  margin-top: 20px;
}
.note p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-gloss);
}

.steps {
  list-style: none;
  margin-top: 40px;
  padding-block: 0;
  display: grid;
  gap: 64px;
}
.step {
  display: grid;
  gap: 28px;
  align-items: center;
}
.step h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}
.step h3 small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}

.shot {
  margin: 0 auto;
  width: min(280px, 72vw);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(28, 28, 28, 0.04),
    0 18px 40px -18px rgba(30, 42, 56, 0.25);
  background: var(--paper);
}

@media (min-width: 760px) {
  .step {
    grid-template-columns: 1fr 280px;
    gap: 56px;
  }
  .step:nth-child(even) {
    grid-template-columns: 280px 1fr;
  }
  .step:nth-child(even) .shot {
    order: -1;
  }
  .shot {
    width: 280px;
  }
}

.closing {
  padding-block: 64px 72px;
  border-top: 1px solid var(--border-faint);
}
.closing h2 {
  margin: 0 0 12px;
  font-size: 30px;
}
.closing p {
  margin: 0 0 20px;
  color: var(--ink-gloss);
}

/* ---- Text pages (legal, support) ---- */
.doc {
  padding-block: 56px 72px;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.doc .updated {
  margin: 0 0 36px;
  color: var(--ink-faint);
  font-size: 14px;
}
.doc h2 {
  margin: 36px 0 10px;
  font-size: 22px;
}
.doc p,
.doc li {
  color: var(--ink-gloss);
}
.doc ul {
  padding-left: 1.2em;
}
.doc li {
  margin-bottom: 6px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--paper-alt);
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}

.intro p {
  max-width: 36em;
}
