/* Ensemble site. Flat colours only, all from Shared/Brand.swift (build.py
   writes them into brand.css). The number is the hero. Outfit (OFL) is the
   provisional brand face until Benjamin picks one; never SF outside the app. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: var(--theme-papier-bg);
  --ink: var(--theme-papier-ink);
  --muted: color-mix(in srgb, var(--ink) 60%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --card: color-mix(in srgb, var(--ink) 5%, var(--bg));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: var(--theme-encre-bg); --ink: var(--theme-encre-ink); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif; font-weight: 500;
  font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
header.top .logo { font-weight: 700; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.01em; }
header.top nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
header.top nav a { text-decoration: none; color: var(--muted); }
header.top nav a:hover { color: var(--ink); }

.btn {
  display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem;
}
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }

/* Full-bleed blocks escape the page column. */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* Hero: the app's photo theme as a page. The photo is dimmed with a flat
   layer of ink (as PhotoDimming does in the app), the number reads in white. */
.hero-photo { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; margin-bottom: 96px; overflow: hidden; }
.hero-photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-photo .veil { position: absolute; inset: 0; background: var(--theme-encre-bg); opacity: 0.38; }
.hero-in { position: relative; width: 100%; padding-top: 120px; padding-bottom: 64px; }
.hero-photo .headline { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; margin: 0 0 28px; }
.hero-photo .names { font-size: 1.5rem; margin: 0; opacity: 0.9; }
.hero-photo .number { font-size: clamp(6rem, 21vw, 15rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.045em; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.hero-photo .unit { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; margin: 6px 0 24px; }
.hero-photo .tagline { font-size: 1.2rem; max-width: 30em; margin: 0 0 28px; opacity: 0.92; }
.hero-photo .note { font-size: 0.9rem; opacity: 0.8; margin: 14px 0 0; }
.btn.light { background: #fff; color: var(--theme-encre-bg); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; margin: -8px 0 36px; }

/* People: a photo per situation, with the widget they would see. */
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.person figure { position: relative; margin: 0 0 18px; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.person figure img { width: 100%; height: 100%; object-fit: cover; }
.person .widget { position: absolute; left: 20px; bottom: 20px; }
.person h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
.person p { color: var(--muted); margin: 0; max-width: 30em; }

.widget { width: 156px; height: 156px; border-radius: 34px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.widget .w-names { font-size: 0.8rem; opacity: 0.75; margin-bottom: auto; }
.widget b { font-size: 2.3rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.widget span:last-child { font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

/* The interface in a hand. */
.hand { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hand figure { margin: 0; border-radius: 28px; overflow: hidden; }
.hand figure img { width: 100%; }
.hand h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }

/* Hero: a theme block, the number as big as the screen allows. */
.hero {
  background: var(--hero-bg); color: var(--hero-ink);
  border-radius: 28px; margin: 8px 0 56px; padding: 56px 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.hero .headline { font-size: 1.15rem; font-weight: 700; margin: 0 0 20px; opacity: 0.85; }
.hero .kicker { font-size: 1.4rem; margin: 0; opacity: 0.8; }
.hero .number { font-size: clamp(5rem, 16vw, 11rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.hero .unit { font-size: 2rem; font-weight: 700; margin: 4px 0 18px; }
.hero .tagline { font-size: 1.2rem; margin: 0 0 28px; max-width: 30em; opacity: 0.9; }
.hero .btn { background: var(--hero-ink); color: var(--hero-bg); }
.hero .note { font-size: 0.9rem; opacity: 0.75; margin: 14px 0 0; }
.hero .shot { justify-self: center; width: min(100%, 300px); }
.shot img { border-radius: 24px; }

h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 24px; }
h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 8px; }
section { margin: 0 0 72px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.feature { background: var(--card); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature p { margin: 0; color: var(--muted); }
.feature .shot { margin-top: auto; align-self: center; width: min(100%, 240px); }

/* Theme swatches: each one is the counter in that theme. */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: auto; }
.theme { border-radius: 16px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 8px; }
.theme b { font-size: 1.35rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.theme span { font-size: 0.68rem; opacity: 0.75; margin-top: 4px; }
.caption { color: var(--muted); font-size: 0.95rem; margin: 10px 0 0; }

.pro { background: var(--card); border-radius: 28px; padding: 40px 32px; }
.pro .intro { margin: 0 0 24px; max-width: 40em; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { border: 1.5px solid var(--line); border-radius: 20px; padding: 24px; position: relative; }
.plan.best { border-color: var(--ink); }
.plan .tag { position: absolute; top: -12px; left: 20px; background: var(--ink); color: var(--bg); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.plan .period { color: var(--muted); margin: 0 0 10px; }
.plan .desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.plan .name { font-weight: 700; margin: 0; }
.pro .note { color: var(--muted); font-size: 0.9rem; margin: 22px 0 0; }
.pro-features { margin: 0 0 24px; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.pro-features li { break-inside: avoid; margin: 0 0 8px; padding-left: 1.2em; text-indent: -1.2em; }
.pro-features li::before { content: "—"; margin-right: 0.5em; color: var(--muted); }

article.text { max-width: 42em; }
article.text p { margin: 0 0 1em; }
article.text .meta { color: var(--muted); font-size: 0.95rem; }
.faq dt { font-weight: 700; margin: 24px 0 6px; }
.faq dd { margin: 0; color: var(--muted); max-width: 42em; }

footer.bottom { border-top: 1.5px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer.bottom p { margin: 0 0 8px; }
footer.bottom nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }

@media (max-width: 760px) {
  header.top nav { gap: 12px; font-size: 0.85rem; justify-content: flex-end; }
  .people-grid, .hand { grid-template-columns: 1fr; }
  .hero-photo { min-height: 88vh; }
  .hero-photo .bg { object-position: 62% 40%; }
  .widget { width: 132px; height: 132px; border-radius: 30px; padding: 15px; }
  .widget b { font-size: 1.9rem; }
  .hero { grid-template-columns: 1fr; padding: 40px 24px; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero .shot { width: min(100%, 260px); }
  .pro-features { columns: 1; }
  h2 { font-size: 1.6rem; }
}

/* Targeted pages (guides): one search intent each. */
.landing .l-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin: 8px 0 64px; }
.landing h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
.landing .lead { margin: 0 0 28px; }
.landing .note { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }
.l-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.l-photo img { width: 100%; height: 100%; object-fit: cover; }
.l-photo .widget { position: absolute; left: 20px; bottom: 20px; }
.l-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.l-body .l-main { max-width: 42em; }
.l-main section { margin: 0 0 40px; }
.l-main h2 { font-size: 1.6rem; margin: 0 0 12px; }
.l-main p { margin: 0 0 1em; }
.l-shot { position: sticky; top: 24px; margin: 0; }
.l-price { background: var(--card); border-radius: 24px; padding: 28px; }
.l-price h2 { margin-top: 0; }
.related ul, .guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.guides { margin-bottom: 18px; }
.guides b { display: block; margin-bottom: 6px; color: var(--ink); }
.guides.big ul { gap: 12px; }
.guides.big a { display: inline-block; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; }
.guides.big a:hover { border-color: var(--ink); }
@media (max-width: 860px) {
  .landing .l-head, .l-body { grid-template-columns: 1fr; gap: 32px; }
  .l-shot { position: static; width: min(100%, 260px); margin: 0 auto; }
  .l-photo { aspect-ratio: 4 / 4.6; }
}
.person .more { white-space: nowrap; font-weight: 700; }
