/* ===== Article pages (compare, guides). Load after styles.css. Prefix: cp- ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-section .head.center .lead-s { max-width: 720px; }

/* Hero: centred title, then one card per app */
.cp-hero { flex-direction: column; justify-content: center; text-align: center; min-height: 0; padding-top: 170px; padding-bottom: 40px; gap: 64px; }
.cp-hero .hero-art::after { background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(17,18,21,.6) 70%); }
.cp-hero-copy, .cp-trio { position: relative; z-index: 1; }
.cp-hero-copy { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cp-hero .display { font-size: clamp(44px, 5.8vw, 84px); }
.cp-hero .lead-l { max-width: 40ch; }
.cp-hero .caption a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.cp-crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--soft); }
.cp-crumbs a { color: var(--muted); }
.cp-crumbs a:hover { color: var(--paper); }

.cp-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 1100px; margin: 0 auto; text-align: left; }
.cp-app { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; border-radius: 26px; background: var(--glass);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cp-app-us { background: rgba(33,30,32,.82); box-shadow: inset 0 0 0 1px rgba(255,183,115,.5), 0 20px 60px rgba(0,0,0,.35), 0 0 70px rgba(247,116,66,.16); }
.cp-app-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.cp-app-us .cp-app-tag { color: var(--accent); }
.cp-app-tag img { width: 20px; height: 20px; border-radius: 5px; }
.cp-app .body-s { color: var(--muted); }

/* Comparison table on a glass panel. The Attiva column glows. */
.cp-table-wrap { position: relative; max-width: 1100px; margin: 56px auto 0; overflow-x: auto; border-radius: 26px;
  background: rgba(25,26,30,.72); box-shadow: inset 0 0 0 1px var(--border); }
.cp-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--body-s); line-height: 1.45; }
.cp-table th, .cp-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.06); }
.cp-table tbody tr:last-child > * { border-bottom: 0; }
.cp-table thead th { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding-top: 22px; }
.cp-table tbody th { width: 24%; font-weight: 600; color: var(--paper); }
.cp-table td { color: var(--muted); }
.cp-table .us { color: var(--paper); background: linear-gradient(180deg, rgba(247,116,66,.10), rgba(247,116,66,.06)); }
.cp-table thead .us { color: var(--accent); }
.cp-table tbody tr:hover > * { background-color: rgba(255,255,255,.02); }
.cp-table tbody th, .cp-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #18191d; }
.cp-table i { display: flex; align-items: center; gap: 8px; font-style: normal; font-weight: 600; margin-bottom: 4px; }
.cp-table i::before { content: ""; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.cp-table i.yes { color: var(--paper); }
.cp-table i.yes::before { background-color: rgba(255,153,77,.18); box-shadow: inset 0 0 0 1px rgba(255,153,77,.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23ff994d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cp-table i.no { color: var(--soft); }
.cp-table i.no::before { background-color: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 6h5' stroke='%23999aa3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cp-swipe { display: none; margin-top: 14px; }

/* Wispr Flow and Superwhisper cards */
.cp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 56px auto 0; }
.cp-card { display: flex; flex-direction: column; gap: 14px; padding: 30px 32px; border-radius: 26px; background: rgba(25,26,30,.72); box-shadow: inset 0 0 0 1px var(--border); }
.cp-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cp-list li, .cp-points li { position: relative; padding-left: 22px; font-size: var(--body-m); line-height: 1.55; color: var(--muted); }
.cp-list li::before, .cp-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255,153,77,.6); }
.cp-price { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: var(--body-s); color: var(--muted); }
.cp-price b { color: var(--paper); font-weight: 600; }

/* Price cards */
.cp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1100px; margin: 56px auto 0; }
.cp-price-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 24px; border-radius: 26px; background: rgba(25,26,30,.72); box-shadow: inset 0 0 0 1px var(--border); }
.cp-price-us { background: rgba(33,30,32,.82); box-shadow: inset 0 0 0 1px rgba(255,183,115,.5), 0 20px 60px rgba(0,0,0,.35), 0 0 60px rgba(247,116,66,.14); }
.cp-big { font-size: clamp(40px, 4vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.cp-price-us .cp-big { background: linear-gradient(95deg, #ffd2a3, #ff994d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-big small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--soft); margin-left: 4px; -webkit-text-fill-color: var(--soft); }
.cp-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: var(--body-s); }
.cp-rows span { color: var(--soft); flex: 0 0 auto; }
.cp-rows b { font-weight: 500; color: var(--paper); text-align: right; }

/* Privacy and whispering, side by side */
.cp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; max-width: 1200px; margin: 0 auto; }
.cp-split-col { display: flex; flex-direction: column; gap: 18px; }
.cp-points { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.cp-points b { color: var(--paper); font-weight: 600; }
.cp-photo { border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 70px rgba(0,0,0,.45); }
.cp-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Which to pick */
.cp-choose { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 56px auto 0; }
.cp-choose li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; border-radius: 20px;
  background: rgba(25,26,30,.72); box-shadow: inset 0 0 0 1px var(--border); font-size: var(--body-m); color: var(--muted); }
.cp-choose b { flex: 0 0 auto; font-weight: 600; color: var(--paper); }
.cp-choose b::before { content: "→"; margin-right: 10px; color: var(--soft); font-weight: 400; }
.cp-choose li.us { box-shadow: inset 0 0 0 1px rgba(255,183,115,.45); background: rgba(33,30,32,.82); }
.cp-choose li.us b { color: var(--accent); }

/* Sources */
.cp-sources { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-top: 0; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.cp-sources a { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.cp-sources a:hover { color: var(--paper); }

@media (max-width: 1100px) {
  .cp-trio, .cp-prices { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 900px) {
  .cp-hero { padding: 120px 20px 24px; gap: 40px; text-align: center; }
  .cp-hero .hero-art::after { background: none; }
  .cp-pair, .cp-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cp-split { gap: 56px; }
  .cp-swipe { display: block; }
  .cp-table-wrap { margin-top: 40px; border-radius: 20px; }
  .cp-table { min-width: 680px; }
  .cp-table th, .cp-table td { padding: 14px 16px; }
  .cp-table tbody th { width: 140px; }
  .cp-choose li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }
  .cp-card, .cp-price-card { padding: 24px 22px; }
}

/* Guide steps: four numbered cards in a row */
.cp-steps { list-style: none; margin: 56px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1200px; counter-reset: step; }
.cp-steps .how-step { min-width: 0; }
.cp-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
.cp-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; font-size: 16px; color: var(--accent-ink);
  background: linear-gradient(135deg, #ffd2a3, #ff994d); box-shadow: 0 0 24px rgba(255,153,77,.35); }
.cp-callout { max-width: 900px; margin: 32px auto 0; padding: 20px 24px; border-radius: 20px; background: rgba(33,30,32,.82);
  box-shadow: inset 0 0 0 1px rgba(255,183,115,.35); font-size: var(--body-m); line-height: 1.6; color: var(--muted); }
.cp-callout b { color: var(--paper); font-weight: 600; }
.cp-related { display: flex; flex-direction: column; gap: 8px; max-width: 900px; margin: 0 auto; padding: 28px 30px; border-radius: 26px;
  background: var(--glass); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cp-related a.h4 { color: var(--paper); }
.cp-related a.h4:hover { color: var(--accent); }
@media (max-width: 1100px) { .cp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cp-steps, .cp-steps-3 { grid-template-columns: minmax(0, 1fr); } }

/* Guide hero: copy on the left, photo on the right */
.cp-guide-hero { text-align: left; padding-top: 150px; }
.cp-guide-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; width: 100%; max-width: 1240px; margin: 0 auto; }
.cp-guide-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cp-guide-hero .display { font-size: clamp(40px, 4.6vw, 68px); }
.cp-guide-hero .lead-l { max-width: 44ch; }
.cp-guide-photo { border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px rgba(0,0,0,.55), 0 0 80px rgba(107,75,255,.18); }
.cp-guide-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.cp-trio-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1240px; }
.cp-app .how-link { margin-top: auto; padding-top: 4px; }

/* Trackpad: text beside the real app screen */
.cp-split-media { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
/* iPhone frame: a thin titanium edge, a black bezel, then the real screen */
.cp-phone { justify-self: center; width: min(320px, 100%); padding: 3px; border-radius: 54px;
  background: linear-gradient(140deg, #d9d9e0 0%, #6f7078 18%, #2b2c31 45%, #77787f 78%, #c9c9d1 100%);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 100px rgba(247,116,66,.16); }
.cp-phone-screen { display: block; padding: 9px; border-radius: 51px; background: #050506; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.cp-phone img { display: block; width: 100%; height: auto; border-radius: 42px; }
.cp-table-2 { min-width: 620px; }
.cp-table-2 tbody th { width: 30%; }
.cp-more { padding-top: 0; }

@media (max-width: 900px) {
  .cp-guide-hero { padding-top: 110px; }
  .cp-guide-grid, .cp-split-media { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cp-trio-2 { grid-template-columns: minmax(0, 1fr); }
  .cp-phone { width: min(220px, 62%); }
}

/* Keep each top-menu link on one line */
.nav-links a { white-space: nowrap; }

/* A second, quieter option: no glow, softer cards */
.cp-eyebrow-quiet { color: var(--soft); }
.cp-steps-quiet .how-step { background: rgba(25,26,30,.5); }
.cp-steps-quiet .cp-num { color: var(--paper); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

/* Guide hero scene: a Mac chat window with the pasted words, and the real iPhone app in front of it */
.cp-scene { position: relative; margin: 0; padding: 0 0 22% 0; }
.cp-mac { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 11;
  background: linear-gradient(to bottom, rgba(17,18,21,.2), rgba(17,18,21,.55)), url("assets/img/mac-wallpaper.jpg") 50% 70% / cover, #111215;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px rgba(0,0,0,.55), 0 0 80px rgba(107,75,255,.2); }
.cp-mac-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: rgba(30,31,36,.85); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; color: var(--soft); }
.cp-mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cp-mac-bar i:nth-child(2) { background: #febc2e; }
.cp-mac-bar i:nth-child(3) { background: #28c840; }
.cp-mac-bar span { margin-left: 10px; font-weight: 500; color: var(--muted); }
.cp-mac-body { position: absolute; inset: 34px 0 0; display: grid; grid-template-columns: 22% 1fr; background: rgba(20,21,25,.9); }
.cp-mac-side { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; border-right: 1px solid rgba(255,255,255,.05); background: rgba(16,17,20,.7); }
.cp-mac-side b { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.cp-mac-side b:first-child { background: rgba(255,255,255,.16); width: 70%; }
.cp-mac-side b:nth-child(3) { width: 80%; } .cp-mac-side b:nth-child(5) { width: 60%; }
.cp-mac-main { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 18px 20px 22px 20px; padding-right: 40%; }
.cp-msg { display: flex; flex-direction: column; gap: 7px; }
.cp-msg span { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.09); }
.cp-msg span.short { width: 55%; }
.cp-composer { position: relative; padding: 12px 40px 12px 14px; border-radius: 14px; background: #24252b; box-shadow: inset 0 0 0 1px rgba(255,153,77,.55), 0 0 30px rgba(255,153,77,.18); }
.cp-composer p { font-size: 13px; line-height: 1.45; color: var(--paper); }
.cp-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cp-send { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 600; color: #111215; background: var(--paper); }
.cp-toast { position: absolute; top: 16px; left: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--paper);
  background: rgba(38,39,45,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.4); }
.cp-toast img { width: 18px; height: 18px; border-radius: 5px; }
.cp-phone-hero { position: absolute; right: -14px; bottom: 0; width: 38%; padding: 2px; border-radius: 34px; animation: float 8s ease-in-out 2s infinite; }
.cp-phone-hero .cp-phone-screen { padding: 5px; border-radius: 32px; }
.cp-phone-hero img { border-radius: 27px; }
@media (max-width: 900px) {
  .cp-scene { padding-bottom: 30%; }
  .cp-mac-main { padding-right: 42%; }
  .cp-mac { aspect-ratio: 1 / 1; }
  .cp-composer p { font-size: 10.5px; }
  .cp-phone-hero { width: 40%; right: -4px; border-radius: 24px; }
  .cp-phone-hero .cp-phone-screen { padding: 4px; border-radius: 22px; }
  .cp-phone-hero img { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .cp-phone-hero, .cp-caret { animation: none; } }

/* Highlighted cards use the site's Border Beam (.beam in styles.css) in place of an orange ring. */
.cp-app.beam, .cp-price-card.beam, .cp-choose li.beam { position: relative; }
.cp-app.beam > :not(.beam-bloom), .cp-price-card.beam > :not(.beam-bloom), .cp-choose li.beam > :not(.beam-bloom) { position: relative; z-index: 1; }
.cp-app-us.beam, .cp-price-us.beam { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 20px 60px rgba(0,0,0,.35), 0 0 70px rgba(247,116,66,.14); }
.cp-choose li.us.beam { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
/* A card that fades in on load (.load) and has the Border Beam needs both animations, or it stays hidden. */
.load.beam { animation: rise .8s var(--ease-out) forwards, beamSpin 2.6s linear infinite; animation-delay: calc(var(--d, 0) * 1s + .1s), 0s; }
