/* ============================================================
   FriendMaker — home site
   Tone: friendly, tasteful, muted.
   Palette: warm cream + muted sage green + soft clay.
   Type:    Fraunces (display) + Instrument Sans (body).
   ============================================================ */

:root {
  /* Surfaces */
  --paper:   #f6f3ec;   /* page background, warm cream */
  --card:    #ffffff;
  --tint:    #efece2;   /* soft warm card fill           */
  --sage-tint:#eef1ec;  /* muted green wash              */

  /* Ink & text */
  --ink:     #2c312b;   /* primary text, warm charcoal-green */
  --body:    #454a41;   /* running body text                 */
  --muted:   #5b6153;   /* secondary / captions              */
  --faint:   #898f81;   /* tertiary, small labels only       */

  /* Lines */
  --line:    #e2ddd0;
  --line-2:  #d6d0c1;

  /* Accents */
  --sage:   #5f7560;    /* primary action (muted green)    */
  --sage-d: #495c4b;    /* hover / pressed                 */
  --sage-dd:#3c4c3e;    /* active text on tint             */
  --clay:   #bc8a6b;    /* soft terracotta, small touches  */
  --clay-d: #a9765a;

  /* Shape */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --pill: 999px;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1080px;
  --pad: clamp(20px, 5vw, 48px);
  --shadow: 0 1px 2px rgba(70, 74, 62, .06), 0 10px 30px -18px rgba(70, 74, 62, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* very soft warm wash only in the hero — muted, not a tech gradient */
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0 0 .4em;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--sage-d);
  text-decoration: none;
  border-radius: 4px;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

::selection { background: rgba(95, 117, 96, .22); }

/* Focus — real, visible states */
:focus-visible {
  outline: 2.5px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.wrap--narrow { max-width: 720px; }

.section { padding-block: clamp(56px, 9vw, 108px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-d);
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  color: var(--body);
}

.lead-ink { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--sage);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;              /* >= 44px hit target */
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .16s ease, transform .12s ease, box-shadow .16s ease, border-color .16s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 18px -12px rgba(73, 92, 75, .6);
}
.btn:hover { background: var(--sage-d); box-shadow: 0 2px 0 rgba(255,255,255,.3) inset, 0 12px 22px -12px rgba(44, 53, 43, .55); text-decoration: none; }
.btn:active { background: var(--sage-dd); transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--tint); border-color: var(--clay-d); }

.btn--link {
  min-height: 40px;
  padding: 8px 4px;
  background: none;
  color: var(--sage-d);
  font-weight: 600;
  box-shadow: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn--link .arrow { transition: transform .16s ease; }
.btn--link:hover { color: var(--clay-d); }
.btn--link:hover .arrow { transform: translateX(3px); }
.btn--link:active { transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 243, 236, .94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(160deg, #6f876f, var(--sage));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -10px rgba(44,53,43,.7);
}
.brand .mark svg { width: 17px; height: 17px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .96rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); background: var(--tint); text-decoration: none; }

.nav-cta { padding: 9px 16px; min-height: 40px; font-size: .94rem; }

.nav-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; margin: 0 auto; display: block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after  { top: 10px; }
.nav-toggle .bars span    { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .bars span    { opacity: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero::before {
  content: "";
  position: absolute; inset: -10% 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(120% 80% at 78% 0%, rgba(95,117,96,.10), transparent 58%),
    radial-gradient(90% 70% at 8% 10%, rgba(188,138,107,.08), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  margin-bottom: .5em;
}

.hero .eyebrow { margin-bottom: 18px; }
.hero .lede { max-width: 33ch; }
.hero .lede + .lede { margin-top: .2em; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 26px; }
.hero-reassure {
  margin: 22px 0 0; font-size: .92rem; color: var(--muted);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.hero-reassure .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); flex: none; }

/* Hero visual — product-faithful (qualities chips + event in a safe world), not a fake dashboard */
.hero-visual { position: relative; min-height: 340px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.match-card {
  position: relative;
  z-index: 3;
  padding: 22px 22px 20px;
  width: min(330px, 88%);
  margin-left: auto;
  margin-bottom: -26px;
  transform: rotate(-.6deg);
}
.match-card .mc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.match-card .avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--sage-tint); color: var(--sage-dd);
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
  border: 1px solid var(--line);
}
.match-card .mc-name { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); line-height: 1.1; }
.match-card .mc-sub { font-size: .82rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip {
  font-size: .82rem; font-weight: 500; color: var(--body);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 5px 12px; line-height: 1.2;
}
.chip--sage { background: var(--sage-tint); border-color: #d7ded1; color: var(--sage-dd); }
.chip--clay { background: #f3e9e1; border-color: #e6d3c4; color: #8a5f44; }

.shared-note { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--sage-d); font-weight: 600; }
.shared-note svg { width: 15px; height: 15px; flex: none; }

.event-card {
  position: absolute; z-index: 2;
  left: 0; bottom: 6%;
  width: min(300px, 82%);
  padding: 16px 18px;
  display: grid; gap: 12px;
  transform: rotate(1.2deg);
}
.event-card .ec-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-card .ec-title { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.event-card .world-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; color: #6f4e38;
  background: #f3e9e1; border: 1px solid #e6d3c4; border-radius: var(--pill);
  padding: 4px 11px; white-space: nowrap;
}
.event-card .world-tag .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.event-card .ec-meta { font-size: .86rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.event-card .ec-meta .sep { color: var(--line-2); }

/* ---------- Section head ---------- */
.sec-head { max-width: 60ch; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.sec-head .lede { margin-top: .4em; }

/* ---------- How it works: numbered rail ---------- */
.how { background: var(--paper); position: relative; }
.steps {
  margin-top: clamp(30px, 4vw, 48px);
  position: relative;
  list-style: none;
  margin-left: 0; padding-left: 0;
  counter-reset: step;
  display: grid; gap: clamp(20px, 3vw, 30px);
}
.steps::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(var(--line-2), var(--line));
  border-radius: 2px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px 22px;
  align-items: start;
}
.step .num {
  counter-increment: step;
  position: relative; z-index: 1;
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600;
  color: var(--sage-dd);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 8px 18px -14px rgba(44,53,43,.5);
}
.step .num::after { content: counter(step); }
.step--lead .num { background: var(--sage); color: #fff; border-color: transparent; }
.step .copy { padding-top: 4px; }
.step h3 { font-size: 1.3rem; margin-bottom: .28em; }
.step p { margin: 0 0 .5em; max-width: 56ch; }
.step .aside { font-size: .88rem; color: var(--muted); }

/* vocabulary glossary — the product's own words */
.vocab {
  margin-top: clamp(34px, 5vw, 54px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.vocab .v-head { grid-column: 1 / -1; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 2px; }
.vocab dt { font-weight: 600; color: var(--ink); font-size: .95rem; }
.vocab dd { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }
.vocab .v-item { display: block; }

/* ---------- Getting started: 2-col ---------- */
.getstarted { background: var(--sage-tint); border-block: 1px solid #d7ded1; }
.gs-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(26px, 4vw, 54px); align-items: start; margin-top: clamp(28px,4vw,44px); }

.gs-list { list-style: none; margin: 0; padding: 0; counter-reset: gs; }
.gs-list li {
  position: relative; padding: 0 0 22px 46px;
  border-bottom: 1px solid #d7ded1;
}
.gs-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.gs-list li::before {
  counter-increment: gs;
  content: counter(gs, decimal);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; display: grid; place-items: center;
  font-size: .82rem; font-weight: 600; color: var(--sage-dd);
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 9px;
}
.gs-list b { color: var(--ink); font-weight: 600; }
.gs-list li p { margin: 3px 0 0; font-size: .98rem; }

.gs-side { display: grid; gap: 16px; }
.talk {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow);
}
.talk:last-of-type { box-shadow: none; }
.talk h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); display: flex; align-items: center; gap: 9px; font-weight: 600; }
.talk p { margin: 0; font-size: .95rem; }
.talk .badge { width: 26px; height: 26px; flex: none; display: grid; place-items: center; background: var(--sage-tint); color: var(--sage-dd); border-radius: 8px; }
.talk .badge svg { width: 15px; height: 15px; }

.gs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Privacy ---------- */
.privacy .prose h3 { font-size: 1.2rem; margin-top: 0; margin-bottom: .3em; }
.privacy .prose p { margin-bottom: 1em; }
.privacy .prose ul { list-style: none; padding-left: 0; margin: 0 0 1em; }
.privacy .prose ul li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.privacy .prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--clay); }
.privacy .group { margin-bottom: clamp(22px, 3vw, 30px); }
.note {
  display: flex; gap: 12px; align-items: start;
  background: #f4efe6; border: 1px solid #e4dccb; border-left: 3px solid var(--clay);
  border-radius: var(--r); padding: 14px 18px; font-size: .94rem; color: var(--body);
}
.note svg { width: 19px; height: 19px; flex: none; color: var(--clay-d); margin-top: 1px; }
.meta-line { font-size: .85rem; color: var(--faint); margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.ct-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 4vw, 50px); align-items: start; margin-top: clamp(24px,4vw,40px); }

.ct-intro .email { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--ink); font-weight: 500; }
.ct-intro .email:hover { color: var(--sage-d); text-decoration: none; border-bottom: 1.5px solid var(--clay); }
.placeholder-hint { font-size: .82rem; color: var(--faint); margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.placeholder-hint svg { width: 14px; height: 14px; flex: none; }
.ct-replies { margin-top: 20px; font-size: .95rem; color: var(--muted); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px,3vw,26px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--clay-d); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 14px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: var(--clay-d); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); background: #fff;
  box-shadow: 0 0 0 3px rgba(95,117,96,.16);
}
.form .btn { width: auto; }
.form-note { font-size: .82rem; color: var(--faint); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd3c7; }
.site-footer a { color: #cdd0c5; }
.site-footer a:hover { color: #fff; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding-top: clamp(40px,5vw,60px); }
.foot-brand { max-width: 30ch; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand .mark { background: linear-gradient(160deg, #7d957c, #546851); }
.foot-brand p { color: #aab0a0; font-size: .95rem; margin-top: 14px; }
.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-nav a { font-size: .95rem; padding: 8px 0; display: inline-block; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(28px,4vw,40px); padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: #9aa090; }
.foot-bottom .tag { display: inline-flex; align-items: center; gap: 7px; }
.foot-bottom .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }

/* ---------- Reveal on scroll (respect reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; }
  .gs-grid, .ct-grid { grid-template-columns: 1fr; }
  .vocab { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 10px 16px 14px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .hero-actions .btn--primary { flex: 1; }
  .steps::before { left: 24px; }
  .step { grid-template-columns: 52px 1fr; gap: 14px 14px; }
  .step .num { width: 48px; height: 48px; font-size: 1.15rem; }
  .match-card { width: 92%; }
}

/* Print — reasonable for the privacy / how-it-works text */
@media print {
  .site-header, .hero-visual, .form, .btn, .nav-toggle, .site-footer .foot-nav, .gs-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 20px; }
  .step .num, .card, .talk { box-shadow: none; }
}
