/* Remi-first public brand. Site generator owns language and SEO output. */
:root {
  --remi-ink: #11293e;
  --remi-navy: #0c2942;
  --remi-blue: #286cd1;
  --remi-mint: #b9efdf;
  --remi-soft: #f5f8fc;
  --remi-line: #e1eaf2;
}
.site-header.remi-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e8edf2;
  box-shadow: none;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(22px, 5vw, 90px);
}
.remi-brand {
  gap: 11px;
  white-space: nowrap;
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  text-transform: none;
}
.remi-brand small {
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #6a8195;
  margin-bottom: 5px;
}
.remi-mark,
.remi-avatar {
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #153c61;
  color: #fff;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  font-family: Georgia, serif;
  box-shadow: 0 10px 22px rgba(20, 56, 86, 0.15);
}
.remi-mark span,
.remi-avatar span {
  position: absolute;
  right: 6px;
  top: 3px;
  font-size: 0.5rem;
  color: #b8f2df;
  font-family: inherit;
}
.brand-world {
  color: #2273ab;
}
.remi-nav {
  gap: clamp(12px, 1.7vw, 28px);
}
.remi-nav a:not(.button) {
  font-size: 0.84rem;
  white-space: nowrap;
  color: #304960;
  font-weight: 650;
}
.remi-nav .nav-login {
  margin-left: auto;
}
.remi-nav .nav-cta {
  padding: 10px 17px;
  white-space: nowrap;
  font-size: 0.83rem;
  border-radius: 12px;
  color: #fff;
}
.remi-home {
  background: #fff;
  color: var(--remi-ink);
}
.remi-home h1,
.remi-home h2,
.remi-home h3 {
  color: var(--remi-ink);
  letter-spacing: -0.055em;
}
.remi-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  max-width: 1560px;
  margin: auto;
  padding: clamp(70px, 8vw, 140px) clamp(24px, 6vw, 100px) clamp(70px, 8vw, 120px);
  min-height: 660px;
  position: relative;
}
.remi-hero:before {
  content: '';
  position: absolute;
  right: 0;
  top: 80px;
  width: 48%;
  height: 75%;
  background: radial-gradient(ellipse, #e8f3ff 0%, rgba(235, 246, 255, 0) 68%);
  z-index: -1;
}
.remi-kicker,
.remi-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 850;
  color: #2b6a9b;
  text-transform: uppercase;
}
.remi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
}
.remi-live-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: #40b999;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #e3f6f0;
}
.remi-home h1 {
  font-size: clamp(3.25rem, 5.3vw, 6.15rem);
  line-height: 1.045;
  margin: 0 0 25px;
  max-width: 740px;
  font-weight: 780;
}
.remi-home h1 em {
  font-style: normal;
  color: #2e77af;
}
.remi-hero-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.23rem);
  line-height: 1.78;
  color: #516579;
  max-width: 590px;
  margin: 0;
}
.remi-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.remi-hero-actions .button {
  padding: 16px 24px;
  border-radius: 13px;
}
.remi-subnote {
  font-size: 0.84rem;
  color: #798da0;
  margin-top: 22px;
}
.remi-conversation-card {
  background: #fff;
  padding: 24px;
  border: 1px solid #e2eaf3;
  border-radius: 25px;
  box-shadow:
    0 38px 85px rgba(23, 61, 95, 0.12),
    0 4px 15px rgba(23, 61, 95, 0.04);
  max-width: 560px;
  margin: 0 auto;
}
.remi-conversation-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf3;
}
.remi-avatar {
  width: 48px;
  height: 48px;
  font-size: 2rem;
}
.remi-conversation-top strong {
  display: block;
  line-height: 1.1;
}
.remi-conversation-top small {
  display: block;
  font-size: 0.77rem;
  color: #8798a9;
  margin-top: 4px;
}
.remi-online {
  margin-left: auto;
  color: #247b62;
  background: #e8f8f1;
  padding: 6px 10px;
  border-radius: 22px;
  font-size: 0.7rem;
  font-weight: 700;
}
.remi-message {
  padding: 15px 18px;
  max-width: 88%;
  border-radius: 17px;
  font-size: 0.97rem;
  line-height: 1.6;
  margin-top: 23px;
}
.remi-message.user {
  background: #eaf1fd;
  margin-left: auto;
  border-bottom-right-radius: 5px;
  color: #213f60;
}
.remi-message.assistant {
  background: #f3f6f8;
  border-bottom-left-radius: 5px;
  color: #33485b;
}
.remi-tool-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 23px 0 27px;
}
.remi-tool-strip span {
  background: #f6fafc;
  border: 1px solid #e5edf2;
  border-radius: 9px;
  padding: 7px 11px;
  color: #47718a;
  font-size: 0.75rem;
}
.remi-demo-input {
  border: 1px solid #dce7ef;
  padding: 10px 10px 10px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  color: #9aaaba;
  font-size: 0.88rem;
}
.remi-send {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #1e5f96;
  color: white;
  border-radius: 9px;
  font-size: 1.3rem;
}
.remi-demo-caption {
  font-size: 0.75rem;
  color: #8b9aac;
  text-align: center;
  max-width: 500px;
  margin: 16px auto 0;
}
.remi-section {
  padding: clamp(74px, 8vw, 128px) clamp(24px, 6vw, 100px);
  max-width: 1560px;
  margin: auto;
}
.remi-section h2 {
  max-width: 830px;
  font-size: clamp(2.35rem, 4.6vw, 4.85rem);
  line-height: 1.13;
  margin: 18px 0 20px;
}
.remi-section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #627689;
  max-width: 680px;
}
.remi-promise {
  border-top: 1px solid #e9eff3;
}
.remi-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 43px;
}
.remi-outcomes article {
  border: 1px solid #e2eaf1;
  border-radius: 20px;
  padding: 34px;
  background: #fff;
}
.outcome-icon {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  background: #e9f3fa;
  color: #26668f;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 27px;
}
.remi-outcomes h3 {
  font-size: 1.37rem;
  margin-bottom: 11px;
}
.remi-outcomes p,
.remi-steps p {
  color: #627588;
  line-height: 1.75;
  font-size: 0.97rem;
  margin: 0;
}
.remi-how {
  background: #f5f9fc;
  max-width: none;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 55px;
}
.remi-how-heading,
.remi-steps {
  max-width: 740px;
}
.remi-steps article {
  padding: 20px 0 25px;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 12px;
  border-bottom: 1px solid #dce7ef;
}
.remi-steps article span {
  font-size: 0.85rem;
  font-weight: 800;
  color: #347eaa;
  padding-top: 4px;
}
.remi-steps article h3 {
  font-size: 1.2rem;
  margin: 0 0 7px;
}
.remi-steps article p {
  grid-column: 2;
}
.remi-personal {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.remi-personal p:not(.remi-section-label) {
  color: #607589;
  font-size: 1.1rem;
  line-height: 1.8;
}
.remi-text-link {
  color: #1c6b9e;
  font-weight: 750;
  text-decoration: none;
}
.remi-tools {
  background: #f7fafc;
  max-width: none;
}
.remi-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.remi-tool-list .remi-tool-item {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
  background: #fff;
  border: 1px solid #e0eaf2;
  padding: 23px;
  border-radius: 16px;
  text-decoration: none;
  color: #15364f;
}
.remi-tool-list .remi-tool-item:hover {
  box-shadow: 0 12px 30px #18385b12;
  transform: translateY(-2px);
}
.remi-tool-list span {
  grid-row: span 2;
  border-radius: 13px;
  background: #ecf5fc;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
  color: #2478ac;
}
.remi-tool-list strong {
  font-size: 1.03rem;
}
.remi-tool-list small {
  font-size: 0.8rem;
  color: #8594a2;
}
.remi-tool-list b {
  grid-row: span 2;
  grid-column: 3;
  font-size: 1.3rem;
  color: #4381b3;
}
.remi-faq-grid {
  margin-top: 30px;
  max-width: 910px;
}
.remi-faq-grid details {
  border-bottom: 1px solid #e2ebf2;
  padding: 19px 0;
}
.remi-faq-grid summary {
  font-weight: 750;
  cursor: pointer;
  font-size: 1.08rem;
}
.remi-faq-grid p {
  max-width: 780px;
  line-height: 1.8;
  color: #607589;
}
.remi-cta {
  background: #0e3657;
  padding: clamp(55px, 7vw, 110px) clamp(24px, 6vw, 100px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}
.remi-cta h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  max-width: 840px;
  margin: 13px 0 0;
}
.remi-cta .remi-section-label {
  color: #b4dded;
}
.remi-cta .button {
  background: #fff;
  color: #16466d;
  box-shadow: none;
  flex: none;
}
.remi-footer {
  padding: 48px clamp(24px, 6vw, 100px);
  background: #081f32;
  color: #d7e7f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.remi-footer strong {
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}
.remi-footer p,
.remi-footer small {
  color: #9bb1c1;
}
.remi-footer-links {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}
.remi-footer a {
  color: #cfe0ee;
  text-decoration: none;
  font-size: 0.87rem;
}
.remi-footer a:hover {
  color: #fff;
}
@media (max-width: 1180px) {
  .remi-nav {
    gap: 13px;
  }
  .remi-nav a:not(.button) {
    font-size: 0.76rem;
  }
  .remi-hero {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .remi-home h1 {
    font-size: clamp(2.9rem, 5vw, 4.6rem);
  }
}
@media (max-width: 900px) {
  .remi-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .remi-hero-demo {
    width: 100%;
  }
  .remi-outcomes {
    grid-template-columns: 1fr;
  }
  .remi-how,
  .remi-personal {
    grid-template-columns: 1fr;
  }
  .remi-how-heading,
  .remi-steps {
    max-width: none;
  }
  .remi-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 700px) {
  .remi-home h1 {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }
  .remi-hero {
    padding-top: 58px;
  }
  .remi-tool-list {
    grid-template-columns: 1fr;
  }
  .remi-outcomes article {
    padding: 26px;
  }
  .remi-header .remi-nav {
    max-height: 85vh;
    overflow: auto;
  }
  .remi-online {
    font-size: 0.62rem;
  }
  .remi-conversation-card {
    padding: 16px;
  }
  .remi-cta {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .remi-tool-list a,
  .remi-home .button {
    transition: none !important;
  }
}

/* V2: compact first viewport, balanced type, real embedded chat. */
.remi-hero {
  padding-top: clamp(24px, 3vw, 46px);
  padding-bottom: clamp(42px, 5vw, 80px);
  min-height: 0;
  gap: clamp(30px, 4vw, 68px);
}
.remi-home h1 {
  font-size: clamp(2.6rem, 4vw, 4.55rem);
  font-weight: 710;
  line-height: 1.1;
  letter-spacing: -0.042em;
  max-width: 720px;
  margin-bottom: 20px;
}
.remi-hero-lead {
  font-size: clamp(1.08rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}
.remi-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.095em;
  margin-bottom: 19px;
}
.remi-hero-actions {
  margin-top: 25px;
}
.remi-hero-actions .button {
  font-size: 1rem;
  font-weight: 680;
  padding: 14px 21px;
}
.remi-subnote {
  font-size: 0.96rem;
  margin-top: 16px;
}
.remi-section {
  padding-top: clamp(58px, 6vw, 90px);
  padding-bottom: clamp(58px, 6vw, 90px);
}
.remi-section h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.8rem);
  font-weight: 720;
  letter-spacing: -0.035em;
}
.remi-section-label {
  font-size: 0.82rem;
}
.remi-outcomes p,
.remi-steps p,
.remi-section-intro {
  font-size: 1.06rem;
}
.remi-nav a:not(.button) {
  font-size: 0.91rem;
}
.remi-nav .nav-cta {
  font-size: 0.92rem;
}
.remi-conversation-card {
  padding: 22px;
  max-width: 640px;
}
.remi-conversation-top strong {
  font-size: 1.05rem;
}
.remi-conversation-top small {
  font-size: 0.86rem;
}
.remi-online {
  font-size: 0.78rem;
}
.remi-chat-messages {
  height: 265px;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 4px 12px;
  scrollbar-color: #c5d8e6 transparent;
  scrollbar-width: thin;
}
.remi-chat-messages .remi-message,
.remi-chat-welcome {
  margin: 0;
  max-width: 91%;
  padding: 12px 15px;
  border-radius: 15px;
  font-size: 1rem;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.remi-chat-welcome,
.remi-chat-messages .assistant {
  background: #f0f5f9;
  color: #30485d;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.remi-chat-messages .user {
  background: #e7f0fd;
  color: #21466a;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.remi-chat-messages .pending {
  opacity: 0.73;
}
.remi-tool-strip {
  margin: 8px 0 15px;
}
.remi-tool-strip span {
  font-size: 0.87rem;
  padding: 8px 11px;
}
.remi-chat-form {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  padding: 10px;
  border: 2px solid #8bb9dc;
  border-radius: 15px;
  background: #f8fbff;
  box-shadow: 0 3px 12px rgba(30, 104, 166, 0.09);
}
.remi-chat-form:focus-within {
  border-color: #1e68a6;
  background: #fff;
  box-shadow: 0 0 0 4px #ddecfa, 0 5px 18px rgba(30, 104, 166, 0.14);
}
.remi-chat-invitation {
  margin: 3px 0 7px;
  color: #235d8b;
  font-size: 0.9rem;
  font-weight: 680;
}
.remi-chat-form textarea {
  flex: 1;
  min-width: 0;
  resize: vertical;
  max-height: 140px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1.48;
  color: #1b3750;
  caret-color: #1e68a6;
  padding: 8px 10px;
  box-shadow: none;
}
.remi-chat-form textarea::placeholder {
  color: #7992a6;
}
.remi-chat-send {
  border: 0;
  flex: none;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #1e68a6;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}
.remi-chat-send:hover {
  background: #174f80;
}
.remi-chat-send:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.remi-chat-status {
  margin: 7px 3px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #647e94;
  min-height: 0;
}
.remi-chat-status:empty {
  display: none;
}
.remi-demo-caption {
  font-size: 0.86rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .remi-hero {
    padding-top: 30px;
  }
  .remi-chat-messages {
    height: 245px;
  }
}
@media (max-width: 700px) {
  .remi-home h1 {
    font-size: clamp(2.45rem, 8vw, 3.3rem);
  }
  .remi-hero {
    padding-top: 30px;
  }
  .remi-chat-messages {
    height: 235px;
  }
}

/* V3: Give the live Remi conversation visual priority, while bounding it to the viewport. */
@media (min-width: 901px) {
  .remi-hero {
    max-width: 1760px;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(24px, 3vw, 60px);
    padding-left: clamp(24px, 3.5vw, 64px);
    padding-right: clamp(24px, 3.5vw, 64px);
    padding-top: clamp(20px, 3vw, 42px);
    padding-bottom: clamp(24px, 3vw, 48px);
    align-items: center;
  }
  .remi-hero-demo {
    width: 100%;
    min-width: 0;
  }
  .remi-conversation-card {
    width: 100%;
    max-width: none;
    height: clamp(410px, calc(100dvh - 160px), 740px);
    max-height: calc(100dvh - 150px);
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 28px);
    overflow: hidden;
  }
  .remi-chat-messages {
    flex: 1 1 auto;
    height: auto;
    min-height: 100px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .remi-conversation-top,
  .remi-tool-strip,
  .remi-chat-form,
  .remi-chat-status {
    flex-shrink: 0;
  }
  .remi-chat-messages .remi-message,
  .remi-chat-welcome {
    max-width: 86%;
  }
  .remi-demo-caption {
    max-width: 100%;
    margin-top: 10px;
  }
}
@media (min-width: 901px) and (max-height: 660px) {
  .remi-hero {
    padding-top: 12px;
    padding-bottom: 16px;
  }
  .remi-conversation-card {
    height: calc(100dvh - 138px);
    max-height: calc(100dvh - 138px);
    padding: 14px 18px;
  }
  .remi-conversation-top {
    padding-bottom: 10px;
  }
  .remi-tool-strip {
    margin: 5px 0 9px;
  }
  .remi-chat-messages {
    padding-top: 8px;
    min-height: 70px;
  }
}
@media (max-width: 900px) {
  .remi-hero-demo {
    width: 100%;
    min-width: 0;
  }
  .remi-conversation-card {
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: min(610px, 76dvh);
    min-height: 360px;
    overflow: hidden;
  }
  .remi-chat-messages {
    flex: 1 1 auto;
    height: auto;
    min-height: 90px;
  }
  .remi-conversation-top,
  .remi-tool-strip,
  .remi-chat-form,
  .remi-chat-status {
    flex-shrink: 0;
  }
}
@media (max-width: 500px) {
  .remi-conversation-card {
    height: min(560px, 72dvh);
    min-height: 340px;
    padding: 14px;
  }
  .remi-conversation-top {
    padding-bottom: 12px;
  }
  .remi-tool-strip {
    gap: 5px;
    margin: 6px 0 9px;
  }
  .remi-tool-strip span {
    padding: 6px 8px;
    font-size: 0.78rem;
  }
  .remi-chat-messages {
    padding-top: 12px;
  }
}

/* V4 — spacious where it matters, efficient everywhere else.
   Carry the homepage hero's broader reading width and balanced typography
   through all Remi-first landing sections. */
:root {
  --remi-page-gutter: clamp(22px, 3.5vw, 64px);
  --remi-section-space: clamp(42px, 4.6vw, 72px);
}
.remi-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding: var(--remi-section-space) var(--remi-page-gutter);
}
.remi-section h2 {
  max-width: 960px;
  font-size: clamp(2rem, 2.8vw, 3.25rem);
  line-height: 1.17;
  margin: 12px 0 15px;
  font-weight: 690;
  letter-spacing: -0.032em;
}
.remi-section-intro {
  max-width: 920px;
  font-size: clamp(1rem, 1.13vw, 1.17rem);
  line-height: 1.62;
  margin: 0;
}
.remi-section-label {
  font-size: 0.84rem;
  letter-spacing: 0.085em;
}
.remi-outcomes {
  gap: clamp(14px, 1.5vw, 24px);
  margin-top: 27px;
}
.remi-outcomes article {
  padding: clamp(23px, 2.1vw, 34px);
  border-radius: 18px;
  min-width: 0;
}
.outcome-icon {
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
}
.remi-outcomes h3 {
  font-size: clamp(1.18rem, 1.3vw, 1.43rem);
  margin: 0 0 8px;
}
.remi-outcomes p,
.remi-steps p {
  font-size: clamp(0.99rem, 1.05vw, 1.13rem);
  line-height: 1.6;
}
/* Full-bleed bands keep their background while content stays aligned with the hero. */
.remi-how,
.remi-tools {
  max-width: none;
  padding-inline: max(var(--remi-page-gutter), calc((100vw - 1632px) / 2));
}
.remi-how {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(35px, 5vw, 90px);
  align-items: start;
}
.remi-how-heading,
.remi-steps {
  max-width: none;
}
.remi-steps article {
  padding: 13px 0 19px;
  grid-template-columns: 43px minmax(0, 1fr);
}
.remi-steps article:first-child {
  padding-top: 2px;
}
.remi-steps article h3 {
  font-size: clamp(1.1rem, 1.2vw, 1.35rem);
}
.remi-personal {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 95px);
  align-items: center;
}
.remi-personal p:not(.remi-section-label) {
  font-size: clamp(1.04rem, 1.18vw, 1.2rem);
  line-height: 1.65;
}
.remi-tool-list {
  margin-top: 26px;
  gap: 14px;
}
.remi-tool-list .remi-tool-item {
  padding: clamp(18px, 1.7vw, 26px);
  grid-template-columns: 48px minmax(0, 1fr);
}
.remi-tool-list strong {
  font-size: clamp(1.05rem, 1.12vw, 1.2rem);
}
.remi-tool-list small {
  font-size: clamp(0.92rem, 0.98vw, 1.03rem);
  line-height: 1.45;
}
.remi-faq-grid {
  max-width: none;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  align-items: start;
}
.remi-faq-grid details {
  border: 1px solid #e2ebf2;
  border-radius: 16px;
  padding: 20px 22px;
  background: #fff;
  min-width: 0;
}
.remi-faq-grid summary {
  font-size: clamp(1.05rem, 1.1vw, 1.2rem);
  line-height: 1.4;
}
.remi-faq-grid p {
  font-size: 1.03rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.remi-cta {
  padding: clamp(38px, 4.4vw, 70px) max(var(--remi-page-gutter), calc((100vw - 1632px) / 2));
  gap: 35px;
}
.remi-cta h2 {
  font-size: clamp(2rem, 2.9vw, 3.5rem);
  font-weight: 680;
  line-height: 1.16;
  max-width: 1000px;
}
.remi-footer {
  padding: clamp(30px, 3vw, 46px) max(var(--remi-page-gutter), calc((100vw - 1632px) / 2));
}
@media (max-width: 1050px) {
  .remi-faq-grid {
    grid-template-columns: 1fr 1fr;
  }
  .remi-how {
    gap: 32px;
  }
}
@media (max-width: 900px) {
  :root {
    --remi-section-space: clamp(36px, 6vw, 58px);
  }
  .remi-how,
  .remi-personal {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .remi-how,
  .remi-tools,
  .remi-cta,
  .remi-footer {
    padding-inline: var(--remi-page-gutter);
  }
  .remi-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .remi-outcomes,
  .remi-faq-grid,
  .remi-tool-list {
    grid-template-columns: 1fr;
  }
  .remi-section h2 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }
  .remi-section-intro {
    font-size: 1.03rem;
  }
  .remi-cta {
    align-items: stretch;
  }
  .remi-cta .button {
    align-self: flex-start;
  }
}

/* V5: Animated waiting state and progressively revealed replies. */
.remi-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 2px 1px;
}
.remi-thinking-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2382bd;
  animation: remi-pulse 1.05s ease-in-out infinite;
}
.remi-thinking-dots i:nth-child(2) {
  animation-delay: 0.17s;
}
.remi-thinking-dots i:nth-child(3) {
  animation-delay: 0.34s;
}
@keyframes remi-pulse {
  0%,
  65%,
  100% {
    transform: translateY(0) scale(0.88);
    opacity: 0.35;
  }
  32% {
    transform: translateY(-6px) scale(1.15);
    opacity: 1;
  }
}
.remi-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.03em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: #237ab1;
  animation: remi-caret 0.7s steps(1) infinite;
}
@keyframes remi-caret {
  50% {
    opacity: 0;
  }
}
.remi-chat-messages,
.tailorbot-chat-messages {
  scroll-behavior: auto;
  overscroll-behavior: contain;
}
@media (prefers-reduced-motion: reduce) {
  .remi-thinking-dots i,
  .remi-typing-cursor {
    animation: none;
  }
  .remi-typing-cursor {
    display: none;
  }
}

/* V7: mobile-first chat and signup, applied to user-edited copy. */
.remi-signup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #bad9f3;
  background: #edf6ff;
  color: #244663;
  border-radius: 16px;
  padding: 17px;
  max-width: 96%;
  align-self: stretch;
}
.remi-signup-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}
.remi-signup-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 12px;
  background: #176cad !important;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none !important;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 4px 12px rgba(20, 98, 171, 0.18);
}
.remi-signup-button:hover,
.remi-signup-button:focus-visible {
  background: #11568a !important;
  outline-offset: 3px;
}
.tailorbot-chat-message .remi-signup-button {
  margin-top: 13px;
}
@media (max-width: 700px) {
  .remi-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px 14px 34px;
  }
  .remi-hero-demo {
    order: -1;
    width: 100%;
    min-width: 0;
  }
  .remi-hero-copy {
    order: 1;
    padding: 0 3px;
  }
  .remi-conversation-card {
    width: 100%;
    height: clamp(390px, calc(100dvh - 130px), 740px);
    min-height: 0;
    max-height: calc(100dvh - 115px);
    box-sizing: border-box;
    padding: 14px;
    border-radius: 20px;
  }
  .remi-chat-messages {
    min-height: 80px;
    padding: 12px 2px 9px;
    gap: 10px;
  }
  .remi-chat-messages .remi-message,
  .remi-chat-welcome {
    font-size: 1rem;
    max-width: 94%;
  }
  .remi-tool-strip {
    margin: 5px 0 8px;
    gap: 5px;
  }
  .remi-tool-strip span {
    font-size: 0.78rem;
    padding: 6px 8px;
  }
  .remi-chat-form textarea {
    font-size: 16px;
  }
  .remi-chat-send {
    min-width: 44px;
    height: 44px;
  }
  .remi-conversation-top {
    padding-bottom: 12px;
  }
  .remi-demo-caption {
    margin-top: 8px;
    font-size: 0.78rem;
  }
  .remi-home h1 {
    font-size: clamp(2rem, 8vw, 2.85rem);
    line-height: 1.12;
    margin-bottom: 12px;
  }
  .remi-kicker {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }
  .remi-hero-lead {
    font-size: 1rem;
    line-height: 1.55;
  }
  .remi-hero-actions {
    margin-top: 18px;
  }
  .remi-subnote {
    margin-top: 12px;
  }
  .remi-signup-button {
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) and (max-height: 540px) {
  .remi-conversation-card {
    height: calc(100dvh - 93px);
    min-height: 265px;
  }
  .remi-tool-strip {
    display: none;
  }
}

/* Remi account CTA embedded in model text, confined to the existing chat bubble. */
.remi-has-account-button .remi-progressive-text {
  white-space: pre-wrap;
}
.remi-has-account-button .remi-signup-button {
  display: flex !important;
  width: fit-content;
  max-width: 100%;
  margin: 12px 0;
  box-sizing: border-box;
  white-space: normal;
}
@media (max-width: 700px) {
  .remi-has-account-button .remi-signup-button {
    width: 100%;
  }
}

/* v9: clearer, thin-stroke directional arrows — independent of font glyph rendering. */
.remi-home .remi-arrow-forward,
.remi-home .remi-arrow-diagonal,
.remi-signup-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.remi-home .remi-arrow-forward::after,
.remi-home .remi-arrow-diagonal::after,
.remi-signup-button::after {
  content: '';
  display: inline-block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform 0.18s ease;
}
.remi-home .remi-arrow-forward::after,
.remi-signup-button::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h17M12.5 4.5 20 12l-7.5 7.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h17M12.5 4.5 20 12l-7.5 7.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.remi-home .remi-arrow-diagonal::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5 M9.5 5H19v9.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5 M9.5 5H19v9.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.remi-home .remi-arrow-forward:hover::after,
.remi-home .remi-arrow-diagonal:hover::after,
.remi-signup-button:hover::after {
  transform: translate(2px, -1px);
}
.remi-chat-send svg {
  display: block;
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
  pointer-events: none;
}
.remi-tool-list .remi-tool-item b {
  display: grid;
  place-items: center;
}
.remi-tool-list .remi-tool-item b svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
  transition: transform 0.18s ease;
}
.remi-tool-list .remi-tool-item:hover b svg {
  transform: translate(2px, -2px);
}
@media (prefers-reduced-motion: reduce) {
  .remi-home .remi-arrow-forward::after,
  .remi-home .remi-arrow-diagonal::after,
  .remi-signup-button::after,
  .remi-tool-list .remi-tool-item b svg {
    transition: none;
  }
}

/* V10: approved Refinement 1 (Soft Glow) brand assets. */
.remi-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: none;
  line-height: 1;
}
.remi-brand-lockup {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(240px, 42vw);
  object-fit: contain;
}
.remi-avatar-image {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 15px;
  background: transparent;
  box-shadow: 0 7px 16px rgba(22, 95, 163, 0.14);
  padding: 0;
}
.remi-widget-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
@media (max-width: 700px) {
  .remi-brand-lockup {
    height: 48px;
    max-width: 175px;
  }
}

/* v11: avoid legacy .brand img 43x43 crop; responsive two-part logo. */
.site-header.remi-header .brand.remi-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: max-content;
  max-width: calc(100vw - 110px);
  min-width: 0;
  overflow: visible;
  text-decoration: none;
}
.site-header.remi-header .brand.remi-brand img.remi-header-icon {
  display: block;
  flex: 0 0 49px;
  width: 49px;
  height: 49px;
  max-width: none;
  object-fit: contain;
  border-radius: 13px;
  box-shadow: 0 5px 14px rgba(27, 109, 192, 0.13);
}
.remi-header-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  line-height: 0.93;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.remi-header-wordmark span:first-child {
  color: #0b294a;
}
.remi-header-wordmark span:last-child {
  color: #0875dd;
}
@media (max-width: 700px) {
  .site-header.remi-header .brand.remi-brand {
    gap: 8px;
  }
  .site-header.remi-header .brand.remi-brand img.remi-header-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }
  .remi-header-wordmark {
    font-size: 17px;
  }
}
@media (max-width: 360px) {
  .site-header.remi-header .brand.remi-brand img.remi-header-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .remi-header-wordmark {
    font-size: 15px;
  }
}

/* v13: descriptive tool cards are not links to archived marketing pages. */
.remi-tool-list .remi-tool-item {
  cursor: default;
}
.remi-tool-list .remi-tool-item b[aria-hidden='true'] {
  display: none;
}

.remi-tool-list .remi-tool-item:hover {
  box-shadow: none;
  transform: none;
}

/* v14 — quick app downloads beside the primary Remi CTA. */
.remi-hero-actions .remi-download-button {
  gap: 9px;
  white-space: nowrap;
  min-width: 0;
}
.remi-hero-actions .remi-download-button:hover {
  border-color: #90c3ec;
  background: #f3faff;
}
@media (max-width: 700px) {
  .remi-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .remi-hero-actions .button {
    width: 100%;
    padding: 12px 10px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }
  .remi-hero-actions .button.primary {
    grid-column: 1/-1;
  }
}
@media (max-width: 340px) {
  .remi-hero-actions {
    grid-template-columns: 1fr;
  }
  .remi-hero-actions .button.primary {
    grid-column: auto;
  }
}

/* V17 — the in-app navigation is a visual-only preview beside the real public chat. */
.remi-workspace-preview {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 0;
  padding: 0 !important;
  isolation: isolate;
}
.remi-app-sidebar {
  width: clamp(154px, 15vw, 205px);
  flex: 0 0 clamp(154px, 15vw, 205px);
  min-width: 0;
  background: #172b46;
  color: #d8e6f5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 11px 14px;
  border-radius: 24px 0 0 24px;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
}
.remi-app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px 21px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 750;
}
.remi-app-sidebar-brand img {
  height: 31px;
  width: 31px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}
.remi-app-sidebar-new {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  margin-bottom: 18px;
  border: 1px solid #42658e;
  border-radius: 11px;
  color: #f6fbff;
  background: #244566;
  font-size: 0.8rem;
  font-weight: 680;
}
.remi-app-sidebar-label {
  color: #93b1ce;
  letter-spacing: 0.11em;
  font-size: 0.61rem;
  font-weight: 700;
  padding: 5px 10px 8px;
}
.remi-app-sidebar-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.83rem;
  color: #c7d9eb;
  white-space: nowrap;
}
.remi-app-sidebar-entry.selected {
  background: #34557a;
  color: #fff;
  font-weight: 700;
}
.remi-app-sidebar-entry.muted {
  color: #b1c8de;
}
.remi-app-sidebar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.remi-app-sidebar-space {
  flex: 1 1 auto;
  min-height: 12px;
}
.remi-app-sidebar-foot {
  border-top: 1px solid #36506e;
  color: #9db5cb;
  font-size: 0.66rem;
  line-height: 1.4;
  margin-top: 9px;
  padding: 14px 7px 0;
}
.remi-conversation-main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: clamp(15px, 1.7vw, 24px);
}
.remi-workspace-preview .remi-chat-messages {
  flex: 1 1 auto;
  min-height: 90px;
  height: auto;
  max-width: 100%;
}
.remi-workspace-preview .remi-conversation-top,
.remi-workspace-preview .remi-tool-strip,
.remi-workspace-preview .remi-chat-form,
.remi-workspace-preview .remi-chat-status {
  flex-shrink: 0;
}
@media (min-width: 901px) and (max-width: 1240px) {
  .remi-app-sidebar {
    width: 152px;
    flex-basis: 152px;
    padding-left: 7px;
    padding-right: 7px;
  }
  .remi-app-sidebar-entry {
    font-size: 0.76rem;
    padding-left: 8px;
  }
  .remi-conversation-main {
    padding: 15px;
  }
}
@media (max-width: 900px) {
  .remi-app-sidebar {
    width: 155px;
    flex-basis: 155px;
  }
  .remi-workspace-preview {
    height: min(610px, 76dvh);
  }
}
/* On phones, the real chat stays the focus. A compact preview strip hints at the app navigation. */
@media (max-width: 700px) {
  .remi-workspace-preview {
    flex-direction: column !important;
    height: clamp(390px, calc(100dvh - 130px), 740px);
  }
  .remi-app-sidebar {
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    max-height: 48px;
    border-radius: 19px 19px 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7px 12px;
    gap: 7px;
  }
  .remi-app-sidebar-brand {
    padding: 0;
    gap: 7px;
    font-size: 0.83rem;
  }
  .remi-app-sidebar-brand img {
    height: 27px;
    width: 27px;
    border-radius: 8px;
  }
  .remi-app-sidebar-label,
  .remi-app-sidebar-entry,
  .remi-app-sidebar-new,
  .remi-app-sidebar-space,
  .remi-app-sidebar-foot {
    display: none;
  }
  .remi-conversation-main {
    padding: 11px 13px;
    min-height: 0;
    flex: 1 1 auto;
  }
  .remi-workspace-preview .remi-conversation-top {
    padding-bottom: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .remi-workspace-preview * {
    scroll-behavior: auto;
  }
}

/* v18: Android APK installation guide (homepage only) */
.remi-android-overlay[hidden] {
  display: none !important;
}
.remi-android-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 31, 55, 0.68);
  backdrop-filter: blur(5px);
}
.remi-android-dialog {
  position: relative;
  width: min(530px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #16334d;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 28px 100px rgba(0, 20, 50, 0.35);
  outline: none;
}
.remi-android-dialog h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em;
  margin: 12px 0 !important;
}
.remi-android-dialog p {
  color: #465d73;
  line-height: 1.6;
  margin: 0 0 12px;
}
.remi-android-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, #17c9c2, #116bd2);
  color: white;
  font-size: 27px;
  font-weight: 700;
}
.remi-android-close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: #eef4f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  color: #28435a;
  cursor: pointer;
}
.remi-android-steps {
  padding-left: 23px;
  margin: 17px 0 15px;
  display: grid;
  gap: 10px;
  color: #1f415c;
  line-height: 1.55;
}
.remi-android-steps li::marker {
  color: #087ac9;
  font-weight: 800;
}
.remi-android-caution {
  font-size: 0.88rem;
  background: #f1f7fc;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d9e8f4;
}
.remi-android-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.remi-android-actions .button {
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
}
body.remi-android-lock {
  overflow: hidden;
}
@media (max-width: 530px) {
  .remi-android-overlay {
    padding: 10px;
  }
  .remi-android-dialog {
    max-height: calc(100dvh - 20px);
    padding: 24px 18px;
  }
  .remi-android-actions .button {
    flex: 1;
  }
}

/* v19: phone-first visual Android installation walkthrough */
.remi-android-dialog {
  width: min(1080px, 100%);
  padding: 26px 30px;
  max-height: calc(100dvh - 28px);
}
.remi-android-dialog h2 {
  margin: 9px 0 !important;
}
.remi-android-dialog #remi-android-desc {
  margin-bottom: 16px;
  max-width: 72ch;
  font-size: 0.96rem;
}
.remi-android-visual-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 12px;
}
.remi-android-step {
  min-width: 0;
  border: 1px solid #dfebf5;
  border-radius: 15px;
  background: #f9fbfe;
  padding: 10px;
  overflow: hidden;
}
.remi-android-step img {
  display: block;
  width: 100%;
  height: 208px;
  object-fit: contain;
  object-position: center;
  background: #f3f7fb;
  border-radius: 10px;
}
.remi-android-step-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.remi-android-step-caption h3 {
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  color: #17324f;
}
.remi-android-step-number {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d7eaff;
  color: #135ca5;
  font-weight: 800;
}
.remi-android-step p {
  font-size: 0.83rem !important;
  line-height: 1.48 !important;
  margin: 8px 0 2px !important;
  color: #314d68;
}
.remi-android-example-note {
  font-size: 0.79rem !important;
  line-height: 1.4 !important;
  color: #687d8f !important;
  margin: 3px 0 12px !important;
}
.remi-android-https {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #e7f9ee;
  border-radius: 12px;
  padding: 11px 14px;
  color: #155e38 !important;
  font-size: 0.86rem !important;
  margin: 0 !important;
}
.remi-android-actions {
  margin-top: 15px;
}
@media (max-width: 740px) {
  .remi-android-overlay {
    padding: 8px;
  }
  .remi-android-dialog {
    width: 100%;
    padding: 22px 15px;
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .remi-android-dialog h2 {
    font-size: 1.35rem !important;
    padding-right: 25px;
  }
  .remi-android-visual-steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin-right: -15px;
    padding-right: 15px;
    padding-bottom: 9px;
    scrollbar-width: thin;
  }
  .remi-android-step {
    flex: 0 0 min(76vw, 255px);
    scroll-snap-align: start;
    padding: 11px;
  }
  .remi-android-step img {
    height: 260px;
  }
  .remi-android-step-caption h3 {
    font-size: 1rem !important;
  }
  .remi-android-step p {
    font-size: 0.9rem !important;
  }
  .remi-android-actions {
    position: sticky;
    bottom: -22px;
    background: #fff;
    padding: 12px 0 8px;
    margin-bottom: -8px;
    box-shadow: 0 -5px 12px rgba(255, 255, 255, 0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  .remi-android-visual-steps {
    scroll-behavior: auto;
  }
}

/* v20: homepage pricing — follows Remi's World design language */
.remi-pricing {
  scroll-margin-top: 92px;
}
.remi-pricing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.remi-pricing-head h2 {
  margin-bottom: 14px;
}
.remi-pricing-billing {
  flex: none;
  border: 1px solid #dce8f3;
  background: #f3f8fc;
  border-radius: 100px;
  color: #31546f;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 11px 16px;
  margin: 0 0 8px;
}
.remi-pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}
.remi-price-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 25px 20px;
  border: 1px solid #dfe9f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 47, 77, 0.035);
}
.remi-price-card h3 {
  margin: 0 0 21px;
  font-size: 1.15rem;
  color: #1b425e;
  letter-spacing: -0.02em;
}
.remi-price-value {
  font-weight: 760;
  color: #102e47;
  font-size: clamp(1.7rem, 2.3vw, 2.6rem);
  white-space: nowrap;
  letter-spacing: -0.035em;
}
.remi-price-value span {
  font-size: 0.76rem;
  letter-spacing: 0;
  font-weight: 560;
  color: #667e90;
  white-space: nowrap;
}
.remi-price-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64798a;
  margin: 14px 0 24px;
  flex: 1;
}
.remi-price-card .button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.85rem;
  min-height: 46px;
  border-radius: 12px;
  white-space: normal;
}
.remi-price-card-featured {
  border-color: #7eaee3;
  background: linear-gradient(160deg, #f2f8ff 0%, #fff 65%);
  box-shadow: 0 12px 34px rgba(35, 102, 173, 0.11);
}
.remi-price-contact {
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  padding: 8px 0;
}
.remi-pricing-note {
  color: #667e90;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 17px 0 0;
}
@media (max-width: 1150px) {
  .remi-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .remi-pricing-head {
    display: block;
  }
  .remi-pricing-billing {
    display: inline-block;
    margin: 20px 0 0;
  }
  .remi-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .remi-price-card {
    padding: 22px 16px;
  }
}
@media (max-width: 450px) {
  .remi-pricing-grid {
    grid-template-columns: 1fr;
  }
  .remi-price-card {
    padding: 23px;
  }
  .remi-price-card h3 {
    margin-bottom: 10px;
  }
  .remi-price-card p {
    margin: 10px 0 16px;
  }
}

/* Romania language hint: a light, dismissible suggestion rather than an IP redirect. */
.remi-language-suggestion {
  position: fixed;
  z-index: 10000;
  right: clamp(12px, 3vw, 36px);
  bottom: clamp(12px, 3vw, 34px);
  width: min(420px, calc(100vw - 24px));
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px 42px 20px 18px;
  border: 1px solid rgba(50, 129, 220, 0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.98));
  box-shadow:
    0 12px 44px rgba(22, 56, 103, 0.18),
    0 0 0 4px rgba(110, 175, 243, 0.08);
  color: #12304e;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  text-align: left;
  line-height: 1.4;
  animation: remi-lang-appear 0.28s ease both;
}
.remi-lang-suggestion-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #116bb9, #49c0d5);
  color: white;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.remi-lang-suggestion-content {
  min-width: 0;
}
.remi-lang-suggestion-content strong {
  display: block;
  font-weight: 750;
  font-size: 15px;
  line-height: 1.35;
}
.remi-lang-suggestion-content p {
  margin: 7px 0 14px;
  color: #536980;
  font-size: 13px;
  line-height: 1.5;
}
.remi-lang-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.remi-language-suggestion .remi-lang-suggestion-primary,
.remi-language-suggestion .remi-lang-suggestion-secondary {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}
.remi-language-suggestion .remi-lang-suggestion-primary {
  background: #116fbe;
  color: #fff;
  border: 1px solid #116fbe;
}
.remi-language-suggestion .remi-lang-suggestion-primary:hover {
  background: #095caa;
}
.remi-language-suggestion .remi-lang-suggestion-secondary {
  color: #164d77;
  background: #fff;
  border: 1px solid #d5e3f0;
}
.remi-language-suggestion .remi-lang-suggestion-secondary:hover {
  background: #f3f8ff;
}
.remi-language-suggestion .remi-lang-suggestion-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #647b90;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 8px;
}
.remi-language-suggestion .remi-lang-suggestion-close:hover {
  background: #e9f1fa;
}
.remi-language-suggestion :is(button, a):focus-visible {
  outline: 3px solid #66abef;
  outline-offset: 3px;
}
@keyframes remi-lang-appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 520px) {
  .remi-language-suggestion {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
    padding: 17px 37px 17px 14px;
    gap: 10px;
    border-radius: 17px;
  }
  .remi-lang-suggestion-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .remi-lang-suggestion-content strong {
    font-size: 14px;
  }
  .remi-lang-suggestion-actions {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .remi-language-suggestion {
    animation: none;
  }
}
