/* AtomVoice Enhancements: 02 Rubber Segment + 03 Slow Refined Replacement Loop + Windows Apple SVG */

.apple-svg {
  display: inline-block;
  width: 0.9em;
  height: 1.08em;
  vertical-align: -0.16em;
  fill: currentColor;
  flex-shrink: 0;
}

.spec-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.av-trigger-cap {
  font-family: var(--font-sans), 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
}

/* 02 Rubber Segment physics */
.seg-bar .seg-thumb {
  transition:
    transform 0.48s cubic-bezier(0.34, 1.48, 0.64, 1),
    width 0.48s cubic-bezier(0.34, 1.48, 0.64, 1);
  will-change: transform, width;
}
.seg-detail-grid {
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.seg-detail-grid.is-rb-switching {
  opacity: 0.48;
  filter: blur(3px);
  transform: translateY(3px);
}
.stat-track i {
  transition: width 0.54s cubic-bezier(0.34, 1.32, 0.64, 1);
}

/* 03 Slow refined replacement loop inside .transform-card (zero flash reset) */
.transform-card .transform-tag {
  transition: background-color 0.55s ease, color 0.55s ease, border-color 0.55s ease;
}
.transform-card.is-step-arrow .transform-tag,
.transform-card.is-step-clean .transform-tag {
  background: var(--accent-soft, rgba(0, 113, 227, 0.1));
  color: var(--accent, #0071e3);
  border-color: rgba(0, 113, 227, 0.24);
}

.transform-block p {
  transition: opacity 0.48s ease;
}
.transform-card.is-resetting .transform-block p {
  opacity: 0.15;
}

.tx-raw {
  display: inline;
  border-radius: 4px;
  padding: 0 1px;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.7s ease,
    color 0.7s ease;
}
.tx-filler {
  position: relative;
}
.tx-filler::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 1.5px;
  background: rgba(180, 60, 48, 0.58);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.transform-card.is-step-mark .tx-filler {
  background: rgba(201, 27, 18, 0.08);
  color: #a3261d;
}
.transform-card.is-step-fade .tx-filler,
.transform-card.is-step-arrow .tx-filler,
.transform-card.is-step-clean .tx-filler {
  background: transparent;
  color: var(--ink-tertiary, #86868b);
  opacity: 0.34;
  filter: blur(1.2px);
}
.transform-card.is-step-fade .tx-filler::after,
.transform-card.is-step-arrow .tx-filler::after,
.transform-card.is-step-clean .tx-filler::after {
  transform: scaleX(1);
}

.transform-card.is-step-fade .tx-edit,
.transform-card.is-step-arrow .tx-edit {
  background: rgba(0, 113, 227, 0.11);
  color: #0058b3;
}
.transform-card.is-step-clean .tx-edit {
  background: rgba(0, 113, 227, 0.05);
  color: var(--ink-secondary, #6e6e73);
}

.transform-arrow {
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), color 0.6s ease;
}
.transform-card.is-step-arrow .transform-arrow,
.transform-card.is-step-clean .transform-arrow {
  color: var(--accent, #0071e3);
  transform: translateY(3px);
}

.transform-block.is-clean {
  transition: border-color 0.7s ease, box-shadow 0.7s ease;
}
.transform-card.is-step-clean .transform-block.is-clean {
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.07);
}

.tx-clean {
  display: inline;
  opacity: 0.2;
  filter: blur(6px);
  border-radius: 4px;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.8s ease,
    background-color 0.8s ease;
  transition-delay: var(--cd, 0ms);
}
.transform-card.is-step-clean .tx-clean {
  opacity: 1;
  filter: blur(0px);
}
.transform-card.is-step-clean .tx-clean.tx-edited {
  animation: cleanSubtleGlow 1.8s cubic-bezier(0.22, 1, 0.36, 1) var(--cd, 0ms) both;
}
@keyframes cleanSubtleGlow {
  0% { background-color: transparent; color: var(--accent, #0071e3); }
  35% { background-color: rgba(0, 113, 227, 0.11); color: #0058b3; }
  100% { background-color: transparent; color: var(--ink, #1d1d1f); }
}

.handoff-morph-pill .apple-svg {
  margin-inline-end: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .seg-bar .seg-thumb,
  .seg-detail-grid,
  .stat-track i,
  .tx-raw,
  .tx-filler::after,
  .tx-clean,
  .transform-block p {
    transition: none !important;
    animation: none !important;
  }
  .tx-clean {
    opacity: 1 !important;
    filter: none !important;
  }
}
/* 04 Privacy Section (Dark B+A Spotlight + Wipe-Clear) */
.privacy-section.is-dark-theme {
  padding: 88px 0 88px;
  scroll-margin-top: 72px;
  background: #141416;
  color: #f5f5f7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pv-header h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f5f5f7;
}

.pv-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: #2997ff;
  text-decoration: none;
  white-space: nowrap;
}

.pv-more-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pv-svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.pvb-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
  align-items: stretch;
}

.pvb-left {
  position: relative;
  overflow: hidden;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.3s ease;
}

.pvb-left > * {
  position: relative;
  z-index: 1;
}

.pvb-lock-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.24);
  color: #2997ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pv-lock-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pvb-left h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.pvb-left p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: #a1a1a6;
}

.pvb-erase-box {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.pvb-erase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #8e8e93;
}

.pvb-erase-stage {
  position: relative;
  min-height: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pvb-erase-line {
  font-size: 14px;
  font-weight: 500;
  color: #f5f5f7;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  clip-path: inset(0 0 0 0);
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
  transition: opacity 0.28s ease;
}

.pvb-erase-line.is-erasing {
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  filter: blur(4px);
  transform: translateX(8px);
  transition:
    clip-path 0.56s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease,
    filter 0.5s ease,
    transform 0.56s cubic-bezier(0.4, 0, 0.2, 1);
}

.pvb-erase-line.is-cleared {
  opacity: 0;
  transition: none;
}

.pvb-wiper {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, #64d2ff 40%, #2997ff 60%, transparent);
  box-shadow: 0 0 12px rgba(41, 151, 255, 0.75);
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.pvb-erase-stage.is-wiping .pvb-wiper {
  animation: pvbWipeSweep 0.58s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pvbWipeSweep {
  0% { opacity: 0; transform: translateX(0); }
  15% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(var(--wipe-dist, 340px)); }
}

.pvb-badge-ok {
  font-size: 11.5px;
  font-weight: 600;
  color: #30d158;
  white-space: nowrap;
}

.pvb-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pvb-card {
  position: relative;
  overflow: hidden;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px 22px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.pv-spot::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(41, 151, 255, 0.14), transparent 68%);
  transition: opacity 0.3s ease;
}

.pv-spot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 190, 255, 0.58), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 0.3s ease;
}

.pv-spot:hover::before,
.pv-spot:hover::after {
  opacity: 1;
}

.pvb-card:hover {
  transform: translateY(-2px);
}

.pvb-card-inner {
  position: relative;
  z-index: 1;
}

.pvb-card h4 {
  margin: 12px 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  color: #f5f5f7;
}

.pvb-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: #a1a1a6;
}

.pvb-card .pv-svg {
  color: #2997ff;
  width: 20px;
  height: 20px;
}

@media (max-width: 960px) {
  .pvb-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .privacy-section.is-dark-theme { padding: 56px 0; }
  .pvb-right { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pvb-card,
  .pvb-erase-line,
  .pv-spot::before,
  .pv-spot::after {
    transition: none !important;
    animation: none !important;
  }
}
