/* yarigai.ai/opensource: the source-code store. Uses the tokens and components in style.css and page.css. */

.buy { display: inline-flex; margin: 0; }
.buy .btn { cursor: pointer; }

/* ---------- hero with the yearly receipt ---------- */
.os-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.os-hero .pg-h1 { max-width: 13ch; }
.os-note { margin-top: 18px; font-size: 14.5px; color: var(--mute); }
.os-receipt { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px 22px; }
.os-receipt-h { font: 600 15px/1.3 var(--sans); color: var(--ink); margin-bottom: 14px; }
.os-receipt .swap li { grid-template-columns: 1fr; gap: 3px; padding: 14px 0; font-size: 16px; }
.os-receipt-t { display: grid; gap: 4px; padding-top: 16px; }
.os-receipt-t span { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; font-size: 16px; }
.os-receipt-t b { font: 600 clamp(22px, 2.2vw, 28px)/1.15 var(--sans); letter-spacing: -.03em; color: var(--jade-ink); }
.os-receipt-f { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--mute); }

/* ---------- setup strip under the hero ---------- */
.os-easy { background: var(--ink); color: var(--night-text); }
.os-easy-in { display: flex; align-items: center; gap: 14px 40px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.os-easy-h { font: 600 17px/1.3 var(--sans); letter-spacing: -.02em; color: var(--white); }
.os-easy-steps { display: flex; flex-wrap: wrap; gap: 8px 28px; counter-reset: e; }
.os-easy-steps li { counter-increment: e; display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; color: var(--night-mute); }
.os-easy-steps li::before { content: counter(e); font: 400 17px/1 var(--pixel); color: var(--mint); }
.os-easy-steps b { color: var(--night-text); font-weight: 600; }
.os-easy-go { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 15px var(--sans); color: var(--mint); text-decoration: none; }
.os-easy-go:hover .arr { translate: 3px 0; }

/* ---------- the three apps ---------- */
.os-apps { border-top: 1px solid var(--line); }
.os-app { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(48px, 6vw, 88px) 0; border-bottom: 1px solid var(--line); }
.os-app:nth-child(even) .os-app-copy { order: 2; }
.os-replaces { font: 500 14.5px/1.3 var(--sans); color: var(--jade-ink); }
.os-app h3 { margin-top: 10px; font: 600 clamp(30px, 3vw, 42px)/1.05 var(--sans); letter-spacing: -.045em; }
.os-line { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.os-points { margin-top: 24px; border-top: 1px solid var(--line); }
.os-points li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; }
.os-points li::before { content: ""; position: absolute; left: 2px; top: calc(11px + .6em); width: 7px; height: 7px; background: var(--jade); }
.os-runs { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--mute); }
.os-runs b { color: var(--ink); font-weight: 600; }
.os-buy { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.os-or { font-size: 15px; color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.os-or:hover { text-decoration-color: var(--jade); }
.os-shots { position: sticky; top: calc(var(--nav-h) + 28px); }
.os-gallery { display: grid; gap: 12px; }
.os-main img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.os-cap { font-size: 14.5px; color: var(--ink-2); }
.os-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.os-thumb { display: block; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); opacity: .62; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.os-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.os-thumb:hover { opacity: .9; }
.os-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
.os-shot { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.os-shot img { width: 100%; height: auto; }
.os-shot-empty { aspect-ratio: 16 / 10; background-image: var(--dots); background-size: 16px 16px; }

/* ---------- install steps ---------- */
.os-steps > li { padding: 24px 0; }
.os-steps p { color: var(--ink-2); }

/* ---------- pricing ---------- */
.os-plans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 12px; }
.os-plan { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h price" "sub price" "btn btn"; gap: 4px 16px; align-items: center; }
.os-plan h3 { grid-area: h; font: 600 21px/1.15 var(--sans); letter-spacing: -.03em; }
.os-plan .plan-price { grid-area: price; margin: 0; font-size: clamp(34px, 3vw, 44px); }
.os-plan-sub { grid-area: sub; font-size: 15px; color: var(--mute); }
.os-plan .buy { grid-area: btn; margin-top: 14px; }
.os-plan .buy .btn { width: 100%; }
.os-plan-all { grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: stretch; padding: 34px 32px; background: var(--ink); border-color: var(--ink); color: var(--night-mute); }
.os-plan-all h3 { color: var(--white); font-size: 26px; }
.os-plan-all .plan-price { margin-top: 20px; color: var(--white); font-size: clamp(48px, 5vw, 72px); }
.os-plan-all .os-plan-sub { margin-top: 10px; color: var(--mint); }
.os-plan-all ul { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.os-plan-all li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: var(--night-text); font-size: 15.5px; }
.os-plan-all li::before { content: ""; position: absolute; left: 2px; top: calc(12px + .6em); width: 7px; height: 7px; background: var(--mint); }
.os-plan-all .buy { margin-top: auto; padding-top: 28px; }
.os-plan-all .buy .btn { width: 100%; }
.os-terms { margin-top: 20px; font-size: 14.5px; line-height: 1.55; color: var(--mute); max-width: 72ch; }
.os-terms a, .faq-list .ans a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }

@media (max-width: 960px) {
  .os-easy-go { margin-left: 0; }
  .os-hero-in { grid-template-columns: 1fr; align-items: start; }
  .os-app { grid-template-columns: 1fr; }
  .os-app:nth-child(even) .os-app-copy { order: 0; }
  .os-shots { position: static; }
  .os-plans { grid-template-columns: 1fr; grid-template-rows: none; }
  .os-plan-all { grid-row: auto; }
}
@media (max-width: 640px) {
  .os-receipt { padding: 22px 20px 18px; }
  .os-buy .buy, .os-buy .btn, .pg-ctas .buy, .pg-band .buy { width: 100%; }
  .os-plan { padding: 22px 20px; }
  .os-plan-all { padding: 28px 22px; }
}

/* real installer output under the install steps */
.os-term { margin: 28px 0 0; }
.os-term pre { margin: 0; padding: 22px 24px; background: var(--night); border-radius: 16px; overflow-x: auto; font: 400 13.5px/1.65 var(--mono); color: var(--night-mute); }
.os-term code { font: inherit; white-space: pre; }
.os-term .c { color: var(--night-mute); }
.os-term .p { color: var(--mint); }
.os-term b { color: var(--mint); font-weight: 500; }
.os-term figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
#install .pg-row > * { min-width: 0; }
.os-term pre { max-width: 100%; }
