/* Diarie — app instalável: aviso de instalação, passo a passo e página "Baixe o app". */
:root { --drp-blue: #093FEB; --drp-mint: #22E39B; --drp-deep: #0531BD; --drp-ink: #0E2063; --drp-soft: #4A5D94; --drp-ice: #F2F6FD; --drp-line: #E6EEFB; --drp-font: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif; }

.drp-banner, .drp-sheet, .drp-back { font-family: var(--drp-font); -webkit-font-smoothing: antialiased; box-sizing: border-box; }
.drp-banner *, .drp-sheet * { box-sizing: border-box; }
.drp-banner[hidden], .drp-sheet[hidden], .drp-variant[hidden] { display: none !important; }

/* Botões */
.drp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px;
	background: var(--drp-mint); color: #04412B; font: 800 15px/1.1 var(--drp-font); cursor: pointer;
	white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.drp-btn:hover { background: #19D08C; }
.drp-btn:focus-visible, .drp-x:focus-visible, .drp-back:focus-visible { outline: 3px solid var(--drp-blue); outline-offset: 2px; }
.drp-btn--ghost { background: transparent; color: var(--drp-blue); box-shadow: inset 0 0 0 2px var(--drp-line); }
.drp-btn--ghost:hover { background: var(--drp-ice); }
.drp-btn--block { width: 100%; min-height: 50px; font-size: 16px; }
.drp-x {
	display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: var(--drp-ice); color: var(--drp-soft); cursor: pointer;
}
.drp-x svg { width: 18px; height: 18px; }

/* Aviso de instalação ---------------------------------------------------- */
.drp-banner {
	position: fixed; z-index: 99998; left: 12px; right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom));
	display: flex; align-items: center; gap: 12px;
	max-width: 520px; margin: 0 auto; padding: 12px 12px 12px 14px;
	background: #fff; color: var(--drp-ink); border-radius: 20px;
	box-shadow: 0 22px 50px -18px rgba(9, 63, 235, .55), 0 0 0 1px rgba(9, 63, 235, .06);
	animation: drp-up .35s cubic-bezier(.2, .9, .3, 1.2);
}
.drp-banner img { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 0 0 1px var(--drp-line); }
.drp-banner__text { flex: 1; min-width: 0; line-height: 1.3; }
.drp-banner__text strong { display: block; font-size: 16px; font-weight: 900; color: var(--drp-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drp-banner__text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--drp-soft); margin-top: 2px; }
.drp-banner__actions { display: flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 480px) {
	.drp-banner { gap: 10px; padding: 10px 10px 10px 12px; }
	.drp-banner img { width: 46px; height: 46px; border-radius: 12px; }
	.drp-banner__text strong { font-size: 15px; }
	.drp-banner .drp-btn { padding: 10px 16px; }
}
@media (max-width: 360px) { .drp-banner__text span { display: none; } }
@media (min-width: 700px) { .drp-banner { left: auto; right: 20px; bottom: 20px; } }

/* Passo a passo ---------------------------------------------------------- */
body.drp-lock { overflow: hidden; }
.drp-sheet {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: flex-end; justify-content: center;
	padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
	background: rgba(14, 32, 99, .55);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	animation: drp-fade .2s ease;
}
@media (min-width: 700px) { .drp-sheet { align-items: center; } }
.drp-sheet__card {
	position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto;
	background: #fff; color: var(--drp-ink); border-radius: 26px; padding: 24px 22px 20px;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45);
	animation: drp-up .3s cubic-bezier(.2, .9, .3, 1.15);
}
.drp-sheet__close { position: absolute; top: 14px; right: 14px; }
.drp-sheet__head { display: flex; align-items: center; gap: 14px; margin: 0 40px 6px 0; }
.drp-sheet__head img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px var(--drp-line); }
.drp-sheet__head h2 { margin: 0; font: 900 22px/1.15 var(--drp-font); color: var(--drp-deep); letter-spacing: -.01em; }
.drp-sheet__lead { margin: 10px 0 4px; font-weight: 800; color: var(--drp-soft); font-size: 15px; }
.drp-sheet .drp-btn--ghost { width: 100%; margin: 4px 0 10px; }
.drp-sheet__arrow { display: none; }
/* No iPhone, uma seta aponta para o botão Compartilhar da barra do Safari. */
.drp-sheet.is-ios-safari { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.drp-sheet.is-ios-safari .drp-sheet__arrow {
	display: grid; place-items: center; position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
	width: 54px; height: 54px; margin-left: -27px; border-radius: 50%;
	background: var(--drp-mint); color: #04412B; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
	animation: drp-bounce 1.3s ease-in-out infinite;
}
.drp-sheet__arrow svg { width: 28px; height: 28px; }

/* Lista numerada (usada no passo a passo e na página) */
.drp-steps { list-style: none; counter-reset: drp; margin: 14px 0 18px; padding: 0; display: grid; gap: 14px; }
.drp-steps li { counter-increment: drp; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--drp-ink); margin: 0; }
.drp-steps li::before {
	content: counter(drp); width: 34px; height: 34px; border-radius: 50%;
	background: var(--drp-blue); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px;
}
.drp-steps li > span { min-width: 0; padding-top: 5px; }
.drp-steps b { color: var(--drp-deep); font-weight: 900; }
.drp-ios-ico {
	display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -.42em; padding: 2px;
	color: var(--drp-blue); background: var(--drp-ice); border-radius: 7px;
}

/* Botão voltar dentro do app no iPhone ---------------------------------- */
.drp-back {
	display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 12px; background: var(--drp-ice); color: var(--drp-deep); cursor: pointer;
}
.drp-back svg { width: 22px; height: 22px; }
.drp-back--float { position: fixed; z-index: 99990; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 10px 26px -10px rgba(9, 63, 235, .6); background: #fff; }

/* Quem já usa o app não vê convites para instalar */
.is-diarie-app .drp-banner, .is-diarie-app .dt-app-link, .is-diarie-app .dt-footer__app { display: none !important; }
@media (display-mode: standalone) { .dt-app-link, .dt-footer__app { display: none !important; } }

@keyframes drp-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drp-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
	.drp-banner, .drp-sheet, .drp-sheet__card, .drp-sheet__arrow { animation: none !important; }
}

/* Página "Baixe o app" --------------------------------------------------- */
.dr .drp-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; padding: 40px 44px 110px; overflow: hidden; }
.dr .drp-hero h1 { margin: 26px 0 12px; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; }
.dr .drp-hero__lead { font-size: 19px; max-width: 32em; }
.dr .drp-hero__cta { margin-top: 24px; }
.dr .drp-hero__btn { min-height: 58px; padding: 14px 32px; font-size: 18px; }
.dr .drp-hero__btn .dr-ico { width: 24px; height: 24px; }
.dr .drp-hero__hint { margin: 12px 0 0; font-weight: 700; font-size: 15px; }
.dr .drp-hero__done { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 12px 20px; font-weight: 800; color: #fff; }
.dr .drp-hero__done[hidden], .dr .drp-hero__cta[hidden] { display: none; }

/* Celular desenhado com o ícone na tela inicial */
.dr .drp-phone {
	justify-self: center; width: 230px; aspect-ratio: 9 / 18.5; padding: 10px;
	background: #0E2063; border-radius: 40px; transform: rotate(4deg);
	box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.dr .drp-phone__screen {
	height: 100%; border-radius: 31px; padding: 46px 18px 18px;
	background: linear-gradient(160deg, #3B6BFF 0%, var(--dr-blue, #093FEB) 45%, #0531BD 100%);
	position: relative; overflow: hidden;
}
.dr .drp-phone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 999px; background: #0E2063; }
.dr .drp-phone__grid, .dr .drp-phone__dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; align-items: start; }
.dr .drp-phone__grid > span:not(.drp-phone__app), .dr .drp-phone__dock > span { aspect-ratio: 1; border-radius: 11px; background: rgba(255, 255, 255, .2); }
.dr .drp-phone__dock { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .16); }
.dr .drp-phone__app { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.dr .drp-phone__app img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 0 0 3px var(--dr-mint, #22E39B), 0 10px 20px -8px rgba(0, 0, 0, .5); animation: drp-pop 2.6s ease-in-out infinite; }
.dr .drp-phone__app em { font: 800 10px/1 var(--dr-font); font-style: normal; color: #fff; }
@keyframes drp-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.12); } 90% { transform: scale(.98); } }

.dr .drp-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dr .drp-platform { border: 2px solid var(--dr-ice-2); border-radius: var(--dr-r-card); padding: 22px; background: #fff; }
.dr .drp-platform.is-mine { border-color: var(--dr-mint); box-shadow: 0 0 0 4px var(--dr-mint-soft); }
.dr .drp-platform header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dr .drp-platform header h3 { margin: 0; }
.dr .drp-platform header p { margin: 0; font-size: 14px; }
.dr .drp-platform > p { margin-bottom: 0; color: var(--dr-ink-soft); }
.dr .drp-platform__logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; }
.dr .drp-platform__logo svg { width: 28px; height: 28px; }
.dr .drp-platform__logo--android { background: var(--dr-mint-soft); color: #078a59; }
.dr .drp-platform__logo--ios { background: var(--dr-ice); color: var(--dr-ink); }
.dr .drp-platform__you { margin-left: auto; align-self: flex-start; background: var(--dr-mint); color: var(--dr-mint-ink); font-weight: 800; font-size: 12px; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.dr .drp-platform__you[hidden] { display: none; }
.dr .drp-platform .drp-steps { margin-bottom: 0; }
.dr .drp-perks .dr-how__item b { background: var(--dr-mint); color: var(--dr-mint-ink); }
.dr .drp-perks .dr-how__item b .dr-ico { width: 20px; height: 20px; }

@media (max-width: 860px) {
	.dr .drp-hero { grid-template-columns: 1fr; padding: 30px 24px 96px; }
	.dr .drp-phone { display: none; }
	.dr .drp-platforms { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.dr .drp-hero__btn { width: 100%; }
	.dr .drp-sheetbody { margin-left: 10px; margin-right: 10px; padding: 24px 18px; }
	.dr .drp-platform { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .dr .drp-phone__app img { animation: none; } }
