/* Connect public site (home, shaddchanim, singles, communities, trust, about).
   One light look on purpose, matching the white promo videos and the logo.
   Layout: a 1120px column; each section is a two-part row (words + picture) or a row of equal tiles. */
:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #e6e8ee;
  --soft: #f4f7fb;
  --blue: #1396d7;
  --blue-dark: #0d76ab;
  --pink: #e05ea5;
  --pink-soft: #fdeef6;
  --pink-text: #b8337d; /* pink for small text: passes AA on white and pink-soft */
  --display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.top .brand img { height: 24px; width: auto; }
.top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--fg); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--blue); }
.top nav a[aria-current="page"] { border-bottom-color: var(--fg); }
.top nav a.u-pink[aria-current="page"] { border-bottom-color: var(--pink); }
.top nav a.u-blue[aria-current="page"] { border-bottom-color: var(--blue); }
.top nav a.u-purple[aria-current="page"] { border-bottom-color: #6b5b95; }
.top nav a.u-pink:hover { color: var(--pink-text); }
.top nav a.u-blue:hover { color: var(--blue); }
.top nav a.u-purple:hover { color: #6b5b95; }
.top nav a.u-ink:hover { color: var(--fg); border-bottom-color: var(--line); }
.top .actions { margin-left: auto; display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap; border: 1.5px solid var(--fg); color: var(--fg); background: transparent; cursor: pointer; }
.btn:hover { background: var(--soft); }
.btn.solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.solid:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.big { height: 52px; padding: 0 26px; font-size: 17px; }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 600; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; max-width: 60ch; }
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--pink-text); }
.muted { color: var(--muted); }

/* Sections */
section { padding-block: 88px; }
section + section { border-top: 1px solid var(--line); }
section.tint { background: var(--soft); border-top: 0; }
section.tint + section { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.narrow { max-width: 820px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.tile p { color: var(--muted); font-size: 16px; }
.tile .more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.tile .more:hover { text-decoration: underline; }
.tile .tag { align-self: flex-start; font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--pink-text); background: var(--pink-soft); padding: 6px 9px; border-radius: 999px; }

/* Hero */
.hero { padding-block: 72px 88px; }
.hero .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.hero h1 .dot { color: var(--pink); }
.hero h1.script { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; }
.hero h1.script .ln { display: block; }
.hero h1.script .end-pink { color: var(--pink); }  /* last line in the page's own color */
.hero h1.script .end-blue { color: var(--blue); }
.hero h1.script .stop { color: var(--fg); }
.motion .hero h1.script .ln { opacity: 0; transform: translateY(.55em) scale(.96); filter: blur(14px); animation: line-in 1.1s cubic-bezier(.16,.8,.24,1) forwards; animation-delay: .25s; }
.motion .hero h1.script .ln:nth-child(2) { animation-delay: .75s; }
.motion .hero h1.script .ln:nth-child(3) { animation-delay: 1.25s; }
.motion .hero h1.script .ln:nth-child(4) { animation-delay: 1.75s; }
.motion .hero h1.script .ln:nth-child(5) { animation-delay: 2.25s; }
@keyframes line-in { to { opacity: 1; transform: none; filter: none; } }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.stores a:not(.btn) { display: block; }
.stores img { height: 48px; width: auto; }
.hero .login-line { font-size: 15px; color: var(--muted); }

/* Phone with video */
.phone { position: relative; justify-self: center; width: clamp(240px, 23vw, 300px); max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #15171c; box-shadow: 0 30px 60px -20px rgba(19, 40, 80, .35); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: contain; border-radius: 33px; background: #fff; }
/* Sound button: inside the screen, top right, in the white strip above the 9:16 video (so it never covers the video's red counter) */
.phone .sound { position: absolute; top: 18px; right: 20px; height: 30px; padding: 0 12px 0 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font: 600 13px/1 var(--body); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(19,40,80,.5); }
.phone .sound:not(.used) { animation: sound-pulse 2.2s ease-in-out infinite; }
@keyframes sound-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(19,150,215,.45); } 50% { box-shadow: 0 0 0 8px rgba(19,150,215,0); } }
@media (prefers-reduced-motion: reduce) { .phone .sound:not(.used) { animation: none; } }
.phone .sound svg { width: 17px; height: 17px; flex: none; }
.phone .sound:hover { background: var(--blue-dark); }

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; counter-reset: step; }
.steps li { list-style: none; border-top: 3px solid var(--blue); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before { content: "Step " counter(step); font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.steps li p { color: var(--muted); font-size: 16px; }
.steps { padding: 0; margin-bottom: 0; }

/* Checklist (the promo's own motif) */
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks b { font-weight: 600; }

/* Who-sees-what table */
.table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font: 600 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
td:first-child { font-weight: 600; width: 30%; }

/* Contact band */
.contact { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
a.number { align-self: flex-start; font: 600 clamp(30px, 3.6vw, 44px)/1.1 var(--display); letter-spacing: -0.035em; color: var(--fg); text-decoration: none; }
.hero a.number { font-size: clamp(32px, 4vw, 48px); }
a.number:hover { color: var(--blue); }
.callout { background: var(--pink-soft); border-radius: 18px; padding: 22px 26px; }

/* Communities use the app's community purple (AppColors.kCommunityPurple*) */
.purple main { --blue: #6b5b95; --blue-dark: #55487a; --soft: #efeaf7; --pink-text: #6b5b95; --pink-soft: #efeaf7; --line: #ddd3ee; }
.purple main .btn:not(.solid) { border-color: #6b5b95; color: #6b5b95; }
.tile.purple-tile { background: #efeaf7; border-color: #ddd3ee; }
.tile.purple-tile .more { color: #6b5b95; }
.tile:has(.more) { position: relative; transition: background-color .2s, border-color .2s, transform .2s; }
.tile .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* whole tile is the link */
.tile:has(.more):hover { transform: translateY(-2px); }
.tile.purple-tile:hover { background: #e4dcf2; border-color: #cfc2e8; }
.tile.pink-tile { background: var(--pink-soft); border-color: #f6d3e6; }
.tile.pink-tile .more { color: var(--pink-text); }
.tile.pink-tile:hover { background: #fadbeb; border-color: #f1bdd9; }
.tile.blue-tile { background: #e8f4fb; border-color: #cbe5f4; }
.tile.blue-tile .more { color: var(--blue-dark); }
.tile.blue-tile:hover { background: #d7ebf8; border-color: #b4d8ef; }

/* WhatsApp icon next to WhatsApp links */
.wa-icon { width: 1em; height: 1em; fill: #25d366; flex: none; vertical-align: -0.14em; margin-right: .3em; }
a.wa { white-space: nowrap; }
a.number { display: inline-flex; align-items: center; }
a.number .wa-icon { width: .8em; height: .8em; margin-right: .25em; vertical-align: 0; }
.btn .wa-icon { fill: currentColor; margin-right: 0; width: 1.15em; height: 1.15em; vertical-align: 0; }
.wa-title { display: flex; align-items: center; gap: 8px; }
.wa-title .wa-icon { margin: 0; width: 24px; height: 24px; }

/* Get the app: QR code card */
.qr-row { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.qr { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 10px 30px -18px rgba(19, 40, 80, .35); }
.qr img { width: 132px; height: 132px; }
.qr-row p { max-width: 26ch; font-size: 15px; }

/* Scroll animations (only with class "motion" on <html>: JS on, reduced motion off) */
.motion .reveal { opacity: 0; transform: translateY(60px) scale(.97); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), background-color .2s, border-color .2s; }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .tile.reveal.in:hover { transform: translateY(-2px); transition-delay: 0s !important; }

/* Scroll story hero (class "on" is added by the script on big screens with motion allowed) */
.story.on { height: 240vh; padding: 0; }
.story.on .sticky { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; align-items: center; }
.story.on .sticky > .wrap { width: 100%; }
.story.on h1.script .ln { animation: none !important; opacity: .16; filter: none; transform: none; will-change: opacity, transform; }
.story.on .phone { transform-origin: 50% 70%; will-change: transform; }

.story.on .lede.words { color: var(--fg); }

/* Connections pages use blue for labels */
.blue main { --pink-text: var(--blue-dark); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue); }

/* Narrow screens: the site is built for desktop, but nothing breaks if opened on a phone */
@media (max-width: 900px) {
  /* Phones: logo + buttons on one row, the menu as a swipeable row under it */
  body { overflow-x: clip; }
  .top .wrap { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-top: 10px; padding-bottom: 0; }
  .top .brand img { height: 20px; }
  .top .actions { gap: 8px; }
  .top .actions .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .top nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .lede { font-size: 18px; }
  .qr-row { display: none; }  /* scanning a code on the phone you're holding makes no sense */
  .split, .hero .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .tiles, .tiles.two, .steps { grid-template-columns: 1fr; }
  section { padding-block: 56px; }
}
