/* Use-case pages and the /use-case/ hub. Built on landing.css, so they share the homepage's
   type, colours, MacBook frame, toggle and buttons. Every class here starts with uc-. */

.uc-page main { overflow-x: clip; }
.uc-page kbd { padding: 0 6px; border: 1px solid #c8cdbd; border-bottom-width: 2px; border-radius: 6px; color: var(--ink); background: #fff; font: 650 .86em var(--font); white-space: nowrap; }
.uc-eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Hero */
.uc-hero { display: grid; justify-items: center; width: min(1000px, calc(100% - 40px)); margin: clamp(34px, 5vw, 62px) auto 0; text-align: center; }
.uc-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .86rem; font-weight: 580; }
.uc-crumbs li:not(:last-child)::after { margin: 0 .6rem; color: #b5baac; content: "/"; }
.uc-crumbs a { transition: color .2s; }
.uc-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.uc-crumbs [aria-current] { color: var(--ink); }
.uc-page .uc-hero h1 { margin-top: 22px; color: var(--ink); font-size: clamp(2.5rem, 5.6vw, 4.7rem); font-weight: 720; letter-spacing: -.062em; line-height: 1; text-wrap: balance; }
.uc-hero .lede { max-width: 700px; margin-top: 22px; }
.uc-hub .uc-hero h1 { margin-top: 24px; font-size: clamp(2.8rem, 6.4vw, 5.6rem); }

/* Before and after */
.uc-device { width: min(1000px, calc(100% - 48px)); margin: clamp(40px, 5.5vw, 64px) auto 0; }
.uc-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 22px; background: #151912; box-shadow: 0 0 0 1px #1d221614, 0 30px 70px #1d22162a, 0 8px 18px #1d22161a; }
.uc-stage img { height: 100%; }
.uc-caption { max-width: 560px; min-height: 1.5em; margin: 14px auto 0; color: var(--muted); font-size: .98rem; line-height: 1.5; text-align: center; }

/* Article with a sticky table of contents */
.uc-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: clamp(32px, 5vw, 76px); width: min(1100px, calc(100% - 48px)); margin: clamp(64px, 7vw, 100px) auto 0; }
.uc-aside { position: sticky; top: 104px; display: grid; align-self: start; gap: 22px; }
.uc-toc > p { margin-bottom: 12px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.uc-toc ol { display: grid; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.uc-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 15px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; font-weight: 580; transition: color .2s, border-color .2s; }
.uc-toc a:hover { color: var(--ink); }
.uc-toc a.is-current { border-left-color: var(--accent); color: var(--ink); }
.uc-aside-buy { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px #1d22160a; }
.uc-aside-buy b { display: block; font-size: 1rem; letter-spacing: -.025em; }
.uc-aside-buy span { color: var(--muted); font-size: .86rem; }
.uc-aside-buy .button { grid-column: 1 / -1; width: 100%; }
.uc-article { min-width: 0; }

.uc-answer { padding: 24px 26px; border: 1px solid #d8e5b1; border-radius: 20px; background: linear-gradient(180deg, #f2f9dc, #fbfdf3); }
.uc-page .uc-answer h2 { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: .8rem; font-weight: 720; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.uc-answer h2::before { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px #4d612730; content: ""; }
.uc-answer p { margin-top: 12px; color: var(--ink); font-size: 1.12rem; line-height: 1.62; letter-spacing: -.012em; }
.uc-answer .uc-meta { margin-top: 14px; color: var(--muted); font-size: .85rem; letter-spacing: 0; }
.uc-answer--hub { width: min(820px, calc(100% - 40px)); margin: 30px auto 0; }

.uc-section { margin-top: clamp(56px, 6vw, 84px); scroll-margin-top: 100px; }
.uc-page .uc-section h2 { margin-top: 10px; color: var(--ink); font-size: clamp(1.85rem, 3.3vw, 2.55rem); font-weight: 720; letter-spacing: -.05em; line-height: 1.06; text-wrap: balance; }
.uc-section h3 { color: var(--ink); font-size: 1.06rem; letter-spacing: -.022em; line-height: 1.35; }
.uc-prose { margin-top: 20px; }
.uc-prose p, .uc-intro { color: #3c4136; font-size: 1.08rem; line-height: 1.72; }
.uc-prose p + p { margin-top: 1em; }
.uc-intro { margin-top: 16px; }
.uc-article a:not(.button):not(.text-link) { color: #3d5016; text-decoration: underline; text-decoration-color: #4d612766; text-underline-offset: .2em; }
.uc-article a:not(.button):not(.text-link):hover { text-decoration-color: currentColor; }

/* What you can try first */

/* The fix */
.uc-steps { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.uc-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); scroll-margin-top: 110px; }
.uc-step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #171a10; background: var(--lime); font-size: .92rem; font-weight: 760; }
.uc-steps h3 { padding-top: 5px; }
.uc-steps p { margin-top: 4px; color: var(--muted); line-height: 1.56; }
.uc-result { margin: 26px 0 0; }
.uc-result-screen { overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px #1d221614, 0 22px 50px #1d22161f, 0 6px 14px #1d221612; }
.uc-result-screen img { width: 100%; height: auto; }
.uc-result figcaption { margin-top: 12px; color: var(--muted); font-size: .93rem; text-align: center; }
.uc-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin-top: 26px; padding: 18px 20px 18px 24px; border-radius: 18px; color: #e9ede2; background: #1b1e19; }
.uc-nudge p { max-width: 380px; color: #aeb5a6; line-height: 1.5; }
.uc-nudge b { color: #f6f8f1; }
.uc-nudge div { display: flex; align-items: center; gap: 18px; }
.uc-nudge .text-link { color: #e0f995; }

/* App by app */
.uc-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.uc-apps li { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); scroll-margin-top: 110px; transition: border-color .3s, box-shadow .3s; }
.uc-apps li:target { border-color: #9db45a; box-shadow: 0 0 0 4px #daff5966; }
.uc-apps h3 { display: flex; align-items: center; gap: 10px; }
.uc-apps h3::before { flex: none; width: 13px; height: 11px; border: 1px dashed #657a36; border-radius: 3px; background: #afc776; box-shadow: inset 0 0 0 2px #edf2de; content: ""; }
.uc-apps p { margin-top: 6px; color: var(--muted); font-size: .97rem; line-height: 1.56; }

/* Why it helps */
.uc-value { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.uc-value li { padding: 22px; border-radius: 18px; color: #e9ede2; background: radial-gradient(120% 90% at 0% 0%, #2a3420, transparent 60%), #171a14; }
.uc-value h3 { display: flex; align-items: center; gap: 10px; color: #f6f8f1; }
.uc-value h3::before { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #171a10; background: var(--lime); font-size: .72rem; font-weight: 800; content: "✓"; }
.uc-value p { margin-top: 8px; color: #aeb5a6; font-size: .97rem; line-height: 1.56; }

/* Good to know */
.uc-limits { margin: 22px 0 0; padding: 4px 22px; border: 1px solid var(--line); border-radius: 16px; list-style: none; background: var(--white); }
.uc-limits li { position: relative; padding: 15px 0 15px 32px; color: #3c4136; line-height: 1.56; }
.uc-limits li + li { border-top: 1px solid #e8eae1; }
.uc-limits li::before { position: absolute; top: 17px; left: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #4d5747; background: #e7e9df; font: italic 700 .72rem/1 Georgia, serif; content: "i"; }
/* Use case → blog: the neutral guide that covers other ways to do it */
.uc-guide { margin-top: clamp(44px, 5vw, 64px); padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.uc-guide p:not(.uc-eyebrow) { margin-top: 8px; color: var(--muted); line-height: 1.56; }
.uc-guide a { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e8eae1; color: var(--ink); font-weight: 650; letter-spacing: -.015em; line-height: 1.35; transition: color .2s; }
.uc-guide a:hover { color: #3d5016; }

/* Questions and answers */
.uc-faq { margin-top: 22px; border-top: 1px solid var(--line); }
.uc-faq details { border-bottom: 1px solid var(--line); }
.uc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; cursor: pointer; list-style: none; }
.uc-faq summary::-webkit-details-marker { display: none; }
.uc-faq summary::after { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); background: #eceee5; font-size: 1.1rem; font-weight: 500; line-height: 1; content: "+"; transition: transform .25s, background-color .25s; }
.uc-faq details[open] summary::after { background: var(--lime); transform: rotate(45deg); }
.uc-faq summary:hover h3 { color: #3d5016; }
.uc-faq h3 { font-size: 1.08rem; letter-spacing: -.022em; line-height: 1.38; }
.uc-faq p { padding: 0 46px 20px 0; color: var(--muted); line-height: 1.62; }

/* The offer at the bottom of every page */
.uc-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(30px, 5vw, 64px); width: min(1180px, calc(100% - 48px)); margin: clamp(84px, 9vw, 124px) auto 0; padding: clamp(30px, 5vw, 60px); overflow: hidden; border-radius: 32px; color: #f3f5ee; background: radial-gradient(70% 80% at 92% 0%, #3b4c1e8c, transparent 62%), radial-gradient(60% 70% at 0% 100%, #222d18, transparent 70%), #141711; box-shadow: 0 40px 90px #1d22162e; }
.uc-offer .eyebrow { margin-bottom: 14px; color: var(--lime); }
.uc-page .uc-offer h2 { color: #f6f8f1; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.uc-page .uc-offer h2 span { color: var(--lime); }
.uc-offer-lede { max-width: 470px; margin-top: 18px; color: #aeb5a6; font-size: 1.08rem; line-height: 1.52; }
.uc-offer-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: #d8ddd1; font-size: .95rem; line-height: 1.4; }
.uc-offer-points li { display: flex; align-items: flex-start; gap: 10px; }
.uc-offer-points li::before { display: grid; flex: none; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; color: #171a10; background: var(--lime); font-size: .68rem; font-weight: 800; content: "✓"; }
.uc-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.uc-offer-actions .button { min-height: 54px; padding-inline: 1.45rem; font-size: 1rem; }
.uc-offer-link { color: #e0f995; font-weight: 660; }
.uc-offer-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.uc-offer-note { margin-top: 16px; color: #8d9486; font-size: .86rem; }
.uc-offer-art { position: relative; margin: 0 0 18px; }
.uc-offer-screen { overflow: hidden; border: 1px solid #ffffff26; border-radius: 16px; background: #000; box-shadow: 0 34px 70px #000b, 0 0 0 7px #ffffff0c; }
.uc-offer-screen img { width: 100%; height: auto; }
.uc-offer-price { position: absolute; bottom: -18px; left: -16px; display: grid; justify-items: start; padding: 13px 18px 12px; border-radius: 18px; color: #171a10; background: var(--lime); box-shadow: 0 18px 34px #0008; transform: rotate(-4deg); }
.uc-offer-price b { font-size: 2.05rem; font-weight: 760; letter-spacing: -.05em; line-height: 1; }
.uc-offer-price span { margin-top: 3px; font-size: .74rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.uc-offer-price .uc-offer-was { text-decoration: line-through; opacity: .65; }

/* Cards (related use cases and the hub) */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.uc-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: transform .25s, border-color .25s, box-shadow .25s; }
.uc-card:hover, .uc-card:focus-visible { border-color: #c6cdb9; box-shadow: 0 20px 44px #1d22161c; transform: translateY(-3px); }
.uc-card-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #0c0d0b; }
.uc-card-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.uc-card:hover .uc-card-shot img { transform: scale(1.035); }
.uc-card-copy { display: grid; align-content: start; gap: 6px; padding: 18px 20px 20px; }
.uc-card h3 { color: var(--ink); font-size: 1.16rem; letter-spacing: -.032em; line-height: 1.25; }
.uc-card-text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.uc-card-apps { margin-top: 4px; color: #6b7262; font-size: .82rem; font-weight: 620; }

.uc-related { width: min(1180px, calc(100% - 48px)); margin: clamp(76px, 8vw, 108px) auto 0; }
.uc-related .uc-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.uc-related-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.uc-page .uc-related h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

/* Hub */
.uc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(1000px, calc(100% - 40px)); margin: 34px auto 0; }
.uc-chips a { display: inline-flex; align-items: center; gap: 9px; padding: 7px 7px 7px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: .92rem; font-weight: 640; transition: border-color .2s, background-color .2s; }
.uc-chips a:hover { border-color: #b9c0ad; background: #fff; }
.uc-chips span { min-width: 25px; padding: 3px 7px; border-radius: 99px; color: #3e4438; background: #eceee5; font-size: .76rem; text-align: center; }
.uc-category { width: min(1180px, calc(100% - 48px)); margin: clamp(76px, 8vw, 112px) auto 0; scroll-margin-top: 96px; }
.uc-category-head { max-width: 720px; margin-bottom: 28px; }
.uc-page .uc-category-head h2 { margin-top: 10px; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.uc-category-head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.uc-hub-faq { width: min(820px, calc(100% - 48px)); margin: clamp(84px, 9vw, 124px) auto 0; }
.uc-page .uc-hub-faq h2 { margin-top: 10px; font-size: clamp(2rem, 3.6vw, 2.8rem); }

@media (max-width: 1040px) {
  .uc-layout { grid-template-columns: minmax(0, 720px); }
  .uc-aside { display: none; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .uc-offer { grid-template-columns: 1fr; }
  .uc-offer-art { order: -1; margin-bottom: 26px; }
  .uc-apps, .uc-value { grid-template-columns: 1fr; }
  .uc-related-head { flex-direction: column; align-items: start; }
}
@media (max-width: 560px) {
  .uc-device, .uc-layout, .uc-offer, .uc-related, .uc-category, .uc-hub-faq { width: calc(100% - 28px); }
  .uc-grid, .uc-offer-points { grid-template-columns: 1fr; }
  .uc-answer { padding: 20px; }
  .uc-answer p { font-size: 1.04rem; }
  .uc-nudge div { width: 100%; }
  .uc-nudge .button { flex: 1; }
  .uc-offer { border-radius: 24px; }
  .uc-offer-price { left: 10px; bottom: -16px; }
  .uc-offer-actions .button { width: 100%; }
  .uc-faq p { padding-right: 0; }
  .uc-page .buy span { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-card, .uc-card-shot img, .uc-faq summary::after { transition: none; }
}

/* Use case / blog post → the FAQ answers a reader asks next */
.uc-faq-more { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.uc-faq-more p { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.uc-faq-more ul { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.uc-faq-more a { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e6e8df; color: var(--ink); font-weight: 600; letter-spacing: -.012em; line-height: 1.4; transition: color .2s; }
.uc-faq-more a::after { color: var(--muted); content: "→"; }
.uc-faq-more a:hover { color: #3d5016; }
.bp-article > .uc-faq-more { margin-top: clamp(48px, 6vw, 72px); }
.uc-hub-faq .uc-faq-more { margin-top: 30px; }
