/* The home page in the calm design (docs/CLAUDE-CODE-REDESIGN-CALM.md, mockups: docs/redesign/calm/home-1280.png, home-375.png). Loaded only
   by index.html, after tokens.css and style.css. Top to bottom: the promise and the waiting list (after launch: the search) beside Jikhva and
   the example card, the popular fields, how it works (one white panel), our experts, a few questions, the dark block for experts.
   A phone is the base; a computer starts at 768px. Colours are tokens only. */
.landing { overflow-x: clip; padding-bottom: 8px; }
.lsection { margin-top: 56px; }
.lsection h2 { font-size: var(--fs-h2); margin: 0 0 22px; }
.only-wide { display: none; }
.tick { flex: 0 0 auto; fill: none; stroke: var(--accent2-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) {
  .lsection { margin-top: 88px; }
  .lsection h2 { margin-bottom: 32px; }
  .only-wide { display: inline; }
  .only-narrow { display: none; }
}

/* ---- 1. The top: text and form; Jikhva and the example card -------------------------------------------------------------------------- */
.lhero-top { display: grid; gap: 36px; padding-top: 28px; }
.lhero-top > * { min-width: 0; }
.lhero-text { text-align: center; }
.lhero-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card);
  color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }
.lhero-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lhero-title { font-size: var(--fs-hero); line-height: 1.12; margin: 14px 0; }
.lhero-title em { font-style: normal; color: var(--headline-accent); }
.lhero-sub { margin: 0 auto; max-width: 30em; color: var(--ink-soft); font-size: 1.06rem; }

/* the form: on a phone the email over a full-width button; on a computer one white row */
.lhero-wait, .lhero-search { margin-top: 28px; text-align: left; }
.wlc-row, .lhero-search { display: grid; gap: 10px; }
.wlc-email { display: block; margin: 0; min-width: 0; }
.wlc-email input, .lhero-search input { width: 100%; min-height: 52px; margin: 0; padding: 0 16px; border: 1px solid var(--field-border); border-radius: var(--r-field); background: var(--card);
  color: var(--ink); font: inherit; font-size: 16px; }
.wlc-email input::placeholder, .lhero-search input::placeholder { color: var(--ink-soft); opacity: 1; }
.wlc-row .btn, .lhero-search .btn { min-height: 52px; font-size: 1rem; white-space: nowrap; }
.waitlist-compact .form-error { margin: 6px 0 0; min-height: 0; }
.waitlist-compact .form-error:empty { display: none; }
.wlc-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 8px; color: var(--ink-soft); font-size: 0.88rem; }
/* (a phone: the age box on its own line, the privacy link and its "?" on the next) */
@media (max-width: 767px) { .wlc-consent .waitlist-age { flex: 1 0 100%; } .wlc-consent .wlc-privacy { margin-top: -8px; } .wlc-consent .wlc-why { margin-top: -8px; } }
.wlc-consent .waitlist-age { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 0.88rem; font-weight: 400; color: var(--ink-soft); cursor: pointer; }
.wlc-consent .waitlist-age input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.wlc-sep { display: none; color: var(--ink-soft); }
.wlc-privacy { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.wlc-why { position: relative; display: inline-block; }
/* (a 44px target around a 20px ring) */
.wlc-why summary { position: relative; list-style: none; display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 -12px; color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.wlc-why summary::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; box-sizing: border-box; border: 1px solid var(--ink-soft); border-radius: 50%; }
.wlc-why summary::-webkit-details-marker { display: none; }
.wlc-why[open] .waitlist-hint { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 4px); transform: translateX(-70%); width: min(280px, 80vw); margin: 0; padding: 12px 14px;
  background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--lift-shadow); font-size: 0.85rem; line-height: 1.5; }
.lhero-count { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.88rem; text-align: left; }
.lhero-count b { color: var(--ink); }
/* The live counter (public/js/landing.js): a slow green dot, the exact number in even-width digits (nothing moves as it counts), a small
   coral pulse when it goes up. With reduced motion: no pulse, no dot animation. */
.lhero-count:not([hidden]) { display: flex; align-items: center; gap: 8px; }
.lhero-count .live-n { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; border-radius: 4px; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 0 rgba(var(--accent2-rgb), 0.5); animation: live-dot 2.4s ease-out infinite; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(var(--accent2-rgb), 0.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(var(--accent2-rgb), 0); } }
.lhero-count .live-n.is-up { animation: live-up 0.7s ease-out; }
@keyframes live-up { 0% { color: var(--accent-text); background: rgba(var(--accent-rgb), 0.18); transform: scale(1.12); } 100% { background: rgba(var(--accent-rgb), 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .live-dot, .lhero-count .live-n.is-up { animation: none; } }
.lhero-wait-skeleton { display: grid; gap: 10px; }
.waitlist-compact + .waitlist-done, .lhero-wait .waitlist-done { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
@media (min-width: 768px) {
  .lhero-top { grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 56px; }
  .lhero-text { text-align: left; }
  .lhero-title { margin: 18px 0; }
  .lhero-sub { margin: 0; font-size: 1.19rem; }
  .lhero-wait, .lhero-search { margin-top: 30px; }
  .wlc-row, .lhero-search { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; max-width: 520px; padding: 6px; background: var(--card); border: 1px solid var(--field-border);
    border-radius: 18px; }
  .wlc-sep { display: inline; }
  .wlc-email input, .lhero-search input { border: 0; background: none; min-height: 48px; }
  .wlc-row .btn, .lhero-search .btn { min-height: 48px; padding: 0 24px; }
}

/* the example card: Jikhva in front of the tint circle, the card beside him (on a phone under him) */
.lhero-chat { position: relative; display: flex; flex-direction: column; align-items: center; }
.lhero-chat::before { content: ""; position: absolute; left: 50%; top: 0; width: 220px; height: 170px; margin-left: -110px; border-radius: 50%; background: var(--tint); }
.lhero-jikhva { position: relative; width: auto; height: 160px; margin-bottom: -8px; pointer-events: none; }
.qa-phone { position: relative; width: 100%; margin: 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); text-align: left;
  min-height: 286px; }
.qa-label { margin: 0; color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; }
.qa-example-foot { display: none; }
.qa-label .qa-name { display: none; }
.qa-example:not([hidden]) ~ .qa-field::before { content: " · "; }
.qa-q { margin: 8px 0 12px; font-weight: 700; font-size: 1.04rem; line-height: 1.45; }
.qa-qtext { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.qa-cur { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -2px; }
.qa-sent { display: none; }
.qa-typing { display: flex; gap: 4px; padding: 4px 0 4px 16px; }
.qa-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); }
.qa-a { padding-left: 14px; border-left: 2px solid var(--accent); color: var(--ink-soft); font-size: 0.94rem; }
.qa-aname { display: block; margin-bottom: 2px; color: var(--accent2-text); font-size: 0.82rem; font-weight: 700; }
.qa-atext { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.qa-rate { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-soft); font-size: 0.8rem; }
.qa-stars { display: inline-flex; gap: 1px; color: var(--gold-text); }
.qa-stars i { font-style: normal; }
.qa-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.qa-adays { font-style: normal; color: var(--accent2-text); font-size: 0.82rem; }
.qa-dots { display: inline-flex; gap: 4px; }
.qa-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.qa-dots i.is-on { width: 14px; border-radius: 3px; background: var(--accent); }
@media (max-width: 359px) { .qa-phone { min-height: 312px; } }
@media (min-width: 768px) {
  .lhero-chat { display: block; height: 400px; }
  .lhero-chat::before { left: auto; right: -20px; top: 20px; width: 300px; height: 300px; margin: 0; }
  .lhero-jikhva { position: absolute; right: 6px; top: 26px; height: 320px; margin: 0; }
  /* (anchored at the top: a longer answer grows the card downwards inside this fixed-height box, and nothing on the page moves) */
  .qa-phone { position: absolute; left: 0; top: 44px; width: min(290px, 62%); min-height: 0 !important; padding: 22px; box-shadow: var(--lift-shadow); }
  .qa-example { display: none; }
  .qa-example-foot:not([hidden]) { display: inline; }
  .qa-qtext { -webkit-line-clamp: 3; line-clamp: 3; }
  .qa-atext { -webkit-line-clamp: 4; line-clamp: 4; }
}

/* ---- 4. The popular fields: one swipe row on a phone ----------------------------------------------------------------------------------- */
.lhero-fields { margin-top: 28px; }
.lhero-fields-label { display: none; color: var(--ink-soft); font-size: 0.82rem; }
.lhero-chips { display: flex; gap: 8px; list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.lhero-chips::-webkit-scrollbar { display: none; }
.lhero-chips li { flex: 0 0 auto; }
.lhero-chips .skeleton-chip { display: block; height: 44px; }
.lchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--ink);
  font: inherit; font-size: 0.88rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.lchip:hover { border-color: var(--ink-soft); }
.lchip[aria-pressed="true"] { border-color: var(--border-strong); background: var(--tint); }
@media (min-width: 768px) {
  .lhero-fields { display: flex; align-items: center; gap: 10px; margin-top: 40px; }
  .lhero-fields-label { display: inline; }
  .lhero-chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}

/* ---- 5. How it works: one white panel ---------------------------------------------------------------------------------------------- */
.lband { margin: 0 -8px; padding: 32px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.lsection .lband h2 { text-align: center; margin-bottom: 26px; }
.lsteps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.lstep { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
.lstep-n { grid-row: span 2; display: inline-grid; place-items: center; width: 36px; height: 36px; margin-top: 2px; border: 1.5px solid var(--border-strong); border-radius: 50%; background: var(--card);
  font-family: var(--font-display); font-weight: 700; font-size: 0.94rem; }
.lstep h3 { margin: 0; font-family: var(--font-body); font-size: 1.1rem; letter-spacing: 0; line-height: 1.35; }
.lstep p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.lticks { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; color: var(--ink-soft); font-size: 0.9rem; }
.lticks li { display: flex; align-items: center; gap: 6px; }
.lband-more { margin: 10px 0 0; font-size: 0.9rem; }
.lband-more .arrow-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) {
  .lband { margin: 0; padding: 48px 40px 36px; border-radius: var(--r-panel); }
  .lsection .lband h2 { margin-bottom: 36px; }
  .lsteps { grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
  .lsteps::before { content: ""; position: absolute; left: 17%; right: 17%; top: 18px; border-top: 1.5px dashed var(--line); }
  .lstep { display: block; position: relative; }
  .lstep-n { margin: 0 0 14px; }
  .lticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 40px; padding-top: 28px; }
  .lband-more { text-align: center; }
}

/* ---- 6. Meet our experts ----------------------------------------------------------------------------------------------------------- */
.lsection-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.lsection .lsection-head h2 { margin: 0; }
.lmore { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.lmore:hover { text-decoration: underline; }
.lexpert-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lexpert { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.lexpert > .avatar, .lexpert > .lexpert-avatar { grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; font-size: 1.1rem; }
.lexpert-name { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.1rem; }
.lexpert-name a { color: inherit; text-decoration: none; }
.lexpert-name a:hover { text-decoration: underline; }
.lexpert-role { grid-column: 2; grid-row: 2; margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.lexpert-verified { grid-column: 2; grid-row: 3; margin: 0; color: var(--accent2-text); font-size: 0.82rem; }
.lexpert-about { grid-column: 1 / -1; grid-row: 4; margin: 12px 0 0; }
.lexpert-bio { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.5; }
.lexpert .lexpert-more { font-size: 0.88rem; }
.lexpert-tags { display: none; }
.lexpert-foot { grid-column: 1 / -1; grid-row: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.lexpert-foot strong { font-family: var(--font-display); font-size: 1.06rem; }
@media (min-width: 768px) {
  .lsection-head { margin-bottom: 28px; }
  /* (one or two mentors: their cards keep a third of the row each, in the middle) */
  .lexpert-grid { display: flex; justify-content: center; gap: 20px; }
  .lexpert { flex: 0 1 calc((100% - 40px) / 3); }
  .lexpert { padding: 24px; align-content: start; }
}

/* ---- 7. A few questions ------------------------------------------------------------------------------------------------------------- */
.lfaq h2 { text-align: center; }
.lfaq-list { max-width: 680px; margin: 0 auto; }
.lfaq-list h3 { margin: 0; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; }
.lfaq-more { max-width: 680px; margin: 8px auto 0; }
.lfaq-more .arrow-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- 8. For experts: the dark block --------------------------------------------------------------------------------------------------- */
.lmentor-card { position: relative; overflow: hidden; padding: 28px 24px 26px; background: var(--band); color: var(--on-band); border-radius: var(--r-card); }
.lsection .lmentor-card h2 { margin: 0; font-size: 1.38rem; color: var(--on-band); }
.lmentor-text p { margin: 6px 0 20px; max-width: 13.5em; color: var(--on-band-soft); font-size: 0.94rem; }
.lmentor-jikhva { position: absolute; right: 6px; bottom: -8px; width: auto; height: 110px; pointer-events: none; }
@media (min-width: 768px) {
  .lmentor-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; }
  .lmentor-text p { max-width: none; }
  .lmentor-jikhva { position: static; height: 190px; margin: -40px 10px -60px 0; }
}

/* ---- The pinned button (a phone): "ჩაეწერე სიაში" (after launch: "იპოვე ექსპერტი"), hidden while the top form is on screen ------------- */
.home-pin { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: var(--r-btn); background: var(--accent-strong); color: var(--on-accent); font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(var(--shadow-rgb), 0.25); }
.home-pin[hidden] { display: none; }
@media (max-width: 767px) { body.home { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 768px) { .home-pin { display: none !important; } }

/* ---- The header's own button on the home page: "ჩაეწერე" before launch ("იპოვე ექსპერტი" after), instead of "Sign up" ----------------- */
body.home #navLoggedOut .btn-primary:not(.nav-cta) { display: none; }

/* "Find your mentor" on the home page (docs/CLAUDE-CODE-MENTOR-MATCH.md): before launch one small row under the waiting list (the list
   stays the only big button); after launch a card under the search. */
.lhero-match { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink-soft); text-align: left; }
.lhero-match a { color: var(--accent-text); font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.lhero-match a:hover { text-decoration: underline; }
.lhero-match-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); color: var(--ink); text-decoration: none; text-align: left; }
.lhero-match-jikhva { grid-row: 1 / span 2; width: auto; height: 72px; }
.lhero-match-text { display: grid; gap: 2px; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }
.lhero-match-text strong { font-size: 1rem; color: var(--ink); }
.lhero-match-btn { grid-column: 2; justify-self: start; min-height: 44px; }
.lhero-match-wrap { margin-top: 18px; }
.lhero-match-wrap .lhero-match-card { margin: 0; max-width: 560px; }
@media (min-width: 900px) { .lhero-match-wrap .lhero-match-card { grid-template-columns: auto minmax(0, 1fr) auto; max-width: none; } .lhero-match-wrap .lhero-match-jikhva { grid-row: auto; height: 60px; } .lhero-match-wrap .lhero-match-btn { grid-column: 3; } }
