/* Umina — umina.app
   Colors follow the app: seed blue #4C6EF5, dark surface #121318.
   Every text/background pair is 4.5:1 or more in both themes. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #eef1fd;
  --text: #191b22;
  --muted: #545968;
  --primary: #3651c4;
  --primary-text: #ffffff;
  --border: #dde1ee;
  --income: #18704e;
  --radius: 16px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121318;
    --surface: #1b1d25;
    --surface-alt: #21253a;
    --text: #e8e9f0;
    --muted: #a9adbd;
    --primary: #a3b4ff;
    --primary-text: #121318;
    --border: #2c303d;
    --income: #2fb380;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: var(--primary);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.975rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: 0 12px 32px rgba(54, 79, 199, 0.28);
}

.hero h1 {
  margin: 28px auto 12px;
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.25;
}

.store-button small {
  font-size: 0.75rem;
  opacity: 0.85;
}

.store-button strong {
  font-size: 1.15rem;
}

/* Until the store links exist the buttons are plain text, not links. */
.store-button.soon {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */

section {
  padding: 40px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

.section-lead {
  margin: 0 auto 32px;
  max-width: 36rem;
  color: var(--muted);
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature h3 {
  margin: 14px 0 6px;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--primary);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band {
  padding: 36px 28px;
  background: var(--surface-alt);
  border-radius: 24px;
  text-align: center;
}

.band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.band p {
  margin: 0 auto;
  max-width: 40rem;
}

.band p + p {
  margin-top: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 14px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Text pages: privacy and support */

.doc {
  max-width: 46rem;
  padding-top: 32px;
  padding-bottom: 56px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.doc .updated {
  margin: 0 0 24px;
  color: var(--muted);
}

.doc .summary {
  padding: 20px 22px;
  background: var(--surface-alt);
  border-radius: var(--radius);
}

.doc li + li {
  margin-top: 6px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

/* Visible on purpose: text that must be filled in before publishing. */
.todo {
  padding: 1px 6px;
  background: #fff1a8;
  color: #3d3200;
  border-radius: 4px;
  font-weight: 600;
}

/* Support FAQ */

.faq details {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
}

.faq details > div {
  padding: 0 20px 16px;
}

.faq details p {
  margin: 0;
}

.faq details p + p {
  margin-top: 10px;
}

.contact {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface-alt);
  border-radius: var(--radius);
}

.contact h2 {
  margin-top: 0;
}

.contact .email {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Footer */

.site-footer {
  margin-top: 24px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 560px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 12px;
  }

  .hero {
    padding-top: 32px;
  }

  .store-button {
    width: 100%;
    max-width: 320px;
  }
}
