/* deskmonk.app: one dark theme taken from the monk logo (logo.svg): ink violet ground, the logo's violet,
   the robe's saffron and the sparkle's gold. The /buy pages use the same values (worker/src/license.ts). */
:root {
  color-scheme: dark;
  --bg: #110e20; --bg-soft: #181431; --card: #1b1735; --line: #2e2752;
  --text: #f5f1ea; --muted: #b0a9c8; --brand: #6c63ff; --brand-2: #8178ff; --accent: #f28c28; --gold: #ffd23f; --skin: #f5c99b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1100px 560px at 85% -8%, rgba(108,99,255,.22), transparent 60%),
              radial-gradient(900px 520px at 0% 6%, rgba(242,140,40,.10), transparent 55%), var(--bg);
}
a { color: #a49dff; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main.wrap { max-width: 860px; padding-top: 40px; padding-bottom: 56px; }

/* Header and footer */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(17,14,32,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 18px; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
header.site nav { margin-inline-start: auto; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--text); }
select.langs { font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; max-width: 170px; }
select.langs:focus { outline: none; border-color: var(--brand); }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 26px 0 44px; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .copy { margin-inline-start: auto; }

/* Type */
h1 { font-size: 2.4rem; line-height: 1.12; margin: 0 0 .35em; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; max-width: 640px; }
.note, .muted { color: var(--muted); }
.note { font-size: .9rem; }
.short { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
code { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .88em; }
table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: .95rem; }
th, td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
li { margin: .35em 0; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
a.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); color: var(--text); transition: transform .15s, box-shadow .15s; }
a.btn:hover { transform: translateY(-2px); }
a.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(108,99,255,.38); }
a.btn small { display: block; font-weight: 400; opacity: .78; font-size: .8rem; }

/* Landing */
.hero > *, .feature > * { min-width: 0; }
body { overflow-x: clip; }
.hero { display: grid; gap: 44px; grid-template-columns: 1fr 1.15fr; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: 3.1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--gold), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-block; font-size: .82rem; color: var(--accent); border: 1px solid rgba(242,140,40,.4); background: rgba(242,140,40,.1); border-radius: 999px; padding: 3px 12px; margin-bottom: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); margin-top: 6px; }
.facts span::before { content: "✓ "; color: var(--accent); }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02); display: block; width: 100%; height: auto; }
.hero .shot { box-shadow: 0 30px 90px rgba(108,99,255,.28), 0 30px 80px rgba(0,0,0,.5); }

.gains { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin: 20px 0 10px; }
.gain { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.gain b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.gain span { color: var(--muted); font-size: .9rem; }

section.block { padding: 70px 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
h2.big { font-size: 2.1rem; margin: .2em 0 .4em; line-height: 1.15; }

.feature { display: grid; gap: 48px; grid-template-columns: 1.15fr 1fr; align-items: center; padding: 56px 0; border-top: 1px solid rgba(46,39,82,.6); }
.feature:nth-of-type(even) .shot { order: 2; }
.feature h3 { font-size: 1.7rem; margin: .25em 0 .4em; letter-spacing: -.015em; line-height: 1.2; }
.feature p { color: var(--muted); }
.feature ul { list-style: none; padding: 0; margin: 14px 0 0; }
.feature li { padding-inline-start: 26px; position: relative; margin: .55em 0; }
.feature li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.feature .free { margin-top: 16px; font-size: .88rem; color: var(--muted); border-inline-start: 2px solid var(--brand); padding-inline-start: 12px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 .35em; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 6px; }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin: 26px auto 0; max-width: 820px; text-align: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 60px rgba(108,99,255,.25); background: linear-gradient(180deg, #231d47, var(--card)); }
.plan .name { font-weight: 700; font-size: 1.1rem; }
.plan.pro .name { color: var(--gold); }
.plan .price { font-size: 2.3rem; font-weight: 800; margin: 6px 0 0; letter-spacing: -.02em; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .sub { color: var(--accent); font-size: .9rem; }
.plan ul { padding-inline-start: 1.2em; margin: 16px 0 22px; flex: 1; }
.plan .btns { margin: 0; }
.plan a.btn { width: 100%; text-align: center; }
.cycle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 18px; }
.cycle button { font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.cycle button.on { background: var(--brand); color: #fff; }

/* Download */
.downloads { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.dl.mine { border-color: var(--brand); }
.dl h3 { margin: 0; font-size: 1.15rem; }
.dl p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.dl a.btn { text-align: center; margin-top: 8px; }

/* FAQ */
.faq { max-width: 780px; margin: 22px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

.cta { text-align: center; background: linear-gradient(135deg, rgba(108,99,255,.2), rgba(242,140,40,.12)); border: 1px solid var(--line); border-radius: 22px; padding: 46px 20px; margin-top: 70px; }
.cta .btns { justify-content: center; }

@media (max-width: 900px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .gains { grid-template-columns: 1fr 1fr; }
  .downloads { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1, .hero h1 { font-size: 2.1rem; }
  h2.big { font-size: 1.6rem; }
  .hero { padding-top: 36px; }
  .gains, .plans { grid-template-columns: 1fr; }
  header.site nav { margin-inline-start: 0; gap: 14px; }
  header.site nav a.hide-s { display: none; }
  header.site nav { width: 100%; justify-content: space-between; }
  footer.site .copy { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.btn { transition: none; } a.btn:hover { transform: none; } }

/* The monk mascot (monk.svg, the figure from the logo) */
.mascot { display: block; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.hero-art { position: relative; }
.hero-art .mascot { position: absolute; width: 30%; inset-inline-start: -15%; bottom: -16%; animation: breathe 5s ease-in-out infinite; transform-origin: 50% 100%; }
.hero-art::before { content: ""; position: absolute; inset-inline-start: -16%; bottom: -22%; width: 48%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,63,.28), rgba(242,140,40,.1) 45%, transparent 70%); }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.015); } }
.cta .mascot { width: 170px; margin: -110px auto 8px; }
@media (max-width: 900px) { .hero-art { margin-block-end: 30px; margin-inline-start: 16%; } .hero-art .mascot { inset-inline-start: -20%; bottom: -12%; width: 30%; } }
@media (max-width: 600px) { @media (prefers-reduced-motion: reduce) { .hero-art .mascot { animation: none; } }
