/* QuickDone public pages: landing, Terms, Privacy. Loaded only through _PublicLayout; colours and spacing tokens come from qd.css. */

html { scroll-behavior: smooth; }
.qd-skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--qd-btn); color: #fff; font-weight: 600; text-decoration: none; }
.qd-skip:focus { top: 12px; color: #fff; }

/* one side padding for header, content and footer, and the same 1280px column, so their left edges line up on a wide screen */
.qd-pub { --pub-pad: clamp(18px, 5vw, 64px); }

/* ---- header ---- */
.qd-pub__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; max-width: 1280px; margin: 0 auto; padding: 16px var(--pub-pad); }
.qd-pub__acts .btn { white-space: nowrap; }
.qd-pub__nav { display: flex; gap: 4px; margin-left: 12px; }
.qd-pub__nav a { padding: 8px 12px; border-radius: 10px; color: var(--qd-ink-2); font-size: .95rem; font-weight: 600; text-decoration: none; }
.qd-pub__nav a:hover { background: var(--qd-surface-2); color: var(--qd-ink); }
.qd-pub__acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---- hero ---- */
.qd-land { max-width: 1280px; margin: 0 auto; padding: 0 var(--pub-pad) 24px; overflow-wrap: break-word; }
.qd-land__hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 7vw, 84px) 0 clamp(8px, 2vw, 24px); }
.qd-land__hero > * { min-width: 0; }
.qd-eyebrow { display: inline-block; margin: 0 0 18px; padding: 5px 12px; border-radius: 99px; background: rgba(23, 181, 105, .12); color: var(--qd-link); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qd-land h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.qd-land__lead { max-width: 46ch; margin: 0 0 28px; color: var(--qd-ink-2); font-size: 1.15rem; }
.qd-land__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.qd-land__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--qd-ink-2); font-size: .92rem; font-weight: 600; }
.qd-land__trust li { display: inline-flex; align-items: center; gap: 7px; }
.qd-land__trust i { color: var(--qd-g600); font-size: 1.05rem; }
.qd-land__closed { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--qd-ink-2); font-weight: 600; }
.qd-land .qd-mock { padding: 16px; border: 1px solid var(--qd-line); border-radius: 22px; background: var(--qd-surface); box-shadow: var(--qd-shadow); transform: rotate(1.2deg); }
@keyframes qd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qd-rise-tilt { from { opacity: 0; transform: translateY(14px) rotate(1.2deg); } to { opacity: 1; transform: rotate(1.2deg); } }
.qd-land__hero > div { animation: qd-rise .6s both; }
.qd-land__hero > .qd-mock { animation: qd-rise-tilt .7s .12s both; }

/* ---- sections ---- */
.qd-sec { padding: clamp(44px, 7vw, 92px) 0 0; scroll-margin-top: 12px; }
.qd-sec--narrow { max-width: 820px; margin-inline: auto; }
.qd-sec__head { max-width: 62ch; margin-bottom: 28px; }
.qd-sec__head p { margin: 14px 0 0; color: var(--qd-ink-2); font-size: 1.08rem; }
.qd-h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.qd-h2::after { content: ""; display: block; width: 84px; height: 10px; margin-top: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 10'%3E%3Cpath d='M2 6 C12 1 18 9 28 5 S46 1 56 5 S74 9 82 4' fill='none' stroke='%2317b569' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain; }

/* scroll reveal: landing.js adds .qd-rv, then .is-in when the block comes into view (without JS nothing is hidden) */
.qd-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.qd-rv.is-in { opacity: 1; transform: none; }

/* ---- the four views (decorative miniatures built from plain boxes) ---- */
.qd-vws { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qd-vw { min-width: 0; padding: 14px 14px 20px; border: 1px solid var(--qd-line); border-radius: 18px; background: var(--qd-surface); box-shadow: var(--qd-shadow-sm); }
.qd-vw h3 { margin: 16px 4px 4px; font-size: 1.05rem; font-weight: 800; }
.qd-vw p { margin: 0 4px; color: var(--qd-ink-2); font-size: .92rem; }
.qd-vw__art { --c: var(--qd-g500); height: 118px; padding: 10px; border-radius: 12px; background: var(--qd-surface-2); overflow: hidden; }
.qd-vw__art .a { --c: var(--qd-amber); }
.qd-vw__art .b { --c: var(--qd-info); }
.qd-vw__art--board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qd-vw__art--board span { display: grid; gap: 6px; align-content: start; }
.qd-vw__art--board i { display: block; height: 22px; border-radius: 6px; border-left: 4px solid var(--c); background: var(--qd-surface); box-shadow: var(--qd-shadow-sm); }
.qd-vw__art--list { display: grid; gap: 6px; align-content: start; }
.qd-vw__art--list b { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--qd-surface); box-shadow: var(--qd-shadow-sm); }
.qd-vw__art--list i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.qd-vw__art--list u { flex: 1; height: 5px; border-radius: 3px; background: var(--qd-line); }
.qd-vw__art--list s { flex: none; width: 26px; height: 9px; border-radius: 5px; background: var(--c); opacity: .55; }
.qd-vw__art--cal { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 4px; }
.qd-vw__art--cal i { border-radius: 4px; background: var(--qd-surface); }
.qd-vw__art--cal i.g { box-shadow: inset 0 -4px 0 var(--qd-g500); }
.qd-vw__art--cal i.a { box-shadow: inset 0 -4px 0 var(--qd-amber); }
.qd-vw__art--cal i.b { box-shadow: inset 0 -4px 0 var(--qd-info); }
.qd-vw__art--time { display: grid; gap: 7px; align-content: center; }
.qd-vw__art--time span { display: block; height: 16px; border-radius: 6px; background: var(--qd-surface); }
.qd-vw__art--time b { display: block; height: 100%; margin-left: var(--x); width: var(--w); border-radius: 6px; background: var(--c); }

/* ---- features: an uneven grid, one green accent card ---- */
.qd-feats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.qd-feat { grid-column: span 2; min-width: 0; padding: 24px; border: 1px solid var(--qd-line); border-radius: 18px; background: var(--qd-surface); }
.qd-feat i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 13px; background: rgba(23, 181, 105, .13); color: var(--qd-g700); font-size: 1.3rem; transform: rotate(-4deg); }
[data-theme="dark"] .qd-feat i { color: var(--qd-g400); }
.qd-feat h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; }
.qd-feat p { margin: 0; color: var(--qd-ink-2); font-size: .96rem; }
.qd-feat--a { grid-column: span 4; padding: 30px; }
.qd-feat--a h3 { font-size: 1.35rem; }
.qd-feat--a p { max-width: 52ch; font-size: 1.04rem; }
.qd-feat--b { border-color: transparent; color: #eafaf1; background: linear-gradient(160deg, #0ea05f 0%, #0a7f49 55%, #0c3a28 100%); }
.qd-feat--b h3 { color: #fff; }
.qd-feat--b p { color: rgba(234, 250, 241, .9); }
.qd-feat--b i, [data-theme="dark"] .qd-feat--b i { background: rgba(255, 255, 255, .16); color: #fff; }
.qd-feat--wide { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.qd-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.qd-feat .qd-pills i { display: inline; width: auto; height: auto; margin: 0; background: none; color: var(--qd-g600); font-size: 1rem; transform: none; }
.qd-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--qd-line); border-radius: 99px; background: var(--qd-bg); color: var(--qd-ink-2); font-size: .9rem; font-weight: 600; }

/* ---- Quick Add demo ---- */
.qd-qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: clamp(44px, 7vw, 92px); padding: clamp(26px, 5vw, 56px); border-radius: 26px; color: #e6efe9; background: radial-gradient(700px 300px at 0% 0%, rgba(71, 210, 140, .22), transparent 60%), #0d2118; }
.qd-qa h2 { color: #fff; }
.qd-qa__copy p { max-width: 40ch; margin: 14px 0 0; color: rgba(230, 239, 233, .84); font-size: 1.06rem; }
.qd-qa__demo { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.qd-qa__line { max-width: 100%; margin: 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font: 600 1rem/1.55 ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.qd-qa__line em { font-style: normal; }
.qd-qa__line .t1 { color: #8fe3b8; } .qd-qa__line .t2 { color: #8cc8ff; } .qd-qa__line .t3 { color: #f5c26b; } .qd-qa__line .t4 { color: #ff9fb2; }
.qd-qa__arrow { margin-left: 18px; color: var(--qd-g400); font-size: 1.5rem; line-height: 1; }
.qd-qa__card { width: min(100%, 420px); padding: 14px 16px; border: 1px solid var(--qd-line); border-left: 5px solid var(--qd-amber); border-radius: 14px; background: var(--qd-surface); color: var(--qd-ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.qd-qa__card b { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.qd-qa__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 99px; background: var(--qd-surface-2); color: var(--qd-ink-2); font-size: .82rem; font-weight: 600; }
.qd-chip .qd-avatar { width: 20px; height: 20px; margin-left: -6px; font-size: .62rem; }
.qd-chip--g { background: rgba(23, 181, 105, .16); color: var(--qd-g800); }
.qd-chip--a { background: rgba(240, 166, 42, .2); color: #8a5a00; }
[data-theme="dark"] .qd-chip--g { color: var(--qd-g300); }
[data-theme="dark"] .qd-chip--a { color: #f5c26b; }

/* ---- how it works ---- */
.qd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.qd-steps li { padding: 26px 24px 24px; border: 1px solid var(--qd-line); border-radius: 18px; background: var(--qd-surface); }
.qd-steps li:nth-child(2) { margin-top: 18px; }
.qd-steps b { display: block; margin-bottom: 10px; color: var(--qd-g500); font-size: 3.2rem; font-weight: 800; line-height: 1; transform: rotate(-3deg); transform-origin: left bottom; }
.qd-steps h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 800; }
.qd-steps p { margin: 0; color: var(--qd-ink-2); }

/* ---- FAQ ---- */
.qd-faq { display: grid; gap: 10px; }
.qd-faq details { border: 1px solid var(--qd-line); border-radius: 14px; background: var(--qd-surface); }
.qd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.qd-faq summary::-webkit-details-marker { display: none; }
.qd-faq summary:hover { color: var(--qd-link); }
.qd-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--qd-surface-2); color: var(--qd-ink-2); font-size: 1.2rem; font-weight: 600; line-height: 1; }
.qd-faq details[open] summary::after { content: "\2212"; background: var(--qd-g600); color: #fff; }
.qd-faq details p { margin: 0; padding: 0 18px 18px; color: var(--qd-ink-2); }

/* ---- closing call to action ---- */
.qd-endcta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: clamp(44px, 7vw, 92px); padding: clamp(26px, 5vw, 48px); border-radius: 26px; color: #eafaf1; background: radial-gradient(800px 360px at 8% -10%, rgba(71, 210, 140, .8), transparent 62%), linear-gradient(165deg, #0ea05f 0%, #0a7f49 55%, #0c3a28 100%); }
.qd-endcta::after { content: ""; position: absolute; right: 7%; bottom: -8px; width: 120px; height: 62px; border-left: 20px solid rgba(255, 255, 255, .12); border-bottom: 20px solid rgba(255, 255, 255, .12); border-radius: 6px; transform: rotate(-45deg); pointer-events: none; }
.qd-endcta > * { position: relative; z-index: 1; }
.qd-endcta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.qd-endcta p { margin: 0; opacity: .92; }
.qd-endcta .btn-light { border-color: #fff; background: #fff; color: var(--qd-g800); font-weight: 700; }
.qd-endcta .btn-light:hover { background: #eafaf1; }

/* ---- footer ---- */
.qd-pub__foot { margin-top: clamp(48px, 8vw, 96px); padding: 40px var(--pub-pad) 26px; border-top: 1px solid var(--qd-line); background: var(--qd-surface); }
.qd-pub__foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px; max-width: calc(1280px - 2 * var(--pub-pad)); margin: 0 auto 28px; }
.qd-pub__foot-brand p { max-width: 30ch; margin: 10px 0 0; color: var(--qd-ink-2); }
.qd-pub__colh { margin: 0 0 10px; color: var(--qd-ink-3); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qd-pub__foot nav a { display: block; padding: 4px 0; color: var(--qd-ink-2); text-decoration: none; }
.qd-pub__foot nav a:hover { color: var(--qd-link); }
.qd-pub__foot .qd-credit { margin: 0; }

/* ---- Terms and Privacy ---- */
.qd-legal { max-width: 780px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(18px, 5vw, 32px) 0; overflow-wrap: break-word; }
.qd-legal__head h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.qd-legal__meta { margin: 0 0 24px; color: var(--qd-ink-3); }
.qd-legal__lead { margin: 0 0 8px; color: var(--qd-ink-2); font-size: 1.1rem; }
.qd-legal__body { counter-reset: sec; }
.qd-legal section { padding-top: 26px; }
.qd-legal h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; }
.qd-legal h2::before { counter-increment: sec; content: counter(sec); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(23, 181, 105, .14); color: var(--qd-g700); font-size: .9rem; transform: rotate(-4deg); }
[data-theme="dark"] .qd-legal h2::before { color: var(--qd-g400); }
html[lang="bn"] .qd-legal h2::before { content: counter(sec, bengali); }
.qd-legal p, .qd-legal li { color: var(--qd-ink-2); font-size: 1.02rem; }
.qd-legal strong { color: var(--qd-ink); }
.qd-legal ul { padding-left: 1.2rem; }
.qd-legal li { margin: .35rem 0; }
.qd-legal code { padding: 1px 6px; border-radius: 6px; background: var(--qd-surface-2); color: var(--qd-ink); font-size: .9em; }

/* ---- responsive ---- */
@media (max-width: 991.98px) {
  .qd-pub__nav { display: none; }
  .qd-land__hero { grid-template-columns: 1fr; }
  .qd-vws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qd-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qd-feat, .qd-feat--a { grid-column: span 1; padding: 22px; }
  .qd-feat--wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr); }
  .qd-qa { grid-template-columns: minmax(0, 1fr); }
  .qd-pub__foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .qd-pub__top { gap: 12px; padding-block: 12px; }
  .qd-pub__acts .btn-link { display: none; }
  .qd-land .qd-mock { transform: none; animation-name: qd-rise; }
  .qd-steps { grid-template-columns: minmax(0, 1fr); }
  .qd-steps li:nth-child(2) { margin-top: 0; }
}
@media (max-width: 575.98px) {
  .qd-pub__acts .qd-langbtn span { display: none; }
  .qd-pub__acts .qd-langbtn { padding: 0 11px; }
  .qd-vws, .qd-feats { grid-template-columns: minmax(0, 1fr); }
  .qd-feat--wide { grid-column: span 1; }
  .qd-endcta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .qd-rv { opacity: 1; transform: none; transition: none; }
}

/* ---- Bangla: the script needs more line height than Latin ---- */
html[lang="bn"] .qd-land h1 { line-height: 1.3; }
html[lang="bn"] .qd-h2, html[lang="bn"] .qd-endcta h2, html[lang="bn"] .qd-legal__head h1 { line-height: 1.35; }
html[lang="bn"] .qd-steps b { line-height: 1.3; }
