/* lunaMacro site. Colours match the app. */
:root {
  --bg: #0D1115;
  --surface: #12181E;
  --card: #171F27;
  --text: #E9F0F4;
  --sub: #8496A6;
  --dim: #2C3A46;
  --accent: #22D3C5;
  --blue: #4F8CFF;
  --green: #4ADE80;
  --red: #FF6B5E;
  --yellow: #FFC84A;
  --ink: #06201E;
  --line: rgba(255, 255, 255, .075);
  --field: rgba(255, 255, 255, .05);
  --grad: linear-gradient(120deg, var(--accent), var(--blue));
  --r: 18px;
  --wrap: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 16px/1.6 var(--font);
  background:
    radial-gradient(1100px 600px at 100% -10%, rgba(79, 140, 255, .16), transparent),
    radial-gradient(900px 520px at -10% 30%, rgba(34, 211, 197, .08), transparent),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; }
h3 { font-size: 19px; font-weight: 600; }
p { color: var(--sub); }
strong { color: var(--text); }
code, kbd {
  font: 600 .86em/1 Consolas, "Cascadia Mono", monospace;
  padding: .22em .5em;
  border-radius: 7px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--sub); }

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(13, 17, 21, .78);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 19px var(--display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--sub); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--field); text-decoration: none; }
.nav a.on { color: var(--text); }
.menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--field); color: var(--text); cursor: pointer; }
.menu svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font: 650 15px var(--font);
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; background: rgba(255, 255, 255, .09); }
.btn.main { background: var(--grad); color: var(--ink); border: 0; box-shadow: 0 6px 24px rgba(34, 211, 197, .28); }
.btn.main:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(34, 211, 197, .38); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* hero */
.hero { padding: 92px 0 72px; text-align: center; }
.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
}
.hero .pill b { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.hero p.lead { max-width: 640px; margin: 22px auto 34px; font-size: 19px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* sections */
section.block { padding: 64px 0; }
.head { max-width: 680px; margin-bottom: 34px; }
.head p { margin-top: 12px; font-size: 17px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* Six cards: three across, then two, then one, so no row is left half empty. */
.grid.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.six { grid-template-columns: 1fr; } }
/* Four cards: four across, then two, then one. */
.grid.four, .steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .grid.four, .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.four, .steps { grid-template-columns: 1fr; } }
.grid .span { grid-column: 1 / -1; }
.grid.plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 600px) { .grid.plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan h3 { margin: 0; }
.plan .price { font: 700 36px var(--display); letter-spacing: -.02em; color: var(--text); min-height: 44px; }
.plan p { flex: 1; }
.other-pay { max-width: 760px; margin: 24px 0 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.other-pay > div { flex: 1 1 320px; min-width: 0; }
.other-pay h3 { margin: 0 0 4px; }
.other-pay p { margin: 0; font-size: 15px; }
.card {
  padding: 24px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
}
.card h3 { margin: 14px 0 8px; }
.card p { font-size: 15px; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 197, .1);
  color: var(--accent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.blue { background: rgba(79, 140, 255, .12); color: var(--blue); }
.icon.yellow { background: rgba(255, 200, 74, .1); color: var(--yellow); }
.icon.green { background: rgba(74, 222, 128, .1); color: var(--green); }
.icon.red { background: rgba(255, 107, 94, .1); color: var(--red); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 22px;
  left: 24px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font: 700 14px var(--display);
  background: var(--grad);
  color: var(--ink);
}

/* screenshots: each one stays hidden until its image exists in /images */
.shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--sub); }
.shot.wide { grid-column: 1 / -1; }

/* call to action */
.cta {
  margin: 30px auto 70px;
  padding: 44px 32px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(34, 211, 197, .16), transparent),
    var(--card);
  border: 1px solid var(--line);
}
.cta p { max-width: 560px; margin: 12px auto 26px; }

/* page header for inner pages */
.page-head { padding: 64px 0 28px; }
.page-head p { margin-top: 12px; font-size: 18px; max-width: 680px; }
.crumbs { font-size: 14px; color: var(--sub); margin-bottom: 14px; }
.crumbs a { color: var(--sub); }
.crumbs a:hover { color: var(--text); }

/* guides layout */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; padding-bottom: 80px; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.side b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sub); margin: 0 0 8px 12px; }
.side a { color: var(--sub); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.side a:hover { color: var(--text); background: var(--field); text-decoration: none; }
.side a.on { color: var(--text); background: var(--field); }
.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; scroll-margin-top: 90px; }
.prose p, .prose li { color: #B7C4CF; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; white-space: nowrap; }
.prose td { color: #B7C4CF; }
.prose td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.prose .shot { margin: 8px 0 22px; }
.prose pre { margin: 10px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.prose pre code { padding: 0; border: 0; background: none; white-space: inherit; font-size: 13.5px; line-height: 1.5; }
.tip, .warn {
  margin: 18px 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  border: 1px solid;
}
.tip { background: rgba(34, 211, 197, .07); border-color: rgba(34, 211, 197, .22); color: #BFEDE9; }
.warn { background: rgba(255, 200, 74, .07); border-color: rgba(255, 200, 74, .22); color: #F4DFAE; }
.tip p, .warn p { color: inherit; margin: 0; }
.next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }

/* guide index cards */
.guides a.card { display: block; color: inherit; transition: transform .15s, border-color .15s; }
.guides a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(34, 211, 197, .35); }
.guides a.card span { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 650; font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; padding-bottom: 80px; }
.faq h2 { font-size: 22px; margin: 40px 0 14px; }
.faq h2:first-child { margin-top: 0; }
details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
summary { list-style: none; cursor: pointer; padding: 17px 52px 17px 20px; font-weight: 650; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--sub);
  border-bottom: 2px solid var(--sub);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { padding: 0 20px 18px; }
details p { margin-bottom: 10px; }
details p:last-child { margin-bottom: 0; }

/* legal */
.legal { max-width: 780px; padding-bottom: 80px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: #B7C4CF; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--accent); }
.updated { font-size: 14px; color: var(--sub); }

/* under construction */
.build {
  max-width: 640px;
  margin: 40px auto 90px;
  padding: 52px 34px;
  text-align: center;
  border-radius: 26px;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 200, 74, .07) 0 14px, transparent 14px 28px) top / 100% 10px no-repeat,
    var(--card);
  border: 1px solid var(--line);
}
.build .icon { margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 18px; }
.build .icon svg { width: 30px; height: 30px; }
.build p { margin: 14px auto 28px; max-width: 470px; font-size: 17px; }

/* update log */
.log { max-width: 900px; padding-bottom: 80px; }
.entry { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; padding-top: 0; }
.when { display: flex; flex-direction: column; gap: 4px; }
.when b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.when time { color: var(--sub); font-weight: 600; }
.what h2 { font-size: 22px; margin-bottom: 14px; }
.what ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.what li { color: #B7C4CF; }
.tag {
  display: inline-block;
  min-width: 52px;
  margin-right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 11px var(--font);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
  vertical-align: 2px;
}
.tag.new { color: var(--accent); background: rgba(34, 211, 197, .12); }
.tag.fix { color: var(--yellow); background: rgba(255, 200, 74, .12); }
.tag.better { color: var(--blue); background: rgba(79, 140, 255, .14); }

/* account and admin */
.panel { padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; }
.panel h2 { font-size: 21px; margin-bottom: 6px; }
.panel > p { margin-bottom: 16px; }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 52px; height: 52px; border-radius: 50%; background: var(--dim); }
.who b { display: block; font-size: 18px; }
.lic { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); margin-top: 12px; }
.lic .k { font: 600 15px Consolas, "Cascadia Mono", monospace; color: var(--text); word-break: break-all; }
.lic .meta { font-size: 14px; color: var(--sub); }
.lic .acts { display: flex; gap: 8px; grid-row: span 2; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 12px var(--font); margin-right: 8px; }
.badge.on { color: var(--green); background: rgba(74, 222, 128, .12); }
.badge.off { color: var(--red); background: rgba(255, 107, 94, .12); }
.badge.type { color: var(--blue); background: rgba(79, 140, 255, .14); }
.form { display: grid; gap: 12px; }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--sub); flex: 1; min-width: 180px; }
input, select, textarea {
  font: 15px var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
}
textarea { min-height: 110px; font-family: Consolas, "Cascadia Mono", monospace; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(34, 211, 197, .5); outline-offset: 1px; }
.msg { min-height: 22px; font-size: 14px; color: var(--sub); }
.msg.bad { color: var(--red); }
.msg.good { color: var(--green); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.list th { color: var(--sub); font-weight: 650; }
table.list td { color: #B7C4CF; }
table.list td.k { font-family: Consolas, "Cascadia Mono", monospace; color: var(--text); }
.scroll { overflow-x: auto; }
.stock { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stock div { padding: 12px 16px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.stock b { display: block; font: 700 24px var(--display); color: var(--text); }
.stock span { font-size: 13px; color: var(--sub); }
[hidden] { display: none !important; }

/* footer */
footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: flex-start; justify-content: space-between; padding: 34px 0; }
footer .about { max-width: 420px; }
footer .about p { font-size: 13px; margin-top: 10px; }
footer .links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
footer .links a { color: var(--sub); font-size: 15px; font-weight: 600; }
footer .links a:hover { color: var(--text); }

@media (max-width: 880px) {
  .menu { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin-top: 6px; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side b { width: 100%; margin-left: 0; }
  .side a { background: var(--field); }
  .entry { grid-template-columns: 1fr; gap: 10px; }
  .when { flex-direction: row; gap: 12px; align-items: baseline; }
  .lic { grid-template-columns: 1fr; }
  .lic .acts { grid-row: auto; }
  .hero { padding: 64px 0 52px; }
  section.block { padding: 48px 0; }
}
