/* "What you get": stacked on phones; pinned list and changing demo on large screens. */
.features.ds { position: relative; padding: var(--section-y) 0; background: var(--surface); }
.ft-list { display: grid; gap: var(--space-8); }
.ft-item { display: grid; gap: var(--space-5); justify-items: center; }
.ft-text { justify-self: stretch; display: grid; gap: var(--space-2); }
.ft-text p { color: var(--text-muted); max-width: 32rem; }
.ft-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); min-height: 2.75rem; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ft-title small { padding: 2px 10px; border: 1px solid var(--accent); border-radius: var(--radius-pill); color: var(--accent); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0; }
.ft-num { color: var(--accent); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.ft-demo { display: grid; justify-items: center; gap: var(--space-3); width: 100%; }
.ft-note { color: var(--text-muted); font-size: var(--text-xs); text-align: center; max-width: 20rem; }

/* Frames */
.ft-phone { width: min(100%, 18rem); padding: 9px; background: linear-gradient(160deg, #48526d, #0d1220 45%); border-radius: 2.4rem; box-shadow: var(--lift-lg); }
.ft-screen { position: relative; height: 34rem; overflow: hidden; border-radius: 1.85rem; background: #fff; color: #111827; font-family: var(--font-body); }
.ft-panel { display: flex; flex-direction: column; width: min(100%, 24rem); height: 30rem; overflow: hidden; background: var(--ink-950); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--lift-lg); }

/* 1. Old page morphs into a phone layout */
.ft-morph { background: #d8d8d0; transition: background-color 900ms var(--ease); }
.ft-morph .m { position: absolute; overflow: hidden; transition: all 1000ms var(--ease); }
.m-title { top: 6%; left: 3%; width: 60%; height: 3%; font: 700 8px/1.2 "Times New Roman", serif; color: #1e1b8a; }
.m-nav { display: flex; gap: 4px; top: 9.500%; left: 3%; width: 60%; height: 3%; font: 5px "Times New Roman", serif; color: #0000ee; }
.m-photo { top: 13%; left: 52%; width: 45%; height: 11%; background: linear-gradient(135deg, #9a9a90, #77776d); }
.m-text { top: 13%; left: 3%; width: 46%; height: 8%; font: 5px/1.3 "Times New Roman", serif; }
.m-list { display: grid; align-content: start; top: 25%; left: 3%; width: 94%; height: 9%; font: 5px "Times New Roman", serif; }
.m-list span { border: 1px solid #8a8a80; padding: 0 2px; }
.m-btn { top: 35%; left: 40%; width: 20%; height: 2.600%; display: flex; align-items: center; justify-content: center; background: #bbb; border: 1px outset #ddd; font: 5px "Times New Roman", serif; }
.ft-morph.is-clean { background: #fff8ee; }
.is-clean .m-title { top: 7%; left: 7%; width: 86%; height: 6%; font: 700 24px/1.2 var(--font-display); color: #1c1002; }
.is-clean .m-nav { gap: 18px; top: 14%; left: 7%; width: 86%; height: 5%; font: 700 13px var(--font-body); color: #8a4b00; }
.is-clean .m-nav u { text-decoration: none; }
.is-clean .m-photo { top: 20.500%; left: 7%; width: 86%; height: 25%; background: linear-gradient(135deg, #ffb457, #e2681f); border-radius: 18px; }
.is-clean .m-text { top: 48%; left: 7%; width: 86%; height: 9%; font: 500 15px/1.4 var(--font-body); }
.is-clean .m-list { gap: 5px; top: 58%; left: 7%; width: 86%; height: 28%; font: 700 14px/1.2 var(--font-body); }
.is-clean .m-list span { padding: 8px 14px; background: #fff; border: 1px solid #f0dfc4; border-radius: 12px; }
.is-clean .m-btn { top: 87.500%; left: 7%; width: 86%; height: 9%; background: #ffa02e; border: 0; border-radius: 999px; font: 700 16px var(--font-body); color: #1c1002; }
.ft-note .ft-before { display: none; }
.ft-demo:has(.ft-morph:not(.is-clean)) .ft-before { display: inline; }
.ft-demo:has(.ft-morph:not(.is-clean)) .ft-after { display: none; }

/* 2. WhatsApp */
.wa { display: flex; flex-direction: column; background: #efeae2; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 22px 16px 12px; background: #075e54; color: #fff; font-size: 15px; }
.wa-avatar { width: 34px; height: 34px; background: linear-gradient(135deg, #ffb457, #e2681f); border-radius: 50%; }
.wa-log { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; overflow: hidden; }
.ds .wa-msg { max-width: 84%; margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); animation: pop 250ms var(--ease); }
.wa-msg[hidden] { display: none; }
.wa-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-in, .wa-typing { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.wa-input { flex: 1; min-height: 40px; padding: 10px 14px; background: #fff; border-radius: 20px; font-size: 13px; line-height: 1.4; }
.wa-send { display: grid; place-items: center; width: 40px; height: 40px; background: #00a884; color: #fff; border-radius: 50%; }
.wa-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0 10px 14px; background: #25d366; color: #05240f; border: 0; border-radius: 999px; font: 700 15px var(--font-body); cursor: pointer; box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
.wa-button:hover { background: #20bd5a; }

/* Typing dots, shared */
.wa-typing i, .as-typing i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; background: currentColor; border-radius: 50%; opacity: 0.35; animation: blink 1s infinite; }
.wa-typing i:nth-child(2), .as-typing i:nth-child(2) { animation-delay: 150ms; }
.wa-typing i:nth-child(3), .as-typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes blink { 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* 3. Chat assistant */
.as-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: var(--space-4) var(--space-5); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.as-head span { color: var(--text-muted); font-size: var(--text-xs); }
.as-log { display: flex; flex: 1; flex-direction: column; gap: var(--space-2); padding: var(--space-4); overflow-y: auto; }
.ds .as-msg { max-width: 86%; margin: 0; padding: 10px 14px; border-radius: 14px; font-size: var(--text-sm); line-height: 1.5; animation: pop 250ms var(--ease); }
.as-bot { align-self: flex-start; background: var(--surface-raised); }
.as-you { align-self: flex-end; background: var(--accent); color: var(--on-accent); font-weight: 500; }
.as-chips { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--line); }
.as-chips button { min-height: 2.75rem; padding: 0 var(--space-4); background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font: 500 var(--text-sm) var(--font-body); cursor: pointer; }
.as-chips button:hover { border-color: var(--accent); background: var(--accent-soft); }

/* 4. Checklist */
.care { height: auto; }
.care-list { display: grid; margin: 0; padding: var(--space-2) var(--space-5); list-style: none; }
.care-list li { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: var(--text-lg); transition: color var(--dur) var(--ease); }
.care-list li:last-child { border-bottom: 0; }
.care-list li.is-done { color: var(--text); }
.care-tick { display: grid; place-items: center; flex: 0 0 2.25rem; height: 2.25rem; border: 2px solid var(--line-strong); border-radius: 50%; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.care-tick svg { width: 1.4rem; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 400ms var(--ease) 100ms; }
.is-done .care-tick { background: var(--accent); border-color: var(--accent); }
.is-done .care-tick svg { stroke-dashoffset: 0; }
.care-price { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--line); color: var(--text-muted); }
.care-price strong { color: var(--text); font-family: var(--font-display); font-size: var(--text-xl); }
.ds .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Large screens: switched on by features.js */
.features.ds.is-pinned { height: 340vh; padding: 0; }
.features.is-pinned .ft-pin { position: sticky; top: 4.5rem; display: flex; align-items: center; height: calc(100vh - 4.5rem); }
.features.is-pinned .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: var(--space-8); }
.features.is-pinned .section-header { grid-column: 1; margin-bottom: var(--space-5); }
.features.is-pinned .ft-list { display: contents; }
.features.is-pinned .ft-item { display: contents; }
.features.is-pinned .ft-list { gap: 0; }
.features.is-pinned .ft-text { grid-column: 1; align-content: start; gap: 0; padding: var(--space-3) 0 var(--space-3) var(--space-5); border-left: 3px solid var(--line); }
.features.is-pinned .is-active .ft-text { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.features.is-pinned .ft-text p { font-size: var(--text-sm); }
.features.is-pinned .ft-item:not(.is-active) h3 { color: var(--text-muted); }
.features.is-pinned .ft-demo { grid-column: 2; grid-row: 1 / span 5; align-content: center; align-self: center; visibility: hidden; opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease), transform 400ms var(--ease), visibility 0s 400ms; }
.features.is-pinned .is-active .ft-demo { visibility: visible; opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.features.is-pinned .ft-screen { height: min(34rem, calc(100vh - 11.5rem)); }
.features.is-pinned .ft-panel:not(.care) { height: min(30rem, calc(100vh - 11rem)); }
