/* Shul Engine (shulengine.com). Warm paper and ink, Libre Caslon for headings, Hanken Grotesk for text; the shuls'
   own sites supply the colour. Hairlines, no boxes; no small capitals above headings. */
:root {
  --paper: #f6f3ee; --sheet: #fbfaf7; --ink: #15171a; --ink-2: #3c4045; --muted: #6b6f74;
  --line: rgba(21, 23, 26, .12); --line-2: rgba(21, 23, 26, .22);
  --accent: #7b2f27; --accent-dk: #5e231d;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --shadow: 0 30px 60px -30px rgba(21, 23, 26, .35), 0 10px 22px -16px rgba(21, 23, 26, .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 17px/1.6 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 400; margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
h3 { font-family: var(--serif); }
p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; font-weight: 500; }
.link:hover { text-decoration-color: currentColor; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 243, 238, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.word { font: 400 1.45rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
.top .btn { height: 40px; padding: 0 18px; font-size: .9rem; }

/* Hero: the words beside a real shul's site, on a computer and a phone. */
.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; }
.lede { margin-top: 24px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 34em; }
.actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.hero-art { position: relative; padding: 0 8% 9% 0; }
.hero-art .desk { border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-art .phone { position: absolute; right: 0; bottom: 0; width: 23%; border-radius: 22px; border: 5px solid var(--ink); box-shadow: var(--shadow); }

/* Section heads */
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
.sec-head p { font-size: 1.05rem; max-width: 40em; }

/* The shuls */
.shuls { padding: clamp(56px, 9vh, 110px) 0; background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shul-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 28px; }
.shul { grid-column: span 2; display: flex; flex-direction: column; text-decoration: none; }
.shul.big { grid-column: span 3; }
.shul img { border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(21, 23, 26, .45); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.shul:hover img { transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(21, 23, 26, .5); }
.shul .name { margin-top: 16px; font: 400 1.3rem/1.2 var(--serif); color: var(--ink); }
.shul .place { margin-top: 3px; color: var(--muted); font-size: .92rem; }

/* What it does */
.what { padding: clamp(56px, 9vh, 110px) 0 clamp(40px, 6vh, 80px); }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vh, 56px) 0; border-bottom: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature.flip .f-text { order: 2; }
.f-text h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; }
.f-text p { margin-top: 16px; }
.f-art img { border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.f-art.pair { position: relative; padding-bottom: 10%; padding-right: 12%; }
.f-art.pair .over { position: absolute; right: 0; bottom: 0; width: 46%; }

.office { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); padding-top: clamp(36px, 6vh, 64px); }
.office-head h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; }
.office-head p { margin-top: 16px; }
.office-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.office-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.office-list dt { font: 400 1.08rem/1.3 var(--serif); color: var(--ink); }
.office-list dd { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }

/* Phones band */
.band { padding: clamp(48px, 8vh, 96px) 0; background: var(--ink); color: #e9e5dd; }
.band-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.band img { border-radius: 24px; border: 5px solid #2a2d31; }
.band img:nth-child(2) { transform: translateY(-6%); }
.band p { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.25 var(--serif); color: #f4f1ea; }

/* How it works */
.how { padding: clamp(56px, 9vh, 110px) 0 clamp(40px, 6vh, 72px); }
.how .sec-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--line-2); }
.steps li::before { content: counter(step); display: block; font: 400 2.4rem/1 var(--display); color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-size: 1.35rem; line-height: 1.25; }
.steps p { margin-top: 10px; }

/* Ask for a demo */
.demo { padding: clamp(56px, 9vh, 110px) 0; background: var(--sheet); border-top: 1px solid var(--line); }
.demo-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.demo h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
.demo-text p { margin-top: 18px; font-size: 1.08rem; max-width: 30em; }
.form { display: flex; flex-direction: column; gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form label:has(.opt) { display: block; }
.form label:has(.opt) input, .form label:has(.opt) textarea { margin-top: 7px; }
input, textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 2px; padding: 12px 14px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 23, 26, .08); }
textarea { resize: vertical; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.msg { font-size: .95rem; }
.msg.ok { color: #2d6a46; }
.msg.err { color: var(--accent); }
.form.sent label, .form.sent button { opacity: .5; pointer-events: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: baseline; }
.foot .word { font-size: 1.15rem; margin-right: auto; }

/* Gentle reveal as sections come into view (skipped for reduced motion, and if scripts don't run). */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .shul img { transition: none; } }

@media (max-width: 980px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero-in, .sec-head, .feature, .feature.flip, .office, .demo-in { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .f-text { order: 0; }
  .shul-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shul, .shul.big { grid-column: span 1; }
  .shul.big:first-child { grid-column: span 2; }
  .band-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band p { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-in { height: 60px; gap: 16px; }
  .word { font-size: 1.25rem; }
  .top .btn { height: 38px; padding: 0 14px; }
  .shul-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shul.big:first-child { grid-column: span 1; }
  .office-list, .row2 { grid-template-columns: minmax(0, 1fr); }
  .band-in { gap: 10px; }
  .band img { border-width: 3px; border-radius: 16px; }
}
