/* ==========================================================================
   SITE - the public pages: landing page and the sign-in / sign-up family.
   Builds on theme.css (tokens and shared components).
   ========================================================================== */

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: calc(100% - 36px); } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header-inner { gap: 12px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 18px 16px; box-shadow: var(--shadow-2);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 6px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-actions { margin-left: auto; }
  .nav-toggle { display: inline-grid; }
  .site-actions .btn-ghost { display: none; }
}
@media (max-width: 420px) {
  .site-actions .btn-primary { padding: 0 12px; font-size: 13.5px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; max-width: 56ch; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .section-tight { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16.5px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.3vw, 68px);
  line-height: 1; letter-spacing: -.04em; font-weight: 700;
  margin: 0 0 24px;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--muted); }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--text); max-width: 50ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { color: var(--success); }

@media (max-width: 980px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-lead { font-size: 17.5px; }
}

/* ---------- Hero demo: who answers ---------- */
.demo { position: relative; }
.demo-switch {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--surface-3); border-radius: var(--radius-pill);
}
.seg button {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 14px;
  border: 0; border-radius: var(--radius-pill); background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg button:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.seg .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.seg button[data-mode="online"][aria-pressed="true"] .dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.seg button[data-mode="away"][aria-pressed="true"] .dot { background: var(--link); }

.demo-stage { position: relative; padding: 0 0 34px 0; }

/* the "website" the bubble lives on */
.site-mock {
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--surface); overflow: hidden;
  height: 430px; box-shadow: var(--shadow-1);
}
.site-mock-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.site-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.site-mock-bar b { flex: 1; max-width: 220px; height: 16px; margin-left: 12px; border-radius: 8px; background: var(--surface-2); }
.site-mock-body { padding: 26px 26px 0; display: grid; gap: 14px; }
.ph { display: block; border-radius: 6px; background: var(--surface-2); height: 12px; }
.ph-title { height: 26px; width: 46%; background: var(--surface-3); }
.ph-w70 { width: 62%; } .ph-w50 { width: 44%; }
.ph-btn { width: 110px; height: 32px; border-radius: 8px; background: var(--surface-3); margin-top: 6px; }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; width: 58%; }
.ph-tiles span { aspect-ratio: 1 / 1.1; border-radius: 10px; background: var(--surface-2); }

/* the chat window */
.chat-mock {
  position: absolute; right: -14px; bottom: 0;
  width: min(336px, 88%);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-3);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; color: #fff;
  background: var(--who, var(--primary));
  transition: background-color .35s var(--ease);
}
.demo[data-mode="online"] .chat-head { --who: #0F1730; }
[data-theme="dark"] .demo[data-mode="online"] .chat-head { --who: #1D294D; }
[data-theme="dark"] .chat-avatar.is-person::after { border-color: #1D294D; }
.demo[data-mode="away"] .chat-head { --who: var(--brand-primary, #2747F5); }
.chat-avatar {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.chat-avatar.is-person { background: var(--accent); color: var(--accent-contrast); }
.chat-avatar.is-person::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
  border-radius: 50%; background: #2FD08C; border: 2px solid #0F1730;
}
.chat-avatar.is-bot { background: rgba(255, 255, 255, .18); color: #fff; }
.chat-who { min-width: 0; line-height: 1.25; }
.chat-who strong { display: block; font-size: 15px; font-weight: 600; }
.chat-who span { font-size: 12.5px; opacity: .78; }

.chat-body {
  height: 268px; padding: 16px 14px 8px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  background: var(--surface-2); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30px);
}
.msg {
  max-width: 84%; padding: 9px 13px; border-radius: 16px;
  font-size: 14px; line-height: 1.42;
  animation: msg-in .32s var(--ease) both;
}
.msg-them { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-me { align-self: flex-end; background: var(--who-bubble, var(--primary)); color: #fff; border-bottom-right-radius: 5px; }
.demo[data-mode="online"] .msg-me { --who-bubble: #0F1730; }
[data-theme="dark"] .demo[data-mode="online"] .msg-me { --who-bubble: #2A3760; }
.msg-label { align-self: flex-start; font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 4px 0 -2px 4px; animation: msg-in .3s var(--ease) both; }
.msg-chips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 92%; animation: msg-in .32s var(--ease) both; }
.msg-chips span {
  padding: 6px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--primary-line); background: var(--surface); color: var(--link);
  font-size: 12.5px; font-weight: 600;
}
.msg-saved {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--success-soft); color: var(--success);
  font-size: 12.5px; font-weight: 600;
  animation: msg-in .32s var(--ease) both;
}
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.1s infinite both; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }

.chat-foot { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-foot span { flex: 1; font-size: 13.5px; color: var(--faint); }
.chat-foot i {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
}
.demo-caption { margin: 2px 0 0; font-size: 14px; color: var(--muted); max-width: 44ch; }

@media (max-width: 980px) {
  .demo-switch { justify-content: flex-start; }
  .chat-mock { right: 0; }
}
@media (max-width: 480px) {
  .site-mock { height: 400px; }
  .chat-mock { width: 92%; }
  .ph-tiles { width: 78%; }
}

/* ---------- A day with the widget ---------- */
.day { display: grid; gap: 34px; }
.day-bar {
  position: relative; display: grid; grid-template-columns: 10fr 9fr 5fr;   /* 12am-10am, 10am-7pm, 7pm-12am */
  height: 54px; border-radius: 14px; overflow: hidden;
  font-size: 13.5px; font-weight: 600;
}
.day-bar span { display: flex; align-items: center; gap: 8px; padding: 0 16px; white-space: nowrap; overflow: hidden; }
.day-bot { background: var(--primary); color: #fff; }
.day-team { background: var(--accent); color: var(--accent-contrast); }
.day-scale { display: flex; justify-content: space-between; margin-top: -24px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.day-moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.moment.is-team { --mark: var(--accent); }
.moment.is-bot { --mark: var(--primary); }
.moment time { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.moment time::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--mark, var(--line-strong)); }
.moment h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; letter-spacing: 0; margin: 8px 0 4px; }
.moment p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .day-bar { font-size: 12px; height: 46px; }
  .day-bar span { padding: 0 10px; }
  .day-bar .icon { display: none; }
  .day-moments { grid-template-columns: 1fr; gap: 22px; }
  .day-scale { margin-top: -22px; }
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--link);
}
.feature.is-human .feature-icon { background: var(--accent-soft); color: var(--accent-text); }
.feature h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: -.005em; margin: 2px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } .feature { padding: 22px 0; } }

/* ---------- Three steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.steps h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.snippet {
  margin-top: 44px; border-radius: var(--radius-m); overflow: hidden;
  background: #0C1226; border: 1px solid #1E2A4A;
}
.snippet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #1E2A4A; color: #98A4C0; font-size: 13px; }
.snippet-bar .btn { --btn-bg: #17223F; --btn-fg: #E6EBFA; --btn-line: #2A3760; }
.snippet-bar .btn:hover { --btn-bg: #1F2C4E; }
.snippet pre { margin: 0; padding: 20px 18px; overflow-x: auto; color: #DCE3F7; font-size: 13.5px; line-height: 1.7; }
.snippet .tk-tag { color: #8EA2FF; } .snippet .tk-attr { color: #FFBE45; } .snippet .tk-str { color: #7BE0B4; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } .snippet { margin-top: 32px; } }

/* ---------- Who it's for ---------- */
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 56px; }
.ask { display: grid; gap: 10px; padding: 6px 0 22px; align-content: start; }
.ask h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0; }
.ask q {
  quotes: none; justify-self: start;
  padding: 12px 18px; border-radius: 20px; border-bottom-left-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 17px; color: var(--ink); line-height: 1.4;
}
.band .ask q { background: var(--bg); }
.ask p { margin: 0; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ask p i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.ask.is-team p i { background: var(--accent); }
@media (max-width: 760px) { .asks { grid-template-columns: 1fr; } .ask q { font-size: 16px; } }

/* ---------- Pricing ---------- */
.pricing {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  background: var(--surface);
}
.pricing-included { padding: 40px; border-right: 1px solid var(--line); }
.pricing-included h3 { font-size: 24px; margin-bottom: 6px; }
.pricing-included > p { color: var(--muted); margin-bottom: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; }
.ticks .icon { color: var(--success); margin-top: 2px; }
.pricing-plans { display: grid; grid-template-rows: auto auto 1fr; background: var(--surface-2); }
.plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px; padding: 28px 36px; border-bottom: 1px solid var(--line); }
.plan-name { font-weight: 600; color: var(--ink); font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-price { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.plan-price small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.plan .btn { grid-row: 1 / span 2; grid-column: 2; }
.plan-trial { padding: 26px 36px 30px; font-size: 15px; color: var(--muted); align-self: center; }
.plan-trial strong { color: var(--ink); }
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
  .pricing-included { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 24px; }
  .plan { padding: 24px; grid-template-columns: 1fr; }
  .plan .btn { grid-row: auto; grid-column: 1; margin-top: 6px; }
  .plan-trial { padding: 22px 24px 26px; }
}

/* ---------- Questions ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-grid .section-head { margin: 0; position: sticky; top: 100px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: -4px 0 22px; color: var(--muted); max-width: 62ch; font-size: 16px; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid .section-head { position: static; }
  .faq summary { font-size: 16px; padding: 17px 2px; }
}

/* ---------- Closing band ---------- */
.closing {
  display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: center;
  padding: 52px 56px; border-radius: var(--radius-l);
  background: #0F1730; color: #C9D2EA;
}
[data-theme="dark"] .closing { background: var(--surface-2); border: 1px solid var(--line); }
.closing h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin: 0 0 10px; }
.closing p { margin: 0; font-size: 17px; max-width: 48ch; }
.closing-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.closing .btn-secondary { --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255, 255, 255, .28); }
.closing .btn-secondary:hover { --btn-bg: rgba(255, 255, 255, .08); }
@media (max-width: 820px) { .closing { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; margin-top: 104px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-about p { margin: 16px 0 0; color: var(--muted); max-width: 34ch; font-size: 15px; }
.footer-col h3 { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 4px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--link); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-base a { color: inherit; }
@media (max-width: 820px) {
  .site-footer { margin-top: 68px; padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-about { grid-column: 1 / -1; }
}

/* ==========================================================================
   Sign in / sign up / password pages
   ========================================================================== */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(24px, 6vw, 72px) 32px; background: var(--bg); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-form { width: 100%; max-width: 408px; margin: auto; padding: 44px 0; }
.auth-form h1 { font-size: clamp(30px, 3.4vw, 38px); letter-spacing: -.03em; margin-bottom: 10px; }
.auth-sub { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.auth-sub strong { color: var(--ink); font-weight: 600; word-break: break-word; }
.auth-form .btn-lg { margin-top: 6px; }
.auth-alt { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.auth-alt a, .auth-link { font-weight: 600; }
.auth-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-row a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.auth-foot { font-size: 13px; color: var(--faint); }
.auth-foot a { color: inherit; }
.auth-legal { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* One step slides out, the next slides in */
.auth-step { animation: step-in .4s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }

/* Password strength: three bars */
.strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); min-height: 18px; }
.strength-bars { display: grid; grid-template-columns: repeat(3, 28px); gap: 4px; }
.strength-bars i { height: 4px; border-radius: 2px; background: var(--surface-3); transition: background-color .2s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warning); }
.strength[data-level="3"] i { background: var(--success); }

/* Six boxes for the emailed code */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 8px; }
.otp input {
  width: 100%; aspect-ratio: 1 / 1.14; min-width: 0; padding: 0;
  text-align: center; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  caret-color: var(--link);
}
.otp input:focus { outline: none; border-color: var(--link); box-shadow: var(--focus-ring); }
.otp input.is-filled { border-color: var(--ink); }
.otp.is-invalid input { border-color: var(--danger); animation: shake .32s; }
@keyframes shake { 20% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.otp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.link-btn { border: 0; background: none; padding: 0; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--faint); cursor: default; text-decoration: none; }

/* Success tick that draws itself */
.done-mark { width: 64px; height: 64px; margin-bottom: 20px; color: var(--success); }
.done-mark circle { stroke: currentColor; opacity: .25; }
.done-mark path { stroke: currentColor; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* The brand side */
.auth-aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: 56px clamp(32px, 5vw, 72px);
  background: #0F1730; color: #C9D2EA;
}
[data-theme="dark"] .auth-aside { background: #070C1B; border-left: 1px solid var(--line); }
.auth-aside h2 { color: #fff; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.035em; line-height: 1.05; margin: 0; max-width: 13ch; }
.auth-aside h2 span { display: block; color: #8EA2FF; }
.aside-thread { display: grid; gap: 9px; max-width: 360px; }
.aside-thread .msg { font-size: 14.5px; max-width: 88%; animation: none; }
.aside-thread .msg-them { background: #18223F; border-color: #26335A; color: #E6EBFA; justify-self: start; }
.aside-thread .msg-me { background: #2747F5; justify-self: end; }
.aside-thread .msg-person { background: #FFAE1F; color: #2B1B00; justify-self: end; border-bottom-right-radius: 5px; }
.aside-who { justify-self: end; font-size: 12px; font-weight: 600; color: #98A4C0; margin: 6px 4px -3px 0; display: inline-flex; align-items: center; gap: 6px; }
.aside-who i { width: 7px; height: 7px; border-radius: 50%; background: #8EA2FF; }
.aside-who.is-person i { background: #FFAE1F; }
.aside-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
.aside-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.aside-points .icon { color: #7BE0B4; margin-top: 2px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 20px 20px 28px; }
  .auth-form { padding: 32px 0; }
}
@media (max-width: 420px) {
  .auth-grid { grid-template-columns: 1fr; }
  .otp { gap: 7px; }
  .otp input { font-size: 22px; border-radius: 10px; }
}
