/* Marketing pages rendered by src/site.js: features, use cases, comparisons and guides. Builds on app.css. */
.pg-top { background: rgba(251,250,247,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pg-nav { display: flex; gap: 4px; margin-left: 12px; }
.pg-nav a { text-decoration: none; color: var(--mute); padding: 6px 10px; border-radius: 999px; font-size: 14.5px; }
.pg-nav a:hover, .pg-nav a[aria-current] { color: var(--text); background: var(--panel2); }
@media (max-width: 900px) { .pg-nav { display: none; } }

.pg-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.pg-hero { padding: 56px 0 24px; position: relative; overflow: hidden; }
.pg-hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 520px; background: radial-gradient(closest-side, rgba(255,160,80,.14), rgba(242,84,45,.05) 60%, transparent); pointer-events: none; }
.pg-hero > .pg-wrap { position: relative; }
.pg-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--dim); margin-bottom: 22px; }
.pg-crumbs a { color: var(--dim); text-decoration: none; } .pg-crumbs a:hover { color: var(--text); }
.pg-kick { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pg-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 18px; }
.pg-lede { color: var(--mute); font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; margin: 0; max-width: 720px; }
.pg-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pg-ctas .btn { height: 46px; padding: 0 22px; font-size: 15.5px; }
.pg-by { color: var(--dim); font-size: 14.5px; margin: 16px 0 0; }
.pg-fine { color: var(--dim); font-size: 14px; margin: 14px 0 0; }

.pg-fig { margin: 40px 0 8px; }
.pg-fig img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line2); box-shadow: 0 24px 70px rgba(27,26,23,.16); }
.pg-fig.tall { max-width: 260px; }
.pg-fig.tall img { border-radius: 28px; border: 6px solid #1B1A17; }

.pg-body { padding: 24px 20px 40px; font-size: 17px; line-height: 1.65; }
.pg-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 48px 0 14px; scroll-margin-top: 80px; }
.pg-body h3 { font-size: 19px; margin: 28px 0 8px; }
.pg-body p { margin: 0 0 16px; color: #33312C; }
.pg-body ul, .pg-body ol { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 10px; color: #33312C; }
.pg-body li::marker { color: var(--accent); font-weight: 600; }
.pg-body b { color: var(--text); font-weight: 600; }
.pg-body a, .pg-faq a { color: var(--accent); text-underline-offset: 3px; }
.pg-note { font-size: 14.5px; color: var(--dim) !important; border-left: 3px solid var(--line2); padding-left: 14px; }

.pg-table { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.pg-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.45; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.pg-table thead th { background: var(--panel2); font-weight: 600; }
.pg-table tbody th { font-weight: 500; color: var(--mute); width: 30%; }
.pg-table tr:last-child > * { border-bottom: 0; }

.pg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.pg-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); text-decoration: none; color: var(--text) !important; transition: border-color .15s; }
.pg-card:hover { border-color: var(--hover); }
.pg-card-k { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pg-card b { font-size: 17px; font-weight: 600; }
.pg-card span:last-child { color: var(--mute); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 640px) { .pg-cards { grid-template-columns: 1fr; } }

.pg-faq, .pg-related { padding-top: 24px; padding-bottom: 40px; }
.pg-faq h2, .pg-related h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); margin: 0 0 16px; }
.pg-faq details { border-bottom: 1px solid var(--line); }
.pg-faq details:first-of-type { border-top: 1px solid var(--line); }
.pg-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 500; font-size: 17px; position: relative; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 300; color: var(--mute); }
.pg-faq details[open] summary::after { content: '–'; }
.pg-faq p { color: var(--mute); margin: 0 0 18px; }

.pg-final { text-align: center; border-top: 1px solid var(--line); padding: 72px 0; margin-top: 24px; }
.pg-final h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 12px; }
.pg-final p { color: var(--mute); margin: 0; font-size: 17px; }
.pg-final .pg-ctas { justify-content: center; }

.pg-foot { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14px; color: var(--dim); }
.pg-foot .pg-wrap { max-width: 1160px; }
.pg-foot-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 24px; }
.pg-foot-cols > div { display: flex; flex-direction: column; gap: 8px; }
.pg-foot h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.pg-foot h3 a { color: var(--text); }
.pg-foot a { color: var(--dim); text-decoration: none; } .pg-foot a:hover { color: var(--text); }
.pg-copy { margin: 32px 0 0; }
@media (max-width: 1100px) { .pg-foot-cols { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .pg-foot-cols { grid-template-columns: repeat(2, 1fr); } }

/* Template outline */
.tpl { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; margin: 8px 0 28px; }
.tpl-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--panel2); flex-wrap: wrap; }
.tpl-head b { font-size: 16px; } .tpl-head span { color: var(--mute); font-size: 14px; flex: 1; }
.tpl-head .btn { color: #FBF6EE !important; text-decoration: none; }
.tpl-list { list-style: none; margin: 0; padding: 6px 0; counter-reset: s; display: block !important; }
.tpl-list li { counter-increment: s; display: grid; grid-template-columns: 34px 170px 1fr; gap: 10px; padding: 10px 20px; font-size: 15px; border-bottom: 1px solid var(--line); }
.tpl-list li:last-child { border-bottom: 0; }
.tpl-list li::before { content: counter(s); color: var(--dim); font-variant-numeric: tabular-nums; }
.tpl-list li span { color: var(--mute); font-size: 13.5px; padding-top: 1px; }
.tpl-list li.on span { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .tpl-list li { grid-template-columns: 26px 1fr; } .tpl-list li span { grid-column: 2; } }

/* Free tools */
.tool { border: 1px solid var(--line2); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); padding: 22px; margin: 8px 0 32px; }
.tool label { display: block; font-weight: 500; margin-bottom: 8px; }
.tool textarea, .tool input[type=text], .tool input[type=url] { width: 100%; font-size: 15px; }
.tool textarea { min-height: 140px; }
.tool .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.tool .out { margin-top: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); min-height: 120px; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.tool .out svg, .tool .out canvas, .tool .out img { max-width: 100%; height: auto; display: block; }
.tool .hint { color: var(--dim); font-size: 13.5px; margin: 10px 0 0; }
.tool .big { font-family: var(--serif); font-size: clamp(40px, 7vw, 72px); line-height: 1.05; text-align: center; color: var(--text); min-height: 1.1em; }
.tool .big.win { color: var(--accent); }
