/* AgentPad sub-pages (the beta pages and anything else under /agentpad/ that isn't the landing
   page). Same colours, type, buttons and footer as agentpad.css, with a slim gradient bar instead
   of the big header. Markup:

   <body class="subpage">
     <nav class="topbar">
       <a href="/agentpad/" class="brand"><img src="/agentpad/img/AppIconSm.png" alt=""><strong>AgentPad</strong></a>
       <a href="mailto:davey@loopware.com">Contact Us</a>
     </nav>
     <main> …cards, forms… </main>
     <footer><img src="/agentpad/img/Loopware.svg" alt="Loopware"><p>© 2003–2026 David McGavern. All Rights Reserved.</p></footer>
   </body>
*/

* { box-sizing: border-box; }

body.subpage {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
	color: #777777;
	background: linear-gradient(to bottom, #F0F0F5, rgba(238, 238, 245, 0) 400px), #FFFFFF;
	-webkit-font-smoothing: subpixel-antialiased;
}

.subpage a { color: #318DFF; }

/* ── Top bar: the landing page's header, shrunk to a strip ────────────── */

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 56px;
	padding: 0px 20px;
	background-image: linear-gradient(to right, #2A5BC8, #4A2BC0, #8A2BE2);
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.09);
}

.topbar a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 17px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.67); font-size: 22px; font-weight: 300; }
.topbar .brand strong { color: white; font-weight: 500; }
.topbar .brand img { width: 36px; height: 36px; }

/* ── Content ──────────────────────────────────────────────────────────── */

.subpage main {
	flex: 1;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 20px 64px;
}

.subpage h1 {
	width: fit-content;
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.2;
	font-weight: bold;
	background: linear-gradient(90deg, #4C9DFF, #9A4DFF);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.subpage h2 { margin: 0 0 12px; font-size: 20px; color: #484848; }
.subpage h4 { margin: 12px 0 4px; color: #484848; }
.subpage p { margin: 0 0 12px; color: rgba(72, 72, 72, 0.8); }
.subpage strong { color: #484848; }
.subpage .muted { color: #8E8E93; }
.subpage ol, .subpage ul { margin: 0 0 12px; padding-left: 22px; color: rgba(72, 72, 72, 0.8); }
.subpage li { margin: 4px 0; }
.subpage code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; }

.card {
	margin: 20px 0;
	padding: 22px;
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.04);
}

/* The beta sign-up's "what is AgentPad" bit: the main window, then three lines. */
.about { display: flex; gap: 20px; align-items: center; margin: 20px 0 8px; }
.about .hero { flex: 0 0 46%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.about img, .hero-big img { display: block; width: 100%; height: auto; }
.about p { margin: 0; }
.about p + p { margin-top: 8px; }
@media (max-width: 560px) {
	.about { flex-direction: column; }
	.about .hero { flex-basis: auto; width: 100%; }
}
/* The shot full size, over a dimmed page. */
.hero-big { width: min(1400px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; cursor: zoom-out; }
.hero-big::backdrop { background: rgba(20, 20, 40, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* The sign-up's feature cards: bold titles over one line each, two across, each with a small SF
   Symbol hanging to its left (img/symbols, rendered by scripts/render-web-symbols.swift). */
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-top: 16px; }
.highlights p { position: relative; padding-left: 44px; }
.highlights strong { display: block; }
.feature-icon { position: absolute; left: 0; top: 0; width: 32px; height: 32px; }
/* The quieter "And so much more" list: no icons, smaller type. */
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; margin-top: 16px; }
.more-list p { margin: 0; font-size: 14px; color: rgba(72, 72, 72, 0.8); }
.more-list strong { display: block; color: #484848; }
/* Marks a feature that's behind Settings ▸ Labs. */
.labs { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 16px; vertical-align: 1px; color: #7A4DFF; background: rgba(154, 77, 255, 0.1); }
p.labs-note { margin: 12px 0 0; font-size: 13px; }
.labs-note .labs { margin: 0 4px 0 0; }
@media (max-width: 560px) {
	.highlights { grid-template-columns: 1fr; }
}

.release + .release { border-top: 1px solid rgba(0, 0, 0, 0.12); margin-top: 16px; padding-top: 16px; }
.card details { border-top: 1px solid rgba(0, 0, 0, 0.12); margin-top: 16px; padding-top: 12px; }
.card summary { color: #318DFF; cursor: pointer; }
.card details[open] summary { margin-bottom: 16px; }

/* The landing page's blue button. */
.button {
	display: inline-block;
	margin: 4px 8px 4px 0;
	padding: 10px 20px;
	font: inherit;
	font-weight: 600;
	color: white !important;
	text-decoration: none;
	text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
	background: #6AA2FF;
	border: 1px solid #3478CD;
	border-radius: 6px;
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.20);
	cursor: pointer;
}

.button:hover { background: #5A95FA; }
.button[hidden] { display: none; }

.button.secondary {
	color: #3478CD !important;
	text-shadow: none;
	background: #EEF4FF;
	border-color: rgba(52, 120, 205, 0.35);
	box-shadow: none;
}

.button.secondary:hover { background: #E2ECFF; }

.badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 99px;
	font-size: 13px;
	font-weight: 600;
	vertical-align: middle;
	color: white;
	background: linear-gradient(90deg, #4C9DFF, #9A4DFF);
}

.code { font: 600 18px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; color: #484848; }
.error { color: #C4291C !important; font-weight: 600; }

/* ── Forms ────────────────────────────────────────────────────────────── */

.subpage label { display: block; margin: 14px 0 6px; font-weight: 600; color: #484848; }
.subpage label.check { display: inline-flex; gap: 8px; align-items: center; margin: 4px 18px 4px 0; font-weight: 400; color: rgba(72, 72, 72, 0.8); }

.subpage input[type=text], .subpage input[type=email], .subpage textarea {
	width: 100%;
	padding: 9px 12px;
	font: inherit;
	font-size: 17px;
	color: #333333;
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 5px;
}

.subpage input:focus, .subpage textarea:focus { outline: 2px solid rgba(106, 162, 255, 0.6); outline-offset: 1px; border-color: #6AA2FF; }
.subpage textarea { min-height: 90px; resize: vertical; }
.subpage ::placeholder { color: rgba(0, 0, 0, 0.35); }

/* Honeypot field, hidden from people. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer (same as the landing page) ────────────────────────────────── */

.subpage footer {
	padding: 48px 0px 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	background-image: linear-gradient(to bottom, #F0F0F5, rgba(238, 238, 245, 0));
}

.subpage footer img { display: block; width: 24px; height: 12px; margin: 0px auto 12px; }
.subpage footer p { margin: 0; text-align: center; font-size: 12px; color: rgba(72, 72, 72, 0.6); }

/* ── Pricing (pricing/) ───────────────────────────────────────────────── */

.subpage main.wide { max-width: 880px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 12px; }
.plan { position: relative; display: flex; flex-direction: column; margin: 0; }
.plan { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.plan:hover { border-color: rgba(52, 120, 205, 0.45); }
.plan.selected { border: 2px solid #6AA2FF; padding: 21px; box-shadow: 0px 2px 14px rgba(52, 120, 205, 0.15); }
.plan:focus-visible { outline: 2px solid rgba(106, 162, 255, 0.6); outline-offset: 2px; }
.plan h2 { margin-bottom: 4px; }
.plan .price { margin: 4px 0 8px; font-size: 34px; font-weight: 700; color: #484848; }
.plan .price span { font-size: 15px; font-weight: 400; color: #8E8E93; }
.plan ul { flex: 1; padding-left: 18px; font-size: 15px; }
/* The badge's text starts where the card's text does: the card's padding (22, or 21 inside the
   picked card's 2px border) less the badge's own 10px side padding. */
.plan .tag { position: absolute; top: -12px; left: 12px; }
.plan.selected .tag { top: -13px; left: 11px; }
.pay { max-width: 460px; margin: 8px auto 0; text-align: center; }
.pay .button { width: 100%; margin: 0 0 8px; }
.buy-error { min-height: 1.4em; margin: 0; }
@media (max-width: 720px) {
	.plans { grid-template-columns: 1fr; }
}

/* ── Legal pages (terms/, privacy/, refunds/) ─────────────────────────── */

.subpage .legal h2 { margin-top: 28px; font-size: 18px; }
.subpage .updated { margin-bottom: 24px; font-size: 14px; }

/* Footer links to the pricing and legal pages (Paddle wants them one click from anywhere). */
.subpage footer p.footer-links { margin-bottom: 10px; text-align: center; font-size: 13px; }
.subpage footer .footer-links a { margin: 0 8px; color: rgba(72, 72, 72, 0.7); text-decoration: none; }
.subpage footer .footer-links a:hover { text-decoration: underline; }
