/* FRENCHMOB landing page. One stylesheet, no build step. */

/* ---------- Fonts (swap block: change files here + the preload in index.html / 404.html) ----------
   FM Sans = Mona Sans v2.0.27 (OFL), instanced to wdth 100–125, wght 400–700, opsz 16, Latin subset.
   Renamed because "Mona" is an OFL Reserved Font Name; see /fonts/FONTLOG.txt. */
@font-face {
  font-family: "FM Sans";
  src: url("/fonts/fm-sans-2.0.27-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

/* Arial tuned to FM Sans advance widths and vertical metrics, so the swap does not reflow text. */
@font-face {
  font-family: "FM Sans Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 600;
  size-adjust: 101.85%;
  ascent-override: 107.02%;
  descent-override: 31.42%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "FM Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700;
  size-adjust: 97.56%;
  ascent-override: 111.72%;
  descent-override: 32.8%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --font-stack: "FM Sans", "FM Sans Fallback", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-stack);
  --font-text: var(--font-stack);
  --font-ui: var(--font-stack);

  --page: #000;
  --card: #fff;
  --ink: #000;
  --ink-2: #6e6e73;
  --hairline: rgb(0 0 0 / 0.1);
  --fill-2: #f0f0f2;
  --fill-2-hover: #e6e6e9;
  --fill-2-active: #dcdce0;
  --ink-hover: #2a2a2a;
  --ink-active: #3a3a3a;
  --focus: #0071e3;

  --r-card: clamp(1.75rem, 1.336rem + 1.768vw, 2.75rem);
  --r-product: 1rem;
  --r-icon: 0.75rem;
  --r-pill: 999px;

  --glow: 0 0 27px 0 rgb(255 255 255 / 0.92), 0 0 80px 0 rgb(255 255 255 / 0.08);

  --gutter: clamp(1.25rem, 0.11rem + 4.862vw, 4rem);
  --page-y: clamp(2rem, 0.239rem + 7.514vw, 6.25rem);
  --card-gap: clamp(2.5rem, 1.879rem + 2.652vw, 4rem);
  --card-px: clamp(1.5rem, 0.671rem + 3.536vw, 3.5rem);
  --card-py: clamp(2rem, 1.379rem + 2.652vw, 3.5rem);
  --card-max: 760px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-press: 120ms;
  --dur-hover: 200ms;
  --dur-enter: 600ms;

  color-scheme: dark;
}

@media (min-width: 760px) {
  :root {
    --r-product: 1.25rem;
  }
}

@media (min-width: 1180px) {
  :root {
    --card-max: 1124px;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

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

a {
  color: inherit;
}

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

/* Keeps a hyphenated term on one line. */
.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Page and card shell ---------- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--card-gap);
  padding-block: var(--page-y);
  padding-inline: max(env(safe-area-inset-left), env(safe-area-inset-right));
}

.card {
  width: min(100% - 2 * var(--gutter), var(--card-max));
  padding: var(--card-py) var(--card-px);
  background: var(--card);
  color: var(--ink);
  border: 1px solid transparent; /* becomes visible in forced-colors mode, where the glow is dropped */
  border-radius: var(--r-card);
  box-shadow: var(--glow);
  animation: card-in var(--dur-enter) var(--ease) backwards;
}

.card + .card {
  animation-delay: 80ms;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Pill button ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  max-width: 100%;
  text-decoration: none;
  transition:
    background-color var(--dur-hover) var(--ease),
    transform var(--dur-press) var(--ease);
}

.pill--primary {
  background: var(--ink);
  color: #fff;
}

.pill--secondary {
  background: var(--fill-2);
  color: var(--ink);
}

.pill__arrow {
  flex: none;
  width: 12px;
  height: 12px;
  transition: transform var(--dur-hover) var(--ease);
}

@media (hover: hover) {
  .pill--primary:hover {
    background: var(--ink-hover);
  }

  .pill--secondary:hover {
    background: var(--fill-2-hover);
  }

  .pill:hover .pill__arrow {
    transform: translate(2px, -2px);
  }
}

.pill--primary:active {
  background: var(--ink-active);
  transform: scale(0.97);
}

.pill--secondary:active {
  background: var(--fill-2-active);
  transform: scale(0.97);
}

/* ---------- Hero card ---------- */
.hero {
  display: grid;
  gap: 40px;
}

/* Logo SVG (assets/FRENCHMOB.svg, inlined): 200px at 375 → 295px at 1280 */
.hero__wordmark {
  width: clamp(12.5rem, 10.04rem + 10.5vw, 18.4375rem);
  max-width: 100%;
  line-height: 0;
}

.hero__wordmark svg {
  width: 100%;
  height: auto;
}

.hero__body {
  max-width: 28rem;
  margin-block: 24px 32px;
  font-size: clamp(1rem, 0.974rem + 0.11vw, 1.0625rem);
  line-height: 1.5;
  text-wrap: pretty;
}

@media (min-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 512px;
    column-gap: 64px;
    align-items: center;
  }
}

/* ---------- Logo wall ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logos li {
  display: grid;
  place-items: center;
  height: 64px;
}

/* Display size comes from each <img>'s width/height attributes (bob-designer's optical-size table). */
.logos img {
  max-width: min(100px, 100%);
}

@media (min-width: 600px) {
  .logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Products card ---------- */
.products__header {
  display: grid;
  justify-items: center;
  text-align: center;
}

.products__eyebrow {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.33;
}

.products__title {
  margin-block: 8px 12px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.47rem + 0.663vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.products__lead {
  max-width: 36rem; /* one line at desktop, as in the reference */
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.985rem + 0.331vw, 1.25rem);
  line-height: 1.5;
  text-wrap: balance;
}

.products__list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.products__list > li {
  display: grid;
  min-width: 0;
}

@media (min-width: 760px) {
  .products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
  }
}

.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-product);
}

/* Below 375px a framed card leaves no room for the unbreakable "morningpulse.app" CTA: list rows instead. */
@media (max-width: 374px) {
  .products__list {
    gap: 0;
  }

  .product {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .products__list > li + li .product {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
  }

  .product .pill {
    padding-inline: 17px;
  }
}

@media (min-width: 760px) {
  .product {
    padding: min(32px, 3.7vw); /* 28px at 760 so "Visit morningpulse.app" stays on one line */
  }
}

.product__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-icon);
  outline: 1px solid rgb(0 0 0 / 0.08);
  outline-offset: -1px;
}

.product__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-block: 20px 12px;
}

.product__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.323rem + 0.221vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.product__tag {
  padding: 3px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.product__body {
  margin-bottom: 24px;
  color: var(--ink-2);
  line-height: 1.5;
  text-wrap: pretty;
}

.product .pill {
  margin-top: auto;
}

/* ---------- 404 ---------- */
.page--center {
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.card.notfound {
  width: min(100% - 2 * var(--gutter), 560px);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.notfound__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.47rem + 0.663vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.notfound__body {
  margin-bottom: 16px;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.site-footer {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer a {
  color: #fff;
  text-underline-offset: 3px;
}

/* ---------- Legal page ---------- */
.card.legal {
  width: min(100% - 2 * var(--gutter), 760px);
}

.legal__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.legal__top a {
  text-decoration: none;
}

.legal__top a:hover {
  text-decoration: underline;
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.47rem + 0.663vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.legal__updated {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.legal__lead {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 0.985rem + 0.331vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.legal h2 {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: 32px 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal h4 {
  margin: 24px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal p,
.legal__list {
  margin-top: 12px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.legal a {
  text-underline-offset: 3px;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.legal__list {
  padding-left: 1.25em;
  list-style: disc;
}

.legal__list li + li {
  margin-top: 6px;
}

.legal__facts {
  margin: 12px 0 0;
  border-top: 1px solid var(--hairline);
}

.legal__facts > div {
  display: grid;
  gap: 2px;
  padding-block: 10px;
  border-bottom: 1px solid var(--hairline);
}

.legal__facts dt {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.legal__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 600px) {
  .legal__facts > div {
    grid-template-columns: 12rem minmax(0, 1fr);
    column-gap: 24px;
  }
}

/* ---------- Preferences and display modes ---------- */
@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .pill,
  .pill__arrow {
    transition: background-color var(--dur-hover) var(--ease);
  }

  .pill:hover .pill__arrow,
  .pill:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .card {
    box-shadow: none;
  }

  .pill {
    border-color: ButtonText;
  }

  /* Logos are artwork for a white ground: dark marks vanish on a dark Canvas. */
  .logos {
    forced-color-adjust: none;
    background: #fff;
    border-radius: var(--r-product);
  }
}
