/* v6.5 — pricing, trial, chat assistant, shared page chrome. Does not alter the v6.4.18 hero fade. */

:root{
  --v65-ink:#20212a;
  --v65-muted:#55505f;
  --v65-purple:#6558e8;
  --v65-purple-2:#8f85ff;
  --v65-bg:#fff;
  --v65-card:#fff;
  --v65-tint:#f4f2ff;
  --v65-line:#e3ddf5;
  --v65-ok:#1f6b3a;
  --v65-ok-bg:#e9f6ee;
  --v65-err:#b4232f;
  --v65-err-bg:#fff1f2;
  --v65-on-purple:#fff;
  --v65-shadow:0 10px 28px rgba(62,39,141,.08);
  --v65-chat-panel-w:min(380px, calc(100vw - 32px));
  --v65-chat-gutter:calc(var(--v65-chat-panel-w) + 16px);
}
html.dark{
  --v65-ink:#f2f1f7;
  --v65-muted:#b5b2c4;
  --v65-purple:#8f85ff;
  --v65-purple-2:#c4beff;
  --v65-bg:#0f1016;
  --v65-card:#171821;
  --v65-tint:#171825;
  --v65-line:#2a2b3a;
  --v65-ok:#8ee0a8;
  --v65-ok-bg:#14301d;
  --v65-err:#ff8a93;
  --v65-err-bg:#2a1519;
  --v65-on-purple:#0f1016;
  --v65-shadow:0 10px 28px rgba(0,0,0,.45);
}

/* ——— Homepage CTA pair ——— */
.rh-cta{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.rh-cta .rh-btn-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.rh-link-sec{
  display:inline-flex;align-items:center;min-height:44px;
  color:var(--v65-purple);font-weight:600;text-decoration:none;font-size:15px;
}
html:not(.dark) a.rh-link-sec{color:#5b4ede}
.rh-link-sec:hover{text-decoration:underline}
.fork-cta{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.fork-cta .rh-btn-row,.talk-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
a.button.cta-sec,a.cta-sec{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:0 22px;border-radius:10px;
  border:1.5px solid currentColor;background:transparent;
  color:#20212a;font-weight:700;text-decoration:none;
}
html.dark a.button.cta-sec,html.dark a.cta-sec{color:#f2f1f7}
/* ≤960: #pricing.cta-band is a light tint (v6.4.15-mobile.css). Match live:
   a filled purple button, white text (~5.1:1). Do not use a white ghost there. */
@media(max-width:960px){
  html:not(.dark) .cta-band a.button.cta-sec,
  html:not(.dark) .cta-band a.cta-sec{
    color:#fff;
    background:var(--purple,#6558e8);
    border-color:var(--purple,#6558e8);
  }
}
/* ≥961: the band is dark #20212a; white outline secondary is correct. */
@media(min-width:961px){
  html:not(.dark) .cta-band a.button.cta-sec,
  html:not(.dark) .cta-band a.cta-sec{color:#fff;border-color:#fff;background:transparent}
}
html.dark .cta-band a.button.cta-sec,html.dark .cta-band a.cta-sec{color:#f2f1f7;border-color:#f2f1f7}
.cta-band .talk-note a{color:#c4beff}

/* Plan price + setup + promises */
#plans .mp-intro,#plans .mp-terms{max-width:740px;margin-left:auto;margin-right:auto}
#plans .mp-slot{font-size:28px;letter-spacing:-.6px;color:var(--v65-ink);font-weight:800}
html.dark #plans .mp-slot{color:#f2f1f8}
#plans .mp-setup{
  margin:-4px 0 10px;text-align:center;
  font-size:15px;font-weight:600;color:var(--v65-muted);
}
#plans .mp-promises{
  list-style:none;margin:36px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;
}
#plans .mp-promises li{
  display:flex;align-items:flex-start;gap:10px;
  background:var(--v65-card);border:1px solid var(--v65-line);
  border-radius:14px;padding:14px 16px;font-size:15px;line-height:1.45;color:var(--v65-ink);
}
#plans .mp-promises li::before{
  content:"";flex:none;width:8px;height:8px;margin-top:7px;border-radius:50%;background:var(--v65-purple);
}
#plans .mp-extra{
  margin:18px auto 0;text-align:center;font-size:16px;font-weight:600;color:var(--v65-ink);
}
#plans .mp-help{
  margin:8px auto 0;text-align:center;
}
#plans .mp-help a{color:var(--v65-purple);font-weight:600;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
#plans .mp-help a:hover{text-decoration:underline}
#plans .mp-included{margin-top:40px;text-align:center}
#plans .mp-included h3{font-family:var(--display,Inter,Arial,sans-serif);font-size:22px;letter-spacing:-.4px;margin:0 0 16px}
#plans .mp-included ul{
  list-style:none;margin:0 auto;padding:0;max-width:820px;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;text-align:left;
}
#plans .mp-included li{font-size:15px;color:var(--v65-ink);padding-left:18px;position:relative}
#plans .mp-included li::before{content:"✓";position:absolute;left:0;color:var(--v65-purple);font-weight:700}
@media(max-width:759px){
  #plans .mp-promises,#plans .mp-included ul{grid-template-columns:1fr}
}

/* ——— Shared inner-page chrome (pricing, trial, app) ——— */
.v65-body,.v65-body *,.v65-body *::before,.v65-body *::after{box-sizing:border-box}
.v65-body{margin:0;background:var(--v65-bg);color:var(--v65-ink);font-family:Inter,Arial,sans-serif;font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
.v65-body{min-height:100vh;display:flex;flex-direction:column}
.v65-skip{position:absolute;left:-999px;top:0;background:var(--v65-purple);color:var(--v65-on-purple);padding:8px 12px;z-index:100}
.v65-skip:focus{left:8px;top:8px}
.v65-wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 20px;box-sizing:border-box}
.v65-header{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 20px;max-width:1120px;margin:0 auto;width:100%;
  box-sizing:border-box;
}
.v65-header .wordmark{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--v65-ink);min-height:48px}
.v65-header .wordtext{font-family:Inter,Arial,sans-serif;font-weight:800;font-size:22px;letter-spacing:-1px}
.v65-header .wordtext small{display:block;font-size:9px;letter-spacing:1.4px;font-weight:700;margin-top:-2px;color:var(--v65-muted)}
.v65-header .brand-dot{color:var(--v65-purple)}
.v65-header nav{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.v65-header nav a{
  color:var(--v65-ink);text-decoration:none;font-weight:600;font-size:14px;
  min-height:44px;padding:0 10px;display:inline-flex;align-items:center;border-radius:8px;
}
.v65-header nav a:hover{color:var(--v65-purple)}
.v65-header-right{display:flex;align-items:center;gap:8px;flex:none}
.v65-theme{
  width:44px;height:44px;border-radius:10px;border:1px solid var(--v65-line);
  background:var(--v65-card);color:var(--v65-ink);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;position:relative;
}
.v65-theme::after{content:"";position:absolute;left:50%;top:50%;width:48px;height:48px;transform:translate(-50%,-50%)}
.v65-theme svg{width:18px;height:18px}
.v65-theme .moon{display:none}
html.dark .v65-theme .moon{display:block}
html.dark .v65-theme .sun{display:none}
.v65-btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--v65-purple);color:var(--v65-on-purple);text-decoration:none;
  font-weight:700;padding:0 20px;border-radius:10px;min-height:48px;border:0;cursor:pointer;font-size:15px;font-family:inherit;
}
.v65-btn:hover{filter:brightness(.95)}
.v65-btn[disabled]{opacity:.6;cursor:not-allowed;filter:none}
.v65-btn-sec{
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--v65-purple);text-decoration:none;
  font-weight:600;padding:0 16px;border-radius:10px;min-height:48px;
  border:1.5px solid var(--v65-purple);cursor:pointer;font-size:15px;font-family:inherit;
}
.v65-btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--v65-purple);text-decoration:none;
  font-weight:600;min-height:44px;padding:0 8px;border:0;cursor:pointer;font-size:15px;font-family:inherit;
}
.v65-btn-ghost:hover,.v65-btn-sec:hover{text-decoration:underline}
.v65-main{flex:1 1 auto;width:100%}
.v65-hero{padding:28px 0 12px;text-align:left}
.v65-hero h1{
  font-family:Inter,"Inter Fallback",Arial,sans-serif;font-weight:800;
  font-size:clamp(32px,6vw,48px);letter-spacing:-1.6px;line-height:1.08;margin:0 0 12px;
}
.v65-eyebrow{font-size:12px;font-weight:700;letter-spacing:2.4px;text-transform:uppercase;color:var(--v65-purple);margin:0 0 8px}
.v65-lede{margin:0 0 8px;color:var(--v65-muted);font-size:18px;max-width:640px}
.v65-grid-plans{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;margin:28px 0 8px;
}
.v65-plan{
  background:var(--v65-card);border:1px solid var(--v65-line);border-radius:20px;
  padding:28px 22px 22px;display:flex;flex-direction:column;box-shadow:var(--v65-shadow);position:relative;min-width:0;
}
.v65-plan-popular{border:1.5px solid var(--v65-purple);padding-top:36px}
.v65-badge{
  position:absolute;top:0;left:50%;transform:translate(-50%,-50%);
  background:var(--v65-purple);color:var(--v65-on-purple);
  font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;margin:0;white-space:nowrap;
}
.v65-plan h2{font-family:Inter,Arial,sans-serif;font-weight:800;font-size:22px;letter-spacing:-.6px;margin:0 0 8px;text-align:center}
.v65-price{margin:0 0 4px;font-family:Inter,Arial,sans-serif;font-weight:800;font-size:28px;letter-spacing:-.6px;text-align:center;min-width:0;overflow-wrap:normal;word-break:normal}
.v65-price-unit{white-space:nowrap}
#plans .mp-slot{overflow-wrap:normal;word-break:normal}
.v65-setup{margin:0 0 10px;text-align:center;font-size:15px;font-weight:600;color:var(--v65-muted)}
.v65-liner{margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--v65-line);color:var(--v65-muted);text-align:center;font-size:15px}
.v65-plan ul{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:10px;flex:1}
.v65-plan li{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.45}
.v65-plan li::before{content:"✓";color:var(--v65-purple);font-weight:700;flex:none}
.v65-plan .v65-btn{width:100%}
.v65-promises{list-style:none;margin:32px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.v65-promises li{
  background:var(--v65-card);border:1px solid var(--v65-line);border-radius:14px;padding:14px 16px;font-size:15px;
}
.v65-extra{text-align:center;font-weight:700;margin:0 0 8px}
.v65-center{text-align:center;margin:0 0 32px}
.v65-center a{color:var(--v65-purple);font-weight:600;text-decoration:none}
.v65-center a:hover{text-decoration:underline}
@media(max-width:1179px){.v65-grid-plans{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){
  .v65-grid-plans,.v65-promises{grid-template-columns:1fr}
}
/* r13k: compact header through 729 so "How it works" is not clipped at
   720–728. Inline nowrap starts at 730. 2-col plan grid stays at 640–699. */
@media(max-width:729px){
  .v65-header nav{display:none}
  .v65-header .v65-btn .lbl-long,
  .v65-header .v65-btn-sec .lbl-long,
  .v65-header-right a .lbl-long{display:none}
}
@media(min-width:730px){
  .v65-header .v65-btn .lbl-short,
  .v65-header .v65-btn-sec .lbl-short,
  .v65-header-right a .lbl-short,
  .v65-header-right a .lbl-xs{display:none}
}
.v65-header-right a .lbl-xs{display:none}
@media(max-width:430px){
  .v65-header .v65-btn,
  .v65-header .v65-btn-sec{padding:0 10px;font-size:14px}
  .v65-header-right a .lbl-short{display:none}
  .v65-header-right a .lbl-xs{display:inline}
}
/* r13k: short header CTA ("Live demo") through 959 on every v65-header
   page so "How it works" is not overflow-hidden at 730–740 now that the
   long label is "Try the live demo". */
@media (max-width:959px){
  .v65-header .v65-btn .lbl-long,
  .v65-header .v65-btn-sec .lbl-long,
  .v65-header-right a .lbl-long{display:none !important}
  .v65-header .v65-btn .lbl-short,
  .v65-header .v65-btn-sec .lbl-short,
  .v65-header-right a .lbl-short{display:inline !important}
  .v65-header-right a .lbl-xs{display:none !important}
}
@media (max-width:430px){
  .v65-header .v65-btn .lbl-short,
  .v65-header .v65-btn-sec .lbl-short,
  .v65-header-right a .lbl-short{display:none !important}
  .v65-header-right a .lbl-xs{display:inline !important}
}
/* r13k: one-row nowrap from 730. padding-left inside the overflow box
   keeps the first letter of "How it works" from being clipped. */
@media (min-width:730px) and (max-width:1023px){
  .v65-header{
    flex-wrap:nowrap;
    min-height:80px;
    min-width:0;
  }
  .v65-header .wordmark{
    flex:0 0 auto;
    min-width:0;
    position:relative;
    z-index:1;
  }
  .v65-header nav{
    display:flex;
    flex-wrap:nowrap;
    white-space:nowrap;
    gap:0 2px;
    min-height:44px;
    flex:1 1 auto;
    justify-content:flex-end;
    min-width:0;
    overflow:hidden;
    padding-left:12px;
    box-sizing:border-box;
  }
  .v65-header nav a{
    padding:0 5px;
    font-size:13px;
    white-space:nowrap;
    flex:0 0 auto;
  }
}


/* Trial form */
.v65-trial-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:28px;align-items:start;padding:8px 0 64px}
@media(max-width:900px){.v65-trial-grid{grid-template-columns:1fr}}
.v65-card{
  background:var(--v65-card);border:1px solid var(--v65-line);border-radius:20px;padding:24px;box-shadow:var(--v65-shadow);
}
.v65-card h2{font-family:Inter,Arial,sans-serif;font-size:22px;letter-spacing:-.4px;margin:0 0 16px}
.v65-field{margin:0 0 16px}
.v65-field label,.v65-check label{display:block;font-weight:600;font-size:14px;margin:0 0 6px;color:var(--v65-ink)}
.v65-field input,.v65-field select,.v65-field textarea{
  width:100%;min-height:48px;border:1px solid var(--v65-line);border-radius:10px;
  background:var(--v65-bg);color:var(--v65-ink);font:inherit;font-size:16px;padding:10px 12px;
}
.v65-field textarea{min-height:88px;resize:vertical}
.v65-field input:focus,.v65-field select:focus,.v65-field textarea:focus,.v65-theme:focus-visible,.v65-btn:focus-visible,.v65-btn-sec:focus-visible,.v65-btn-ghost:focus-visible,.v65-chat-btn:focus-visible,.v65-chip:focus-visible{
  outline:2px solid var(--v65-purple);outline-offset:2px;
}
.v65-help{margin:6px 0 0;font-size:13px;color:var(--v65-muted)}
.v65-err{color:var(--v65-err);font-size:13px;margin:6px 0 0}
.v65-field.is-invalid input,.v65-field.is-invalid select{border-color:var(--v65-err);background:var(--v65-err-bg)}
.v65-tools{display:flex;flex-wrap:wrap;gap:8px}
.v65-tools label{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 12px;
  border:1px solid var(--v65-line);border-radius:999px;font-weight:600;font-size:14px;cursor:pointer;background:var(--v65-bg);
}
.v65-tools input{width:18px;height:18px;accent-color:var(--v65-purple)}
.v65-pay{
  border:1px dashed var(--v65-purple);background:var(--v65-tint);border-radius:16px;padding:18px;margin:8px 0 18px;
}
.v65-pay h3{margin:0 0 8px;font-size:16px;font-family:Inter,Arial,sans-serif}
.v65-pay .v65-lock{
  margin:12px 0;padding:16px;border-radius:12px;border:1px solid var(--v65-line);
  background:var(--v65-card);color:var(--v65-muted);font-size:14px;display:flex;gap:10px;align-items:flex-start;
}
.v65-pay .v65-lock strong{display:block;color:var(--v65-ink);margin-bottom:4px}
.v65-bill{margin:0 0 8px;padding:0;list-style:none;font-size:15px}
.v65-bill li{display:flex;justify-content:space-between;gap:12px;padding:4px 0}
.v65-check{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px;font-size:14px}
.v65-check input{width:20px;height:20px;margin-top:2px;accent-color:var(--v65-purple);flex:none}
.v65-check label{margin:0;font-weight:500}
.v65-videos{display:grid;gap:12px}
.v65-vid{
  display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:center;
  border:1px solid var(--v65-line);border-radius:14px;padding:12px;background:var(--v65-bg);text-align:left;width:100%;
  cursor:pointer;font:inherit;color:inherit;min-height:88px;
}
.v65-vid:hover{border-color:var(--v65-purple)}
.v65-vid-thumb{
  width:88px;height:64px;border-radius:10px;background:linear-gradient(135deg,#6558e8,#c4beff);
  display:flex;align-items:center;justify-content:center;position:relative;color:#fff;
}
html.dark .v65-vid-thumb{background:linear-gradient(135deg,#3d348f,#8f85ff);color:#0f1016}
.v65-vid-thumb svg{width:28px;height:28px}
.v65-vid-dur{
  position:absolute;right:6px;bottom:6px;background:rgba(15,16,22,.8);color:#fff;
  font-size:11px;font-weight:700;padding:1px 6px;border-radius:4px;
}
.v65-vid h3{margin:0 0 4px;font-size:15px}
.v65-vid p{margin:0;font-size:13px;color:var(--v65-muted)}
.v65-vid[aria-expanded="true"]{border-color:var(--v65-purple)}
.v65-vid-more{margin:0;padding:0 4px 8px 100px;font-size:14px;color:var(--v65-ink);display:none}
.v65-vid-wrap.is-open .v65-vid-more{display:block}
.v65-confirm{text-align:left;padding:12px 0 64px}
.v65-confirm h1{font-family:Inter,Arial,sans-serif;font-size:clamp(32px,6vw,44px);letter-spacing:-1.4px;margin:0 0 12px}
.v65-confirm .v65-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.v65-note{background:var(--v65-ok-bg);color:var(--v65-ink);border-radius:12px;padding:14px 16px;margin:16px 0}

/* Chat assistant.
   Dialog (full-screen, modal) when width < 1024 or height < 700.
   Side panel with a page gutter when width >= 1024 and height >= 700. */
.v65-chat-btn{
  position:fixed;right:max(16px, env(safe-area-inset-right));bottom:max(16px, env(safe-area-inset-bottom));transform:translate(calc(-1 * var(--v65-fab-shift-x, 0px)), calc(-1 * var(--v65-fab-shift-y, 0px)));
  z-index:45;width:48px;height:48px;border-radius:50%;
  background:var(--v65-purple);color:var(--v65-on-purple);border:0;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(101,88,232,.35);
}
.v65-chat-btn svg{width:22px;height:22px;pointer-events:none}
.v65-chat-btn .v65-chat-close{display:none}
.v65-chat-btn.is-open .v65-chat-icon{display:none}
.v65-chat-btn.is-open .v65-chat-close{display:block}

/* Default: full-screen dialog. Side-panel rules override at 1024×700 and up. */
.v65-chat-panel{
  position:fixed;z-index:46;
  inset:0;
  box-sizing:border-box;
  width:100%;max-width:none;
  height:100%;min-height:100%;max-height:none;
  background:var(--v65-card);color:var(--v65-ink);
  border:0;border-radius:0;
  box-shadow:none;
  display:flex;flex-direction:column;overflow:hidden;
}
.v65-chat-panel[hidden]{display:none !important}
.v65-chat-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:max(12px, env(safe-area-inset-top)) 14px 12px;
  border-bottom:1px solid var(--v65-line);background:var(--v65-tint);
  flex-shrink:0;
}
.v65-chat-head h2{margin:0;font-size:16px;font-family:Inter,Arial,sans-serif}
.v65-chat-head p{margin:2px 0 0;font-size:12px;color:var(--v65-muted)}
.v65-chat-msgs{
  flex:1 1 auto;min-height:120px;overflow:auto;
  padding:12px 14px;display:flex;flex-direction:column;gap:10px;
  scroll-padding-top:32px;
}
.v65-msg{max-width:92%;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
.v65-msg a{color:var(--v65-purple);font-weight:600}
.v65-msg-bot{background:var(--v65-tint);align-self:flex-start}
.v65-msg-user{background:var(--v65-purple);color:var(--v65-on-purple);align-self:flex-end}
.v65-msg-user a{color:inherit}
.v65-chips{
  display:flex;flex-wrap:nowrap;gap:8px;
  padding:0 14px 8px;flex-shrink:0;
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
}
.v65-chip{
  flex:0 0 auto;
  border:1px solid var(--v65-line);background:var(--v65-bg);color:var(--v65-ink);
  border-radius:999px;min-height:44px;padding:0 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;
}
.v65-chip:hover{border-color:var(--v65-purple);color:var(--v65-purple)}
body.v65-chat-asked .v65-chips{display:none}
/* Beat the homepage `form{display:flex;flex-direction:column}` (and later `form{display:grid}`) rule. */
form.v65-chat-form,.v65-chat-form{
  display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;
  gap:8px;padding:10px 12px max(12px, env(safe-area-inset-bottom));
  border-top:1px solid var(--v65-line);min-width:0;flex-shrink:0;
}
form.v65-chat-form input,.v65-chat-form input{
  flex:1;min-height:44px;min-width:0;border:1px solid var(--v65-line);border-radius:10px;
  background:var(--v65-bg);color:var(--v65-ink);font:inherit;font-size:16px;padding:8px 10px;
}
form.v65-chat-form input::placeholder,.v65-chat-form input::placeholder{color:var(--v65-muted);opacity:1}
html.dark form.v65-chat-form input::placeholder,
html.dark .v65-chat-form input::placeholder{color:var(--v65-muted);opacity:1}
form.v65-chat-form button,.v65-chat-form button{flex:none}
body.v65-has-chat .site-foot .sf-bar, body.v65-has-chat .sf-bar{padding-right:76px}
body.v65-has-chat .v65-main, body.v65-has-chat main#main{padding-bottom:88px}

/* Lock page scroll while the full-screen dialog is open. */
html.v65-chat-dialog,html.v65-chat-dialog body{overflow:hidden !important;overscroll-behavior:none}

/* Side panel + page gutter only when the viewport can hold it. */
@media(min-width:1024px) and (min-height:700px){
  .v65-chat-panel{
    inset:auto;
    top:auto;left:auto;
    right:max(16px, env(safe-area-inset-right));
    bottom:calc(16px + 48px + 10px);
    width:var(--v65-chat-panel-w);
    height:min(72vh, 560px);
    min-height:320px;
    max-height:min(72vh, 560px);
    border:1px solid var(--v65-line);border-radius:16px;
    box-shadow:0 16px 40px rgba(15,16,22,.2);
  }
  .v65-chat-head{padding:12px 14px}
  form.v65-chat-form,.v65-chat-form{padding:10px 12px 12px}
  body.v65-chat-open{
    padding-right:var(--v65-chat-gutter);
    box-sizing:border-box;
  }
  body.v65-chat-open .v65-grid-plans{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  /* Home #plans is a 4-col .mp-grid, not .v65-grid-plans. Reflow to 2 cols
     when the side panel is open so "$1,500/month" and "More than 10 locations" stay
     on one unclipped line at 1024, 1280 and 1440. */
  body.v65-chat-open #plans .mp-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  body.v65-chat-open #plans .mp-slot{
    white-space:nowrap;
    overflow:hidden;
    font-size:clamp(16px, 2.1vw, 28px);
    letter-spacing:-.4px;
  }
  body.v65-chat-open #plans .mp-plan,
  body.v65-chat-open #plans .mp-body{min-width:0}
  /* Keep the decorative logo strip and hero shot from sitting under the panel. */
  body.v65-chat-open .clients,
  body.v65-chat-open .client-marquee,
  body.v65-chat-open .client-track,
  body.v65-chat-open .rh,
  body.v65-chat-open .rh-pic,
  body.v65-chat-open .rh-dev{
    max-width:100%;
    overflow:hidden;
    box-sizing:border-box;
  }
  /* In the remaining width the 2-col hero wraps the heading and pushes CTAs below the fold. Stack it. */
  body.v65-chat-open .rh-grid{grid-template-columns:1fr;overflow:hidden;max-width:100%}
  body.v65-chat-open .rh-pic,
  body.v65-chat-open .rh-dev{overflow:hidden;max-width:100%}
}

@media(max-width:1024px){
  /* Closed FAB clearance at mid widths (independent of the open-chat gutter). */
  .v65-grid-plans .v65-plan:nth-child(even) .v65-btn{width:calc(100% - 56px);align-self:flex-start}
  body.v65-has-chat .v65-grid-plans .v65-plan{padding-bottom:80px}
  .v65-hero{padding:20px 0 8px}
  .v65-grid-plans{margin:16px 0 8px}
}
@media(max-width:639px){
  body.v65-has-chat .v65-grid-plans .v65-plan .v65-btn{width:calc(100% - 56px);align-self:flex-start}
}

@media(max-width:430px){
  body.v65-has-chat footer.footer.site-foot .sf-bar{
    flex-wrap:wrap !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    padding-right:0 !important;
    gap:8px !important;
  }
  body.v65-has-chat footer.footer.site-foot .sf-bar>span{white-space:normal !important}
}
@media(prefers-reduced-motion:reduce){
  .v65-chat-panel,.v65-btn,.mp-plan,.v65-plan,.v65-vid{transition:none !important}
}

/* Dashboard extras live in v6.5-app.css; keep chat from covering app chrome */
.v65-app-body .v65-chat-btn{bottom:max(16px, env(safe-area-inset-bottom))}

.v65-skip-app{color:var(--v65-purple);font-weight:700}

/* Homepage header at Galaxy-S widths: keep .mnav-btn on-screen */
.header .button.small .lbl-xs{display:none}
@media(max-width:374px){
  header.header .button.small .lbl-long,
  header.header .button.small .lbl-short{display:none !important}
  header.header .button.small .lbl-xs{display:inline !important}
}

body.v65-fab-hide .v65-chat-btn{visibility:hidden;pointer-events:none}

/* Avoid a double 64px gutter (form + wrap) that pushed trial cards off-screen at 320/340. */
.v65-wrap > *, .v65-trial-grid, .v65-trial-grid > *, .v65-card{min-width:0}
@media(max-width:768px){
  /* r13e: FAB clearance is bottom space near Save, not a right inset on the form.
     Fields and the Enterprise box use the full card width. No one-off box width. */
  body.v65-has-chat #trial-form{
    padding-right:0;
    padding-bottom:72px;
    box-sizing:border-box;
  }
  body.v65-has-chat .v65-videos,
  body.v65-has-chat aside.v65-card{
    padding-right:0;
    padding-bottom:72px;
    box-sizing:border-box;
  }
}


/* r13e: Enterprise big line is “More than 10”; “locations” sits on the setup sub-line.
   Never nowrap a line past the card width. Dollar prices on other cards stay nowrap. */
.v65-plan-enterprise .v65-price{
  font-size:clamp(22px, 4vw, 28px);
  letter-spacing:-.4px;
  white-space:nowrap;
  overflow:hidden;
  max-width:100%;
}
.v65-plan-enterprise .v65-setup{font-weight:600}
.v65-plan-enterprise .v65-setup-note{margin-top:-6px;font-weight:500}
#plans .mp-plan-enterprise .mp-setup{color:#c9c7d6}

#plans .mp-slot{white-space:nowrap}
#plans .mp-plan-enterprise .mp-slot{
  white-space:nowrap;
  overflow:hidden;
  max-width:100%;
  font-size:clamp(22px, 4vw, 28px);
}

/* r13c: home Enterprise CTA matches /pricing solid purple (.v65-btn). */
#plans .mp-btn-enterprise{
  background:var(--v65-purple);
  border-color:var(--v65-purple);
  color:var(--v65-on-purple);
}
#plans .mp-btn-enterprise:hover{
  filter:brightness(.95);
  background:var(--v65-purple);
  border-color:var(--v65-purple);
  color:var(--v65-on-purple);
}
html.dark #plans .mp-btn-enterprise,
html.dark #plans .mp-btn-enterprise:hover{
  background:var(--v65-purple);
  border-color:var(--v65-purple);
  color:var(--v65-on-purple);
}

/* r13e: “More than 10” is short enough for the regular price size.
   If a viewport would overflow, allow the slot to shrink slightly rather than spill. */
@media(max-width:390px){
  #plans .mp-plan-enterprise .mp-slot,
  .v65-plan-enterprise .v65-price{font-size:22px;letter-spacing:-.3px}
}

/* r13n SF2: placeholder room at 320–360; 14px at ≤340 so “Ask about plans” fits. */
@media(max-width:360px){
  form.v65-chat-form input,.v65-chat-form input{padding:8px 8px;font-size:15px}
}
@media(max-width:340px){
  form.v65-chat-form input,.v65-chat-form input{padding:8px 6px;font-size:14px}
}
@media(max-width:360px){
  .v65-chips{flex-wrap:wrap;overflow-x:visible}
  .v65-chip{font-size:12px;padding:0 10px}
}

/* r13d: trial plan/location validation and Enterprise path */
.v65-sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.plan-suggest-slot{
  min-height:0;
  margin:0;
}
.plan-suggest-slot.is-reserved,
.plan-suggest-slot:has(#plan-suggest:not([hidden])){
  min-height:4.4em;
  margin:0 0 12px;
}
#plan-suggest{
  margin:0;
  padding:10px 12px;
  border-radius:10px;
  background:color-mix(in srgb, var(--v65-purple, #6558e8) 10%, transparent);
  color:inherit;
  font-size:14px;
  line-height:1.45;
}
#enterprise-path .v65-btn{margin-top:8px;margin-bottom:4px;}
#enterprise-path[hidden],#plan-reminder[hidden],#plan-suggest[hidden]{display:none;}

/* Ivy SF-TRIAL-SAVE: Save matches the full-width fields. */
#trial-submit{width:100%;box-sizing:border-box;}

/* G2: hide the chat button only when it actually overlaps a field or button,
   at every width (same rule as ≥1024). */
body.v65-fab-overlap .v65-chat-btn{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:none !important;
}

/* F8: Core name and price align with the other cards; badge stays absolute. */
.v65-plan-popular{padding-top:28px}
#plans .mp-plan-popular{padding-top:28px}

/* F7: reserve the /trial hero so a late font apply cannot shrink it ~29px. */
@media (min-width:960px){
  #trial-form-wrap .v65-hero{min-height:283px}
}

/* E4 + Ivy SF-HOME-PRICE: stack name above price at ≤600px so a larger
   monthly line cannot overlap, and beat v6.4.css 14px !important. */
@media (max-width:600px){
  #plans .mp-body{
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:flex-start;
  }
  #plans .mp-plan h3,
  #plans .mp-slot,
  #plans .mp-setup{
    flex:0 0 auto;
    width:100%;
    max-width:100%;
    margin-left:0 !important;
    margin-right:0 !important;
    text-align:left !important;
  }
  #plans .mp-slot{
    white-space:normal;
    overflow:visible;
    font-size:clamp(20px, 5.6vw, 28px) !important;
    font-weight:800;
    letter-spacing:-.4px;
  }
}

/* Ivy SF-PRICE-SLOT-640: Enterprise price 28px at the first 2-col width
   so its cluster matches Growth (72.8px). */
@media (min-width:640px) and (max-width:699px){
  .v65-plan-enterprise .v65-price{font-size:28px;letter-spacing:-.6px}
}

/* Quinn: home 4-col closed, dollar prices spilled 4–7px at 1101–1120. */
@media (min-width:1024px) and (max-width:1120px){
  body:not(.v65-chat-open) #plans .mp-slot{
    font-size:22px;
    letter-spacing:-.5px;
  }
  body:not(.v65-chat-open) #plans .mp-plan-enterprise .mp-slot{
    font-size:22px;
  }
}

/* r13g: Inter preload is restored. Reserve the hero copy at ~1000–1100px so a
   late optional/swap apply cannot reflow the heading. Locked CSS untouched. */
/* r13k: h1/sub/copy reserves are home-hero only. Do not match
   .v65-hero h1 — that left a 118–147px gap under the one-line
   /pricing and /trial headings at 1000–1140. */
@media (min-width:1000px) and (max-width:1140px){
  #rh-h1, .rh h1{
    min-height:3.6em;
  }
  .rh-sub{
    min-height:5.2em;
  }
  .rh-copy{
    min-height:22em;
  }
}
/* Rex G1: at 1090–1100 the home h1 still grew 166→192px. */
@media (min-width:1090px) and (max-width:1140px){
  #rh-h1, .rh h1{
    min-height:4.2em;
  }
}

/* G1: keep the hero CTA on one line at the tight 2-col widths so Inter
   cannot wrap the row from 56px to 112px. Locked CSS untouched.
   r13i: extend nowrap through 1240 and reserve logos at all widths
   as a cheap try at Quinn's leftover 1100 / 390 CLS noise. */
@media (min-width:990px) and (max-width:1240px){
  .rh-cta .rh-btn-row{
    flex-wrap:nowrap;
    white-space:nowrap;
    gap:8px 10px;
    min-height:56px;
  }
  .rh-cta .rh-btn{padding-left:18px;padding-right:18px;flex:0 0 auto}
  .rh-cta .rh-link-sec{white-space:nowrap;flex:0 0 auto}
  .client-marquee{min-height:132px}
}
@media (max-width:989px){
  .client-marquee{min-height:108px}
}
@media (min-width:1241px){
  .client-marquee{min-height:132px}
}

/* Ivy SF-FOOTER-DESKTOP + Quinn: footer links and Back to top >=44px at
   every width, including >=1025. Beats v6.4.3-footer.css min-height:0
   !important without editing locked CSS. Phone stays 48px. */
footer.site-foot a:not(.wordmark),
footer.footer.site-foot a:not(.wordmark),
footer.site-foot .sf-bar a,
footer.footer.site-foot .sf-bar a{
  min-height:44px !important;
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
}
@media (max-width:600px){
  footer.site-foot a:not(.wordmark),
  footer.footer.site-foot a:not(.wordmark),
  footer.site-foot .sf-bar a,
  footer.footer.site-foot .sf-bar a{
    min-height:48px !important;
  }
}

/* F8 residual: keep Core aligned at mid widths too.
   Neutralize the .v15-sv.in-view translateY(-3px) lift so Entry cannot
   sit 3px above Core once the cards scroll into view at 768. */
@media (min-width:640px) and (max-width:900px){
  #plans .mp-plan-popular{padding-top:28px;transform:none}
  /* Beat locked v6.4.15-mobile.css translateY(-3px)!important without editing it. */
  :root:root:root body #plans .mp-plan.v15-sv.in-view,
  :root:root:root body #plans .mp-plan.v15-sv.in-view:not(.rv1:not(.in)):not(.m2-rv:not(.m2-in)):not(.reveal:not(.in):not(.is-in)):not(.mp-rv:not(.mp-in)){
    transform:none !important;
  }
}

/* r13k: lede reserve ONLY on the trial form intro. The pricing
   .v65-hero .v65-lede rule is gone (it left a 91px gap at 680–1100).
   Home sub/copy reserves now also cover 320–679 so the CTA row
   cannot drop 39px when Inter arrives at 430 and 600. */
@media (min-width:680px) and (max-width:1100px){
  #trial-form-wrap .v65-lede{
    min-height:144px;
  }
}
@media (min-width:320px) and (max-width:999px){
  .rh-sub{min-height:104px}
  .rh-copy{min-height:404px}
}
@media (min-width:320px) and (max-width:609px){
  .rh-sub{min-height:152px}
  .rh-copy{min-height:480px}
  .rh-cta .rh-btn-row{min-height:96px}
}
/* r13m L5: 152px was ~80px too tall for Inter (~71–88px). Reserve the
   taller Inter Fallback height (102.4px) so the late font cannot shift the CTAs. */
@media (min-width:610px) and (max-width:679px){
  .rh-sub{min-height:104px}
  .rh-copy{min-height:480px}
  .rh-cta .rh-btn-row{min-height:96px}
}
@media (min-width:1000px) and (max-width:1140px){
  .rh-sub{min-height:128px}
  .rh-copy{min-height:554px}
}

/* r13m L3: /pricing reuses #mnav below 729. Locked CSS shows .mnav-btn
   through 960; hide it once the v65 nav links are visible again. */
@media (min-width:730px){
  html.mnav-ready .v65-header .mnav-btn{display:none !important}
}

/* r13m L4: reserve the taller of Inter vs Inter Fallback at the wrap bands
   so a delayed woff2 cannot shift the next block. Leftover is one line at most. */
@media (min-width:380px) and (max-width:400px){
  .v65-hero h1{min-height:2.2em}
}
@media (min-width:349px) and (max-width:364px){
  .v65-hero .v65-lede{min-height:144px}
}
@media (min-width:430px) and (max-width:449px){
  .v65-hero .v65-lede{min-height:116px}
}
@media (min-width:628px) and (max-width:655px){
  .v65-hero .v65-lede{min-height:87px}
}
@media (min-width:415px) and (max-width:424px){
  .rh-sub-m{min-height:70px}
}
@media (min-width:425px) and (max-width:434px){
  #rh-h1, .rh h1{min-height:159px}
}
@media (min-width:590px) and (max-width:600px){
  #rh-h1, .rh h1{min-height:119px}
}
