/* Free Message check on the landing page: a feature-card look with a phone chat inside */
.try-sec { padding-block: clamp(56px, 8vw, 110px) clamp(20px, 3vw, 40px); }
body.hx .tw { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; background: #f58fab; color: #3b2218; border-radius: 44px; padding: 52px 56px; max-width: 1080px; margin: 0 auto; isolation: isolate; }
.tw-text { position: relative; }
body.hx .tw .f-tag { display: inline-block; color: #3b2218; }
body.hx .tw h2 { font-family: "Fraunces", Georgia, serif; font-size: clamp(36px, 4.6vw, 62px); line-height: 1; letter-spacing: -.03em; font-weight: 520; color: #3b2218; margin: 16px 0 16px; max-width: none; }
body.hx section.try-sec .tw h2 em { display: block; color: #3b2218 !important; -webkit-text-fill-color: #3b2218 !important; font-style: italic; font-weight: 480; }
body.hx .tw p { color: #3b2218; opacity: .88; font-size: 17.5px; line-height: 1.5; max-width: 38ch; margin: 0; }
.tw-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.tw-ex span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; width: 100%; opacity: .7; }
.tw-ex button { font: inherit; font-size: 14px; line-height: 1.2; text-align: left; background: #fff3e2; color: #3b2218; border: 0; border-radius: 99px; padding: 9px 15px; cursor: pointer; box-shadow: 0 2px 0 rgba(59,34,24,.18); transition: transform .15s, background .15s; }
.tw-ex button:hover { background: #fff; transform: translateY(-2px); }
.tw-pts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; font-size: 13.5px; font-weight: 600; }
.tw-pts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3b2218; margin-right: 8px; vertical-align: 1px; }

/* phone */
.tw-ph { position: relative; width: 320px; justify-self: center; border-radius: 46px; background: #3b2218; padding: 9px; box-shadow: 0 40px 70px -30px rgba(59,34,24,.65); transform: rotate(1.5deg); }
.tw-notch { position: absolute; left: 50%; top: 17px; width: 78px; height: 22px; border-radius: 99px; background: #3b2218; transform: translateX(-50%); z-index: 3; }
.tw-scr { height: 560px; border-radius: 38px; background: #fffaf0; padding: 46px 12px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tw-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.tw-pt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #3b2218; }
.tw-pt i { width: 8px; height: 8px; border-radius: 50%; background: #f58fab; }
.tw-left { font-size: 11px; color: #3b2218; opacity: .6; font-weight: 600; }
.tw-msgs { position: relative; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 4px 2px 6px; scrollbar-width: none; scroll-behavior: smooth; }
.tw-msgs::-webkit-scrollbar { display: none; }
.tw-b { max-width: 90%; padding: 10px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.4; color: #3b2218; animation: twIn .4s cubic-bezier(.2,.8,.2,1) both; word-wrap: break-word; overflow-wrap: anywhere; }
@keyframes twIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.tw-b.me { align-self: flex-end; background: #3b2218; color: #fff3e2; border-bottom-right-radius: 5px; }
.tw-b.ai { background: #fff; box-shadow: 0 1px 2px rgba(59,34,24,.12); border-bottom-left-radius: 5px; }
.tw-b.note { background: #f9d98a; border-radius: 16px; max-width: 100%; }
.tw-b.note.rose { background: #f7c4cf; }
.tw-b.lock { background: transparent; border: 1.5px dashed rgba(59,34,24,.35); max-width: 100%; }
.tw-b small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .6; margin-bottom: 3px; }
.tw-b ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; }
.tw-b .t { margin: 2px 0 0; font-size: 14px; }
.tw-risk { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 3px 9px; margin-bottom: 6px; background: #f9d98a; }
.tw-risk.low { background: #bfe3b4; } .tw-risk.high { background: #f4a0a0; }
.tw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tw-copy { font: inherit; font-size: 11.5px; font-weight: 600; background: #fffaf0; color: #3b2218; border: 0; border-radius: 99px; padding: 3px 10px; cursor: pointer; }
.tw-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.tw-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3b2218; opacity: .35; animation: twDot 1s infinite; }
.tw-dots i:nth-child(2) { animation-delay: .15s; } .tw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes twDot { 0%, 60%, 100% { transform: none; opacity: .3; } 30% { transform: translateY(-4px); opacity: .9; } }
.tw-cta { background: #3b2218; color: #fff3e2; border-radius: 18px; padding: 14px; max-width: 100%; animation: twIn .4s both; }
.tw-cta b { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 520; font-size: 17px; line-height: 1.15; margin-bottom: 6px; }
.tw-cta span { display: block; font-size: 12.5px; opacity: .8; line-height: 1.4; margin-bottom: 10px; }
.tw-cta a { display: block; text-align: center; background: #f58fab; color: #3b2218; font-weight: 700; font-size: 14px; border-radius: 99px; padding: 10px; text-decoration: none; }
.tw-err { margin: 0; padding: 0 6px; font-size: 12px; font-weight: 600; color: #a02040; }
.tw-bar { display: flex; align-items: flex-end; gap: 8px; background: #fff; border-radius: 26px; padding: 6px 6px 6px 14px; box-shadow: 0 0 0 1.5px rgba(59,34,24,.18); }
.tw-bar:focus-within { box-shadow: 0 0 0 2px #f58fab; }
.tw-bar textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 14px; line-height: 1.35; color: #3b2218; max-height: 96px; padding: 7px 0; }
.tw-bar textarea::placeholder { color: rgba(59,34,24,.5); }
.tw-send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f58fab; color: #3b2218; display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.tw-send:hover { transform: scale(1.08); }
.tw-send[disabled] { opacity: .5; cursor: default; transform: none; }

@media (max-width: 900px) {
  body.hx .tw { grid-template-columns: 1fr; padding: 34px 22px 40px; border-radius: 34px; gap: 30px; }
  body.hx .tw h2 { max-width: none; }
    .tw-ph { width: min(330px, 100%); transform: none; }
  .tw-scr { height: 520px; }
}
@media (prefers-reduced-motion: reduce) { .tw-b, .tw-cta, .tw-dots i { animation: none; } .tw-msgs { scroll-behavior: auto; } }

/* Minimal variant (homepage): no panel. Headline + quiet examples on the left, one glowing phone with a live demo on the right. */
body.hx #try-card.tw-min { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: 1fr auto 1fr; column-gap: clamp(40px, 7vw, 110px); align-items: center; position: relative; max-width: 1080px; margin: 0 auto; padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; text-align: left; color: #3b2218; isolation: isolate; }
body.hx #try-card.tw-min::before { content: ""; position: absolute; z-index: -1; right: -80px; top: 50%; width: min(620px, 70%); aspect-ratio: 1; transform: translateY(-50%); background: radial-gradient(circle, rgba(245,143,171,.42), rgba(249,217,138,.18) 48%, transparent 68%); pointer-events: none; }
body.hx #try-card.tw-min h2 { grid-column: 1; grid-row: 2; align-self: end; margin: 0; max-width: 11ch; color: #3b2218 !important; -webkit-text-fill-color: #3b2218 !important; font-size: clamp(42px, 5.8vw, 84px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
body.hx #try-card.tw-min h2 em { display: block; color: #e9658f !important; -webkit-text-fill-color: #e9658f !important; font-style: italic; font-weight: 480; }
.tw-min .tw-stage { display: contents; }
.tw-min .tw-ex { grid-column: 1; grid-row: 3; align-self: start; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; }
.tw-min .tw-ex button { font: 600 15px/1.2 "DM Sans", Inter, sans-serif; background: none; border: 0; border-bottom: 1.5px solid rgba(59,34,24,.25); border-radius: 0; padding: 4px 1px; color: #3b2218; box-shadow: none; cursor: pointer; transition: border-color .2s, color .2s; text-align: left; }
.tw-min .tw-ex button:hover { border-color: #e9658f; color: #c93f6b; background: none; transform: none; }
.tw-min.used .tw-ex { display: none; }
.tw-min .tw-ph { grid-column: 2; grid-row: 1 / 4; position: relative; transform: none; width: 340px; box-shadow: 0 40px 70px -30px rgba(59,34,24,.6); }
.tw-min .tw-ph { transition: transform .35s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.tw-min .tw-scr { height: 480px; text-align: left; color: #3b2218; }
@media (max-width: 900px) {
  body.hx #try-card.tw-min { display: flex; flex-direction: column; align-items: center; text-align: center; }
  body.hx #try-card.tw-min::before { right: 50%; transform: translate(50%, -30%); top: 60%; }
  body.hx #try-card.tw-min h2 { max-width: 14ch; }
  .tw-min .tw-ex { justify-content: center; margin: 22px 0 26px; }
  .tw-min .tw-ph { width: min(340px, 100%); }
  .tw-min .tw-scr { height: 440px; }
}

/* motion: staggered entrance, breathing glow, tension meter */
.tw-meter { display: block; height: 6px; margin-top: 9px; border-radius: 9px; background: rgba(59,34,24,.15); overflow: hidden; }
.tw-meter i { display: block; height: 100%; width: 0; border-radius: 9px; background: #e9658f; animation: twFill 1.1s .3s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes twFill { to { width: var(--v, 60%); } }
@keyframes twGlow { from { scale: .92; opacity: .75; } to { scale: 1.08; opacity: 1; } }
body.hx #try-card.tw-min::before { animation: twGlow 5s ease-in-out infinite alternate; }
@keyframes twUp { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
@keyframes twRise { from { opacity: 0; translate: 0 70px; rotate: 3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.mo .tw-min.in h2 { animation: twUp .9s cubic-bezier(.2,.8,.2,1) both; }
.mo .tw-min.in h2 em { animation: twUp .9s cubic-bezier(.2,.8,.2,1) .15s both; }
.mo .tw-min.in .tw-ex { animation: twUp .9s cubic-bezier(.2,.8,.2,1) .35s both; }
.mo .tw-min.in .tw-ph { animation: twRise 1.2s cubic-bezier(.2,.8,.2,1) .2s both; }
@media (prefers-reduced-motion: reduce) { body.hx #try-card.tw-min::before, .mo .tw-min.in h2, .mo .tw-min.in h2 em, .mo .tw-min.in .tw-ex, .mo .tw-min.in .tw-ph, .tw-meter i { animation: none; } .tw-meter i { width: var(--v, 60%); } }
