/* Integration pages (v2/integration-guides/*.html): the use-case library's content in the site's
   design. Class names are the source's, prefixed "uc-". Markup: tools/integration_usecases.py */
.uc { --ink: #242426; --sub: #5d5d63; --mute: #68686f; --line: #ececf1; --soft: #f6f5fa; --lav: #efe9ff; --deep: #5b2fd6; --dark: #1c1b22; color: var(--ink); }
.tp-page main.uc { padding-bottom: 72px; }
.uc h1, .uc h2, .uc h3, .uc p { margin-top: 0; }
.uc h2 { margin-bottom: 14px; font-family: var(--display); font-size: clamp(32px, 3.6vw, 50px); font-weight: 400; line-height: 1.06; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.uc .uc-eyebrow { margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.uc .uc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.uc .btn { font-family: inherit; }

/* ---------------------------------------------------------------- hero: the site's dark hero card */
.uc .uc-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center;
  width: auto; max-width: none; margin: 86px 30px 0; padding: 76px max(45px, calc((100% - 1290px) / 2)) 84px; border-radius: 26px; overflow: hidden; color: #fff;
  background: radial-gradient(50% 70% at 82% 30%, rgba(125, 64, 255, 0.42), rgba(125, 64, 255, 0) 65%), radial-gradient(45% 60% at 8% 115%, rgba(125, 64, 255, 0.22), rgba(125, 64, 255, 0) 70%), #111312; }
.uc .uc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(55% 70% at 75% 45%, #000, transparent 75%); mask-image: radial-gradient(55% 70% at 75% 45%, #000, transparent 75%); }
.uc .uc-hero .uc-eyebrow { color: #c9b6ff; }
.uc .uc-hero h1 { margin: 6px 0 22px; font-family: var(--display); font-size: clamp(42px, 4.8vw, 70px); font-weight: 400; line-height: 1.02; letter-spacing: -0.05em; color: #f4f2ee; text-wrap: balance; }
.uc .uc-hero h1 span { color: inherit; }
.uc .uc-lead { max-width: 56ch; margin-bottom: 30px; font-size: 17.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.66); }
.uc .uc-hero .btn--line { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.uc .uc-hero .btn--line > i { background: rgba(255, 255, 255, 0.14); color: #fff; }
.uc .uc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.uc .uc-chip { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* hero visual: the order window, with the hand-off flow card floating over its lower edge */
.uc .uc-visual { position: relative; display: flex; flex-direction: column; min-width: 0; width: 100%; max-width: 500px; margin-left: auto; padding: 10px 0 0 28px; }
.uc .uc-visual::before { content: ""; position: absolute; z-index: 0; left: 8%; right: -6%; top: 6%; bottom: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(125, 64, 255, 0.55), rgba(125, 64, 255, 0)); filter: blur(30px); }
.uc .uc-screen { position: relative; z-index: 1; border-radius: 24px; background: #fff; overflow: hidden; color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 50px 90px -30px rgba(0, 0, 0, 0.75); transform: rotate(-1.5deg); transition: transform 0.6s var(--ease); }
.uc .uc-visual:hover .uc-screen { transform: rotate(0deg) translateY(-4px); }
.uc .uc-screenbar { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--mute); }
.uc .uc-screenbar span { margin-left: 10px; }
.uc .uc-dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e0ea; }
.uc .uc-dot:first-child { background: #ff8f80; } .uc .uc-dot:nth-child(2) { background: #ffd36b; } .uc .uc-dot:nth-child(3) { background: #7fd68f; }
.uc .uc-screenbody { padding: 20px 22px 22px; }
.uc .uc-screenhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.uc .uc-tiny { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--mute); }
.uc .uc-screenhead strong { display: block; margin-top: 3px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.uc .uc-pill { flex: none; padding: 6px 12px; border-radius: 999px; background: #e7f6ec; font-size: 13px; font-weight: 600; color: #0c7a43; box-shadow: 0 0 0 4px rgba(47, 163, 90, 0.08); }
.uc .uc-lineitem { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.uc .uc-lineitem > strong { font-size: 15.5px; font-weight: 600; }
.uc .uc-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.uc .uc-product strong { font-size: 15.5px; font-weight: 600; }
.uc .uc-swatch { position: relative; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--soft); }
.uc .uc-swatch img { width: 44px; height: 44px; object-fit: contain; }
.uc .uc-swatch--add { background: #f3effe; }
.uc .uc-swatch em { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); font-style: normal; font-size: 12px; font-weight: 700; color: #fff; box-shadow: 0 0 0 3px #fff; }
.uc .uc-itemsub { margin-top: 3px; font-size: 13px; color: var(--mute); }
.uc .uc-summaryrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 13px 16px; border-radius: 14px; background: var(--soft); }
.uc .uc-summaryrow strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* the hand-off flow card */
.uc .uc-flow { position: relative; z-index: 2; display: flex; align-items: center; gap: 0; margin: 18px 0 0; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
@keyframes uc-float { 50% { transform: translateY(-6px); } }
.uc .uc-handoff { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0; background: none; box-shadow: none; }
.uc .uc-handoff::before { display: none; }
.uc .uc-hi { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; }
.uc .uc-hi--ae { background: #fff; }
.uc .uc-hi--ae img { width: 100%; height: 100%; object-fit: cover; }
.uc .uc-hi--p { background: rgba(169, 139, 255, 0.18); color: #c9b6ff; box-shadow: inset 0 0 0 1px rgba(169, 139, 255, 0.35); }
.uc .uc-hi--p svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uc .uc-hcopy { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin: 0; }
.uc .uc-hcopy span { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, 0.55); }
.uc .uc-hcopy b { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.uc .uc-handoff:last-child .uc-hcopy b { color: #c9b6ff; }
.uc .uc-flowline { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: 0 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(125, 64, 255, 0.18); }
.uc .uc-flowline::after { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.uc .uc-flowline i { display: none; }
@keyframes uc-flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.uc .uc-visualnote { position: relative; z-index: 1; margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.45); }
@media (prefers-reduced-motion: reduce) { .uc .uc-flow, .uc .uc-flowline i { animation: none; } }

/* ---------------------------------------------------------------- sections */
.uc .uc-section { padding: 104px 0 0; }
.uc .uc-sectionhead { max-width: 760px; margin-bottom: 40px; }
.uc .uc-sectionhead p { max-width: 62ch; margin: 0; font-size: 17px; line-height: 1.6; color: var(--sub); }

/* objective */
.uc .uc-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.uc .uc-card { padding: 28px; border-radius: 24px; background: var(--soft); transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease); }
.uc .uc-card:hover { background: #fff; box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.2), 0 30px 50px -36px rgba(60, 30, 140, 0.5); transform: translateY(-3px); }
.uc .uc-cardicon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(125, 64, 255, 0.12), 0 10px 20px -14px rgba(60, 30, 140, 0.6); font-size: 20px; color: var(--deep); }
.uc .uc-card:nth-child(3) .uc-cardicon { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -10px rgba(125, 64, 255, 0.8); }
.uc .uc-card h3 { margin-bottom: 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.uc .uc-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--sub); }

/* expected result */
.uc .uc-resultgrid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.uc .uc-resultvisual { padding: 30px; border-radius: 28px; color: rgba(255, 255, 255, 0.66); background: radial-gradient(90% 70% at 100% 0%, rgba(125, 64, 255, 0.45), rgba(125, 64, 255, 0) 60%), var(--dark); box-shadow: 0 40px 70px -40px rgba(30, 10, 80, 0.7); }
.uc .uc-resultvisual .uc-eyebrow { color: #c9b6ff; }
.uc .uc-resultvisual h3 { margin-bottom: 18px; font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: -0.035em; color: #fff; }
.uc .uc-resultrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 14.5px; }
.uc .uc-resultrow + .uc-resultrow { margin-top: 8px; }
.uc .uc-resultrow strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; text-align: right; }
.uc .uc-resultrow strong::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #2fa35a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.uc .uc-note { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.42); }
.uc .uc-resultcopy > p { max-width: 54ch; font-size: 17px; line-height: 1.6; color: var(--sub); }
.uc .uc-bullets { display: grid; gap: 12px; margin-top: 26px; }
.uc .uc-bullet { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: #3a3a3d; }
.uc .uc-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--lav); font-size: 12px; font-weight: 700; color: var(--deep); }

/* setup */
.uc .uc-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uc .uc-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50px; border-top: 2px dashed rgba(91, 47, 214, 0.2); }
.uc .uc-step { position: relative; padding: 28px 24px 26px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -32px rgba(30, 20, 70, 0.45); }
.uc .uc-num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 14px; background: var(--lav); font-size: 14px; font-weight: 600; color: var(--deep); }
.uc .uc-step:last-child .uc-num { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -10px rgba(125, 64, 255, 0.8); }
.uc .uc-step h3 { margin-bottom: 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.uc .uc-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sub); }
.uc .uc-callout { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; margin-top: 18px; padding: 22px 24px; border-radius: 22px; background: #fff6e5; }
.uc .uc-callout::before { content: "!"; grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f0a51c; font-size: 15px; font-weight: 700; color: #fff; }
.uc .uc-callout strong { font-size: 16px; font-weight: 600; color: #5b3d05; }
.uc .uc-callout p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: #6b4a06; }

/* closing CTA: the site's .tp-cta panel */
.uc .uc-end { padding: 104px 0 0; }
.uc .uc-end .uc-eyebrow { color: #c9b6ff; }
.uc .uc-end h2 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.04em; color: #fff; }
.uc .uc-end .tp-cta > div:first-child p { margin-top: 12px; }
.uc .uc-end .uc-actions { position: relative; flex: none; flex-direction: column; align-items: stretch; }
.uc .uc-end .btn--line { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.uc .uc-end .btn--line > i { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) {
  .uc .uc-hero { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .uc .uc-visual { margin: 0 auto; padding-left: 0; }
  .uc .uc-flow { margin-left: 0; margin-right: 0; }
  .uc .uc-resultgrid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .uc .uc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc .uc-steps::before { display: none; }
}
@media (max-width: 760px) {
  .uc .uc-hero { margin: 72px 12px 0; padding: 40px 20px 44px; border-radius: 22px; }
  .uc .uc-lead { font-size: 16.5px; }
  .uc .uc-flow { flex-direction: column; align-items: stretch; }
  .uc .uc-flowline { margin: 10px 0 10px 4px; transform: rotate(90deg); }
  .uc .uc-section, .uc .uc-end { padding-top: 72px; }
  .uc .uc-three, .uc .uc-steps { grid-template-columns: minmax(0, 1fr); }
  .uc .uc-resultvisual { padding: 22px; }
  .uc .uc-resultrow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .uc .uc-end .uc-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .uc * { transition: none !important; } }

/* desktop/tablet pass: between 901 and 1100 the guide hero keeps copy and order mockup side by side */
@media (min-width: 901px) and (max-width: 1100px) {
  .uc .uc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; }
  .uc .uc-hero h1 { font-size: clamp(38px, 4.4vw, 48px); }
  .uc .uc-flow { padding: 12px; }
  .uc .uc-flowline { margin: 0 8px; }
  .uc .uc-hcopy b { white-space: normal; font-size: 13px; line-height: 1.3; }
}
