/* JengaWorx website — brand colours from 80 Brand/Brand Guide.md, Montserrat self-hosted (no outside requests). */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --night: #0B0B10;
  --panel: #15151C;
  --line: #26262F;
  --cream: #F5EFE4;
  --grey: #CCC7BF;
  --muted: #9C978F;
  --gold: #FFCC6B;
  --orange: #E0703A;
  --ochre: #D9A441;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--grey);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-weight: 700; letter-spacing: 0.22em; color: var(--cream); text-decoration: none; font-size: 15px; }
.wordmark .x { color: var(--orange); }
.wordmark:hover { color: var(--cream); }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { color: var(--grey); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* Content */
main { padding: 44px 0 56px; }
h1, h2, h3 { color: var(--cream); font-weight: 700; line-height: 1.25; }
h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 38px 0 10px; }
h3 { font-size: 16px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
strong { color: var(--cream); }
.lead { font-size: 18px; color: var(--cream); }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 26px; }

/* App heading with icon */
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-head img { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 8px 30px rgba(255, 204, 107, 0.16); }
.app-head h1 { margin: 0; }
.app-head p { margin: 2px 0 0; color: var(--muted); }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 18px 0; }
.card h2, .card h3 { margin-top: 0; }
.card.summary { border-color: rgba(255, 204, 107, 0.35); }
.card.alert { border-color: rgba(224, 112, 58, 0.55); background: rgba(224, 112, 58, 0.08); }

.app-card { display: flex; gap: 18px; align-items: center; text-decoration: none; color: inherit; }
.app-card img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.app-card h3 { margin: 0 0 4px; color: var(--cream); }
.app-card p { margin: 0; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #1C1C24; color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 700; }
.button:hover { border-color: var(--gold); color: var(--gold); }
.button.primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.button.primary:hover { background: var(--cream); border-color: var(--cream); color: var(--night); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--cream); font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -1px; color: var(--gold); font-size: 20px; }
details[open] summary::after { content: "\2212"; }
details > p, details > ul { margin-top: 10px; }

table.helplines { width: 100%; border-collapse: collapse; font-size: 15px; }
table.helplines td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.helplines td:first-child { color: var(--muted); width: 38%; padding-right: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .wrap { padding-top: 22px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; padding-bottom: 14px; }
  h1 { font-size: 25px; }
  .lead { font-size: 17px; }
  .nav { gap: 14px; font-size: 13px; }
  .app-head img { width: 68px; height: 68px; border-radius: 15px; }
}
