/* Perch tools: the rank checker and the live top charts.
   Built on blog.css tokens. Bold colour blocks, paper birds, one big moment per page. */
.tool-page main { padding-bottom: 20px; }
.tool-page .breadcrumbs { padding-top: 26px; }
.tool-page h1 { font-size: clamp(48px, 7vw, 96px); line-height: .96; letter-spacing: -.06em; }
.tool-page h1 span { color: var(--forest); }
.tool-lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 600px; margin-top: 22px; }
.tool-page [hidden] { display: none !important; }

/* Rank checker hero: a forest block with a curved hem. */
.checker-hero { position: relative; margin-top: 26px; background: var(--forest); color: var(--white); }
.checker-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; padding: 64px 0 36px; }
.checker-hero .eyebrow { color: var(--ochre); }
.checker-hero h1 { color: var(--white); margin-top: 14px; }
.checker-hero h1 span { color: var(--peach); }
.checker-hero .tool-lede { color: #dfe9e3; }
.checker-form { display: flex; gap: 10px; margin-top: 34px; max-width: 640px; background: var(--white); border-radius: 40px; padding: 7px; box-shadow: 0 18px 40px rgba(20, 50, 40, .25); }
.checker-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 12px 18px; outline: none; }
.checker-form input::placeholder { color: #8b8580; }
.checker-form:focus-within { box-shadow: 0 0 0 3px var(--ochre), 0 18px 40px rgba(20, 50, 40, .25); }
.checker-go { flex: none; border: 0; border-radius: 34px; background: var(--ochre); color: var(--ink); font: inherit; font-weight: 850; font-size: 15px; padding: 12px 24px; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.checker-go:hover { background: #f0c662; transform: translateY(-1px); }
.platform-switch { display: inline-flex; gap: 4px; margin-top: 18px; background: rgba(255, 250, 240, .12); border-radius: 30px; padding: 4px; }
.platform-switch button { border: 0; background: transparent; color: #dfe9e3; font: inherit; font-size: 13px; font-weight: 800; padding: 7px 15px; border-radius: 24px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.platform-switch button[aria-pressed="true"] { background: var(--white); color: var(--forest); }
.checker-bird { width: 280px; height: auto; justify-self: end; margin-bottom: -58px; position: relative; z-index: 2; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .18)); }
.hero-curve { display: block; width: 100%; height: 70px; fill: var(--forest); position: absolute; left: 0; top: calc(100% - 1px); }
.checker-note { margin-top: 16px; color: var(--peach); }

.checker-picks { margin-top: 110px; }
.picks-title { font-size: 28px; margin-bottom: 18px; }
.picks-note { font-size: 17px; color: var(--muted); }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pick { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 18px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pick:hover, .pick:focus-visible { transform: translateY(-2px); border-color: var(--forest); box-shadow: 0 10px 22px rgba(37, 35, 53, .08); }
.pick img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.pick span { display: grid; gap: 2px; min-width: 0; }
.pick strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { font-size: 13px; color: var(--muted); }

/* The sweep: every storefront as a tile that lights up. */
.checker-run { margin-top: 110px; scroll-margin-top: 30px; }
.checker-picks:not([hidden]) + .checker-run { margin-top: 50px; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.run-app { display: flex; align-items: center; gap: 18px; min-width: 0; }
.run-app img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 20px rgba(37, 35, 53, .12); flex: none; }
.run-app h2 { font-size: 30px; }
.run-app p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.run-stats { text-align: right; }
.run-count { display: flex; align-items: baseline; gap: 10px; justify-content: flex-end; }
.run-count strong { font-family: var(--round); font-size: 64px; line-height: 1; letter-spacing: -.05em; color: var(--forest); }
.run-count span { font-weight: 800; font-size: 15px; }
.run-best { font-size: 14px; color: var(--muted); margin-top: 6px; min-height: 1.4em; }
.run-best strong { color: var(--ink); }
.run-progress { display: flex; align-items: center; gap: 16px; margin: 28px 0 20px; font-size: 14px; color: var(--muted); }
.run-bar { flex: 1; height: 8px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.run-bar span { display: block; height: 100%; width: 0; background: var(--forest); border-radius: 8px; transition: width .35s ease; }
.run-progress p { flex: none; min-width: 210px; }
.text-button { border: 0; background: none; font: inherit; font-weight: 800; color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.country-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.country-grid li { aspect-ratio: 1; border-radius: 12px; background: var(--soft); display: grid; place-content: center; text-align: center; font-size: 12px; font-weight: 800; color: #a29d95; transition: background .35s ease, color .35s ease, transform .35s ease; }
.country-grid .rk { display: block; font-family: var(--round); font-size: 17px; letter-spacing: -.03em; line-height: 1.1; }
.country-grid .is-checking { background: #f3e8cd; color: var(--ink); }
.country-grid .is-clear { background: var(--white); color: #b9b3aa; }
.country-grid .is-missed { background: var(--white); color: #d3a650; }
.country-grid .is-charting { background: var(--peach); color: var(--ink); transform: scale(1.04); }
.country-grid .is-charting .cc { font-size: 10px; opacity: .75; }
.run-results { margin-top: 44px; }
.run-results h2 { font-size: 34px; margin-bottom: 14px; }
.placement-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.placement-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: rise .4s ease both; }
.pl-rank { font-family: var(--round); font-weight: 850; font-size: 26px; letter-spacing: -.04em; color: var(--forest); }
.pl-country { font-weight: 800; }
.pl-chart { color: var(--muted); font-size: 14px; }
.pl-link { font-size: 13px; font-weight: 800; color: var(--forest); text-decoration: none; white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tool-explainer { margin-top: 110px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; align-items: start; }
.tool-explainer h2 { font-size: clamp(34px, 4vw, 52px); margin-top: 12px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; font-size: 17px; line-height: 1.6; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%; background: var(--ochre); display: grid; place-items: center; font-family: var(--round); font-weight: 850; font-size: 19px; }
.steps strong { display: block; font-size: 19px; }

/* Shared: Perch nudge, questions, quiet links. */
.tool-cta { margin-top: 100px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 46px; align-items: center; background: var(--peach); border-radius: 50% 50% 24px 24px / 9% 9% 24px 24px; padding: 48px 60px; }
.tool-cta-bird { width: 190px; height: auto; }
.tool-cta .eyebrow { font-size: 10px; }
.tool-cta h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; margin: 14px 0 16px; }
.tool-cta h2 span { color: var(--forest); }
.tool-cta p:not(.eyebrow) { font-size: 15px; line-height: 1.7; max-width: 540px; }
.tool-cta .pill { margin-top: 22px; }
.tool-faq { margin-top: 90px; }
.tool-faq > h2 { font-size: 40px; margin-bottom: 20px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; }
.faq-grid .faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-grid h3 { font-size: 21px; margin-bottom: 8px; }
.faq-grid p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.faq-grid a, .tool-links a { color: var(--forest); font-weight: 750; }
.tool-links { margin-top: 50px; font-size: 16px; color: var(--muted); }

/* Charts */
.charts-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 46px 0 30px; flex-wrap: wrap; }
.charts-hero h1 { margin-top: 14px; max-width: 900px; }
.country-jump { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.country-jump select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23286957' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; border-radius: 30px; padding: 12px 44px 12px 18px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.country-jump button { border: 0; border-radius: 30px; background: var(--ink); color: var(--white); font: inherit; font-weight: 800; padding: 12px 18px; cursor: pointer; }
.chart-tabs { display: flex; gap: 6px; background: var(--soft); border-radius: 40px; padding: 5px; width: max-content; max-width: 100%; margin-top: 6px; }
.chart-tabs button { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 850; color: var(--muted); padding: 10px 22px; border-radius: 34px; cursor: pointer; transition: background .25s ease, color .25s ease; }
.chart-tabs button[aria-selected="true"] { background: var(--forest); color: var(--white); }
.chart-panel { margin-top: 40px; }
.has-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.panel-title { font-size: 34px; margin-bottom: 24px; }
.chart-panel.is-entering { animation: rise .35s ease both; }
.chart-missing { padding: 40px 0; font-size: 17px; color: var(--muted); }

.podium { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 860px; margin-inline: auto; }
.podium a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.podium-icon { position: relative; }
.podium-icon img:not(.podium-bird) { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 26px rgba(37, 35, 53, .16); transition: transform .25s ease; }
.podium a:hover .podium-icon img:not(.podium-bird) { transform: translateY(-4px) rotate(-2deg); }
.step-1 .podium-icon img:not(.podium-bird) { width: 120px; height: 120px; border-radius: 27px; }
.podium-bird { position: absolute; width: 70px; height: 70px; right: -38px; top: -46px; z-index: 2; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .12)); }
.podium-name { font-family: var(--round); font-weight: 850; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; margin-top: 14px; padding-inline: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.podium-dev { font-size: 12px; color: var(--muted); margin-top: 3px; padding-inline: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.podium-block { width: 100%; margin-top: 16px; border-radius: 18px 18px 6px 6px; display: grid; place-items: start center; padding-top: 14px; }
.podium-rank { font-family: var(--round); font-weight: 900; font-size: 46px; letter-spacing: -.05em; line-height: 1; }
.step-1 .podium-block { height: 150px; background: var(--forest); color: var(--white); }
.step-2 .podium-block { height: 110px; background: var(--peach); }
.step-3 .podium-block { height: 80px; background: var(--ochre); }

.chart-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 50px; }
.chart-list li { break-inside: avoid; display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cl-rank { font-family: var(--round); font-weight: 850; font-size: 17px; color: var(--muted); text-align: right; }
.chart-list img { width: 52px; height: 52px; border-radius: 12px; background: var(--soft); }
.cl-app { display: grid; min-width: 0; }
.cl-app a { font-weight: 800; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-app a:hover { color: var(--forest); }
.cl-app span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-price { font-size: 12px; font-weight: 800; color: var(--forest); background: #e1ece6; border-radius: 20px; padding: 4px 10px; }

.hub-hero { align-items: center; }
.hub-bird { width: 230px; height: auto; margin-right: 20px; }
.hub-markets h2, .hub-all h2 { font-size: 30px; }
.market-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.market-chips a { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: 8px 18px 8px 8px; text-decoration: none; color: var(--ink); font-weight: 800; transition: transform .18s ease, border-color .18s ease; }
.market-chips a:hover { transform: translateY(-2px); border-color: var(--forest); }
.chip-cc { width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: var(--white); display: grid; place-items: center; font-size: 11px; letter-spacing: .04em; }
.hub-all { margin-top: 60px; }
.hub-all-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hub-all .search-field { width: auto; }
.country-list { list-style: none; margin: 22px 0 0; padding: 0; columns: 4 190px; column-gap: 30px; }
.country-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.country-list a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 650; }
.country-list a:hover { color: var(--forest); }
.tool-missing { padding: 90px 0; }

@media (max-width: 800px) {
  .checker-hero-inner { grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; padding-top: 48px; }
  .checker-bird { width: 150px; margin-bottom: -40px; }
  .tool-lede { font-size: 17px; }
  .run-head { align-items: flex-start; }
  .run-stats { text-align: left; }
  .run-count { justify-content: flex-start; }
  .tool-explainer { grid-template-columns: 1fr; gap: 26px; margin-top: 80px; }
  .tool-cta { grid-template-columns: 1fr; gap: 10px; padding: 40px 32px; text-align: left; }
  .tool-cta-bird { width: 120px; }
  .faq-grid { grid-template-columns: 1fr; }
  .chart-list { columns: 1; }
  .hub-bird { width: 150px; margin: 0; }
  .placement-list li { grid-template-columns: 58px minmax(0, 1fr) auto; row-gap: 0; padding: 12px 0; }
  .pl-rank { grid-row: 1 / 3; }
  .pl-chart { grid-column: 2 / 3; grid-row: 2; }
  .pl-link { grid-row: 1 / 3; grid-column: 3; }
}
@media (max-width: 560px) {
  .checker-hero-inner { grid-template-columns: 1fr; }
  .checker-bird, .hub-bird { display: none; }
  .checker-form { flex-direction: column; border-radius: 24px; }
  .checker-go { width: 100%; }
  .run-progress { flex-wrap: wrap; }
  .run-progress p { min-width: 0; }
  .podium { gap: 8px; }
  .podium-icon img:not(.podium-bird) { width: 64px; height: 64px; border-radius: 15px; }
  .step-1 .podium-icon img:not(.podium-bird) { width: 80px; height: 80px; border-radius: 18px; }
  .podium-bird { width: 50px; height: 50px; right: -26px; top: -32px; }
  .podium-name { font-size: 14px; }
  .podium-rank { font-size: 34px; }
  .step-1 .podium-block { height: 110px; } .step-2 .podium-block { height: 80px; } .step-3 .podium-block { height: 58px; }
  .chart-tabs button { padding: 9px 14px; font-size: 14px; }
  .country-jump { width: 100%; }
  .country-jump select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .tool-page * { animation: none !important; transition: none !important; } }

/* App Store Connect landing page: the dashboard drops from the menu bar bird. */
.asc-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 50px; align-items: start; padding: 46px 0 20px; }
.asc-hero h1 { margin-top: 14px; }
.asc-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.text-link { color: var(--forest); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.asc-desk { position: relative; background: var(--peach); border-radius: 28px 28px 22px 22px; padding: 0 0 36px; overflow: hidden; box-shadow: 0 30px 60px rgba(37, 35, 53, .12); }
.asc-menubar { width: 100%; height: auto; display: block; }
.asc-drop { position: relative; width: 46%; margin-left: calc(53% - 23%); margin-top: 14px; animation: drop .7s cubic-bezier(.2, .9, .3, 1.15) .2s both; }
.asc-drop::before { content: ""; position: absolute; top: -9px; left: calc(50% - 10px); width: 20px; height: 20px; background: #f7f1ea; transform: rotate(45deg); border-radius: 4px; }
.asc-drop img { position: relative; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 22px 40px rgba(37, 35, 53, .22); }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) scale(.97); } to { opacity: 1; transform: none; } }
.asc-ways { margin-top: 90px; }
.asc-ways > h2, .asc-compare > h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 26px; }
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.way { background: var(--white); border-radius: 26px; padding: 22px 22px 26px; }
.way-art { height: 260px; border-radius: 18px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 22px; }
.way-mac .way-art { background: var(--peach); }
.way-iphone .way-art { background: #cfe0d6; }
.way-widgets .way-art { background: var(--ochre); align-items: center; padding: 18px; gap: 10px; }
.way-art img { width: 62%; height: auto; border-radius: 14px; box-shadow: 0 14px 26px rgba(37, 35, 53, .16); }
.widgets-art img:first-child { width: 64%; border-radius: 18px; }
.widgets-art img:last-child { width: 32%; border-radius: 18px; }
.way h3 { font-size: 24px; margin-top: 20px; }
.way p { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.asc-list { margin-top: 100px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: start; }
.asc-list h2 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 12px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 14px; border-radius: 50%; background: var(--forest); }
.asc-compare { margin-top: 100px; }
.asc-compare table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 20px; overflow: hidden; font-size: 15px; }
.asc-compare th, .asc-compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.asc-compare thead th { background: var(--forest); color: var(--white); font-size: 13px; font-weight: 850; }
.asc-compare thead th:nth-child(2) { background: #1f574a; }
.asc-compare tbody th { font-weight: 800; }
.asc-compare td:nth-child(2) { font-weight: 800; color: var(--forest); background: #f4efe2; }
.cmp-na { color: #a29d95; }
.compare-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.compare-note a { color: var(--forest); font-weight: 750; }
@media (max-width: 800px) {
  .asc-hero { grid-template-columns: 1fr; gap: 34px; }
  .ways-grid { grid-template-columns: 1fr; }
  .way { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 22px; align-items: center; }
  .way-art { grid-row: 1 / 3; height: 200px; }
  .way h3 { margin-top: 0; align-self: end; }
  .way p { align-self: start; }
  .asc-list { grid-template-columns: 1fr; gap: 20px; margin-top: 80px; }
  .asc-compare table { min-width: 620px; }
}
@media (max-width: 560px) {
  .way { grid-template-columns: 1fr; }
  .way-art { grid-row: auto; }
  .way h3 { margin-top: 18px; align-self: auto; }
}

/* Biggest climbs: a forest band between the podium and the list. */
.movers { background: var(--forest); color: var(--white); border-radius: 26px; padding: 22px 24px 24px; margin: 0 0 30px; }
.movers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.movers-head h3 { font-size: 26px; color: var(--white); }
.movers-head p { font-size: 13px; color: #cfe0d6; }
.mover-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mover-list a { display: grid; gap: 8px; justify-items: start; background: rgba(255, 250, 240, .1); border-radius: 18px; padding: 14px; color: var(--white); text-decoration: none; height: 100%; transition: background .2s ease, transform .2s ease; }
.mover-list a:hover { background: rgba(255, 250, 240, .18); transform: translateY(-2px); }
.mover-list img { width: 52px; height: 52px; border-radius: 12px; }
.mv-name { font-weight: 800; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mv-badge { font-size: 12px; color: #cfe0d6; }
.mv-badge strong { color: var(--ochre); font-size: 14px; margin-right: 4px; }
@media (max-width: 560px) { .mover-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
