/* deplo.io look: navy, off-white "mountain" sections, Lato, Fira Code. */
:root {
  color-scheme: light;
  --navy: #141D50; --navy-2: #1d2a6b; --navy-3: #2b3a86;
  --bg: #FCFAFA; --bg-2: #ffffff; --sand: #EAE9E8;
  --fg: #141D50; --muted: #5b607c; --line: #d9d7d5;
  --green: #27CA41; --yellow: #FABD2E; --red: #FA6058; --blue: #476DCC;
  --code: #f1f0ee; --shadow: 0 10px 25px -10px rgb(20 29 80 / .25);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1633; --bg-2: #141D50; --sand: #1a2459;
  --fg: #eceef8; --muted: #a3a9c9; --line: #2e3a75; --code: #1c2762;
  --shadow: 0 10px 25px -10px rgb(0 0 0 / .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1633; --bg-2: #141D50; --sand: #1a2459;
    --fg: #eceef8; --muted: #a3a9c9; --line: #2e3a75; --code: #1c2762;
    --shadow: 0 10px 25px -10px rgb(0 0 0 / .6);
  }
}
* { box-sizing: border-box; }
html { background: var(--navy); }
body { margin: 0; font: 15px/1.5 Lato, system-ui, sans-serif; letter-spacing: .01em; background: var(--bg); color: var(--fg); }
a { color: var(--blue); }
code, .mono, textarea.yaml, textarea[readonly] { font-family: "Fira Code", ui-monospace, monospace; }

/* Header with mountains */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; position: relative; z-index: 2; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.brand .logo { height: 24px; width: auto; display: block; }
.brand small { font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.theme { background: transparent; border: 2px solid rgb(255 255 255 / .35); color: #fff; border-radius: 999px; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; cursor: pointer; }
.theme:hover { border-color: #fff; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: block; } }
.hero-text { position: relative; z-index: 2; padding: 28px 32px 150px; max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 0 0 8px; font-size: 32px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.hero p { margin: 0; color: rgb(255 255 255 / .8); font-size: 16px; }
.mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 190px; z-index: 1; display: block; overflow: hidden; }
.mountains .far .m { fill: var(--navy-3); }
.mountains .mid .m { fill: var(--navy-2); }
.mountains .near .m { fill: var(--bg); }
.mountains .cap { fill: #fff; }
.mountains .far .cap { opacity: .9; }
.mountains .mid .cap { opacity: .75; }
:root[data-theme="dark"] .mountains .far .m { fill: #2a3a8c; }
:root[data-theme="dark"] .mountains .mid .m { fill: #1b2669; }
/* Parallax: each layer is drawn twice and scrolls by one period with SMIL;
   the nearer the layer, the faster it moves. */
/* Snowfall over the whole sky, behind the text. */
.snow { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.snow i { position: absolute; top: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgb(255 255 255 / .8); opacity: 0; animation: fall var(--d) linear infinite; animation-delay: var(--delay); }
@keyframes fall { 0% { transform: translate(0, 0); opacity: 0; } 6% { opacity: var(--o); } 50% { transform: translate(16px, 200px); } 94% { opacity: var(--o); } 100% { transform: translate(-8px, 400px); opacity: 0; } }
.hero { min-height: 360px; }
/* Layout */
main.wizard { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; padding: 28px 32px 48px; max-width: 1440px; margin: 0 auto; }
main.narrow { max-width: 760px; padding: 28px 32px 48px; margin: 0 auto; }
@media (max-width: 1000px) { main.wizard { grid-template-columns: 1fr; } .sticky { position: static !important; } }
.right .sticky { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
footer { padding: 20px 32px; display: flex; gap: 20px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
footer { align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer .footer-logo img { height: 22px; width: auto; display: block; opacity: .8; }
:root[data-theme="dark"] footer .footer-logo img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer .footer-logo img { filter: invert(1); } }
footer a:hover { color: var(--fg); }

/* Cards and forms */
.card, .pane { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
h3 { margin: 18px 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
label small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; }
label.check { flex-direction: row; align-items: center; gap: 8px; align-self: end; padding-bottom: 8px; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; text-transform: none; letter-spacing: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
input.mono { font-family: "Fira Code", ui-monospace, monospace; font-size: 13px; }
input:disabled { opacity: .5; }
textarea.yaml, textarea[readonly] { font-size: 12px; width: 100%; background: var(--code); }
textarea.yaml { min-height: 420px; height: 60vh; resize: vertical; }
button { font: inherit; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 8px 16px; border-radius: 6px; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; transition: opacity .15s; }
button:hover { opacity: .75; }
button.secondary { background: transparent; color: var(--fg); border-color: var(--fg); margin-top: 10px; }
button.small { font-size: 11px; padding: 5px 10px; }
button.link { background: transparent; border: 0; color: var(--blue); padding: 0; align-self: end; padding-bottom: 8px; font-size: 11px; }
button.link:disabled { color: var(--muted); cursor: default; opacity: .5; }
:root[data-theme="dark"] button { background: var(--green); border-color: var(--green); color: var(--navy); }
:root[data-theme="dark"] button.secondary, :root[data-theme="dark"] button.link { background: transparent; color: var(--fg); border-color: var(--fg); }
.row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 12px 40px 12px 12px; border: 1px dashed var(--line); border-radius: 8px; margin-bottom: 10px; background: color-mix(in srgb, var(--sand) 40%, transparent); }
.row.env { grid-template-columns: 1fr 2fr auto; }
.row.app { display: block; padding: 14px 40px 14px 14px; border-style: solid; }
.row .spec { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.row .remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: 15px; line-height: 1; }
.hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.hint.wide { grid-column: 1 / -1; }
code { font-size: 12px; background: var(--code); padding: 1px 5px; border-radius: 4px; }
datalist { display: none; }

/* Output */
.pane h2 { margin-top: 18px; }
.pane h2:first-child { margin-top: 0; }
.pane label { margin-bottom: 8px; }
.problems { list-style: none; padding: 0; margin: 0 0 8px; }
.problem { padding: 6px 10px; border-left: 3px solid; margin-bottom: 4px; font-size: 13px; border-radius: 0 6px 6px 0; }
.problem.error { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.problem.warning { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, transparent); }
.ok { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.image img { vertical-align: middle; }
.inputs { list-style: none; padding: 0; margin: 0; }
.inputs li { margin-bottom: 4px; font-size: 13px; }
.tag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 999px; background: var(--sand); color: var(--fg); }
.tag.req { background: var(--yellow); color: var(--navy); }
.tag.gen { background: var(--green); color: var(--navy); }
.tag.sec { background: var(--red); color: #fff; }
p.indent { margin: 0 0 4px 12px; font-size: 13px; }
details.import { margin-top: 4px; color: var(--muted); font-size: 13px; }
details.import form { display: grid; gap: 8px; margin-top: 8px; }
details.import textarea { font-family: "Fira Code", ui-monospace, monospace; font-size: 12px; background: var(--bg-2); }
