/* ===== swipe survey demo (mirrors the real 口コミロボ™ customer screens) ===== */
.nk-answer .nk-answer-grid{grid-template-columns:340px 1fr;align-items:start}
.sd-wrap{display:flex;flex-direction:column;align-items:center}
.sd-phone{position:relative;width:320px;height:640px;padding:12px;background:#111;border-radius:46px;box-shadow:0 18px 40px rgba(0,0,0,.18),inset 0 0 0 2px #333}
.sd-notch{position:absolute;z-index:3;top:20px;left:50%;width:96px;height:26px;margin-left:-48px;background:#111;border-radius:20px}
.sd-screen{position:relative;height:100%;overflow:hidden;border-radius:36px;background:#eef4ff;font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:#1f2a44;display:flex;flex-direction:column}
.sd-phone .sd-s{flex:1;display:flex;flex-direction:column;padding:16px 16px 18px;min-height:0}
.sd-s[hidden]{display:none!important}
.sd-s.is-on{animation:sdIn .28s ease}
@keyframes sdIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.sd-s h3{font-size:18px;line-height:1.45;font-weight:800;letter-spacing:0;color:#1f2a44;text-align:center}
.sd-sub{margin-top:6px;font-size:12.5px;line-height:1.7;color:#55607a;text-align:center}
.sd-label{margin-top:12px;font-size:12px;font-weight:700;color:#55607a}

/* progress header */
.sd-progress{padding:52px 18px 10px;background:#fff}
.sd-progress-title{font-size:13px;font-weight:700;text-align:center;color:#1f2a44}
.sd-progress-bar{height:6px;margin-top:8px;border-radius:99px;background:#e5e9f2;overflow:hidden}
.sd-progress-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3b82f6,#60a5fa);border-radius:99px;transition:width .4s ease}
.sd-progress-steps{display:flex;justify-content:space-between;margin-top:8px}
.sd-progress-steps li{display:flex;align-items:center;gap:4px;font-size:11px;color:#9aa3b5}
.sd-progress-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e5e9f2;font-size:11px;color:#6b7590}
.sd-progress-steps li.is-active{color:#2563eb;font-weight:700}
.sd-progress-steps li.is-active b{background:#2563eb;color:#fff}

/* buttons */
.sd-btn{display:block;width:100%;margin-top:10px;padding:13px 12px;border-radius:14px;font-size:14px;font-weight:800;text-align:center;cursor:pointer}
.sd-btn--main{background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff;box-shadow:0 6px 14px rgba(37,99,235,.25)}
.sd-btn--ghost{background:transparent;color:#55607a;font-weight:700;padding:8px}
.sd-btn--copy{background:#fff;border:2px solid #2563eb;color:#2563eb}
.sd-btn--copy.is-done{background:#ecfdf5;border-color:#10b981;color:#059669}
.sd-btn--google{background:#10b981;color:#fff}
.sd-btn--google:disabled{background:#cfd6e3;color:#fff;cursor:not-allowed}

/* start */
.sd-phone .sd-start{justify-content:center;padding-top:56px;background:linear-gradient(180deg,#fff 0%,#eef4ff 100%)}
.sd-start img{width:84px;height:84px;margin:0 auto}
.sd-store{margin-top:8px;font-size:12px;font-weight:700;color:#2563eb;text-align:center}
.sd-start h3{font-size:22px;margin-top:2px}
.sd-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:18px 0 8px}
.sd-trust li{padding:8px 4px;background:#fff;border-radius:12px;font-size:11.5px;font-weight:800;line-height:1.35;text-align:center;color:#1f2a44;box-shadow:0 2px 6px rgba(31,42,68,.06)}
.sd-trust small{display:block;font-size:9.5px;font-weight:600;color:#8a93a8}

/* questions */
.sd-q-head{font-size:12px;font-weight:700;color:#55607a;text-align:center}
.sd-deck{position:relative;flex:1;margin-top:8px;min-height:250px}
.sd-card{position:absolute;inset:0 4px 8px;display:flex;flex-direction:column;align-items:center;padding:18px 14px 14px;background:#fff;border-radius:22px;box-shadow:0 10px 24px rgba(31,42,68,.12);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.sd-card:active{cursor:grabbing}
.sd-card--back{transform:translateY(10px) scale(.95);opacity:.7;box-shadow:0 4px 10px rgba(31,42,68,.08);pointer-events:none}
.sd-card-pill{padding:3px 12px;border-radius:99px;background:#e8f0ff;color:#2563eb;font-size:11px;font-weight:800}
.sd-card-q{flex:1;display:grid;place-items:center;margin-top:8px;font-size:18px;font-weight:800;line-height:1.55;text-align:center;white-space:pre-line;color:#1f2a44}
.sd-card-sep{width:100%;border-top:1.5px dotted #c9d5ee;position:relative;margin:6px 0 10px}
.sd-card-sep i{position:absolute;left:50%;top:-9px;margin-left:-8px;font-style:normal;color:#93b4f5;font-size:13px;background:#fff;padding:0 2px}
.sd-card-swipe{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 6px;border-radius:14px;background:#f6f8fd}
.sd-card-swipe span{display:flex;flex-direction:column;align-items:center;font-size:16px;font-weight:900;line-height:1}
.sd-card-swipe small{margin-top:3px;font-size:9.5px;font-weight:700}
.sd-no{color:#ef4444}
.sd-yes{color:#10b981}
.sd-card-swipe .sd-hand{font-size:10px;font-weight:700;color:#2563eb}
.sd-stamp{position:absolute;top:16px;padding:3px 12px;border:3px solid;border-radius:10px;font-size:18px;font-weight:900;opacity:0;transition:opacity .12s}
.sd-stamp--yes{left:14px;color:#10b981;border-color:#10b981;transform:rotate(-12deg)}
.sd-stamp--no{right:14px;color:#ef4444;border-color:#ef4444;transform:rotate(12deg)}
.sd-card.is-yes .sd-stamp--yes,.sd-card.is-no .sd-stamp--no{opacity:1}
.sd-tap-hint{margin-top:6px;font-size:11px;color:#6b7590;text-align:center}
.sd-answer-btns{display:flex;justify-content:center;gap:28px;margin-top:8px}
.sd-round{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#fff;box-shadow:0 6px 14px rgba(31,42,68,.12);font-size:26px;font-weight:900;line-height:1;transition:transform .12s}
.sd-round small{margin-top:3px;font-size:10.5px;font-weight:800}
.sd-round:active{transform:scale(.93)}
.sd-round--no{color:#ef4444}
.sd-round--yes{color:#10b981}

/* features */
.sd-features h3{margin-top:6px}
.sd-feat-counter{margin:10px auto 0;padding:3px 12px;border-radius:99px;background:#e8f0ff;color:#2563eb;font-size:11.5px;font-weight:800}
.sd-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 4px}
.sd-chip{padding:12px 6px;border-radius:12px;background:#fff;border:2px solid #e1e7f3;font-size:13px;font-weight:700;color:#1f2a44;transition:all .15s}
.sd-chip.is-on{border-color:#2563eb;background:#eaf1ff;color:#1d4ed8}
.sd-chip:disabled{opacity:.45;cursor:not-allowed}
.sd-skip-note{margin-top:auto;font-size:10px;color:#8a93a8;text-align:center}

/* creating */
.sd-creating{justify-content:center}
.sd-bob{width:90px;height:90px;margin:0 auto 10px;animation:sdBob 1s ease-in-out infinite alternate}
@keyframes sdBob{to{transform:translateY(-8px)}}
.sd-pct{height:8px;margin-top:18px;border-radius:99px;background:#dde5f3;overflow:hidden}
.sd-pct i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3b82f6,#10b981);transition:width .12s linear}
.sd-pct-label{margin-top:6px;font-size:12px;font-weight:700;color:#55607a;text-align:center}

/* draft */
.sd-draft{overflow-y:auto}
.sd-draft h3{font-size:16px}
.sd-stars{display:flex;justify-content:center;gap:4px;margin-top:4px}
.sd-stars button{font-size:28px;line-height:1;color:#d5dbe7;transition:transform .1s}
.sd-stars button.is-on{color:#fbbf24}
.sd-stars button:active{transform:scale(.9)}
.sd-textarea{width:100%;margin-top:6px;padding:10px;border:2px solid #dbe3f1;border-radius:12px;background:#fff;font-family:inherit;font-size:13px;line-height:1.7;color:#1f2a44;resize:none}
.sd-textarea:focus{outline:none;border-color:#3b82f6}

/* confirm */
.sd-confirm h3{font-size:16px}
.sd-post{margin:10px 0 4px;padding:10px 12px;background:#fff;border-radius:14px;box-shadow:0 2px 8px rgba(31,42,68,.06)}
.sd-post .sd-label{margin-top:0}
.sd-post-stars{margin-top:2px;font-size:18px;letter-spacing:2px;color:#fbbf24}
.sd-post-text{margin-top:4px;max-height:150px;overflow-y:auto;font-size:12px;line-height:1.7;color:#333}
.sd-post-note{margin-top:6px;font-size:11px;color:#8a93a8;text-align:center}

/* done */
.sd-done{justify-content:center}
.sd-done-mark{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 12px;border-radius:50%;background:#10b981;color:#fff;font-size:32px;font-weight:900}

.sd-caption{max-width:320px;margin-top:12px;font-size:11.5px;line-height:1.7;color:#666;text-align:center}

@media(max-width:860px){
  .nk-answer .nk-answer-grid{grid-template-columns:1fr;justify-items:center}
  .nk-answer .nk-answer-steps{width:100%}
}
@media(max-width:360px){
  .sd-phone{width:292px;height:600px}
}

/* swipe hint on the first card */
.sd-card.is-hint{animation:sdHint 2.4s ease-in-out .8s infinite}
@keyframes sdHint{0%,60%,100%{transform:none}15%{transform:translateX(26px) rotate(3deg)}35%{transform:translateX(-26px) rotate(-3deg)}50%{transform:none}}
@media(prefers-reduced-motion:reduce){.sd-card.is-hint{animation:none}}

/* posted: the review as it lines up on the shop's page (sample) */
.sd-posted{justify-content:center}
.sd-posted-head{margin:0 auto;padding:4px 14px;border-radius:99px;background:#10b981;color:#fff;font-size:13px;font-weight:800}
.sd-review{margin-top:12px;padding:12px;background:#fff;border-radius:14px;box-shadow:0 4px 14px rgba(31,42,68,.1)}
.sd-review-top{display:flex;align-items:center;gap:8px}
.sd-review-top b{display:block;font-size:13px;line-height:1.2}
.sd-review-top small{font-size:10.5px;color:#8a93a8}
.sd-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#7c3aed;color:#fff;font-size:13px;font-weight:800}
.sd-review-stars{margin-top:6px;font-size:15px;letter-spacing:1px;color:#fbbf24}
.sd-review-text{margin-top:4px;max-height:170px;overflow-y:auto;font-size:12px;line-height:1.7;color:#333}
.sd-mini-note{margin-top:8px;font-size:10px;color:#8a93a8;text-align:center}

.sd-restart{align-self:center;padding:8px;background:transparent;color:#526278;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
