/* Odd Moth: site styles */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --slate: #4F5F78;
  --slate-dark: #3E4B60;
  --slate-card: #5C6D88;
  --line: #7A889E;
  --line-soft: #8D9BB0;
  --text: #FFFFFF;
  --muted: #DCE3EC;
  --muted-2: #C9D2DF;
  --amber: #F4B043;
  --amber-ink: #1F2633;
  --link: #FFD48A;
  --link-hover: #FFE7BD;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slate);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.wrap-text { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.band { background: var(--slate-dark); }
.section { padding: 96px 0; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: auto; height: 32px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 19px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--link); }
.nav .pill { padding: 10px 16px; border: 1px solid var(--line-soft); border-radius: 999px; }

/* Type */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
h1, h2, h3 { margin: 0; }
.h1 { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; }
.h1-xl { font-size: 80px; line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 24px; }
.lead { margin: 0; font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }

/* Buttons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 44px; padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--muted); background: transparent; color: var(--text);
}
.btn:hover { color: var(--text); border-color: var(--text); }
.btn .label { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.btn .sub { font-size: 13px; font-weight: 500; opacity: 0.85; }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #F7C066; border-color: #F7C066; color: var(--amber-ink); }
.btn svg { flex: none; }
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero .h1 { max-width: 900px; }
.hero .lead { max-width: 640px; }
.app-icon { width: 104px; height: 104px; }
.hero-shot { width: 100%; max-width: 860px; margin-top: 20px; }
.notice { background: var(--slate-dark); border-radius: 20px; padding: 24px 28px; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
[hidden] { display: none !important; }

/* Grids */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 56px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }

.feature { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.feature .num { font-family: var(--mono); color: var(--link); font-size: 14px; padding-top: 3px; }
.feature h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.card { background: var(--slate-card); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: #E8EDF3; }
.box { background: var(--slate); border-radius: 16px; padding: 24px 28px; }
.box h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.box b { color: var(--text); }
.panel { background: var(--slate-dark); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.panel-outline { border: 1.5px solid var(--line-soft); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Donations */
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amount {
  display: flex; align-items: center; justify-content: center; min-height: 60px; border-radius: 16px;
  background: var(--amber); color: var(--amber-ink); text-decoration: none; font-weight: 700; font-size: 21px;
}
.amount:hover { background: #F7C066; color: var(--amber-ink); }
.amount-other { background: transparent; border: 1.5px solid var(--amber); color: var(--text); font-weight: 600; font-size: 17px; }
.amount-other:hover { background: rgba(244, 176, 67, 0.15); color: var(--text); }

/* Apps (home) */
.apps { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.app-card { display: flex; flex-direction: column; gap: 20px; background: var(--slate-dark); border-radius: 24px; padding: 40px; text-decoration: none; color: var(--text); }
.app-card:hover { color: var(--text); background: #43516A; }
.app-card .title { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.app-card .meta { font-family: var(--mono); font-size: 13px; color: var(--link); }
.app-card .more { font-weight: 600; color: var(--link); }
.next-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border: 1.5px dashed var(--line-soft); border-radius: 24px; padding: 40px; }

/* Mascot */
.mascot { width: 180px; height: auto; margin-bottom: 8px; }
.mascot-lost { animation: drift 5s ease-in-out infinite; }
.mascot-happy { animation: hop 1.6s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(10px, -12px) rotate(6deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } 60% { transform: translateY(-14px) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }

/* Long text (privacy) */
.prose h2 { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 40px 0 10px; }
.prose p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }

/* Footer */
.site-footer { background: var(--slate-dark); padding: 48px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .note { flex-basis: 100%; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); }

@media (max-width: 900px) {
  .grid2, .grid3, .split, .apps { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: 44px; }
  .h1-xl { font-size: 48px; }
  .h2 { font-size: 34px; }
  .section { padding: 72px 0; }
  .nav .hide-narrow { display: none; }
  .panel, .panel-outline, .app-card, .next-card { padding: 28px; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow, .wrap-text { padding: 0 16px; }
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 16px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
