/* Silver Mellow — shared design language.
   Duplicated into each variant's style.css on purpose: layouts.lander links
   exactly one stylesheet per landing, and a second request for ~40 lines of
   custom properties would cost more than the duplication does.

   Deliberately unlike the imported g* designs (bright gradients, heavy sans):
   an editorial serif on a warm off-white ground, with the brand magenta used
   only for the thing we want tapped. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root {
  --ink: #1f2933;
  --ink-soft: #52616b;
  --ground: #f6f3ee;
  --card: #ffffff;
  --line: #e3ded6;
  --accent: #ad1457;
  --accent-ink: #ffffff;
  --accent-wash: #fbeef4;
  --blue: #5f7f96;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 41, 51, .08);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

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

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

.sm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.sm-display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}

/* The layout rewires every a.btn to open the signup modal, so the CTA is a
   link, never a button element. */
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  /* 44px is the minimum tap target; 54 leaves room for the label to breathe. */
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(173, 20, 87, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
/* color: inherit is load-bearing. Every CTA wraps its label in a <p> (the
   designer-lander convention), so any section rule like `.b-final p { color: … }`
   also lands on the button's label and beats the colour inherited from a.btn —
   which is how the bottom CTA ended up with grey text on magenta. */
a.btn p { margin: 0; color: inherit; }
a.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(173, 20, 87, .34); }
a.btn:active { transform: translateY(0); }

.sm-note { color: var(--ink-soft); font-size: .87rem; margin: 12px 0 0; }

.sm-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 12px;
}

/* ── Variant B: "Conversation" ───────────────────────────────────────────
   Same brand language as A, different hook entirely. A ranks trust; B leads
   with the thing people actually want — someone talking to them. The page
   opens as an inbox rather than a pitch, so the A/B answers "reassurance or
   desire?" rather than "which shade of pink?". */

.b-top { background: linear-gradient(180deg, #eef2f5 0%, var(--ground) 100%); padding: 26px 0 46px; }
.b-top__bar { display: flex; justify-content: center; margin-bottom: 26px; }
.b-top__bar img { height: 40px; width: auto; max-width: calc(100vw - 40px); }
/* Three children — copy, CTA, thread — placed by area so the phone layout
   below can put the button UNDER the messages (2026-10-05). On desktop the
   copy and the CTA stack in the left column, vertically centred against the
   thread as one block. */
.b-top__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas: 'copy thread' 'cta thread';
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 40px;
  row-gap: 24px;
  align-items: center;
}
.b-top__copy { grid-area: copy; align-self: end; }
.b-top__cta { grid-area: cta; align-self: start; }
.b-thread { grid-area: thread; }
.b-top h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
.b-top p.lede { color: var(--ink-soft); font-size: 1.05rem; margin: 14px 0 0; }

/* The inbox stack is the whole idea, so it gets the visual weight. */
.b-thread { display: grid; gap: 12px; }
.b-msg {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.b-msg:nth-child(2) { margin-left: 18px; }
.b-msg:nth-child(3) { margin-left: 36px; }
.b-msg img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.b-msg__who { display: flex; align-items: baseline; gap: 8px; }
.b-msg__name { font-family: var(--display); font-weight: 600; font-size: 1rem; margin: 0; }
.b-msg__time { color: var(--ink-soft); font-size: .78rem; }
.b-msg__text { margin: 4px 0 0; font-size: .95rem; color: var(--ink-soft); }
.b-msg__dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; display: inline-block; }

.b-count { text-align: center; margin: 30px 0 0; color: var(--ink-soft); font-size: .92rem; }

.b-why { padding: 56px 0; }
.b-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.b-why__item { background: var(--card); border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); }
.b-why__item h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; }
.b-why__item p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

.b-members { padding: 10px 0 60px; }
.b-members h2 { font-size: clamp(1.4rem, 4.4vw, 2rem); text-align: center; margin-bottom: 6px; }
.b-members__sub { text-align: center; color: var(--ink-soft); margin: 0 0 26px; font-size: .95rem; }
.b-members__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* margin: 0 kills the UA's figure margin (1em 40px) — without it every tile
   shrinks 80px inside its grid column and the caption scrim swallows the
   whole photo on phones. */
.b-member { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.b-member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.b-member__tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(31,41,51,0) 0%, rgba(31,41,51,.82) 60%);
  color: #fff;
}
.b-member__tag strong { font-family: var(--display); font-weight: 600; display: block; font-size: 1rem; }
.b-member__tag span { font-size: .84rem; opacity: .88; }

.b-final { background: var(--card); border-top: 1px solid var(--line); text-align: center; padding: 58px 0 72px; }
.b-final h2 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); margin-bottom: 10px; }
.b-final p { color: var(--ink-soft); margin: 0 0 26px; }

@media (max-width: 860px) {
  /* Headline → messages → button. The thread IS the imagery above the fold,
     so the ask goes directly beneath it, full width, like a reply box under
     an inbox. */
  .b-top { padding-bottom: 30px; }
  .b-top__grid { grid-template-columns: 1fr; grid-template-areas: 'copy' 'thread' 'cta'; row-gap: 22px; }
  .b-top__cta { text-align: center; }
  .b-top__cta a.btn { width: 100%; }
  .b-top__cta .sm-note { margin-top: 10px; }
  .b-count { margin-top: 0; }
  .b-thread { gap: 10px; }
  /* Less air between the blocks on a phone: the reassurance cards and the
     member grid used to float 100px+ apart, which read as separate pages. */
  .b-why { padding: 30px 0; }
  .b-why__grid { grid-template-columns: 1fr; gap: 12px; }
  .b-why__item { padding: 18px 20px; }
  .b-members { padding: 6px 0 32px; }
  .b-members__sub { margin-bottom: 16px; }
  .b-members__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .b-final { padding: 36px 0 52px; }
  .b-final p { margin-bottom: 18px; }
  .b-msg:nth-child(2), .b-msg:nth-child(3) { margin-left: 0; }
}

/* Every brand logo.svg is authored white, for dark heroes. B's ground is light,
   so it has to be recoloured or it disappears — the same trick g3v1 uses for
   its light hero. brightness(0) turns the white artwork solid, and the opacity
   pulls it back to roughly the ink colour rather than a hard black. */
.b-top__bar img { filter: brightness(0) opacity(.82); }

/* Messages and photos are click targets for the signup modal, so they have to
   look like it. Hidden CTA is off-screen rather than display:none — the script
   clicks it, and a display:none element in some browsers does not dispatch. */
.b-msg, .b-member, .b-top__grid img { cursor: pointer; }
.b-msg { transition: transform .12s ease, box-shadow .12s ease; }
.b-msg:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(31, 41, 51, .12); }
.b-member { transition: transform .12s ease; }
.b-member:hover { transform: translateY(-2px); }
.b-hidden-cta { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The modal's submit is a <button>, so the a.btn rules above never reach it and
   form.css supplies layout without colour. Styled here to match the page CTA —
   an unstyled grey button on the actual submit is the most expensive place to
   leave a default. */
.signup-form__submit {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  min-height: 54px;
}
.signup-modal__title { font-family: var(--display); font-weight: 600; color: var(--ink); }

/* The face of whoever was clicked, injected into the modal by inbox.js.

   The ask is the page's weakest moment: the visitor tapped a person and gets a
   form. Carrying that person's photo and name across keeps the modal reading as
   the next step of the same conversation rather than a generic email gate.
   Sized to be recognisable and no larger — it must not push the field and the
   submit below the fold on a small phone. */
.b-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.b-face__photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  /* The source is a 4:5 member card whose face sits in the upper third; the
     centre crop of a square circle trims the top of the head. */
  object-position: 50% 30%;
  /* The wash ring lifts the portrait off the card without a hard border, which
     on these warm photos reads as a cut-out. */
  box-shadow: 0 0 0 4px var(--accent-wash), var(--shadow);
}
.b-face__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  /* The modal is repainted dark by form.css, so the page's ink is invisible on
     it. Inherit instead of naming a colour — the same trap as `a.btn p`. */
  color: inherit;
  margin: 0;
}

/* Full-screen signup modal on phones.
   At 375x667 the shared card is a letterbox floating in a dark overlay with the
   page showing round the edges — cramped, and it competes with the content
   behind it. Edge to edge gives the field and the submit room and removes the
   distraction at the moment of the ask.

   Silver Mellow only, deliberately: the modal is shared chrome, and a change
   here would restyle everdate and fondly too. Specificity has to beat
   form.css's `#signup-modal.container-modal`, which loads after this file —
   hence the body prefix. */
@media (max-width: 640px) {
  .blocker { padding: 0; }

  /* Scoped to the OPEN state on purpose (2026-10-05): jquery-modal moves
     the dialog into .blocker to show it and back to <body> on close, where
     it hides it with an inline display:none. The !important below beats
     that inline style, so an unscoped rule left the dismissed modal
     rendered full-screen at the bottom of the page (the page grew by one
     viewport). Inside .blocker only, the rule is inert once closed. */
  body.lander .blocker > #signup-modal.container-modal {
    width: 100%;
    max-width: none;
    margin: 0;
    /* dvh so mobile browser chrome does not crop the submit. */
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    /* Two traps in one line.
       !important: jquery-modal opens the dialog with .show(), which writes
       `display: inline-block` as an INLINE style — no selector outranks that,
       and without this the box goes full screen while its contents stay pinned
       to the top.
       inline-flex, not flex: .blocker centres its child against a full-height
       inline-block ::before spacer. A block-level flex box cannot share that
       line box, so it lands one whole viewport further down the page. */
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 30px 24px calc(30px + env(safe-area-inset-bottom));
  }

  body.lander #signup-modal.container-modal a.close-modal {
    top: 14px;
    right: 14px;
  }

  /* Full screen has the room the card did not, so the logo gives some of it
     back to the face. */
  .signup-modal__logo { height: 30px; margin-bottom: 18px; }
  .signup-modal__title { font-size: 1.4rem; }
  .b-face { margin-bottom: 18px; }
  .b-face__photo { width: 96px; height: 96px; }
  .b-face__name { font-size: 1rem; }
}

/* Side gutters that win (2026-10-05). Every section that pairs with
   .sm-wrap sets its vertical rhythm with a padding SHORTHAND
   (`.a-people { padding: 40px 0 8px }`), which also zeroes the wrapper's
   sides — so on phones the grids and headings ran edge to edge. Last in
   the file on purpose: at equal specificity source order settles it, media
   blocks included. Full-bleed surfaces (hero media, quote band) are not
   .sm-wrap and keep bleeding. */
.sm-wrap { padding-left: 20px; padding-right: 20px; }
@media (max-width: 640px) {
  .sm-wrap { padding-left: 16px; padding-right: 16px; }
}
