/* One cancel guide: the side-by-side recording and zuzu phone, facts, steps, FAQ and copy menu. Loads after base.css. */

html { scroll-behavior: smooth; }
.btn-line { border-color: #c9c9cf; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.crumbs span { margin: 0 7px; color: var(--ink-3); }
/* Copy page menu beside the chip: the Markdown version for AI tools, like the one on Mem0's docs */
.hero-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.copy-menu { position: relative; }
.copy-split { display: inline-flex; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.05); }
.copy-split button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; min-height: 36px; padding: 0 var(--s3) 0 14px; cursor: pointer; white-space: nowrap; }
.copy-split button:hover { background: var(--bg); }
.copy-split .chev { padding: 0 11px; border-left: 1px solid var(--line); }
.copy-split svg { width: 14px; height: 14px; }
.stroke { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 6px); z-index: 20; width: 296px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.menu[hidden] { display: none; }
.menu a, .menu button { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu a:focus-visible, .menu button:focus-visible { background: var(--bg); outline: 2px solid var(--blue); outline-offset: -2px; }
.menu .ic { grid-row: span 2; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; }
.menu .ic svg { width: 16px; height: 16px; }
.menu .ic svg:not(.stroke) { fill: currentColor; }
.menu b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.menu small { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px 14px 4px 5px; font-size: 13px; color: var(--ink-2); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.05); }
.chip img { width: 28px; height: 28px; border-radius: 50%; }
.chip b { color: var(--ink); font-weight: 600; }
/* Demo stage: the recording in a browser window, the zuzu thread in a phone, a timer over each. */
.stage { scroll-margin-top: 16px; background: linear-gradient(180deg, #ffffff 0%, #f0f0f3 100%); border-radius: 30px; padding: var(--s6);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 50px rgba(0,0,0,.07); display: grid; grid-template-columns: 1fr 232px; gap: 0 var(--s7); }
.timer-block { padding: 0 2px var(--s4); display: flex; flex-direction: column; gap: 2px; }
.timer-block .who { order: -1; }
.timer { font-size: clamp(38px, 4.2vw, 56px); font-weight: 650; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.timer.hand { color: var(--red); }
.timer.zuzu { color: var(--green); }
.who { font-size: 14px; color: var(--ink-2); font-weight: 500; }
#handTimerBlock { grid-column: 1; grid-row: 1; }
#handFrame { grid-column: 1; grid-row: 2; }
#zuzuTimerBlock { grid-column: 2; grid-row: 1; }
#phone { grid-column: 2; grid-row: 2; }
.browser { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #dcdce2; box-shadow: 0 10px 30px rgba(0,0,0,.08); align-self: start; }
.browser-bar { height: 34px; background: #f6f6f8; border-bottom: 1px solid #e6e6ea; display: flex; align-items: center; padding: 0 12px; gap: 7px; position: relative; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.url { position: absolute; left: 50%; transform: translateX(-50%); background: #ececf0; border-radius: 7px; font-size: 12px; color: var(--ink-2); padding: 3px 14px; display: flex; align-items: center; gap: 6px; }
.video-box { position: relative; background: #fff; }
.video-box video { width: 100%; height: auto; display: block; }
.play-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,20,22,.2); border: 0; cursor: pointer; font: inherit; }
.play-over span { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.play-over[hidden] { display: none; }
/* Phone: a Pixel-style Android body drawn in CSS: flat dark frame, even thin bezels, punch-hole camera, power and volume on the right */
.phone { position: relative; background: #1b1b1d; border-radius: 34px; contain: size; box-shadow: inset 0 0 0 1px #3a3a3e, 0 22px 44px rgba(0,0,0,.18); }
.phone::before { content: ""; position: absolute; right: -3px; top: 96px; width: 3px; height: 30px; border-radius: 0 2px 2px 0; background: #2e2e32; }
/* power button */
.phone::after { content: ""; position: absolute; right: -3px; top: 142px; width: 3px; height: 64px; border-radius: 0 2px 2px 0; background: #2e2e32; }
/* volume rocker */
.punch { position: absolute; top: 16px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #050506; box-shadow: inset 0 0 0 1.5px #1f1f23; z-index: 5; }
/* punch-hole camera, centered in the status bar */
/* The zuzu thread as WhatsApp in dark mode on Android, matched to Harsh's real screenshots and scaled to this phone */
.screen { position: absolute; inset: 6px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: #0b1014 url("/cancel-guides/assets/wallpaper.svg") 0 0 / 240px 240px; }
/* faint line doodles like the app's wallpaper; a 240px tile hides the repeat */
.screen::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 56px; height: 3px; margin-left: -28px; border-radius: 2px; background: #e9edef; opacity: .8; z-index: 3; }
/* Android gesture bar */
.sb-icons { display: flex; gap: 3px; align-items: center; }
.sb-icons svg { fill: currentColor; height: 9px; width: auto; }
.sb-icons .batt { position: relative; display: inline-grid; place-items: center; min-width: 17px; height: 9px; margin: 0 3px 0 1px; border-radius: 2.5px; background: #fff; color: #0b1014; font-size: 7px; font-weight: 700; line-height: 1; }
.sb-icons .batt::after { content: ""; position: absolute; right: -2.5px; top: 2.5px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: #fff; opacity: .6; }
/* battery with its level inside, as on Harsh's phone */
.statusbar { height: 28px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 16px 0 18px; font-size: 11px; font-weight: 500; color: #fff; background: #0b1014; }
/* Android: time left, icons right */
.phone-head { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px; background: #0b1014; }
.phone-head .avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.phone-head .contact { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.phone-head b { font-size: 11px; font-weight: 500; line-height: 1.15; color: #e9edef; }
.phone-head small { font-size: 8px; line-height: 1.2; color: #8696a0; }
.phone-head svg { width: 13px; height: 13px; flex: none; }
.phone-head .back { fill: none; stroke: #e9edef; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone-head .more { fill: #e9edef; margin-left: auto; }
.chat-body { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 6px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px); mask-image: linear-gradient(to bottom, transparent 0, #000 20px); }
.chat-body > * { display: none; flex-shrink: 0; }
.chat-body > .show { display: block; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.stamp { align-self: center; width: fit-content; background: #1d2528; color: #8696a0; font-size: 8.5px; padding: 2px 6px; border-radius: 5px; margin: 4px 0 3px; }
/* only the "Today" chip; times sit inside the bubbles */
.msg { max-width: 85%; padding: 4px 6px 3px 7px; border-radius: 6px; font-size: 10.5px; line-height: 1.32; width: fit-content; color: #e9edef; }
.msg.me { align-self: flex-end; background: #134d37; }
.msg.zz { align-self: flex-start; background: #1d2528; }
/* The first bubble of each run gets a tail and a little more space above it */
.msg.tail { position: relative; margin-top: 4px; }
.msg.me.tail { border-top-right-radius: 0; }
.msg.zz.tail { border-top-left-radius: 0; }
.msg.tail::before { content: ""; position: absolute; top: 0; width: 0; height: 0; }
.msg.me.tail::before { right: -5px; border-top: 6px solid #134d37; border-right: 5px solid transparent; }
.msg.zz.tail::before { left: -5px; border-top: 6px solid #1d2528; border-left: 5px solid transparent; }
.meta { float: right; display: inline-flex; align-items: center; gap: 2px; margin: 5px 0 -2px 6px; font-size: 8px; line-height: 1; color: #8696a0; white-space: nowrap; }
.msg.me .meta { color: rgba(233,237,239,.6); }
.meta svg { width: 12px; height: 8px; fill: none; stroke: #53bdeb; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wa-link { color: #32d27d; text-decoration: underline; text-underline-offset: 1px; }
/* a link inside a bubble, in WhatsApp's green; the email is masked */
.chat-body > .typing.show { display: flex; gap: 3px; padding: 7px 9px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #8696a0; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
.chat-input { flex: none; margin: 5px 6px 14px; display: flex; align-items: flex-end; gap: 5px; }
.chat-input .field { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 7px; min-height: 26px; padding: 7px 8px; background: #1f272a; border-radius: 13px; font-size: 10px; line-height: 12px; }
.chat-input .field svg { width: 12px; height: 12px; flex: none; fill: none; stroke: #8696a0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-input.has-text .field .cam { display: none; }
/* the camera icon hides while typing, as in the app */
.chat-input #zzInput { flex: 1; min-width: 0; overflow: hidden; color: #e9edef; white-space: nowrap; }
/* one line, so the chat above never shifts while typing */
.chat-input .ph { color: #8696a0; }
.chat-input .send { width: 26px; height: 26px; border-radius: 50%; background: #21c063; display: grid; place-items: center; flex: none; }
.chat-input .send svg { grid-area: 1 / 1; width: 12px; height: 12px; }
.chat-input .send .arrow, .chat-input.has-text .send .mic { display: none; }
/* mic when empty, send arrow while typing */
.chat-input.has-text .send .arrow { display: block; }
.caret { display: inline-block; width: 1px; height: 11px; background: #21c063; margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
/* The login code arriving as an Android heads-up notification in dark mode. When hidden it is invisible, not just moved up,
   so no edge of it ever shows at the top of the screen. */
.banner { position: absolute; top: 30px; left: 8px; right: 8px; z-index: 4; display: flex; gap: 7px; align-items: flex-start; padding: 7px 9px; border-radius: 14px;
  background: #1f272a; box-shadow: 0 6px 18px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-120%);
  transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s; }
.banner.show { opacity: 1; visibility: visible; transform: none; transition: transform .3s ease, opacity .3s ease, visibility 0s; }
.banner-icon { width: 16px; height: 16px; border-radius: 50%; background: #1a73e8; display: grid; place-items: center; flex: none; }
.banner-icon svg { width: 9px; height: 9px; }
.banner-txt { min-width: 0; font-size: 9.5px; line-height: 1.3; color: #e9edef; }
.banner-txt b { font-weight: 600; }
.banner-txt small { font-size: 9px; color: #8696a0; }
.banner-txt span { display: block; margin-top: 1px; color: #c4cacd; }
.after-stage { display: flex; justify-content: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }
section.block.near { padding-top: var(--s8); }
h2.sec + :not(.sec-lede) { margin-top: var(--s6); }
/* sections with no lede line under the heading */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.fact { background: var(--card); border-radius: 18px; padding: var(--s5); }
.fact b { display: block; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--s1); }
.fact.alert b { color: var(--red); }
.fact span { font-size: 14px; color: var(--ink-2); }
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); }
.step { background: var(--card); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s7); padding: var(--s6); align-items: center; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-bottom: var(--s4); }
.step h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 var(--s2); line-height: 1.2; }
.step p { margin: 0 0 var(--s4); color: #3a3a3c; max-width: 52ch; }
.ui { font-weight: 600; color: var(--ink); }
.lede a, .step p a, .faq p a { text-underline-offset: 3px; text-decoration-color: #b8b8bf; }
.lede a:hover, .step p a:hover, .faq p a:hover { text-decoration-color: currentColor; }
.watch { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 var(--s4); min-height: 40px; cursor: pointer; }
.watch:hover { border-color: var(--ink); }
.watch svg { width: 9px; height: 9px; }
.shot { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.after { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.after div { background: var(--card); border-radius: 18px; padding: var(--s5); }
.after h3 { margin: 0 0 var(--s1); font-size: 17px; letter-spacing: -0.01em; }
.after p { margin: 0; color: var(--ink-2); font-size: 15px; }
.faq { background: var(--card); border-radius: var(--radius); padding: var(--s2) var(--s6); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: var(--s3) 0 0; color: #3a3a3c; max-width: 72ch; }
.sources { font-size: 14px; color: var(--ink-2); margin: var(--s4) 0 0; }
.copy-split.cta { background: var(--ink); }
.copy-split .msg { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px 0 16px; color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; }
.copy-split.cta .msg:hover, .copy-split.cta button:hover { background: #000; }
.copy-split.cta .chev { color: #fff; border-left-color: rgba(255,255,255,.22); }
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; padding: var(--s4); }
  .step { gap: var(--s5); }
  #handTimerBlock { grid-row: 1; }
  #handFrame { grid-row: 2; }
  #zuzuTimerBlock { grid-column: 1; grid-row: 3; margin-top: var(--s5); width: 240px; justify-self: center; }
  #phone { grid-column: 1; grid-row: 4; width: 240px; height: 500px; justify-self: center; }
  .step, .final { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .after { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .step { padding: var(--s5) var(--s4); }
  .watch { min-height: 44px; }
  .faq { padding: var(--s1) var(--s5); }
}
