/* FerriCheck website. Same look as the app: tinted off-white background,
   white cards with a soft shadow, a blue gradient for the key figure.
   No external resource; the only script is the theme switch (theme.js). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #141821;
  --muted: #667085;
  --line: #e4e8ef;
  --primary: #2563eb;
  --tint: #dce7fe;
  --on-tint: #16307a;
  --hero-1: #4f8cff;
  --hero-2: #2563eb;
  --hero-3: #1e3a8a;
  --shadow: 0 1px 2px rgb(20 24 33 / 4%), 0 12px 32px rgb(20 24 33 / 6%);
  --radius: 24px;
}

/* Dark theme. The same values appear twice, because CSS has no way to share
   them between the two cases: change both.
   1. The browser asks for dark, and the visitor didn't force light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d12;
    --card: #151922;
    --text: #edf1f7;
    --muted: #98a2b3;
    --line: #262c38;
    --primary: #7aa7ff;
    --tint: #1a3263;
    --on-tint: #d8e4ff;
    --hero-1: #3b6fe0;
    --hero-2: #1f4aa8;
    --hero-3: #12285e;
    --shadow: none;
  }
}

/* 2. The visitor chose dark with the button (see theme.js). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --card: #151922;
  --text: #edf1f7;
  --muted: #98a2b3;
  --line: #262c38;
  --primary: #7aa7ff;
  --tint: #1a3263;
  --on-tint: #d8e4ff;
  --hero-1: #3b6fe0;
  --hero-2: #1f4aa8;
  --hero-3: #12285e;
  --shadow: none;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

/* Shown by theme.js: without JavaScript there is nothing to click. */
.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  background: var(--line);
  color: var(--text);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Only the icon of the theme the button switches to. */
.theme-toggle[data-next="dark"] .icon-sun,
.theme-toggle[data-next="light"] .icon-moon {
  display: none;
}

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

/* Home: introduction ---------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 56px 0 72px;
}

.intro h1 {
  font-size: clamp(2.125rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lead {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 600;
}

/* The app's first card, redrawn. */
.app-card {
  position: relative;
  overflow: hidden;
  max-width: 380px;
  width: 100%;
  margin-left: auto;
  padding: 20px 22px 22px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--hero-1),
    var(--hero-2) 55%,
    var(--hero-3)
  );
  color: #fff;
  box-shadow: 0 24px 48px rgb(37 99 235 / 28%);
}

.app-card::before,
.app-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.app-card::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  opacity: 0.07;
}

.app-card::after {
  width: 120px;
  height: 120px;
  right: -20px;
  top: -40px;
  opacity: 0.08;
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(255 255 255 / 80%);
}

.app-card-value {
  margin: 14px 0 18px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.app-card-value span {
  margin-left: 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgb(255 255 255 / 80%);
}

.app-card-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 80%);
}

.pill {
  padding: 5px 12px;
  border-radius: 100px;
  background: rgb(255 255 255 / 18%);
  color: #fff;
  font-weight: 600;
}

.pill-solid {
  background: #fff;
  color: #166534;
}

.app-card-target {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 18%);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(255 255 255 / 80%);
}

/* Home: sections -------------------------------------------------------- */

.section {
  padding: 0 0 72px;
}

.section h2 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

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

.features li,
.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.features h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.features p,
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.panel {
  padding: 28px;
}

.panel h2 {
  margin-bottom: 10px;
}

.panel p {
  font-size: 1rem;
  max-width: 44em;
}

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

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--tint);
  color: var(--on-tint);
  font-size: 0.875rem;
  font-weight: 600;
}

.note {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9375rem;
}

.note strong {
  color: var(--text);
}

/* Legal pages ----------------------------------------------------------- */

.doc {
  max-width: 720px;
  padding: 40px 0 72px;
}

.doc h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doc .updated {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.doc p,
.doc ul {
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc address {
  font-style: normal;
}

.doc .panel {
  margin-top: 28px;
}

.doc .panel p {
  color: var(--text);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

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

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

/* Small screens --------------------------------------------------------- */

/* Phones: the links go under the name, the theme button stays top right. */
@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .theme-toggle {
    position: absolute;
    top: 18px;
    right: -8px;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px 0 56px;
  }

  .app-card {
    margin: 0;
    max-width: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 56px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
