/* Simsail's website: the home page, contact, privacy and account deletion. One column of plain text
   in the app's own typefaces and blue. */

/* The app's typefaces, served from this site so that a visit asks no other company for anything.
   Both are under the SIL Open Font License (the files beside them). */
@font-face {
  font-family: 'DM Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/DMSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/DMSans-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Sora';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Sora-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Sora';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Sora-Bold.ttf') format('truetype');
}

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #55627a;
  --line: #d9e0ec;
  --accent: #1d4ed8;
  --good: #0b6b43;
  --good-bg: #ddf3e6;
  --bad: #b42318;
  --bad-bg: #fdecea;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
.band {
  background: var(--accent);
  color: #ffffff;
  padding: 28px 20px 56px;
}
.band div,
main {
  max-width: 68ch;
  margin: 0 auto;
}
.band p {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
h1,
h2 {
  font-family: 'Sora', 'Segoe UI', system-ui, sans-serif;
  text-wrap: balance;
}
h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.15;
}
h2 {
  margin: 30px 0 8px;
  font-size: 20px;
  font-weight: 600;
}
main {
  margin-top: -32px;
  margin-bottom: 48px;
  padding: 24px 22px 30px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.08), 0 8px 20px rgba(15, 27, 45, 0.1);
}
@media (min-width: 760px) {
  main {
    padding: 34px 40px 40px;
  }
}
p,
ul,
ol {
  margin: 0 0 12px;
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}
a {
  color: var(--accent);
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 15px;
}

/* The form. */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
}
textarea {
  min-height: 150px;
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button {
  align-self: flex-start;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 26px;
  padding: 14px 28px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.said {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
}
.said.good {
  background: var(--good-bg);
  color: var(--good);
}
.said.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
/* A field people never see. Programs that fill in every field give themselves away with it. */
.trap {
  position: absolute;
  left: -9999px;
}

/* The links under every page, lined up with the text in the card above. */
.links {
  max-width: 68ch;
  margin: -24px auto 40px;
  padding: 0 22px;
}
@media (min-width: 760px) {
  .links {
    padding: 0 40px;
  }
}
.links nav,
.links p {
  color: var(--muted);
  font-size: 15px;
}
.links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 8px;
}
.links a {
  color: var(--muted);
}
.links a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}
.links p {
  margin: 0;
}

/* The home page: what the app does, in the words of its welcome screen. */
.band .lead {
  margin: 14px 0 0;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.92;
}
.points {
  list-style: none;
  padding: 0;
  margin: 4px 0 20px;
}
.points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.points li:last-child {
  border-bottom: 0;
}
.soon {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
