/* choutes.com: the website of Choutes Project */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  /* Choutes Project colours */
  --night: #120E22;        /* header, hero, footer */
  --night-2: #1C1535;
  --violet: #5B18E5;       /* Choutes Project purple: buttons */
  --violet-hover: #6A2AF0;
  --iris: #B39BFF;         /* links and accents on night */
  --on-night: #F2EFFB;
  --on-night-muted: #ADA6C6;

  /* Page colours (light) */
  --bg: #F4F2FA;
  --surface: #FFFFFF;
  --text: #1C1830;
  --muted: #5F5975;
  --line: #E1DCEC;
  --accent-text: #5320D4;
  --tint: #ECE6FD;
  --code-bg: #EFECF7;
  --eyebrow: #6A35EC;

  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 8px;
  --radius-m: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100C1D;
    --surface: #18132A;
    --text: #EEEBF7;
    --muted: #A8A1BF;
    --line: #2A2442;
    --accent-text: #BBA4FF;
    --tint: #231A42;
    --code-bg: #1E1833;
    --eyebrow: #B39BFF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #8E64FF; outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }

/* English is the main language; Malay is shown when it is chosen. */
html:not([lang="ms"]) body [lang="ms"],
html[lang="ms"] body [lang="en"] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--text); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.measure { max-width: 42em; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button.primary { background: var(--violet); color: #fff; }
.button.primary:hover { background: var(--violet-hover); }
.button.ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.button.ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.button.light { background: #fff; color: #3A0FA6; box-shadow: 0 10px 30px rgba(18,4,58,.3); }
.button.light:hover { background: #F1EBFF; }
.button.outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.button.outline:hover { border-color: var(--accent-text); }
.button[aria-disabled="true"], .button:disabled {
  background: var(--line); color: var(--muted); cursor: not-allowed; border-color: transparent;
}
.button svg { width: 18px; height: 18px; flex: none; }

/* Header: a thin bar with links and the language, then the logo and the menu, laid over the
   purple band of the first section (like the Linux Mint website). */
:root { --head-h: 124px; }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; }
.topbar { border-bottom: 1px solid rgba(255,255,255,.14); }
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 40px; }
.social { display: flex; align-items: center; gap: 2px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: rgba(255,255,255,.82); }
.social a:hover { color: #fff; background: rgba(255,255,255,.12); }
.social svg { width: 17px; height: 17px; }
.lang { display: flex; border-left: 1px solid rgba(255,255,255,.2); padding-left: 12px; gap: 2px; flex: none; }
.lang button {
  appearance: none; border: 0; background: transparent; color: rgba(255,255,255,.75);
  font: 600 .76rem/1 var(--font-text); padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #3A0FA6; }

.mainbar .wrap { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: auto; height: 44px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link, .dd-toggle {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.86); text-decoration: none; font: 500 .95rem/1 var(--font-text);
  padding: 12px 13px; border-radius: 8px;
}
.nav-link:hover, .dd-toggle:hover, .dd.open > .dd-toggle { color: #fff; background: rgba(255,255,255,.1); }
.nav-link[aria-current="page"], .dd[data-active] > .dd-toggle { color: #fff; box-shadow: inset 0 -2px 0 rgba(255,255,255,.85); border-radius: 8px 8px 0 0; }
.chev { width: 11px; height: 11px; transition: transform .15s ease; }
.dd.open .chev { transform: rotate(180deg); }
.nav-donate {
  margin-left: 12px; background: #fff; color: #3A0FA6; text-decoration: none;
  font: 600 .9rem/1 var(--font-text); padding: 12px 18px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(20,0,60,.25);
}
.nav-donate:hover { background: #F1EBFF; }

/* Dropdowns: white panels with an icon for each link */
.dd { position: relative; }
.dd-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: #fff; color: #231D3A; border-radius: 12px; padding: 10px;
  box-shadow: 0 24px 60px rgba(24,8,64,.28), 0 2px 8px rgba(24,8,64,.12);
  border-top: 3px solid var(--violet);
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps it open on the way down */
/* The gap under a menu button belongs to the menu, so a panel stays open on the way down (also
   the wide Links panel, which clips its own ::before). */
@media (hover: hover) and (min-width: 961px) {
  .dd::after { content: ""; position: absolute; left: -60px; right: -60px; top: 100%; height: 12px; display: none; }
  .dd:hover::after, .dd.open::after { display: block; }
  /* The wide Links panel: the whole width of the panel. */
  .dd-mega::after { left: auto; right: -120px; width: 640px; }
}
@media (hover: hover) and (min-width: 961px) and (max-width: 1080px) {
  .dd-mega::after { right: 0; width: min(640px, calc(100vw - 2 * var(--gutter))); }
}
.dd.open > .dd-panel { display: block; }
.dd-panel a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  color: #231D3A; text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.3;
}
.dd-panel a:hover, .dd-panel a:focus-visible { background: #F2EDFF; color: #3A0FA6; }
.dd-panel a[aria-current="page"] { color: #4A14C8; }
.dd-panel svg { width: 19px; height: 19px; flex: none; color: #6A35EC; }
.dd-mega .dd-panel { left: auto; right: -120px; width: 640px; padding: 0; overflow: hidden; }
.mega-cols { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 8px; padding: 18px 14px 14px; }
.mega-title { font: 600 .82rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: #6E6788; margin: 4px 12px 10px; }
.here { display: inline-block; margin-left: 6px; background: var(--violet); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 6px; border-radius: 4px; vertical-align: 1px; }
.mega-note {
  margin: 0; padding: 14px 26px; color: #fff; font-size: .85rem;
  background: linear-gradient(110deg, #4612C9, #7B3FF2 70%, #9B6BFF);
}

.menu-toggle { display: none; appearance: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 10px; width: 46px; height: 46px; cursor: pointer; margin-left: auto; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-link, .dd-toggle { padding: 12px 9px; }
  .dd-mega .dd-panel { right: 0; width: min(640px, calc(100vw - 2 * var(--gutter))); }
}
@media (max-width: 960px) {
  :root { --head-h: 108px; }
  .mainbar .wrap { height: 68px; }
  .brand img { width: auto; height: 37px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; color: #231D3A; padding: 8px var(--gutter) 22px;
    box-shadow: 0 24px 50px rgba(24,8,64,.3); max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-link { color: #231D3A; padding: 16px 4px; border-bottom: 1px solid #ECE8F5; border-radius: 0; }
  .nav-link:hover { background: transparent; color: #3A0FA6; }
  .nav-link[aria-current="page"] { box-shadow: none; color: #4A14C8; }
  .dd { border-bottom: 1px solid #ECE8F5; }
  .dd-toggle { width: 100%; justify-content: space-between; color: #231D3A; padding: 16px 4px; border-radius: 0; }
  .dd-toggle:hover, .dd.open > .dd-toggle { background: transparent; color: #3A0FA6; }
  .dd[data-active] > .dd-toggle { box-shadow: none; color: #4A14C8; }
  .dd-panel, .dd-mega .dd-panel {
    position: static; width: auto; min-width: 0; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 10px; background: transparent;
  }
  .dd-panel::before { display: none; }
  .mega-cols { grid-template-columns: 1fr; padding: 0; gap: 4px; }
  .mega-title { margin: 10px 12px 4px; }
  .mega-note { border-radius: 10px; padding: 12px 14px; margin-top: 6px; }
  .nav-donate { margin: 18px 0 0; text-align: center; padding: 15px; background: var(--violet); color: #fff; box-shadow: none; }
  .nav-donate:hover { background: var(--violet-hover); }
}

/* The purple band of the first section, with the contour lines of the Choutes Project wallpaper
   and a curved lower edge. */
.hero, .page-head {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(118deg, #2C0B85 0%, #4A13CF 38%, #6D30EE 70%, #9566FF 100%);
}
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/contour.webp") center / cover no-repeat;
  opacity: .22; mix-blend-mode: soft-light; pointer-events: none;
}
.hero::after, .page-head::after {
  content: ""; position: absolute; width: 1000px; height: 1000px; left: -380px; top: -420px;
  background: radial-gradient(closest-side, rgba(255,255,255,.12), rgba(255,255,255,0));
  pointer-events: none;
}
.curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 90px); fill: var(--bg); z-index: 1; display: block; }
.hero .wrap, .page-head .wrap { position: relative; z-index: 2; }
.hero-eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: rgba(255,255,255,.9); margin: 0 0 10px; }

.hero { padding: calc(var(--head-h) + clamp(48px, 7vw, 96px)) 0 clamp(96px, 12vw, 170px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.2rem); margin-bottom: .35em; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hosts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; color: rgba(255,255,255,.85); font-size: .92rem; }
.hosts a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; text-decoration: none; font-weight: 600;
}
.hosts a:hover { background: rgba(255,255,255,.24); }
.hosts svg { width: 15px; height: 15px; }
.hero-note { color: rgba(255,255,255,.78); font-size: .92rem; margin: 0; max-width: 34em; }
.hero-shot { position: relative; }
.frame {
  border-radius: var(--radius-m); overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 40px 90px rgba(18,4,58,.55), 0 0 0 8px rgba(255,255,255,.06);
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-width: 760px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-shot { animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}

/* Title band of the other pages */
.page-head { padding: calc(var(--head-h) + clamp(40px, 6vw, 76px)) 0 clamp(80px, 10vw, 140px); }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-head .lead { color: rgba(255,255,255,.88); margin: 0; }

/* Small coloured label above a heading */
.eyebrow { color: var(--eyebrow); font: 600 1.05rem/1.2 var(--font-display); margin: 0 0 .5em; }
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); }
.intro p { color: var(--muted); font-size: 1.1rem; margin: 0; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Three things that work from the first start */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.trio > div { border-top: 2px solid var(--violet); padding-top: 22px; }
.trio h3 { margin-bottom: .4em; }
.trio p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }

/* Text next to a screenshot */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); }
.shot { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: #0E0B19; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%236A35EC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}

/* Band with the country and support */
.band { background: var(--night-2); color: var(--on-night); border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: url("../img/contour.webp") center / cover; opacity: .1; mix-blend-mode: screen; pointer-events: none; }
.band > * { position: relative; }
.band h2 { color: #fff; }
.band p { color: var(--on-night-muted); margin: 0; max-width: 38em; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* Feature groups (Features page) */
.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px); }
.group h2 { font-size: 1.6rem; }
.group p { color: var(--muted); }
@media (max-width: 820px) { .groups { grid-template-columns: 1fr; } }

/* Download page */
.release { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.release-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); }
.release-card h2 { font-size: 1.7rem; margin-bottom: .2em; }
.release-card .sub { color: var(--muted); margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.get { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 32px); }
.get .button { width: 100%; }
.get p { color: var(--muted); font-size: .95rem; margin: 16px 0 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #E0A33A; }
.status.ready::before { background: #2BB673; }
.hash { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.hash code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--code-bg); border-radius: var(--radius-s); padding: 10px 12px; font-size: .82rem; line-height: 1.5; }
.copy { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius-s); padding: 0 12px; font: 600 .82rem var(--font-text); cursor: pointer; }
.copy:hover { border-color: var(--accent-text); }
@media (max-width: 900px) { .release { grid-template-columns: 1fr; } .get { position: static; } }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 40px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
.steps > li > div { min-width: 0; }
.steps > li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint); color: var(--accent-text);
  font: 700 1.05rem/1 var(--font-display);
}
.steps h3 { margin-top: 8px; }
.steps p { color: var(--muted); }
pre { background: var(--code-bg); border-radius: var(--radius-s); padding: 14px 16px; overflow-x: auto; margin: 8px 0 16px; line-height: 1.5; }
.os { font-weight: 600; margin: 16px 0 0; }

table.req { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.req th, .req td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req thead th { background: var(--tint); font-weight: 600; }
.req tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* Cards for links (Community) */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; color: var(--text); text-decoration: none; transition: border-color .15s ease; }
.link-card:hover { border-color: var(--accent-text); }
.link-card h3 { margin-bottom: .35em; }
.link-card p { color: var(--muted); margin: 0 0 18px; }
.link-card .go { color: var(--accent-text); font-weight: 600; }
@media (max-width: 900px) { .links { grid-template-columns: 1fr; } }

.prose { max-width: 44em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 64px 0 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 600 .95rem/1.4 var(--font-text); color: var(--on-night); margin: 0 0 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--on-night-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--on-night); }
.footer-brand img { width: auto; height: 40px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 26em; }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; font-size: .82rem; line-height: 1.7; color: #8C86A5; }
.legal p { margin: 0 0 4px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }

[hidden] { display: none !important; }

.get .button { width: 100%; justify-content: center; }
.get .mirror { margin-top: 10px; }

/* Promo video on the home page (16:9) */
.promo-head { text-align: center; margin-left: auto; margin-right: auto; }
.promo-head p { margin-left: auto; margin-right: auto; }
.player {
  position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-m); overflow: hidden; background: #0B0816;
  border: 1px solid rgba(179,155,255,.35);
  box-shadow: 0 40px 90px rgba(18,4,58,.4), 0 0 0 8px rgba(91,24,229,.10);
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #0B0816; }
.player video { pointer-events: none; user-select: none; }

/* Home: the download links are not available yet */
.hero-note.hero-wait { margin-top: 6px; font-weight: 600; opacity: 1; }

/* The stick figure of Choutes Project */
.mascot { display: block; height: auto; pointer-events: none; user-select: none; }
.hero-shot .mascot-hero {
  position: absolute; width: clamp(64px, 8vw, 104px); left: clamp(-56px, -4vw, -24px); bottom: -28px; z-index: 3;
  filter: drop-shadow(0 12px 18px rgba(16, 4, 60, .35));
  transform-origin: 50% 100%; animation: mascot-bob 3.2s ease-in-out infinite;
}
@keyframes mascot-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.band-mascot { grid-template-columns: auto 1fr auto; }
.band-mascot .mascot-band { width: 92px; margin: -12px 0 -20px; }
@media (max-width: 820px) {
  .band-mascot { grid-template-columns: 1fr; }
  .band-mascot .mascot-band { width: 72px; margin: 0; }
  .hero-shot .mascot-hero { left: auto; right: 8px; bottom: -22px; width: 64px; }
}
.get .mascot-get { width: 64px; margin: 0 auto 10px; }
.about .mascot-about { float: right; width: clamp(90px, 14vw, 150px); margin: 0 0 16px 24px; }
.lost { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.lost .mascot-lost { width: 110px; transform: rotate(-8deg); }
@media (prefers-reduced-motion: reduce) { .hero-shot .mascot-hero { animation: none; } }

/* Screenshots with a caption (Features) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
