/* The per-project pages. The palette is the home page's (tailwind.config.js): paper #F5F2ED,
   ink #2D2D2D, terracotta #A45A36 for text (passes AA on paper and white). */
:root { --paper: #F5F2ED; --paper-light: #FAF8F4; --card: #fff; --ink: #2D2D2D; --ink-soft: #5b554e; --terra: #A45A36; --terra-bg: #F1E4DA; --line: rgba(45,45,45,.12); --dark: #1F1C19; --on-dark: #F3EFE9; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Assistant', 'Segoe UI', Arial, sans-serif; font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { background: var(--dark); color: var(--on-dark); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; }
.top a { color: var(--on-dark); text-decoration: none; font-weight: 600; padding-block: 12px; }
.top a:hover { text-decoration: underline; }
.brand { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 20px; }
.serif { font-family: 'Frank Ruhl Libre', serif; }
h1, h2, h3 { font-family: 'Frank Ruhl Libre', serif; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 5.5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); }
.hero { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 18px; }
.mark { height: 40px; display: flex; align-items: center; }
.mark img { height: 36px; width: auto; }
.mark.on-ink { background: var(--dark); border-radius: 10px; padding: 8px 14px; height: auto; align-self: flex-start; }
.mark span { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 28px; color: var(--ink-soft); }
.lead { font-size: 21px; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 600; }
.own { display: flex; gap: 12px; align-items: flex-start; background: var(--terra-bg); border-radius: 14px; padding: 14px 18px; max-width: 760px; margin: 0; }
.own b { color: var(--terra); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); margin: 0; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; }
.stats dd { order: 1; margin: 0; font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: clamp(30px, 6vw, 40px); line-height: 1.1; color: var(--terra); font-variant-numeric: tabular-nums; }
.stats dt { order: 2; color: var(--ink-soft); font-size: 16px; }
.note { color: var(--ink-soft); font-size: 15px; margin: 8px 0 0; }
.block { padding-block: 40px; }
.challenge { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.label { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--terra); margin: 0; }
.challenge p { margin: 0; max-width: 70ch; }
/* The features as a tour: the list on one side, one screenshot on the other. A click on a feature
   opens its text and swaps the screenshot; on a phone the screenshot sits under the open item. */
.tour { display: grid; gap: 20px 36px; align-items: start; margin-top: 24px; }
@media (min-width: 900px) { .tour { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } .tour-stage { position: sticky; top: 24px; } }
.tour-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tour-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font: 700 18px/1.3 'Frank Ruhl Libre', serif; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.tour-item:hover { border-color: var(--terra); }
.tour-item .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font: 700 14px/1 'Assistant', sans-serif; color: var(--terra); }
.tour-list li.on .tour-item { background: var(--terra-bg); border-color: var(--terra); }
.tour-list li.on .tour-item .num { background: var(--terra); color: #fff; }
.tour-p { display: none; margin: 0; padding: 10px 16px 6px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.tour-list li.on .tour-p { display: block; }
.tour-stage { min-width: 0; }
.tour-list li .tour-stage { margin-top: 10px; }
.tour-media { display: none; }
.tour-media.on { display: block; animation: tour-in .35s ease; }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour-media .browser img { width: 100%; max-height: 66vh; object-fit: contain; object-position: top; background: var(--card); }
.tour-note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 280px; background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 32px; text-align: center; color: var(--ink-soft); }
.tour-note b { font: 700 22px/1.3 'Frank Ruhl Libre', serif; color: var(--ink); }
.tour-hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; }
.browser a { cursor: zoom-in; position: relative; }
.browser a::after { content: "לחצו להגדלה"; position: absolute; inset-inline-start: 10px; bottom: 10px; background: rgba(31,28,25,.78); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; opacity: 0; transition: opacity .15s; }
.browser a:hover::after, .browser a:focus-visible::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,18,16,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox button { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #1F1C19; font-size: 24px; cursor: pointer; }
/* Inside the home page's popup the page drops its own top bar and footer. */
html.embedded .top, html.embedded .foot, html.embedded .others-block { display: none; }
html.embedded .hero { padding-top: 32px; }
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(45,35,25,.35); min-width: 0; }
.browser .bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--paper-light); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c8; }
.browser a { display: block; }
.phones { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; min-width: 0; }
.phone { width: min(210px, 40vw); border: 8px solid #1F1C19; border-radius: 30px; overflow: hidden; background: #1F1C19; box-shadow: 0 18px 40px -20px rgba(45,35,25,.45); }
.phone img { border-radius: 22px; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--ink-soft); padding: 8px 4px 0; }
.extra { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.extra li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.cta { background: var(--dark); color: var(--on-dark); border-radius: 22px; padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta p { margin: 0; color: #d8d0c6; max-width: 60ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: #C9774F; color: #1F1C19; }
.btn.ghost { border: 1.5px solid #8a8077; color: var(--on-dark); }
.btn:hover { filter: brightness(1.06); }
.others { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); list-style: none; padding: 0; margin: 16px 0 0; }
.others a { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; text-decoration: none; color: var(--ink); height: 100%; }
.others a:hover { border-color: var(--terra); }
.others b { font-family: 'Frank Ruhl Libre', serif; font-size: 20px; }
.others span { color: var(--ink-soft); font-size: 15px; }
.foot { text-align: center; padding: 24px 16px 48px; color: var(--ink-soft); font-size: 15px; }
.foot a { color: var(--ink-soft); }
