/* The home page of alineza.com (welcome.blade.php and resources/views/site/home): the day dial with what the app is, a
   day told in five hours, the modes, the business, the Studio and the three apps. Tokens only (praca-tokens.css). */

/* The opening: what the app is beside the day of its apps */
.st-hero { padding-block: 80px 96px; }
.st-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px 64px; }
.st-hero__title { font: 800 72px/72px var(--pr-font-sans); letter-spacing: -.045em; text-wrap: balance; }
.st-hero__lead { margin-top: 24px; max-width: 30em; font: 400 20px/30px var(--pr-font-sans); color: var(--pr-ink-2); text-wrap: pretty; }
.st-hero .st-actions { margin-top: 32px; }
.st-hero__note { margin-top: 16px; font: 400 14px/20px var(--pr-font-sans); color: var(--pr-ink-3); }

/* A day told in five hours: the hour large, what happens, and the screen it happens on */
.st-moments { display: grid; }
.st-moment { display: grid; grid-template-columns: 192px minmax(0, 1fr) minmax(0, 420px); align-items: start; gap: 24px 48px; padding-block: 48px; box-shadow: inset 0 1px 0 var(--pr-hairline); }
.st-moment__time { font: 800 72px/72px var(--pr-font-sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.st-moment__app { display: flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 14px/20px var(--pr-font-sans); color: var(--pr-ink-2); }
.st-moment__app .st-orb { width: 28px; height: 28px; }
.st-moment__title { font: 700 32px/40px var(--pr-font-sans); letter-spacing: -.02em; text-wrap: balance; }
.st-moment__text { margin-top: 12px; max-width: 30em; font: 400 18px/28px var(--pr-font-sans); color: var(--pr-ink-2); text-wrap: pretty; }

/* The screens of the day: the app's own pieces, drawn small */
.st-card { display: grid; gap: 16px; padding: 16px; border-radius: 20px; background: var(--pr-surface); box-shadow: inset 0 0 0 1px var(--pr-hairline); }
.st-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: var(--pr-brand-strong); color: var(--pr-on-brand); font: 700 16px/20px var(--pr-font-sans); }
.st-who { display: flex; align-items: center; gap: 12px; }
.st-who > div { display: grid; min-width: 0; }
.st-who b { font: 700 16px/20px var(--pr-font-sans); }
.st-who span { font: 400 14px/20px var(--pr-font-sans); color: var(--pr-ink-2); }

.st-ride__map { width: 100%; height: auto; border-radius: 12px; background: var(--pr-surface-2); }
.st-ride__street { fill: none; stroke: var(--pr-surface-3); stroke-width: 8; stroke-linecap: round; }
.st-ride__route { fill: none; stroke: var(--pr-brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.st-ride__from { fill: var(--pr-ink); stroke: var(--pr-surface-2); stroke-width: 3; }
.st-ride__to { fill: var(--pr-brand); stroke: var(--pr-surface-2); stroke-width: 3; }
.st-ride__trip { display: grid; gap: 8px; font: 600 16px/20px var(--pr-font-sans); }
.st-ride__trip span { display: flex; align-items: center; gap: 12px; }
.st-ride__trip span::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--pr-ink); }
.st-ride__trip span + span::before { border-radius: 2px; background: var(--pr-brand); }
.st-ride__row { display: flex; align-items: center; gap: 12px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--pr-hairline); }
.st-ride__row .st-who { flex: 1; }
.st-price { font: 700 18px/24px var(--pr-font-sans); font-variant-numeric: tabular-nums; }

.st-post { padding: 0; gap: 0; overflow: hidden; }
.st-post .st-who { padding: 12px 16px; }
.st-post__avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 2px var(--pr-brand); }
.st-post__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.st-post__order { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; background: var(--pr-brand-strong); color: var(--pr-on-brand); font: 700 16px/20px var(--pr-font-sans); }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--pr-hairline-strong); font: 600 14px/20px var(--pr-font-sans); font-variant-numeric: tabular-nums; }
.st-chips span:first-child { background: var(--pr-ink); color: var(--pr-on-ink); box-shadow: none; }

.st-notes { gap: 0; padding-block: 4px; }
.st-notes .st-who { align-items: flex-start; padding-block: 12px; }
.st-notes .st-who + .st-who { box-shadow: inset 0 1px 0 var(--pr-hairline); }
.st-notes .st-who > div { flex: 1; }
.st-notes p { font: 400 14px/20px var(--pr-font-sans); }
.st-notes time { font: 400 13px/20px var(--pr-font-sans); color: var(--pr-ink-3); font-variant-numeric: tabular-nums; }

.st-chat { gap: 12px; background: var(--pr-chat-wall); }
.st-chat > .st-who span { color: var(--pr-ok); }
.st-bubble { max-width: 86%; padding: 8px 12px; border-radius: 16px; font: 400 14px/20px var(--pr-font-sans); }
.st-bubble--out { justify-self: end; background: var(--pr-chat-out); border-bottom-right-radius: 4px; }
.st-bubble--in { justify-self: start; background: var(--pr-chat-in); border-bottom-left-radius: 4px; }
.st-offer { display: grid; gap: 12px; padding: 12px; border-radius: 16px; background: var(--pr-chat-in); }
.st-offer img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.st-offer__go { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.st-offer__go .st-cta { min-height: 40px; font-size: 14px; }
.st-offer__go span:last-child { display: flex; align-items: center; padding: 0 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--pr-hairline-strong); font: 600 14px/20px var(--pr-font-sans); }

/* The modes: each one's own home screen beside what it changes */
.st-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.st-mode { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px; border-radius: 24px; background: var(--pr-surface); }
.st-mode__screen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: 28px; background: var(--pr-canvas); box-shadow: inset 0 0 0 1px var(--pr-hairline); }
.st-mode__tile { display: grid; justify-items: center; gap: 4px; font: 700 13px/16px var(--pr-font-sans); text-align: center; }
.st-mode__tile .st-orb { width: 56px; height: 56px; }
.st-mode--elder .st-mode__screen { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.st-mode--elder .st-mode__tile { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--pr-surface-2); font-size: 18px; line-height: 24px; text-align: left; }
.st-mode--elder .st-mode__tile .st-orb { width: 40px; height: 40px; }
.st-mode h3 { font: 700 24px/32px var(--pr-font-sans); }
.st-mode p { margin-top: 8px; font: 400 16px/24px var(--pr-font-sans); color: var(--pr-ink-2); }

/* The business: the shop at the counter and the four things the panel does */
.st-biz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 64px; }
.st-biz__photo { width: 100%; height: 100%; min-height: 420px; border-radius: 24px; object-fit: cover; }
.st-verbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-block: 40px; }
.st-verbs b { display: block; font: 800 24px/32px var(--pr-font-sans); letter-spacing: -.02em; }
.st-verbs span { display: block; margin-top: 8px; font: 400 16px/24px var(--pr-font-sans); color: var(--pr-ink-2); }

/* The Studio: the six things the Meta review reads, word for word */
.st-studio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.st-studio li { display: grid; grid-template-rows: 24px auto auto; align-content: start; gap: 8px; }
.st-studio .st-i { width: 24px; height: 24px; color: var(--pr-brand-ink); }
.st-studio b { font: 700 18px/24px var(--pr-font-sans); }
.st-studio span { font: 400 16px/24px var(--pr-font-sans); color: var(--pr-ink-2); }
.st-studio-go { margin-top: 48px; }

/* The three apps */
.st-get { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.st-get li { display: grid; justify-items: start; gap: 12px; }
.st-get img { width: 88px; height: 88px; border-radius: 20px; }
.st-get b { font: 700 24px/32px var(--pr-font-sans); }
.st-get p { font: 400 16px/24px var(--pr-font-sans); color: var(--pr-ink-2); }
.st-web { margin-top: 48px; font: 400 16px/24px var(--pr-font-sans); color: var(--pr-ink-2); }
.st-web a { color: var(--pr-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1279px) {
    .st-hero__title { font-size: 64px; line-height: 64px; }
    .st-moment { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 380px); gap: 24px 32px; }
    .st-moment__time { font-size: 56px; line-height: 56px; }
    .st-mode { grid-template-columns: minmax(0, 1fr); }
    .st-mode__screen { max-width: 240px; }
}
@media (max-width: 1023px) {
    .st-hero__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .st-hero__say { display: grid; justify-items: center; }
    .st-hero__lead { margin-inline: auto; }
    .st-moment { grid-template-columns: 160px minmax(0, 1fr); }
    .st-moment__shot { grid-column: 2; max-width: 420px; }
    .st-moment__time { font-size: 48px; line-height: 48px; }
    .st-modes, .st-biz { grid-template-columns: minmax(0, 1fr); }
    .st-biz__photo { min-height: 0; aspect-ratio: 16 / 9; }
    .st-studio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .st-hero { padding-block: 32px 56px; }
    .st-hero__title { font-size: 48px; line-height: 48px; }
    .st-hero__lead { font-size: 18px; line-height: 28px; }
    .st-moment { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 40px; }
    .st-moment__shot { grid-column: auto; }
    .st-moment__time { font-size: 48px; line-height: 48px; }
    .st-moment__title { font-size: 24px; line-height: 32px; }
    .st-moment__text { font-size: 16px; line-height: 24px; }
    .st-mode { padding: 24px; }
    .st-verbs, .st-studio, .st-get { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
