/* UX pass 2026-11-17: order, spacing and discoverability. Presentation only; no feature changes. Loaded last on purpose. */

/* ---------------------------------------------------------------- side menu: three groups, "Log out" apart */
.side-grp{ font:700 10.5px/1 var(--font-ui, 'Manrope', sans-serif); letter-spacing:.09em; text-transform:uppercase; color:var(--text-dim); padding:9px 4px 3px; }
.side-footer > .side-grp:first-child{ padding-top:0; }
#logoutBtn{ margin-top:8px; border-top:1px solid var(--line); border-radius:0 0 14px 14px; padding-top:11px; }

/* ---------------------------------------------------------------- "Discover Tharvik" row above the message box */
.disc-rail{ display:none; margin:0 24px 8px; position:relative; z-index:1; }
.disc-rail.show{ display:block; }
.disc-rail.typing{ display:none; }
#attachPreview.show ~ .disc-rail{ display:none; }
.disc-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.disc-label{ font:700 10.5px/1 var(--font-ui, 'Manrope', sans-serif); letter-spacing:.09em; color:var(--text-dim); }
.disc-x{ flex-shrink:0; width:30px; height:26px; border:0; background:transparent; color:var(--text-dim); font-size:19px; line-height:1; cursor:pointer; border-radius:50%; }
.disc-x:hover{ color:var(--text); background:var(--panel-2); }
.disc-list{ display:flex; gap:8px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding-bottom:2px; }
.disc-list::-webkit-scrollbar{ display:none; }
.disc-card{
  flex:0 0 auto; display:flex; align-items:center; gap:10px; min-width:172px; max-width:232px; padding:9px 13px 9px 10px; border-radius:16px; cursor:pointer; text-align:left;
  background:var(--panel); border:1px solid var(--line-strong, var(--line)); color:var(--text); font:inherit;
  transition:border-color .15s, background-color .15s, transform .12s;
}
.disc-card:hover{ border-color:var(--gold); background:var(--panel-2); }
.disc-card:active{ transform:scale(.98); }
.disc-card:focus-visible, .disc-x:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.disc-ic{ flex:none; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--accent-tint); color:var(--gold); }
.disc-ic svg{ width:18px; height:18px; }
.disc-tt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.disc-tt b{ font:700 13.5px/1.2 var(--font-ui, 'Manrope', sans-serif); }
.disc-tt small{ font:500 11.5px/1.25 var(--font-ui, 'Manrope', sans-serif); color:var(--text-dim); }
@media (prefers-reduced-motion: reduce){ .disc-card{ transition:none; } .disc-card:active{ transform:none; } }

@media (min-width:700px){ #app #chatDiscover{ margin-left:var(--gut); margin-right:var(--gut); } }   /* same column as the message box on tablets and computers */
.lp-login{ white-space:nowrap; }

/* ---------------------------------------------------------------- calendar: a one-line key for the rings */
.cal-legend{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 16px; margin:12px 0 4px; font:600 11.5px/1 var(--font-ui, 'Manrope', sans-serif); color:var(--text-dim); }
.cal-legend span{ display:inline-flex; align-items:center; gap:6px; }
.lg-ring{ display:inline-block; width:12px; height:12px; border-radius:50%; box-sizing:border-box; flex:none; }
.lg-ring.done{ background:var(--gold); }
.lg-ring.part{ background:conic-gradient(var(--gold) 0 55%, var(--line-strong, var(--line)) 0); }
.lg-ring.rec{ border:2px solid var(--blue, #5b9bff); }
.lg-ring.today{ border-radius:4px; border:2px solid var(--gold); }

/* ---------------------------------------------------------------- sign-up questions */
#setup .q-options[data-field="goal"]{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#setup .q-options[data-field="goal"] .q-opt{ padding:13px 12px; gap:10px; min-height:62px; font-size:14.5px; line-height:1.25; text-align:left; }
#setup .q-options[data-field="goal"] .q-opt:nth-child(3), #setup .q-options[data-field="goal"] .q-opt:last-child{ grid-column:1/-1; }
#toneGrid .tone-opt{ display:flex; flex-direction:column; gap:7px; }
#toneGrid .tone-opt::after{ content:attr(data-sample); font:500 12px/1.35 var(--font-ui, 'Manrope', sans-serif); font-style:italic; color:var(--text-dim); }
#toneGrid .tone-opt.selected::after{ color:var(--text); }

/* ---------------------------------------------------------------- landing, phones: the feature cells fold */
.lp-fold-btn{ display:none; }
@media (max-width:767px){
  /* the first screen shows the product, not only the promise: the two buttons share one row and the copy is a little tighter */
  .lp-hero-copy{ gap:18px; }
  .lp-hero .lp-lede{ font-size:16px; line-height:1.5; }
  .lp-cta-row{ flex-wrap:nowrap; }
  .lp-cta-row .lp-btn{ flex:1 1 0; min-width:0; padding-inline:10px; white-space:nowrap; }

  .lp-bento > .lp-cell:not(.is-open) .lp-cell-shot,
  .lp-bento > .lp-cell:not(.is-open) .lp-cal-phones,
  .lp-bento > .lp-cell:not(.is-open) .lp-team-phones,
  .lp-bento > .lp-cell:not(.is-open) .streak-demo,
  .lp-bento > .lp-cell:not(.is-open) .feature-chips{ display:none; }
  .lp-bento{ gap:14px; }
  .lp-fold-btn{
    display:inline-flex; align-items:center; gap:8px; align-self:flex-start; min-height:40px; padding:0 16px; border-radius:999px; cursor:pointer;
    background:transparent; color:var(--gold); border:1px solid var(--line-strong, var(--line)); font:700 13.5px/1 var(--font-ui, 'Manrope', sans-serif);
  }
  .lp-fold-btn::after{ content:''; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
  .lp-cell.is-open .lp-fold-btn::after{ transform:rotate(225deg) translateY(-2px); }
  .lp-fold-btn:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
  .lp-fold-less{ display:none; }
}
@media (max-width:359px){
  /* 320 px: two buttons on a row may wrap their words; the top bar gets a little tighter so "Log in" fits */
  .lp-cta-row .lp-btn{ white-space:normal; line-height:1.15; font-size:15px; text-align:center; }
  .lp-nav-in{ gap:5px; }
  .lp-word{ font-size:16px !important; letter-spacing:.06em !important; }
  .lp-nav .lang-opt{ padding:8px 3px; }
}
@media (max-width:767px){
  .lp-cell.is-open .lp-fold-more{ display:none; }
  .lp-cell.is-open .lp-fold-less{ display:inline; }
}
