/* Hermesaki landing page. Page layout on top of landing-kit.css. Light theme only.
   The app serves this page with style-src 'self': set colours with classes or CSSOM, never style attributes. */

h1, .h-lg, .uc-head h3, .cta h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
em { font-style: normal; color: var(--lp-accent); }
:not(pre) > code { padding: 1px 5px; border-radius: 5px; background: var(--lp-card-2); font: 0.88em var(--lp-mono); }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible { background-color: var(--lp-card-2); }

/* Header */
.brand-mascot { width: 35px; height: 35px; object-fit: contain; }
.brand b { font-size: 17px; letter-spacing: -0.02em; }
.brand-star { margin-left: 2px; color: var(--lp-accent); }

/* Hero: the headline and the mascot side by side, then the scripted product. */
.hero { padding: 104px 0 72px; text-align: left; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.hero h1 { justify-content: flex-start; max-width: none; margin: 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.035em; }
/* Three stable lines: "Give [chip]", "a real inbox.", "On your server." */
.hero h1 > span:nth-of-type(2), .hero h1 > span:last-child { flex-basis: 100%; }
.chip { font-family: var(--lp-font); font-size: 0.62em; font-weight: 700; letter-spacing: -0.03em; }
.chip-g { color: #ffffff; }
.chip-g svg text { fill: #ffffff; font: 700 11px var(--lp-font); }
.hero .lede { margin: 22px 0 0; }
.hero .cta-row { justify-content: flex-start; }
.prompt-status { min-height: 20px; margin: 8px 0 0; color: var(--lp-muted); font-size: 13px; }
.prompt-status:empty { display: none; }
.hero-prompt details { margin-top: 10px; font-size: 13px; }
.hero-prompt summary { width: fit-content; padding: 4px 8px; margin-left: -8px; border-radius: 7px; color: var(--lp-muted); cursor: pointer; }
.hero-prompt textarea { display: block; width: 100%; height: 240px; margin: 10px 0 8px; padding: 14px; border: 0; border-radius: 10px; background: var(--lp-card); color: var(--lp-fg); font: 12.5px/1.6 var(--lp-mono); resize: vertical; }
.hero-note { max-width: 520px; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.orbit { position: absolute; inset: 8%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lp-accent) 28%, transparent); }
.mascot { position: relative; width: 92%; height: auto; animation: mascot-fly 5.5s ease-in-out infinite; }
@keyframes mascot-fly { 50% { transform: translate(6px, -10px) rotate(-1.5deg); } }
.mail-label { position: absolute; left: 0; bottom: 8%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--lp-card); box-shadow: 0 14px 34px rgba(41, 42, 35, 0.14); }
.mail-label strong { display: block; font-size: 14px; }
.mail-label small { color: var(--lp-muted); font-size: 12.5px; }
.mail-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c-p1) 16%, transparent); color: var(--c-p1); }
.mail-icon svg { width: 18px; height: 18px; }

/* Scripted product */
.lab { margin-top: 40px; }
.lab-stage.is-drawing { padding: 20px; }
.lab-stage .dv-host { width: 100%; }
.lab-stage .dv { border-radius: 12px; box-shadow: 0 16px 40px rgba(41, 42, 35, 0.14); }
.insp-hint { margin: 8px 0 0; color: var(--lp-muted); font-size: 12.5px; }
.choices.apps-6 { grid-template-columns: 1fr 1fr; }
.choices .mono { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--sw); color: #ffffff; font-size: 9.5px; font-weight: 700; }
.insp-link { justify-content: space-between; width: 100%; }
.insp-link span[data-icon] { display: grid; }
.lab-tabs button[aria-selected="true"] { background: var(--lp-accent-soft); color: var(--lp-accent); }

/* Colour classes that replace inline styles */
.sw-p1 { --sw: var(--c-p1); } .sw-p2 { --sw: var(--c-p2); } .sw-p3 { --sw: var(--c-p3); }
.sw-p4 { --sw: var(--c-p4); } .sw-p5 { --sw: var(--c-p5); } .sw-p6 { --sw: var(--c-p6); }
.choices .mono { background: var(--sw); }
.uc-av.sw-p1, .uc-av.sw-p2, .uc-av.sw-p3, .uc-av.sw-p4, .uc-av.sw-p5, .uc-av.sw-p6 { --p: var(--sw); }
.dv svg.ic-k { color: var(--k); } .dv svg.ic-m { color: var(--lp-muted); } .dv svg.ic-f { color: var(--lp-faint); }
.pain-art svg.ic-k { color: var(--k); } .pain-art svg.ic-f { color: var(--lp-faint); }

/* Drawings: extra classes on top of the kit */
.dv .d-line { fill: var(--lp-line); }
.dv .d-acc { fill: var(--lp-accent); }
.dv text.d-acc-t { fill: var(--lp-accent); }
.dv .d-okf { fill: color-mix(in srgb, var(--lp-ok) 16%, transparent); }
.dv .d-errf { fill: color-mix(in srgb, var(--lp-err) 14%, transparent); }
.dv .d-warnf { fill: color-mix(in srgb, var(--lp-warn) 16%, transparent); }
.dv .d-ink { fill: var(--lp-code-bg); }
.dv text.d-inv { fill: #f6f1e7; }
.dv text.d-mono { font-family: var(--lp-mono); }
.dv .d-dot { fill: var(--k); }
.dv .d-pop { opacity: 0; transform: translateY(6px); transform-box: fill-box; transition: opacity 0.35s, transform 0.45s var(--lp-ease); }
.dv .d-pop.in { opacity: 1; transform: none; }
.dv .d-hide { transition: opacity 0.3s; }
.dv .d-hide.out { opacity: 0; }
.dv .courier { transition: none; }
.dv .d-swap { transition: opacity 0.3s; }

/* Promise sections */
.promise .points code { font-size: 0.85em; }

/* Bento extras */
.web-rows span { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--lp-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.web-rows b { color: var(--lp-fg); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.web-rows span:first-child { background: var(--lp-card); }
.tag { height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-style: normal; font-weight: 650; line-height: 20px; }
.tag.t1 { background: color-mix(in srgb, var(--c-p2) 16%, transparent); color: var(--c-p2); }
.tag.t2 { background: color-mix(in srgb, var(--c-p3) 16%, transparent); color: var(--c-p3); }
.tag.t3 { background: color-mix(in srgb, var(--c-p5) 16%, transparent); color: var(--c-p5); }
.vis-rows i { display: grid; place-items: center; font-style: normal; }
.vis-rows i svg { width: 15px; height: 15px; }
.vis-rows em { margin-left: auto; font-style: normal; color: inherit; }
.vis-rows.row { display: flex; flex-wrap: wrap; }

/* Use cases */
.uc-av { color: #ffffff; }
.uc-av svg { color: #ffffff; }
.uc-box blockquote { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--lp-card-2); color: var(--lp-fg); font-size: 14.5px; }
.uc-quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px; margin-top: 14px; }
.uc-box p.small { margin: 12px 0 0; color: var(--lp-muted); font-size: 13px; }
.uc-box { text-align: left; }
.uc-head { text-align: left; }

/* Agent apps */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; text-align: left; }
.app-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--lp-card); text-decoration: none; transition: background 0.2s, transform 0.3s var(--lp-ease); }
.app-card:hover, .app-card:focus-visible { background: color-mix(in srgb, var(--lp-card) 90%, var(--c-p6)); transform: translateY(-2px); }
.app-card .mono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c-p6) 14%, transparent); color: var(--c-p6); font-weight: 700; }
.app-card strong { display: block; font-size: 15px; }
.app-card small { color: var(--lp-muted); font-size: 13px; }
.app-card > span:last-child { color: var(--lp-faint); }
.app-card svg { width: 16px; height: 16px; display: block; }

/* Comparison */
.cmp { min-width: 1040px; }
.cmp thead th:first-child { width: 16%; }
.cmp th[scope="row"] { font-weight: 650; }

/* FAQ */
.faq-list { display: grid; gap: 8px; max-width: 760px; margin: 44px auto 0; }
.faq-list details { border-radius: 14px; background: var(--lp-card); }
.faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--lp-muted); font-weight: 500; transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--lp-muted); }

/* Call to action */
.cta-mascot { display: block; width: 200px; height: auto; margin: 0 auto 18px; animation: mascot-fly 5.5s ease-in-out infinite; }
.cta .cta-row { justify-content: center; }
.foot .brand { margin-left: -4px; }

@media (max-width: 980px) {
	.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.hero { padding-top: 80px; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-art { order: -1; max-width: 190px; justify-self: start; margin-bottom: -8px; }
	.mail-label { display: none; }
}
@media (max-width: 640px) {
	.lab-stage .dv-host { overflow-x: auto; }
	.lab-stage .dv { min-width: 620px; }
}
@media (max-width: 600px) {
	.hero h1 > span:first-child { flex-basis: auto; }
	.app-grid { grid-template-columns: minmax(0, 1fr); }
	.lab-stage.is-drawing { padding: 10px; }
	.hero .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.mascot, .cta-mascot { animation: none; }
	.dv .d-pop { transition: none; }
}
