/* The Agent thank-you page, version 2 (template-parts/thank-you/agent-v2.php).
   Dark confirmation hero as on the homepage; the Playbook offer on cream
   with white cards, as on The Agent. Testimonial cards reuse .sct-* (service.css). */
.tyx { font-family: 'Inter', sans-serif; background: #f5f0e8; }
.tyx, .tyx * { box-sizing: border-box; }
.tyx-inner { max-width: 1180px; margin: 0 auto; }

/* 1. Confirmation */
.tyx-hero { position: relative; padding: calc(var(--nav-h, 130px) + 3rem) 2rem 3.5rem; overflow: hidden; color: #dfe2e8;
  background:
    radial-gradient(60% 55% at 90% 8%, rgba(201, 164, 74, 0.16) 0%, transparent 58%),
    radial-gradient(55% 50% at 4% 100%, rgba(30, 61, 47, 0.6) 0%, transparent 62%),
    linear-gradient(180deg, #0f172a 0%, #0b1222 100%); }
.tyx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; align-items: center; }
.tyx-confirmed { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1.4rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #C9A44A; }
.tyx-tick { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #C9A44A; color: #0f172a; box-shadow: 0 0 0 5px rgba(201, 164, 74, 0.18); }
.tyx-tick svg { width: 16px; height: 16px; }
.tyx-h1 { margin: 0 0 1.25rem; font-size: clamp(2.7rem, 5vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; color: #fdfbf5; }
.tyx-sub { margin: 0 0 1.6rem; max-width: 48ch; font-size: 1.1875rem; font-weight: 500; line-height: 1.6; color: #dfe2e8; }
.tyx-sent { margin: 0; font-size: 0.9375rem; color: #aab2bf; }
.tyx-sent strong { color: #fdfbf5; font-weight: 700; word-break: break-word; }

.tyx-receipt { padding: 1.6rem 1.7rem 1.4rem; border-radius: 16px; background: #ffffff; color: #1a2b3c; box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.45), 0 40px 90px -30px rgba(0, 0, 0, 0.7); }
.tyx-receipt-eyebrow { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #8B6914; }
.tyx-receipt dl { margin: 0; }
.tyx-receipt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid #ece6d8; }
.tyx-receipt-row dt { font-size: 0.875rem; font-weight: 600; color: #5b6472; }
.tyx-receipt-row dd { margin: 0; text-align: right; font-size: 0.9688rem; font-weight: 700; color: #0f172a; }
.tyx-receipt-row--total { border-bottom: 0; }
.tyx-receipt-row--total dd span { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.tyx-receipt-row--total dd small { display: block; font-size: 0.75rem; font-weight: 600; color: #5b6472; }
.tyx-receipt-foot { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0; padding-top: 0.9rem; border-top: 1px solid #ece6d8; font-size: 0.8125rem; font-weight: 600; color: #5b6472; }
.tyx-receipt-foot svg { width: 15px; height: 15px; flex: none; color: #8B6914; }

.tyx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 3.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(201, 164, 74, 0.32); }
.tyx-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; column-gap: 0.85rem; row-gap: 0.5rem; align-content: start; padding: 1.6rem 1.6rem 0 0; }
.tyx-step + .tyx-step { padding-left: 1.6rem; border-left: 1px solid rgba(255, 255, 255, 0.09); }
.tyx-step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(201, 164, 74, 0.6); font-size: 0.875rem; font-weight: 800; color: #C9A44A; }
.tyx-step-when { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #C9A44A; }
.tyx-step-what { grid-column: 2; font-size: 1rem; font-weight: 500; line-height: 1.55; color: #dfe2e8; }

/* 2. The Playbook */
.tyx-offer { padding: 6rem 2rem 6.5rem; }
.tyx-offer-head { max-width: 1000px; margin: 0 auto 3.5rem; text-align: center; }
.tyx-head-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.6rem; margin-top: 2rem; }
.tyx-head-more { font-size: 0.9688rem; font-weight: 700; color: #1E3D2F; text-decoration: none; border-bottom: 1px solid rgba(30, 61, 47, 0.4); }
.tyx-head-more:hover { color: #0f172a; border-bottom-color: #0f172a; text-decoration: none; }
#tyxGets { scroll-margin-top: calc(var(--nav-h, 130px) + 1.5rem); }
.tyx-eyebrow { display: inline-block; margin: 0 0 1.2rem; padding: 0.45rem 0.95rem; border-radius: 999px; background: #ffffff; box-shadow: 0 0 0 1px #e2d6b8; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8B6914; }
.tyx-h2 { margin: 0 0 1.2rem; font-size: clamp(2.1rem, 3.6vw, 3.2rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; color: #0f172a; text-wrap: balance; }
.tyx-h2 span { display: block; color: #1E3D2F; }
.tyx-lead { margin: 0 auto; max-width: 64ch; font-size: 1.125rem; font-weight: 500; line-height: 1.7; color: #3d4757; text-wrap: pretty; }

.tyx-loop { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 3.5rem; padding: 0; list-style: none; counter-reset: none; }
.tyx-loop-node { position: relative; display: flex; flex-direction: column; gap: 0.45rem; padding: 1.4rem 1.5rem 1.5rem; border-radius: 16px; background: #ffffff; box-shadow: 0 0 0 1px #e7e0cf, 0 18px 40px -30px rgba(15, 23, 42, 0.35); }
.tyx-loop-node + .tyx-loop-node::before { content: '→'; position: absolute; left: -1.05rem; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #0f172a; color: #C9A44A; font-size: 0.9rem; font-weight: 800; z-index: 1; }
.tyx-loop-node b { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.025em; color: #0f172a; }
.tyx-loop-node > span:last-child { font-size: 0.9688rem; font-weight: 500; line-height: 1.55; color: #3d4757; }
.tyx-loop-tag { align-self: flex-start; padding: 0.25rem 0.6rem; border-radius: 999px; background: #f1ece1; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6472; }
.tyx-loop-tag--add { background: #C9A44A; color: #0f172a; }
.tyx-loop-tag--have { background: #e3efe7; color: #1E3D2F; }
.tyx-loop-node--have { box-shadow: 0 0 0 2px #1E3D2F, 0 18px 40px -30px rgba(15, 23, 42, 0.35); }

.tyx-offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; margin-bottom: 3.5rem; }
.tyx-proof { margin: 0; }
.tyx-aio { padding: 1.4rem 1.5rem 1.3rem; border-radius: 16px; background: #ffffff; box-shadow: 0 0 0 1px #e7e0cf, 0 30px 60px -36px rgba(15, 23, 42, 0.45); }
.tyx-aio-bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; padding: 0.6rem 0.9rem; border-radius: 999px; background: #f3f4f6; font-size: 0.9375rem; font-weight: 600; color: #1a2b3c; }
.tyx-aio-bar svg { width: 16px; height: 16px; flex: none; color: #5b6472; }
.tyx-aio-label { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 800; color: #4a5462; }
.tyx-aio-label span { color: #8B6914; }
.tyx-aio-text { margin: 0 0 1rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.6; color: #1a2b3c; }
.tyx-aio-text strong { font-weight: 800; color: #0f172a; background: linear-gradient(transparent 62%, rgba(201, 164, 74, 0.35) 62%); }
.tyx-aio-source { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding-top: 0.85rem; border-top: 1px solid #eee; font-size: 0.875rem; font-weight: 700; color: #1E3D2F; }
.tyx-aio-source span { padding: 0.15rem 0.5rem; border-radius: 6px; background: #e3efe7; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.tyx-proof figcaption { margin: 1rem 0.25rem 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.6; color: #3d4757; }
.tyx-proof figcaption a { display: inline-block; margin-left: 0.25rem; font-weight: 700; color: #8B6914; text-decoration: none; border-bottom: 1px solid rgba(139, 105, 20, 0.4); }
.tyx-proof figcaption a:hover { color: #0f172a; border-bottom-color: #0f172a; text-decoration: none; }

.tyx-gets-title { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8B6914; }
.tyx-gets ul { margin: 0; padding: 0; list-style: none; }
.tyx-gets li { display: flex; gap: 0.85rem; padding: 0.95rem 0; border-top: 1px solid #e2d9c6; font-size: 0.9844rem; line-height: 1.55; color: #3d4757; }
.tyx-gets li:last-child { border-bottom: 1px solid #e2d9c6; }
.tyx-gets li b { display: block; margin-bottom: 0.1rem; font-size: 1.0313rem; font-weight: 800; color: #0f172a; }
.tyx-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 0.1rem; border-radius: 50%; background: #1E3D2F; color: #ffffff; }
.tyx-check svg { width: 13px; height: 13px; }

.tyx-voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.tyx-voices .sct-card { margin: 0; }
.tyx-voices .sct-quote { margin: 0 0 0.8rem; padding: 0; border: 0; }

.tyx-buy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; padding: 2.2rem 2.4rem; border-radius: 20px; color: #dfe2e8;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(201, 164, 74, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #0b1222 100%);
  box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.45), 0 40px 80px -40px rgba(15, 23, 42, 0.8); }
.tyx-buy-price { padding-right: 2.5rem; border-right: 1px solid rgba(201, 164, 74, 0.3); }
.tyx-buy-name { margin: 0 0 0.35rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #C9A44A; }
.tyx-buy-amount { margin: 0; font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.045em; color: #fdfbf5; }
.tyx-buy-terms { margin: 0.45rem 0 0; font-size: 0.9375rem; font-weight: 600; color: #c3c9d4; }
.tyx-buy-points { margin: 0; padding: 0; list-style: none; }
.tyx-buy-points li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; font-size: 0.9688rem; line-height: 1.55; color: #dfe2e8; }
.tyx-buy-points li::before { content: ''; position: absolute; left: 0; top: 0.85rem; width: 7px; height: 7px; border-radius: 50%; background: #C9A44A; }
.tyx-buy-points b { color: #fdfbf5; font-weight: 700; }
.tyx-buy-cta { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
.tyx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.1rem 1.6rem; border-radius: 12px; background: #C9A44A; color: #0f172a; font-size: 1.0625rem; font-weight: 800; white-space: nowrap; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(201, 164, 74, 0.7); transition: transform 0.2s ease, background 0.2s ease; }
.tyx-btn:hover { transform: translateY(-1px); background: #d9b65a; color: #0f172a; text-decoration: none; }
.tyx-buy-carry { margin: 0; font-size: 0.875rem; font-weight: 600; color: #c3c9d4; }
.tyx-textlink { font-size: 0.9375rem; font-weight: 700; color: #fdfbf5; text-decoration: none; border-bottom: 1px solid rgba(201, 164, 74, 0.6); }
.tyx-textlink:hover { color: #C9A44A; text-decoration: none; }

/* 3. From Drew */
.tyx-note { padding: 0 2rem 6rem; }
.tyx-note-inner { max-width: 720px; padding-top: 2.5rem; border-top: 1px solid #e2d9c6; text-align: center; }
.tyx-note-text { margin: 0 0 0.8rem; font-size: 1.125rem; font-weight: 500; line-height: 1.6; color: #1a2b3c; }
.tyx-note-sign { margin: 0; font-size: 0.9375rem; color: #5b6472; }
.tyx-note-sign strong { margin-right: 0.35rem; color: #0f172a; font-weight: 800; }

/* Tablet */
@media (max-width: 1024px) {
  .tyx-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tyx-receipt { max-width: 520px; }
  .tyx-offer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tyx-buy { grid-template-columns: 1fr; gap: 1.6rem; text-align: left; }
  .tyx-buy-price { padding: 0 0 1.4rem; border-right: 0; border-bottom: 1px solid rgba(201, 164, 74, 0.3); }
  .tyx-buy-cta { align-items: stretch; }
}

/* Phone */
@media (max-width: 720px) {
  .tyx-hero { padding: calc(var(--nav-h, 90px) + 2rem) 1rem 2.5rem; }
  .tyx-sub { font-size: 1.0625rem; }
  .tyx-steps { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .tyx-step, .tyx-step + .tyx-step { padding: 1.1rem 0 0; border-left: 0; }
  .tyx-step + .tyx-step { margin-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }
  .tyx-offer { padding: 4rem 1rem 4.5rem; }
  .tyx-offer-head { margin-bottom: 2.2rem; }
  .tyx-lead { font-size: 1.0313rem; }
  .tyx-loop { grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 2.5rem; }
  .tyx-loop-node + .tyx-loop-node::before { content: '↓'; left: 50%; top: -0.8rem; }
  .tyx-voices { grid-template-columns: 1fr; }
  .tyx-buy { padding: 1.6rem 1.3rem; }
  .tyx-buy-amount { font-size: 2.8rem; }
  .tyx-btn { white-space: normal; }
  .tyx-note { padding: 0 1rem 4rem; }
}

/* Playbook thank-you (playbook-v2.php): offer split around the live agents strip */
.tyx-offer--top { padding-bottom: 3.5rem; }
.tyx-offer--top .tyx-loop { margin-bottom: 0; }
.tyx-offer--rest { padding-top: 4.5rem; }
.tyx-live { scroll-margin-top: var(--nav-h, 130px); }
.tyx-offer-grid--agent { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.tyx-voices--stack { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 0; }

/* Bought both in this visit */
.tyx-complete { padding: 5.5rem 2rem 4.5rem; }
.tyx-complete-inner { max-width: 860px; text-align: center; }
.tyx-complete[hidden] { display: none; }

@media (max-width: 1024px) {
  .tyx-offer-grid--agent { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tyx-offer--top { padding-bottom: 2.5rem; }
  .tyx-offer--rest { padding-top: 3rem; }
  .tyx-complete { padding: 3.5rem 1rem 3rem; }
}
/* Phones stack the live agents; on a thank-you page three is enough. */
@media (max-width: 720px) {
  .tyx-live .svc-live-card:nth-child(n+4) { display: none; }
}
