/* Nearby Close — 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 ~90 lines of
   custom properties would cost more than the duplication does.

   Friendly geo-app SaaS minimal — the register of a polished location app
   being slightly indiscreet about the neighbourhood. Soft geometry, dotted
   teal ring strokes as the recurring motif, and chips that only ever carry a
   distance or a time. The cool mineral palette is deliberate: the warm skin
   tones of the photography are the hottest thing on the page. */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --ground: #f6f5f2;
  --ink: #201e1b;
  --ink-soft: #6e6a62;
  --card: #ffffff;
  --sand: #ede8df;
  --line: #e4e0d8;
  --accent: #0e7c6b;
  --accent-deep: #0b6357;
  --accent-ink: #ffffff;
  --accent-wash: #e2efec;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 8px 24px rgba(32, 30, 27, .08);
  --display: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', '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; }

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

.nc-display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
}

/* Sentence case, never caps: the register is a friendly app, not a label maker. */
.nc-eyebrow { color: var(--accent); font-size: .85rem; font-weight: 700; margin: 0 0 10px; }

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

/* The one chip. It carries a DISTANCE or a TIME and nothing else — no status
   words, no online dots, no interest lines. That restraint is what keeps the
   photography reading as live app data rather than profile cards. */
.nc-chip {
  display: inline-flex;
  align-items: center;
  background: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .82rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(32, 30, 27, .14);
}

/* The layout rewires every a.btn to open the signup modal, so a 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(14, 124, 107, .28);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
/* color: inherit is load-bearing: every CTA wraps its label in a <p>, so any
   section rule that colours paragraphs — .c-card p included — would land on
   the label too and beat the colour inherited from a.btn. */
a.btn p { margin: 0; color: inherit; }
a.btn:hover { transform: translateY(-1px); background: var(--accent-deep); box-shadow: 0 10px 24px rgba(14, 124, 107, .34); }
a.btn:active { transform: translateY(0); }

/* Every brand logo.svg is authored white, for dark heroes; this brand's
   grounds are all light, so it is recoloured to the ink or it disappears.
   Sized by height — the icon lockup is roughly 6:1, and a width constraint
   would shrink the wordmark to nothing. */
.nc-logo {
  height: 40px;
  width: auto;
  max-width: calc(100vw - 40px);
  filter: brightness(0) opacity(.82);
}

/* Footer chrome is per design; keep it quiet and on-palette. */
footer.legal { padding: 40px 20px 48px; text-align: center; color: var(--ink-soft); font-size: .85rem; }
footer.legal .legal__links { margin-top: 6px; display: flex; justify-content: center; gap: 18px; }
footer.legal a { color: var(--ink-soft); }

/* The modal's submit is a <button>, so the a.btn rules above never reach it
   and form.css supplies layout without colour. 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;
  font-family: var(--body);
}
.signup-modal__title { font-family: var(--display); font-weight: 600; color: var(--ink); }

/* ── Variant C: "Digest" ─────────────────────────────────────────────────
   Recency as the hook: a weekly digest of who joined and when, down a dotted
   teal timeline, with the 5s auto-open framed as getting next week's issue
   first. The question it answers: does freshness ("joined Wed") motivate more
   strongly than proximity alone? */

.c-bar { padding: 22px 0 6px; display: flex; justify-content: center; }

.c-head { padding: 18px 0 0; }
.c-head__card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 34px 30px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.c-head h1 { font-size: clamp(1.9rem, 5.6vw, 2.8rem); }

/* Freshness without numbers: concrete words, no fabricated counts. */
.c-fresh {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  margin: 14px 0 0;
}
.c-fresh i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .5; }

.c-tl { position: relative; max-width: 860px; margin: 26px auto 0; padding: 16px 0 40px; }
/* The spine: the brand's dotted teal stroke, vertical. */
.c-tl::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 1.5px dotted var(--accent);
  transform: translateX(-50%);
  opacity: .6;
}

.c-day { position: relative; display: flex; justify-content: center; margin: 30px 0 20px; }
.c-day span {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(14, 124, 107, .3);
}

.c-card {
  position: relative;
  width: calc(50% - 36px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 10px 16px;
  margin-bottom: 26px;
}
.c-card--l { margin-right: auto; }
.c-card--r { margin-left: auto; }
/* The node that ties a card to the spine. */
.c-card::before {
  content: '';
  position: absolute;
  top: 34px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.c-card--l::before { right: -41px; }
.c-card--r::before { left: -41px; }

/* Direct children only: the Fri card nests the newest-faces figures, and the
   descendant form of these rules outranked the inset's own — every inset chip
   absolutely stacked at the card's top-left, garbling the main chip. */
.c-card > figure { position: relative; margin: 0; }
.c-card > figure > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.c-card > figure > .nc-chip { position: absolute; top: 12px; left: 12px; }
/* Every photo is a tap target since 2026-10-05: it opens the modal wearing
   the woman tapped (see the blade's script). */
.c-card figure { cursor: pointer; }
/* Name and age as a caption, outside the chip — the chip stays day/distance
   only. Display face, like the names on A's dial. */
.c-who {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
  margin: 12px 8px 0;
}
.c-line { margin: 4px 8px 0; font-size: .98rem; color: var(--ink-soft); }

.c-newest { margin: 14px 2px 0; padding: 12px; background: var(--sand); border-radius: 12px; }
.c-newest > p { margin: 0 0 10px; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.c-newest__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.c-newest__row figure { margin: 0; text-align: center; position: static; }
.c-newest__row img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.c-newest__row .nc-chip { position: static; margin-top: 4px; font-size: .66rem; padding: 3px 8px; box-shadow: none; background: var(--card); }
.c-newest__name { display: block; font-weight: 700; font-size: .78rem; line-height: 1.2; margin-top: 7px; }

/* The only card with no photo: the ask, ringed by the motif. */
.c-card--tonight {
  text-align: center;
  padding: 28px 22px 26px;
  border: 1.5px dotted var(--accent);
}
.c-card--tonight h2 { font-size: 1.3rem; }
.c-card--tonight p { color: var(--ink-soft); margin: 10px 0 18px; }

/* The persistent way back, slim on purpose — it must not shout over the page. */
a.btn.c-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  min-height: 44px;
  padding: 0 20px;
  font-size: .9rem;
  box-shadow: 0 8px 20px rgba(14, 124, 107, .35);
}

/* Clicked by the design's script when a photo is tapped — off-screen, not
   display:none, so the synthetic click always dispatches. */
a.btn.c-hidden-cta { position: absolute; left: -9999px; top: 0; }

/* The digest face painted into the modal by this design's script: the
   generic digest photo by default, the tapped woman's photo and name once
   one has been tapped. */
.c-meet { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 14px; }
.c-meet__photo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--accent-wash), var(--shadow);
}
.c-meet__name {
  font-weight: 700;
  font-size: .95rem;
  margin: 2px 0 0;
  /* form.css repaints the modal; inherit rather than naming a colour. */
  color: inherit;
}
.c-meet__name[hidden] { display: none; }
.c-meet__line {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: center;
  /* form.css repaints the modal; inherit rather than naming a colour. */
  color: inherit;
  margin: 0;
}

@media (max-width: 760px) {
  .c-head__card { padding: 26px 20px; }
  /* Spine moves to the left edge; every card hangs off it on one side. */
  .c-tl::before { left: 14px; transform: none; }
  .c-day { justify-content: flex-start; padding-left: 40px; }
  .c-card, .c-card--l, .c-card--r { width: auto; margin: 0 0 22px 40px; }
  .c-card--l::before, .c-card--r::before { left: -31px; right: auto; }
  .c-newest__row { grid-template-columns: repeat(2, 1fr); }
}

/* Full-screen signup modal on phones. Nearby Close only, deliberately: the
   modal is shared chrome, and the same change in form.css would restyle the
   live brands, which were not part of this test. The body prefix is what
   beats form.css, which loads after this file. */
@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. Inside .blocker only,
     the rule is inert once the dialog is 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; }
  .c-meet { margin-bottom: 18px; }
  .c-meet__photo { width: 96px; height: 96px; }
  .c-meet__line { font-size: 1.1rem; }
}
