/* Which app is right for you? (/apps/).
   One idea: the three apps side by side, each in its own colour and its own kind of screen, so a visitor picks in seconds.
   Parts: 1 app colours, 2 hero and the three pick cards, 3 the sample screens, 4 the dark side-by-side stage, 5 kinds, industries,
   closing with the price last, 6 tablet and phone, 7 motion (armed by page-apps.js only; finished by default). */

/* ---------------------------------------------------------------- 1. each app's own colour */
.ap-reach { --ap: #6fd04a; --ap-deep: #2c7a14; --ap-a: #e2f4d4; --ap-b: #f6fbf2; --ap-ui: #0b0e0b; --kit-accent: #4f9d2d; }
.ap-post  { --ap: #4f9d2d; --ap-deep: #1f5a10; --ap-a: #d6e8d0; --ap-b: #f2f7f0; --ap-ui: #0d120d; --kit-accent: #2b7421; }
.ap-score { --ap: #f0a020; --ap-deep: #a35f00; --ap-a: #ffe9b8; --ap-b: #fff8ea; --ap-ui: #0c0a07; --kit-accent: #c97d00; }

.ap-grey { color: var(--ink-2); }

/* ---------------------------------------------------------------- 2. hero and the pick cards */
.ap-hero { padding-top: 80px; isolation: isolate; overflow: visible; }
.ap-hero .kit-scribble > svg { bottom: -.1em; }
.ap-hero .kit-scribble path { stroke: var(--mk-mkt); }
.ap-hero .kit-lead { margin-top: 26px; }
.ap-hero .kit-hero-stage { margin-top: 56px; padding-bottom: 24px; }
.ap-wash { height: 640px !important; background:
  radial-gradient(34% 46% at 18% 78%, rgb(111 208 74 / 20%), transparent 72%),
  radial-gradient(30% 42% at 50% 86%, rgb(79 157 45 / 14%), transparent 72%),
  radial-gradient(34% 46% at 84% 78%, rgb(240 160 32 / 20%), transparent 72%) !important; }

.ap-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.ap-card { display: flex; flex-direction: column; gap: 22px; padding: 18px 18px 26px; border-radius: 28px; color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, var(--ap-a), var(--ap-b) 72%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ap-deep) 14%, transparent), 0 24px 48px -28px color-mix(in srgb, var(--ap-deep) 38%, transparent); }
.ap-card:focus-visible { outline: 2px solid var(--ap-deep); outline-offset: 3px; }
.ap-words { display: flex; flex-direction: column; flex: 1; padding: 0 8px; }
.ap-name { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: var(--logo-weight) 22px/28px var(--font-display); }
.ap-name img { flex: none; border-radius: 8px; }
.ap-words .kit-h3 { text-wrap: balance; }
.ap-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; font: 500 15px/20px var(--font-text); color: var(--ap-deep); }
.ap-more .ic { width: 16px; height: 16px; transition: transform .3s var(--kit-ease); }
@media (hover: hover) { .ap-card:hover .ap-more .ic { transform: translateX(4px); } .ap-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ap-deep) 26%, transparent), 0 30px 56px -28px color-mix(in srgb, var(--ap-deep) 46%, transparent); } }

/* ---------------------------------------------------------------- 3. the sample screens: dark, like the real apps, each in its own look */
.ap-scr { height: 268px; background: var(--ap-ui); color: #f4f4f6; box-shadow: 0 0 0 1px rgb(0 0 0 / 40%), 0 26px 44px -22px rgb(16 24 40 / 55%); display: flex; flex-direction: column; }
.ap-scr .kit-screen-bar { flex: none; background: rgb(255 255 255 / 5%); border-bottom-color: rgb(255 255 255 / 9%); color: rgb(244 244 246 / 62%); }
.ap-scr .kit-screen-bar b { color: #f4f4f6; }
.ap-scr .kit-sample { background: rgb(255 255 255 / 8%); color: rgb(244 244 246 / 70%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%); }
.ap-week { font: 400 12px/1 var(--font-text); color: rgb(244 244 246 / 50%); }
.ap-scr .num { font-family: var(--mono); }
.ap-scr[data-kit-tilt]:hover { --glare: .12; }
.ap-slot { display: grid; }
.ap-slot > * { grid-area: 1 / 1; }

/* Reachly: a chat, with the green of its own bubbles */
.ap-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 14px; }
.ap-in, .ap-out { margin: 0; padding: 9px 12px; max-width: 88%; border-radius: 14px; font: 400 13px/18px var(--font-text); }
.ap-in { background: #25262a; border-bottom-left-radius: 4px; align-self: flex-start; }
.ap-out { background: #2c7a14; border: 1.5px solid transparent; border-bottom-right-radius: 4px; justify-self: end; align-self: start; color: #fff; }
.ap-out b { display: block; margin-bottom: 2px; font: 500 11px/14px var(--font-text); color: rgb(255 255 255 / 76%); }
.ap-draft { opacity: 0; background: rgb(44 122 20 / 24%); border-color: rgb(111 208 74 / 70%); border-style: dashed; }
.ap-act2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ap-act2 em { display: inline-flex; align-items: center; gap: 5px; font: 500 11px/14px var(--font-text); font-style: normal; color: rgb(255 255 255 / 82%); }
.ap-act2 svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-ok-btn { padding: 4px 11px; border-radius: 99px; background: #fff; color: #1d4d0c; font: 500 11px/14px var(--font-text); }
.ap-call { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding: 8px 10px; border-radius: 12px; background: rgb(111 208 74 / 10%); box-shadow: inset 0 0 0 1px rgb(111 208 74 / 22%); font: 500 12px/1 var(--font-text); }
.ap-call svg { width: 15px; height: 15px; fill: none; stroke: var(--ap); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap-call .num, .ap-pt .num { font-size: inherit; }
.ap-call .num { color: rgb(244 244 246 / 62%); }
.ap-call em { margin-left: auto; font-style: normal; padding: 4px 8px; border-radius: 99px; background: rgb(255 255 255 / 8%); color: rgb(244 244 246 / 82%); }
.ap-call em + em { margin-left: 0; }

/* Postwise: the week's posts, each with a switch */
.ap-posts { flex: 1; display: grid; align-content: space-evenly; gap: 0; margin: 0; padding: 4px 14px 8px; list-style: none; }
.ap-posts li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.ap-posts li:last-child { border-bottom: 0; }
.ap-th { display: block; width: 40px; height: 40px; border-radius: 10px; }
.ap-th-1 { background: linear-gradient(145deg, #a0643a, #5a3320); }
.ap-th-2 { background: linear-gradient(145deg, #efe2c4, #c9b78f); }
.ap-th-3 { background: linear-gradient(145deg, #f08a3c, #b34a14); }
.ap-pt { display: grid; min-width: 0; }
.ap-pt b { font: 500 13px/17px var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-pt small { font: 400 11.5px/16px var(--font-text); color: rgb(244 244 246 / 55%); }
.ap-pt .ap-ok, .ap-pt .ap-slot .ap-ok { color: #6fd04a; font-weight: 500; }
.ap-wait { color: #f4f4f6; font-weight: 500; }
.ap-pt .ap-slot { font: 400 11.5px/16px var(--font-text); }
.ap-wait { opacity: 0; }
.ap-tg { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #3a3a3e; transition: background-color .5s var(--kit-ease-soft); }
.ap-tg i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .5s var(--kit-ease); }
.ap-tg.is-on { background: #3f8f2c; }
.ap-tg.is-on i { transform: translateX(16px); }

/* Score: a quote that fills itself in, in amber */
.ap-quote { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 18px 18px; }
.ap-line, .ap-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 11px 0; font: 400 13px/18px var(--font-text); color: rgb(244 244 246 / 82%); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.ap-line .num { color: #f4f4f6; font-size: 13px; }
.ap-total { margin-top: 4px; border-bottom: 0; color: var(--ap); font-weight: 500; }
.ap-total .num { color: var(--ap); font-size: 24px; line-height: 28px; }
.ap-btnrow { margin-top: auto; padding-top: 22px; }
.ap-btnrow .btn { min-height: 0; }

/* ---------------------------------------------------------------- 4. the dark side-by-side stage (one colour glow per row) */
.ap-sec { padding-block: 112px; position: relative; }
.ap-sec-tight { padding-top: 24px; }
.ap-dark { position: relative; isolation: isolate; overflow: hidden; padding: 64px 48px 48px; border-radius: 32px; text-align: left;
  background: radial-gradient(50% 60% at 6% 0%, rgb(111 208 74 / 12%), transparent 70%), radial-gradient(44% 50% at 100% 100%, rgb(240 160 32 / 11%), transparent 70%), #07080a;
  box-shadow: var(--kit-shadow); color: var(--ink); }
.ap-dark-head { max-width: 640px; margin-bottom: 40px; }
.ap-dark-head .kit-lead { margin-top: 12px; color: var(--ink-2); }
.ap-rows { display: grid; gap: 16px; }
.ap-head { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 40px; padding: 0 33px 2px; }
.ap-head .ap-label { margin: 0; }
.ap-row { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 40px; align-items: start;
  padding: 28px 32px; border-radius: 22px; background: rgb(255 255 255 / 4%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%); }
.ap-row::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 130% at 0% 0%, color-mix(in srgb, var(--ap) 20%, transparent), transparent 70%); }
.ap-id { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.ap-id img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.ap-id b { display: block; font: var(--logo-weight) 28px/32px var(--font-display); }
.ap-id small { display: block; margin-top: 2px; font: 400 13px/16px var(--font-text); color: var(--ink-2); }
.ap-id:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ap-label { margin: 0 0 8px; font: 500 12px/16px var(--font-text); color: var(--ink-2); }
.ap-does p:not(.ap-label) { margin: 0; font: 400 17px/26px var(--font-text); color: var(--ink); max-width: 30em; }
.ap-does .ap-sub { margin-top: 10px; color: var(--ink-2); }
.ap-act { margin-top: 20px; }
.ap-post .ap-logos { flex-wrap: nowrap; }
.ap-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-logos li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 99px; background: rgb(255 255 255 / 7%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 11%); font: 500 14px/20px var(--font-text); color: var(--ink); }
.ap-logos i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.ap-logos i img { display: block; width: 18px; height: 18px; }
.ap-logos i.is-plain { background: rgb(255 255 255 / 12%); color: #f4f4f6; }
.ap-logos i.is-plain svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ap-logos li.ap-arrow { padding: 0; background: none; box-shadow: none; }
.ap-arrow svg { display: block; width: 48px; height: 24px; overflow: visible; }
.ap-arrow path { stroke: var(--ap); stroke-width: 2.2; }

/* ---------------------------------------------------------------- 5. kinds, industries, closing with the price last */
.ap-kinds { grid-template-columns: 180px minmax(0, 1fr); gap: 48px 72px; }
.ap-kinds .kinds-emb-fig { align-items: center; }
.ap-kinds .kinds-emb-fig .kinds-emb { width: 180px; }
.ap-kinds .kinds-row { padding: 22px 26px; }
.ap-ind { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ap-ind li:nth-child(even) { margin-top: 28px; }
.ap-ind a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; background: #222; box-shadow: var(--kit-shadow); }
.ap-ind img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--kit-ease); }
.ap-ind span { position: absolute; inset: auto 0 0; padding: 56px 14px 14px; background: linear-gradient(to top, rgb(0 0 0 / 72%), transparent); font: 400 20px/24px var(--font-display); text-wrap: balance; }
.ap-ind a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .ap-ind a:hover img { transform: scale(1.05); } }
.ap-ind-all { display: inline-flex; margin-top: 40px; }
.ap-end { padding-bottom: 112px; }
.ap-closing { padding: 72px 56px 48px; border: 0; border-radius: 32px; text-align: left; }
.ap-closing .kit-lead { margin-inline: 0; }
.ap-closing-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 24px; margin-top: 30px; }
.ap-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px 48px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--kit-line); text-align: left; }
.ap-offer-words .kit-h3 { font-size: 22px; line-height: 28px; }
.ap-offer-words p { margin: 6px 0 0; max-width: 34em; font: 400 15px/22px var(--font-text); }
.ap-offer-price { margin: 0; text-align: left; color: var(--ink-2); font: 400 17px/24px var(--font-text); }
.ap-amount { color: var(--ink); font-size: 28px; line-height: 32px; }
.ap-note { display: block; margin-top: 2px; font-size: 15px; line-height: 20px; }

/* ---------------------------------------------------------------- 6. tablet and phone */
@media (max-width: 1099px) {
  .ap-picks { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; gap: 18px; }
  .ap-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px; padding: 18px 24px 18px 18px; }
  .ap-words { padding: 0; }
  .ap-more { margin-top: 18px; padding-top: 0; }
}
@media (max-width: 1023px) {
  .ap-head { display: none; }
  .ap-row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; }
  .ap-ind { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-dark { padding: 48px 28px 32px; border-radius: 28px; }
  .ap-kinds { grid-template-columns: 1fr; gap: 32px; }
  .ap-kinds .kinds-emb-fig { align-items: flex-start; }
  .ap-kinds .kinds-emb-fig .kinds-emb { width: 120px; }
}
@media (max-width: 767px) {
  .ap-hero { padding-top: 48px; }
  .ap-hero .kit-hero-stage { margin-top: 36px; }
  .ap-wash { height: 420px !important; }
  .ap-card { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 14px 14px 24px; }
  .ap-picks { max-width: 440px; }
  .ap-scr { height: 262px; }
  .ap-words { padding: 0 6px; }
  .ap-sec { padding-block: 72px; }
  .ap-sec-tight { padding-top: 8px; }
  .ap-dark { padding: 40px 16px 16px; border-radius: 24px; }
  .ap-dark-head { margin-bottom: 28px; }
  .ap-row { padding: 20px 18px; border-radius: 18px; gap: 14px; }
  .ap-logos { gap: 6px; }
  .ap-logos li { font-size: 13px; padding-right: 10px; }
  .ap-arrow svg { width: 30px; }
  .ap-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ap-ind span { font-size: 18px; padding-top: 44px; }
  .ap-ind-all { margin-top: 28px; }
  .ap-id b { font-size: 26px; }
  .ap-does p:not(.ap-label) { font-size: 16px; line-height: 24px; }
  .ap-kinds .kinds-row { padding: 18px; gap: 14px; }
  .ap-end { padding-bottom: 72px; }
  .ap-closing { padding: 40px 22px 32px; border-radius: 26px; }
  .ap-offer { grid-template-columns: 1fr; margin-top: 44px; gap: 14px; }
  .ap-offer-price { text-align: left; }
}
@media (max-width: 380px) { .ap-scr .kit-screen-bar .ap-week { display: none; } }

/* ---------------------------------------------------------------- 7. motion: armed by page-apps.js only, so the finished picture is the default */
@media (prefers-reduced-motion: no-preference) {
  .ap-scr.is-armed .ap-m { opacity: 0; transform: translateY(10px); }
  .ap-scr.is-armed.is-play .ap-m { opacity: 1; transform: none; transition: opacity .6s var(--kit-ease-soft), transform .9s var(--kit-ease); transition-delay: calc(var(--d, 0) * 1ms); }

  /* Reachly: a draft appears, you approve it, it is sent */
  .ap-scr.is-armed .ap-sentb { opacity: 0; }
  .ap-scr.is-armed.is-play .ap-draft { animation: ap-draft 2.1s ease both .9s; }
  .ap-scr.is-armed.is-play .ap-sentb { opacity: 1; transition: opacity .5s ease 2.9s; }
  .ap-scr.is-armed.is-play .ap-draft .ap-ok-btn { animation: ap-press .5s ease both 2.2s; }
  @keyframes ap-draft { 0% { opacity: 0; transform: translateY(8px); } 16%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes ap-press { 50% { transform: scale(.88); } }

  /* Postwise: the last post waits for a yes, then is approved */
  .ap-scr.is-armed .ap-t3 .ap-tg { background: #3a3a3e; }
  .ap-scr.is-armed .ap-t3 .ap-tg i { transform: none; }
  .ap-scr.is-armed .ap-t3 .ap-ok { opacity: 0; }
  .ap-scr.is-armed .ap-t3 .ap-wait { opacity: 1; }
  .ap-scr.is-armed.is-play .ap-t3 .ap-tg { background: #3f8f2c; transition-delay: 2.1s; }
  .ap-scr.is-armed.is-play .ap-t3 .ap-tg i { transform: translateX(16px); transition-delay: 2.1s; }
  .ap-scr.is-armed.is-play .ap-t3 .ap-ok { opacity: 1; transition: opacity .5s ease 2.2s; }
  .ap-scr.is-armed.is-play .ap-t3 .ap-wait { opacity: 0; transition: opacity .4s ease 2.1s; }

  /* the three cards breathe apart a little on hover: only the screen moves (kit tilt), the card keeps its place */
  .ap-row .ap-logos li { transition: background-color .3s ease; }
  .ap-row .ap-logos li:hover { background: rgb(255 255 255 / 12%); }
}
