/* Integrators Resource - morf.css
   MORF pages only (/morf/, /morf/activate/, /morf/download/), loaded after site.css and using its tokens.
   Bump its own ?v= in those three pages when this file changes. */

.morf-hero { background: radial-gradient(900px 480px at 85% -10%, rgba(25, 169, 182, .22), transparent 60%), radial-gradient(700px 520px at -10% 110%, rgba(242, 168, 29, .12), transparent 60%), var(--ink); }
.morf-hero h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); letter-spacing: -.03em; }
.byline { margin-top: 6px; font-size: 1.125rem; color: #8fd9e2; font-weight: 600; }
.hero-meta { margin-top: 22px; font-size: .9375rem; color: var(--muted-dark); }
.hero-meta strong { color: #fff; }
.morf-mark { justify-self: center; width: min(380px, 80%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
@media (max-width: 960px) { .morf-mark { justify-self: start; width: min(200px, 55%); } }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--morf) 14%, #fff); color: #0e7480; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1875rem; font-weight: 700; }
.feature p { margin-top: 8px; color: #2c3746; font-size: .9688rem; }
.feature a, .guide a, .req a, .notes a, .lic-steps a { color: var(--amber-ink); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }

code, kbd { font-family: var(--mono); font-size: .875em; }
code { background: rgba(14, 22, 33, .06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
kbd { background: var(--card); border: 1px solid #cfc9bc; border-bottom-width: 2px; padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* screenshot */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(14, 22, 33, .6); }
.shot figcaption { margin-top: 14px; font-size: .9375rem; color: var(--muted); text-align: center; }

/* two back ends */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mode { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 28px 26px; }
.mode-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--amber); padding: 4px 10px; border-radius: 999px; }
.mode h3 { margin-top: 14px; font-size: 1.375rem; font-weight: 700; }
.mode p { margin-top: 10px; color: var(--muted-dark); }
@media (max-width: 800px) { .modes { grid-template-columns: minmax(0, 1fr); } }

/* requirements */
.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.req li { padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* getting started */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.guide-phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 20px; }
.guide-tag { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0e7480; }
.guide-phase ol { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 10px; font-size: .9688rem; }
.guide-phase li::marker { color: #0e7480; font-weight: 700; }
.guide-note { margin-top: 22px; max-width: 860px; color: #2c3746; }
.subguide { margin-top: 64px; scroll-margin-top: 90px; }
.subguide h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 750; }
.subguide-lead { margin: 12px 0 22px; max-width: 760px; color: var(--muted); font-size: 1.0625rem; }
.subguide .guide-phase { max-width: 860px; }
.new-in { display: inline-block; margin-bottom: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0e7480; background: color-mix(in srgb, var(--morf) 14%, #fff); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) { .guide { grid-template-columns: minmax(0, 1fr); } }

/* licensing */
.lic-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.lic-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.lic-steps li { position: relative; padding: 16px 18px 16px 62px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: s; }
.lic-steps li::before { content: counter(s); position: absolute; left: 18px; top: 15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: .9375rem; background: var(--ink); color: var(--amber); }
.lic-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow); }
.lic-card h3 { font-size: 1.375rem; font-weight: 750; }
.lic-card p { margin-top: 12px; color: var(--muted-dark); }
.lic-card .cta-row { margin-top: 22px; }
.lic-card a:not(.btn) { color: #fff; text-decoration-color: rgba(242, 168, 29, .7); text-underline-offset: 3px; }
@media (max-width: 900px) { .lic-grid { grid-template-columns: minmax(0, 1fr); } }

/* release notes */
.notes { display: grid; gap: 16px; max-width: 900px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.note h3 { font-size: 1.1875rem; font-weight: 750; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.note-date { font-size: .875rem; font-weight: 500; color: var(--muted); }
.note ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .9688rem; }
.note li::marker { color: var(--morf); }

/* activate + download pages; .tool-card = a .form look for content that is not a form (site.js fades .form in) */
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; }
@media (max-width: 560px) { .tool-card { padding: 22px 18px; } }
.tool-card h2 { font-size: 1.5rem; font-weight: 750; }
.tool-card .lead { color: var(--muted); font-size: .9688rem; }
.tool-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .tool-wrap { grid-template-columns: minmax(0, 1fr); } }
.form .lead { color: var(--muted); font-size: .9688rem; }
.form h2 { font-size: 1.5rem; font-weight: 750; }
.field textarea.code, .code-out { font-family: var(--mono); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; word-break: break-all; }
.code-out { width: 100%; min-height: 150px; field-sizing: content; resize: vertical; background: #fcfbf8; color: var(--text); border: 1px solid #cfc9bc; border-radius: 12px; padding: 11px 14px; }
.field input[type="file"] { font: inherit; font-size: .9375rem; max-width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .875rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; font-size: .9688rem; }
.notice.ok { background: #e6f4ea; color: var(--ok); border: 1px solid #b7dfc3; }
.notice.bad { background: #fdecea; color: var(--err); border: 1px solid #f3c2bc; }
.facts-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .9688rem; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
.facts-list .mono { font-family: var(--mono); font-size: .875rem; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.side-card h2, .side-card h3 { font-size: 1.25rem; font-weight: 750; }
.side-card p, .side-card li { color: #2c3746; font-size: .9688rem; }
.side-card ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.side-card a { color: var(--amber-ink); font-weight: 600; }
.splash-art { margin: 0; }
.splash-art img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-plain { background: var(--card); color: var(--text); border-color: #cfc9bc; }
.btn-plain:hover { border-color: var(--amber-deep); }
