/* How it works: animated phone story. Every rule is scoped to #how. */
#how { --bg: #ECE8E1; --surface: #FFFFFF; --ink: #1C1B19; --muted: #6E6A64; --line: #E1DCD3; --olive: #5E6B4E; --star: #B08D57; --serif: "Instrument Serif", Georgia, serif; --ease: cubic-bezier(.2,.8,.2,1); background: var(--bg); color: var(--ink); }
#how em { font-style: italic; }
#how .story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 120px 48px; max-width: 1240px; margin: 0 auto; }
#how h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; font-size: clamp(36px, 4.6vw, 64px); margin: 22px 0 36px; }
#how .steps { list-style: none; position: relative; padding-left: 28px; }
#how .steps::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: #CFC8BD; }
#how .step { position: relative; padding: 12px 0; opacity: .35; transition: opacity .5s; cursor: pointer; }
#how .step:hover { opacity: .7; }
#how .step.active { opacity: 1; }
#how .step::before { content: ""; position: absolute; left: -28px; top: 12px; bottom: 12px; width: 1px; background: var(--ink); transform: scaleY(0); transform-origin: top; }
#how .step.active::before { transform: scaleY(var(--p, 0)); }
#how .step h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; display: flex; gap: 16px; align-items: baseline; }
#how .step h3 small { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
#how .step p { color: var(--muted); max-width: 420px; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), margin .6s; }
#how .step.active p { max-height: 120px; margin-top: 6px; }
#how .device { position: relative; width: min(420px, 100%); height: 560px; margin-left: auto; background: var(--surface); border-radius: 28px; box-shadow: 0 50px 100px -40px rgba(28,27,25,.45), 0 0 0 1px rgba(28,27,25,.06); overflow: hidden; }
#how .device-top { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #FBFAF8; }
#how .device-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
#how .device-top span { margin-left: 10px; font-size: 12px; color: var(--muted); }
#how .scene { position: absolute; inset: 46px 0 0; padding: 22px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
#how .scene.active { opacity: 1; transform: none; }
#how .ui-title { font-weight: 600; font-size: 14px; }
#how .searchbar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 15px; }
#how .searchbar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
#how .caret { display: inline-block; width: 1.5px; height: 18px; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: sw-blink 1s steps(1) infinite; }
@keyframes sw-blink { 50% { opacity: 0; } }
#how .map { height: 120px; margin: 16px 0 14px; border-radius: 14px; background: #EEEBE5; position: relative; overflow: hidden; }
#how .map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 46%, #fff 46%, #fff 50%, transparent 50%), linear-gradient(25deg, transparent 60%, #fff 60%, #fff 63%, transparent 63%); }
#how .pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #B9B2A7; }
#how .pin.you { background: var(--ink); width: 20px; height: 20px; box-shadow: 0 0 0 6px rgba(28,27,25,.12); }
#how .results { position: relative; height: 290px; }
#how .result { position: absolute; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
#how .result .ph { width: 40px; height: 40px; border-radius: 9px; background: #F0EDE8; flex: none; }
#how .result b { font-size: 14px; font-weight: 600; display: block; }
#how .result .meta { font-size: 12px; color: var(--muted); }
#how .result .meta em { font-style: normal; color: var(--star); letter-spacing: 1px; }
#how .result.you { border-color: var(--ink); box-shadow: 0 12px 26px -14px rgba(28,27,25,.5); z-index: 2; }
#how .result.you .ph { background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11px; letter-spacing: .05em; font-style: normal; }
#how .rank { margin-left: auto; font-weight: 600; font-size: 13px; color: var(--muted); }
#how .result.you .rank { color: var(--ink); }
#how .rating { text-align: center; padding: 14px 0 20px; border-bottom: 1px solid var(--line); }
#how .rating .num { font-family: var(--serif); font-size: 84px; line-height: 1; }
#how .stars { position: relative; display: inline-block; font-size: 24px; letter-spacing: 4px; color: var(--line); margin: 6px 0 2px; }
#how .stars .fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); white-space: nowrap; }
#how .rating small { display: block; color: var(--muted); font-size: 13px; }
#how .reviews { margin-top: 16px; display: grid; gap: 10px; }
#how .review { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; opacity: 0; transform: translateX(30px); transition: opacity .4s, transform .4s var(--ease); }
#how .review.show { opacity: 1; transform: none; }
#how .review .who { display: flex; justify-content: space-between; font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }
#how .review .who em { font-style: normal; color: var(--star); }
#how .review p { color: var(--muted); }
#how .chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
#how .chat-head .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
#how .chat-head span { font-size: 12px; color: var(--olive); display: block; }
#how .chat-head time { margin-left: auto; font-size: 12px; color: var(--muted); }
#how .msgs { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
#how .msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease); }
#how .msg.show { opacity: 1; transform: none; }
#how .msg.them { background: #F1EEE9; border-bottom-left-radius: 4px; }
#how .msg.bot { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
#how .msg.bot.ok { background: var(--olive); }
#how .cal-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
#how .cal-head span { font-size: 13px; color: var(--muted); display: block; }
#how .cal-count { font-family: var(--serif); font-size: 52px; line-height: .9; }
#how .cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
#how .cal .d { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 4px; }
#how .cal .col { display: grid; grid-template-rows: repeat(6, 52px); gap: 6px; }
#how .slot { border-radius: 9px; background: #F3F1ED; position: relative; overflow: hidden; }
#how .slot .job { position: absolute; inset: 0; border-radius: 9px; padding: 6px 7px; font-size: 10.5px; font-weight: 500; line-height: 1.25; color: #fff; transform: scale(.6); opacity: 0; transition: transform .35s cubic-bezier(.3,1.5,.6,1), opacity .25s; }
#how .slot .job.show { transform: none; opacity: 1; }
#how .toast { position: absolute; left: 18px; right: 18px; bottom: 18px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; transform: translateY(130%); transition: transform .45s cubic-bezier(.3,1.3,.6,1); }
#how .toast.show { transform: none; }
#how .toast i { width: 26px; height: 26px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; font-style: normal; flex: none; }
@media (max-width: 960px) {
  #how .story { padding: 96px 24px; gap: 40px; }
}
@media (max-width: 760px) {
  #how .story { grid-template-columns: 1fr; gap: 24px; padding: 72px 16px; align-items: start; }
  #how h2 { font-size: 34px; margin: 14px 0 18px; }
  #how .step:not(.active) { display: none; }
  #how .step { padding: 0; }
  #how .step::before { top: 0; bottom: 0; }
  #how .step h3 { font-size: 26px; }
  #how .step p { max-height: none; margin-top: 4px; font-size: 15px; }
  #how .steps { padding-left: 18px; }
  #how .step::before { left: -18px; }
  #how .device { margin: 0 auto; height: 520px; }
  #how .scene { padding: 16px; }
}
