/* AI scams (/ai/) and AI agents (/agents/). The cards, buttons, verdicts and score pill come from scams.css
   (the Real or scam? cards); this adds the hero, the phones for each kind of AI trick, and the rules box. */
.ai-hero { padding-bottom: 28px; gap: 18px; }
/* one line on a wide screen. Widths are estimated from the homepage headline's measured Anton width (about
   0.49em a character); measure each in Anton on the live page and adjust the divisor if a line wraps. */
.ai-hero h1 { font-size: clamp(38px, calc((100vw - 40px) / 14.2), 76px); }
.agents-page .ai-hero h1 { font-size: clamp(36px, calc((100vw - 40px) / 19.8), 58px); }
.ai-start { min-height: 60px; padding: 0 32px; font-size: 19px; margin-top: 4px; }

.ai-sec { max-width: 1160px; margin: 0 auto 34px; padding: 0 16px; }
.ai-play { scroll-margin-top: 16px; }
.ai-h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5.4vw, 52px); line-height: 1.05; letter-spacing: .01em; text-wrap: balance; }
.ai-intro { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.ai-list { padding: 0; margin-bottom: 0; }
.ai-round { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ai-beat dd { font-weight: 700; }
.ai-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-width: 0; }
.ai-source { margin: 0; text-decoration: none; }
.ai-source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .ai-source a:hover { color: var(--ink); } }
.ai-word { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- the phones ---------- */
.ai-card .ph-screen { overflow-wrap: anywhere; }
.ai-card .ph-screen p, .ai-card .ph-screen ul { margin: 0; }

/* a phone call: incoming, or you calling back */
.am-call { background: #1D2128; color: #FFFFFF; border-radius: 18px; padding: 18px 12px 16px; margin: -8px -4px -6px; text-align: center; align-items: center; }
.am-label { font-size: 12px; color: #A3AAB5; }
.am-who { font-size: 20px; font-weight: 600; line-height: 1.2; }
.am-sub { font-size: 12px; color: #A3AAB5; margin-top: -6px !important; }
.am-talk, .am-line { align-self: stretch; background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 9px 11px; font-size: 13px; text-align: left; }
.am-line b { display: block; font-size: 11px; font-weight: 700; color: #A3AAB5; margin-bottom: 1px; }
.am-line.is-you { background: rgba(255, 255, 255, .22); }
.am-wave { display: flex; align-items: center; gap: 3px; height: 16px; margin-bottom: 6px; }
.am-wave i { width: 3px; height: 40%; border-radius: 2px; background: #C9CED6; animation: amwave 1.1s ease-in-out infinite; }
.am-wave i:nth-child(2) { animation-delay: .15s; } .am-wave i:nth-child(3) { animation-delay: .3s; }
.am-wave i:nth-child(4) { animation-delay: .45s; } .am-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes amwave { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.am-callbtns { display: flex; justify-content: center; gap: 46px; margin-top: 4px; }
.am-callbtns span { width: 42px; height: 42px; border-radius: 50%; }
.am-end { background: #E5484D; }
.am-take { background: #34C759; }

/* a video call: everyone on it, and the chat */
.am-video { background: #101318; color: #FFFFFF; border-radius: 18px; padding: 12px 10px; margin: -8px -4px -6px; gap: 8px; }
.am-vtop { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #C9CED6; }
.am-rec { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; flex: none; }
.am-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.am-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: #2A2F38; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.am-tile:first-child { box-shadow: inset 0 0 0 2px #FFFFFF; }
.am-tile.is-you { background: #3A4150; }
.am-person { width: 42%; height: auto; fill: none; stroke: #8A93A3; stroke-width: 1.6; margin-top: -10%; }
.am-tile i { position: absolute; left: 5px; right: 5px; bottom: 5px; font-style: normal; font-size: 10px; font-weight: 600; line-height: 1.3; color: #FFFFFF; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-vchat { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.am-vchat b { display: block; font-size: 11px; font-weight: 700; color: #A3AAB5; }

/* an ad in a social feed */
.am-adwho { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.am-adwho b { min-width: 0; }
.am-tag { margin-left: auto; font-size: 11px; color: #8A9099; flex: none; }
.am-adtext { font-size: 13px; }
.am-adpic { height: 104px; border-radius: 10px; background: linear-gradient(135deg, #2A2F38, #555E70); display: flex; align-items: center; justify-content: center; }
.am-adpic.is-app { background: linear-gradient(135deg, #E9EBEE, #C9CDD3); }
.am-play { position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.am-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid #15181D; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.am-dl { width: 40px; height: 40px; fill: none; stroke: #15181D; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-adcta { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #ECECEE; border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.am-adcta b { flex: none; background: #15181D; color: #FFFFFF; border-radius: 6px; padding: 4px 10px; font-size: 12px; }

/* a chat */
.am-chatwho { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #ECECEE; font-size: 13px; }
.am-chatwho small { display: block; font-size: 11px; color: #8A9099; }
.am-msg { align-self: flex-start; max-width: 92%; background: #ECECEE; border-radius: 16px 16px 16px 5px; padding: 9px 12px; }
.am-time { align-self: flex-start; font-size: 11px; color: #8A9099; margin-top: -2px !important; }

/* a website with glowing reviews */
.am-stars { text-align: center; font-size: 13px; font-weight: 700; color: #B7791F; }

/* an AI answer in a search */
.am-query { display: flex; align-items: center; gap: 8px; border: 1px solid #DADCE0; border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.am-glass { width: 16px; height: 16px; fill: none; stroke: #5A606B; stroke-width: 2; stroke-linecap: round; flex: none; }
.am-answer { display: flex; flex-direction: column; gap: 6px; background: #F1EEFD; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.am-answer-h, .am-agtop { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #4B3A99; }
.am-spark { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.am-results { display: flex; flex-direction: column; gap: 6px; }
.am-results i { display: block; height: 8px; border-radius: 4px; background: #ECECEE; }
.am-results i:nth-child(2) { width: 82%; } .am-results i:nth-child(3) { width: 64%; }

/* your AI agent at work: what you asked, what it did, and what it's about to do */
.am-agtop { padding-bottom: 6px; border-bottom: 1px solid #ECECEE; }
.am-you { align-self: flex-end; max-width: 90%; background: #15181D; color: #FFFFFF; border-radius: 16px 16px 5px 16px; padding: 8px 12px; }
.am-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #5A606B; }
.am-steps li::before { content: "\2713"; font-weight: 800; margin-right: 6px; }
.am-hidden { border: 2px dashed #B9BEC7; border-radius: 10px; background: #F7F6F3; padding: 8px 10px; font-size: 12px; color: #3A3F47; }
.am-hidden b { display: flex; align-items: flex-start; gap: 5px; margin-bottom: 4px; font-size: 11px; font-weight: 700; color: #5A606B; }
.am-eye { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.am-says { align-self: flex-start; max-width: 94%; background: #F1EEFD; border-radius: 16px 16px 16px 5px; padding: 9px 12px; }
.am-perms { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.am-perms li { display: flex; align-items: center; gap: 8px; }
.am-perms li::before { content: "\2713"; flex: none; width: 16px; height: 16px; border-radius: 4px; background: #15181D; color: #FFFFFF; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.am-choices { display: flex; gap: 8px; }
.am-choices span { flex: 1 1 0; border-radius: 8px; padding: 7px 8px; background: #ECECEE; font-size: 13px; font-weight: 700; text-align: center; }
.am-choices span:first-child { background: #15181D; color: #FFFFFF; }
.am-doing { display: flex; align-items: center; gap: 8px; border-radius: 10px; background: #ECECEE; padding: 8px 10px; font-size: 12px; font-weight: 700; }
.am-spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C9CDD3; border-top-color: #15181D; animation: amspin .9s linear infinite; }
@keyframes amspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .am-wave i, .am-spin { animation: none; } .am-wave i { height: 70%; } }

/* ---------- the result, once every round is played (hidden without JavaScript) ---------- */
.ai-done { margin: 18px 0 0; padding: 30px 24px; border-radius: 24px; background: var(--paper); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: pcrise .3s ease; }
.ai-done[hidden] { display: none; }
.ai-done.is-perfect { background: var(--right-tint); }
.ai-done-score { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 10vw, 88px); line-height: 1; letter-spacing: .02em; }
.ai-done-line { margin: 0; max-width: 560px; font-size: 19px; font-weight: 700; text-wrap: balance; }
.ai-done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.ai-done-btns .btn { min-height: 56px; padding: 0 26px; font-size: 18px; }
.ai-done-msg { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 700; color: var(--right-dark); }
@media (prefers-reduced-motion: reduce) { .ai-done { animation: none; } }
@media (max-width: 640px) { .ai-done-btns .btn { flex: 1 1 100%; } }

/* ---------- the habits or rules that beat every trick ---------- */
.ai-rules-box { background: var(--paper); border-radius: 24px; padding: 32px; }
.ai-rules-intro { margin: 0 0 18px; max-width: 780px; font-size: 18px; line-height: 1.5; color: #3A3F47; text-wrap: pretty; }
.ai-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-rules li { display: flex; align-items: flex-start; gap: 14px; background: var(--white); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.ai-rules li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ai-rule-n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 24px; line-height: 1; }
.ai-rule-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.ai-rule-t b { font-size: 19px; line-height: 1.25; font-weight: 800; }
.ai-rule-t span { font-size: 16px; line-height: 1.45; color: #3A3F47; }
.ai-rule-t a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

.ai-games { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-games .btn, .ai-other-btn { min-height: 56px; padding: 0 26px; font-size: 18px; }
.ai-other-btn { align-self: flex-start; }
.ai-other { background: var(--white); border: 2px solid #E3E3E1; }   /* the other AI page: lighter, so it doesn't look like the games box under it */

@media (max-width: 760px) {
  .ai-rules { grid-template-columns: minmax(0, 1fr); }
  .ai-rules-box { padding: 24px 18px; border-radius: 20px; }
  .ai-rule-t b { font-size: 18px; }
}
@media (max-width: 640px) {
  .ai-hero { padding-bottom: 22px; }
  .ai-start { width: 100%; max-width: 420px; }
  .ai-games .btn, .ai-other-btn { flex: 1 1 100%; align-self: stretch; }
}
