/* The finsolve.us website (plan 5.7, D87 j and k): plain static
   pages in the app's colors (plan D76), light, and dark when the
   device is set to dark. No scripts: the phone menu is a <details>
   element. */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1b2430;
  --muted: #5b6676;
  --border: #dde3ea;
  --accent: #1f5f8b;
  --accent-text: #ffffff;
  --accent-soft: #e6eff6;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%);
  --radius: 10px;
  --width: 1040px;
  color-scheme: light;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --bg: #12171d;
    --surface: #1a2129;
    --text: #e6ebf0;
    --muted: #9aa6b4;
    --border: #2b3540;
    --accent: #6fb0e0;
    --accent-text: #0d1720;
    --accent-soft: #1d3446;
    --shadow: none;
    color-scheme: dark;
  }
}

* {
  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: 17px;
  line-height: 1.55;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
}

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

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

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

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.logo {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  margin-right: auto;
}

.logo img {
  width: 32px;
  height: 32px;
}

.nav-wide {
  display: flex;
  gap: 4px;
}

.nav-wide a,
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-wide a:hover,
.nav-menu a:hover {
  background: var(--accent-soft);
}

.nav-wide a[aria-current="page"],
.nav-menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  white-space: nowrap;
}

.button:hover {
  filter: brightness(1.08);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.nav-phone {
  display: none;
  position: relative;
}

.nav-phone summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-phone summary::-webkit-details-marker {
  display: none;
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgb(16 24 40 / 16%);
}

@media (max-width: 800px) {
  .nav-wide {
    display: none;
  }

  .nav-phone {
    display: block;
  }

  .site-header .wrap {
    gap: 8px;
  }

  .site-header .button {
    padding: 8px 12px;
    font-size: 15px;
  }

  .nav-phone summary {
    padding: 7px 10px;
    font-size: 15px;
  }
}

/* Main content */

main {
  padding: 32px 0 48px;
}

h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
}

h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

section {
  margin: 0 0 40px;
}

.lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.hero {
  padding: 16px 0 8px;
}

.hero p {
  max-width: 760px;
}

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

.features ul {
  margin: 0;
  padding-left: 20px;
}

.icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
}

/* A stock photo beside the page's opening text on a computer, and
   between the heading and the text on a phone (plan D92 g). */
.with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  grid-template-areas:
    "head photo"
    "body photo";
  column-gap: 32px;
  align-items: start;
}

.with-photo > .head {
  grid-area: head;
}

.with-photo > .body {
  grid-area: body;
}

.with-photo > .photo {
  grid-area: photo;
  margin-top: 16px;
}

.with-photo > .photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 800px) {
  .with-photo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "photo"
      "body";
  }

  .with-photo > .photo {
    margin: 4px 0 8px;
  }
}

.about {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex: none;
}

@media (max-width: 640px) {
  .about {
    flex-direction: column;
  }
}

.steps {
  margin: 0 0 12px;
  padding-left: 22px;
}

.files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.files li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.files li:last-child {
  border-bottom: none;
}

.form-frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

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

.site-footer .copy {
  margin-left: auto;
  color: var(--muted);
}
