/*
===========================================================================
Copyright (C) 2026 RPTX LLC

This file is part of AskFolder.
===========================================================================
*/
/* pro.css -- /pro: the offer with its gold word, each Pro feature shown working in a
   small window (counting files, a scan being read, saved folders opening), the deal
   as a paper receipt, and the questions. Plain CSS: nothing here needs a script */

.pro-page { padding-bottom: 96px; }
.pro-hero { padding-top: 64px; }
.pro-lead { max-width: 40rem; margin: 26px 0 0; font-size: 18px; line-height: 1.65; color: var( --text-2 ); }

/* the plans: icon, price, and a clear button in each */
.pro-plans { margin-top: 36px; }
.pro-plans[hidden] { display: none; }
.plan-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba( 106, 168, 255, 0.14 ); color: var( --sky ); }
.plan.pro .plan-icon { background: rgba( 245, 196, 81, 0.14 ); color: var( --gold ); }
.plan-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
	border-radius: 13px; padding: 13px 18px; font-weight: 800; font-size: 15px;
	border: 1px solid var( --edge ); color: #fff; transition: transform 0.15s;
}
.plan.pro .plan-cta { border: 0; color: var( --on-sky ); background: linear-gradient( 90deg, var( --sky ), var( --sky-pale ) ); box-shadow: 0 14px 34px -14px rgba( 106, 168, 255, 0.9 ); }
button.plan:hover .plan-cta .ico { transform: translateX( 3px ); }
.plan-cta .ico { transition: transform 0.15s; }

/* the checkout's summary list (it lived under .doc before) */
.pay-gets { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.pay-gets li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.5; color: #cfd9ea; }

/*
=========================================================================

WHAT PRO DOES, SHOWN

=========================================================================
*/

.show { display: grid; gap: 96px; margin-top: 120px; }
.show-row { display: grid; gap: 36px; align-items: center; }
@media ( min-width: 920px ) {
	.show-row { grid-template-columns: 1.05fr 1fr; gap: 64px; }
	.show-row.flip .demo { order: 2; }
}
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var( --sky ); }
.eyebrow.gold { color: var( --gold ); }
.eyebrow.mint { color: var( --mint ); }
.show-copy h2 { margin: 10px 0 0; font: 800 38px/1.1 var( --brand ); }
.show-copy p:not( .eyebrow ) { margin: 16px 0 0; font-size: 16px; line-height: 1.7; color: var( --text-2 ); }

/* a small app window, glowing */
.demo { position: relative; border-radius: 24px; background: linear-gradient( 165deg, #13274a, var( --card ) 60% ); border: 1px solid rgba( 106, 168, 255, 0.22 ); box-shadow: 0 40px 90px -50px rgba( 106, 168, 255, 0.9 ); padding: 16px; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 14px; font: 500 12px/1 var( --mono ); color: var( --text-3 ); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba( 255, 255, 255, 0.14 ); }
.demo-bar span { margin-left: 8px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var( --font ); letter-spacing: 0.06em; text-transform: uppercase; color: var( --mint ); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var( --mint ); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* 1. counting past the free 50 */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.size-body { border-radius: 16px; background: rgba( 0, 0, 0, 0.18 ); padding: 18px; }
.size-folder { display: flex; align-items: center; gap: 12px; }
.size-folder b { display: block; font-size: 15px; }
.size-folder small { display: block; font-size: 12px; color: var( --text-3 ); }
.size-tile { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient( 145deg, #2a5ca8, #15335f ); color: #cfe2ff; }
.size-tile .ico { width: 18px; height: 18px; }
.size-count { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.count { font: 800 54px/1 var( --font ); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; counter-reset: n var( --n ); animation: count 7s cubic-bezier( 0.3, 0, 0.2, 1 ) infinite; }
.count::after { content: counter( n ); }
.size-count small { font-size: 15px; color: var( --text-2 ); }
@keyframes count { 0% { --n: 0; } 70%, 100% { --n: 1284; } }
.size-track { position: relative; height: 8px; margin: 16px 0 26px; border-radius: 4px; background: rgba( 255, 255, 255, 0.08 ); }
.size-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient( 90deg, var( --sky ), var( --sky-pale ) ); animation: fill 7s cubic-bezier( 0.3, 0, 0.2, 1 ) infinite; }
@keyframes fill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.size-track em { position: absolute; left: 4%; top: 14px; padding-left: 8px; border-left: 2px solid var( --gold ); font-style: normal; font-size: 11px; font-weight: 700; color: #f8dc94; white-space: nowrap; }
.size-track::before { content: ""; position: absolute; left: 4%; top: -4px; width: 2px; height: 16px; background: var( --gold ); }
.size-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.size-rows li { display: flex; align-items: center; gap: 10px; border-radius: 10px; background: rgba( 255, 255, 255, 0.03 ); padding: 8px 10px; font-size: 13px; font-weight: 600; opacity: 0; animation: row 7s ease-out infinite; }
.size-rows li:nth-child( 2 ) { animation-delay: 0.5s; }
.size-rows li:nth-child( 3 ) { animation-delay: 1s; }
.size-rows li:nth-child( 4 ) { animation-delay: 1.5s; }
.size-rows span { flex: none; width: 34px; border-radius: 5px; background: rgba( 106, 168, 255, 0.14 ); color: var( --sky-pale ); padding: 2px 0; text-align: center; font: 700 10px/1.3 var( --mono ); }
.size-rows b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.size-rows small { flex: none; margin-left: auto; font-size: 11px; font-weight: 500; color: var( --text-3 ); }
@keyframes row { 0% { opacity: 0; transform: translateY( 6px ); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 2. a scan, read: the beam passes, the words light up */
.demo-scan { display: grid; place-items: center; padding: 34px 26px; }
.paper {
	position: relative; width: min( 100%, 360px ); border-radius: 6px; background: #f3f1e7; color: #2b2f36;
	padding: 26px 26px 30px; transform: rotate( -2deg ); box-shadow: 0 30px 60px -30px rgba( 0, 0, 0, 0.8 ); overflow: hidden;
	font: 500 14px/1.6 Georgia, "Times New Roman", serif;
}
.paper b { display: block; color: #1c2230; margin-bottom: 12px; font: 800 15px/1.2 var( --font ); letter-spacing: 0.08em; }
.paper p { margin: 8px 0 0; }
.paper .faint { margin-top: 18px; color: #8b8b84; font-style: italic; }
.paper mark { background: transparent; color: inherit; padding: 0 2px; border-radius: 3px; animation: lit 4.5s ease-in-out infinite; }
@keyframes lit { 0%, 45% { background: transparent; } 55%, 90% { background: #ffe08a; } 100% { background: transparent; } }
.beam { position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient( 180deg, transparent, rgba( 106, 168, 255, 0.45 ), transparent ); animation: beam 4.5s ease-in-out infinite; }
@keyframes beam { 0% { top: -20%; } 50% { top: 100%; } 100% { top: 100%; } }
.scan-chip { position: absolute; right: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba( 100, 209, 138, 0.14 ); border: 1px solid rgba( 100, 209, 138, 0.35 ); padding: 5px 11px; font-size: 12px; font-weight: 800; color: var( --mint ); animation: chip 4.5s ease-in-out infinite; }
@keyframes chip { 0%, 50% { opacity: 0; transform: translateY( 6px ); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 3. saved folders, opening instantly */
.saved-demo { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.saved-demo li { display: flex; align-items: center; gap: 12px; border-radius: 14px; border: 1px solid var( --line ); background: rgba( 0, 0, 0, 0.16 ); padding: 11px 12px; }
.saved-demo div { flex: 1; min-width: 0; }
.saved-demo b { display: block; font-size: 14px; }
.saved-demo small { display: block; font-size: 12px; color: var( --text-3 ); }
.saved-demo em { font-style: normal; font-size: 12px; font-weight: 800; color: var( --mint ); }
.saved-demo li:first-child { animation: pick 5s ease-in-out infinite; }
@keyframes pick { 0%, 30% { border-color: var( --line ); background: rgba( 0, 0, 0, 0.16 ); } 40%, 85% { border-color: rgba( 106, 168, 255, 0.6 ); background: rgba( 106, 168, 255, 0.1 ); } 100% { border-color: var( --line ); } }
.toast { display: inline-flex; align-items: center; gap: 7px; margin: 14px 4px 2px; border-radius: 999px; background: rgba( 106, 168, 255, 0.14 ); padding: 6px 12px; font-size: 12px; font-weight: 800; color: var( --sky-pale ); animation: chip 5s ease-in-out infinite; }

/*
=========================================================================

THE DEAL, AND QUESTIONS

=========================================================================
*/

.deal { display: grid; gap: 48px; align-items: center; margin-top: 140px; }
@media ( min-width: 920px ) { .deal { grid-template-columns: 1fr 1fr; } }
.deal-title { margin: 0; font: 800 44px/1.08 var( --brand ); }
.deal-list { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.deal-list li { display: flex; gap: 14px; }
.deal-list span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba( 100, 209, 138, 0.14 ); color: var( --mint ); font-size: 13px; font-weight: 800; }
.deal-list p { margin: 2px 0 0; font-size: 16px; line-height: 1.6; color: var( --text-2 ); }
.deal-list b { color: #fff; }

/* a paper receipt with a torn edge */
.receipt {
	justify-self: center; width: min( 100%, 400px ); padding: 30px 30px 40px; background: #f3f1e7; color: #2b2f36;
	transform: rotate( 2deg ); box-shadow: 0 40px 80px -40px rgba( 0, 0, 0, 0.9 );
	font: 500 14px/1.5 var( --mono );
	-webkit-mask: radial-gradient( 9px at 50% 100%, transparent 98%, #000 ) 50% 100% / 18px 100% repeat-x;
	mask: radial-gradient( 9px at 50% 100%, transparent 98%, #000 ) 50% 100% / 18px 100% repeat-x;
}
.receipt-title { display: block; color: #1c2230; text-align: center; font: 800 18px/1.2 var( --font ); letter-spacing: 0.06em; }
.receipt > small { display: block; margin-top: 4px; text-align: center; font-size: 12px; color: #7b7b74; }
.receipt dl { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed #b9b7ad; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.receipt dt { color: #5d5f63; }
.receipt dd { margin: 0; font-weight: 700; }
.receipt .total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed #b9b7ad; font-size: 15px; }
.receipt .total + .total { margin-top: 0; padding-top: 2px; border-top: 0; }
.receipt-foot { display: block; margin-top: 16px; text-align: center; font-size: 11px; color: #8b8b84; }

.pro-faq { display: grid; gap: 32px; margin-top: 140px; }
@media ( min-width: 920px ) { .pro-faq { grid-template-columns: 1fr 1.4fr; } }
.pro-faq h2 { margin: 0; font: 800 44px/1.08 var( --brand ); }
.faq-list details { border-bottom: 1px solid var( --line ); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { color: var( --text-3 ); transition: transform 0.2s; }
.faq-list details[open] summary .ico { transform: rotate( 180deg ); }
.faq-list p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: var( --text-2 ); }

.pro-page .callout { margin-top: 100px; border-radius: 20px; background: var( --card ); border: 1px solid var( --line ); padding: 22px 24px; }
.pro-page .callout p { margin: 0; color: #cfd9ea; line-height: 1.7; }

@media ( max-width: 640px ) {
	.pro-hero { padding-top: 36px; }
	.show { gap: 72px; margin-top: 80px; }
	.show-copy h2, .deal-title, .pro-faq h2 { font-size: 32px; }
	.count { font-size: 42px; }
	.deal, .pro-faq { margin-top: 96px; }
}
@media ( prefers-reduced-motion: reduce ) {
	.count, .size-track i, .size-rows li, .paper mark, .beam, .scan-chip, .saved-demo li, .toast, .live::before { animation: none; }
	.count { --n: 1284; }
	.size-track i { width: 100%; }
	.size-rows li, .scan-chip, .toast { opacity: 1; }
	.paper mark { background: #ffe08a; }
	.beam { display: none; }
}
