/*
 * mydeux.com: what every page shares. The colors of the app icon (butter,
 * ivory, sky, ink) and the app's Cloud palette (the blue of a sent message),
 * one warm off-white page, the top bar, buttons, store badges with their QR
 * codes, and the dark footer. Each page adds its own sheet after this one:
 * home.css (the home page) or pages.css (contact, legal, 404, invite).
 */

:root {
  --ink: #16181D;
  --ink-2: #474A55;
  --muted: #6B6E78;
  --page: #FCF8F2;
  --white: #FFFFFF;
  --night: #12141C;
  --blue: #4F5BFF;
  --blue-ink: #3A44D6;
  --butter: #FFD65B;
  --butter-soft: #FFF3C9;
  --butter-ink: #292824;
  --line: rgba(22, 24, 29, 0.1);
  --body: "Manrope", "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--body); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 30; padding: 12px 18px; border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 16px/1.1 var(--body); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.2s ease, transform 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--butter { background: var(--butter); color: var(--butter-ink); }
.btn--butter:hover { background: #FFDF7E; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #2A2D35; }
.btn--line { border: 1px solid rgba(41, 40, 36, 0.28); color: var(--butter-ink); }
.btn--line:hover { background: rgba(255, 255, 255, 0.6); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- Brand and top bar ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); text-decoration: none; }
.mark { width: 40px; height: 30px; }
.brand__word { font: 700 24px/1 var(--body); letter-spacing: -0.03em; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(252, 248, 242, 0.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow 0.3s ease; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 700; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="location"] { color: var(--ink); }
.nav a[aria-current="location"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* ---------- Shared parts ---------- */
.lead { color: var(--ink-2); font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-link { display: block; flex: none; border-radius: 8px; line-height: 0; }
.store-link img { width: auto; height: var(--badge-h, 50px); }
.fine { margin-top: 14px; font-size: 13.5px; }
.join__mark { display: block; width: 96px; height: 72px; margin: 0 auto 28px; }
.stores--center, .cta--center { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.foot { padding: 70px 0 50px; background: var(--night); color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.foot .brand { color: var(--white); }
.beta { margin-bottom: 50px; padding: 30px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.beta__title { color: var(--white); font-size: 26px; }
.beta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot__tag { margin-top: 12px; }
.foot__h { color: rgba(255, 255, 255, 0.5); font: 700 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.foot__col ul { display: grid; gap: 10px; margin-top: 16px; }
.foot__col a { color: var(--white); text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__small { margin-top: 50px; color: rgba(255, 255, 255, 0.5); font-size: 13px; }
.foot__marks { margin-top: 10px; }
.foot__lang { margin-top: 10px; }
.foot__lang a { color: var(--white); font-weight: 700; }

/* ---------- Get Deux: each store's badge with its QR code ---------- */
.get { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.get__card { display: grid; justify-items: center; gap: 18px; padding: 22px 22px 24px; border-radius: 28px; background: var(--white); box-shadow: 0 1px 2px rgba(41, 40, 36, 0.06), 0 24px 60px rgba(41, 40, 36, 0.1); }
.get__qr { width: 168px; height: 168px; }
.get { --badge-h: 46px; }
.get__hint { margin-top: 24px; }
/* A phone or tablet cannot scan itself: there, only the badges. */
@media (max-width: 760px), (pointer: coarse) {
  .get { gap: 12px; margin-top: 32px; }
  .get__card { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .get__qr, .get__hint { display: none; }
}
/* On a phone, the photo at the top shows only that phone's store (site.js). */
.is-appstore .hero .store-link--google, .is-googleplay .hero .store-link--apple { display: none; }

/* ---------- A page that is one panel (/get, 404) ---------- */
.fill-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.top__link { color: var(--ink-2); font-size: 15px; font-weight: 700; text-decoration: none; }
.top__link:hover { color: var(--ink); }
.panel { flex: 1; width: min(1392px, 100% - 48px); margin: 8px auto 48px; padding: clamp(64px, 9vw, 110px) 24px; border-radius: 32px; background: var(--butter-soft); color: var(--butter-ink); text-align: center; }
.panel h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em; }
.panel .lead { max-width: 520px; margin: 20px auto 0; color: rgba(41, 40, 36, 0.8); }
.panel .fine { color: rgba(41, 40, 36, 0.65); }
.get__opening { margin-top: 20px; font-weight: 700; }
.foot--slim { padding: 34px 0; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { color: var(--white); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot--slim .foot__small { margin-top: 24px; }

@media (max-width: 960px) {
  .nav { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .top__in { min-height: 62px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .panel { width: calc(100% - 24px); margin-top: 4px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
