/* The brand of komunio.cz, the same colors and typeface as the frontends (see README.md of the monorepo). Everything is
   in this file: the Content-Security-Policy of the site allows no inline styles. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/outfit/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/outfit/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #1E3A5F;
  --dark: #142840;
  --accent: #E86A33;
  --brand-light: #DCE6F2;
  --background: #F6F5F2;
  --text: #1B2430;
  --text-muted: #3D4856;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--background);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--primary);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 1;
}

/* Header */

.header {
  background: var(--primary);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.logo__mark {
  width: 40px;
  height: 40px;
}

.logo__text {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.logo__domain {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  align-items: center;
}

.nav__link {
  padding: 10px 0;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover {
  text-decoration: underline;
}

/* Buttons. The accent has dark text, white on it is too weak. */

.button {
  display: inline-block;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button--small {
  padding: 7px 18px;
  font-weight: 600;
}

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.button--accent:hover {
  background: #F07F4C;
  border-color: #F07F4C;
}

.button--outline {
  border-color: var(--brand-light);
  color: var(--white);
}

.button--outline:hover {
  background: var(--dark);
}

/* Hero */

.hero {
  background: var(--primary);
  color: var(--white);
}

.hero__inner {
  display: flex;
  gap: 56px;
  align-items: center;
  justify-content: space-between;
  padding-top: 72px;
  padding-bottom: 96px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.hero__lead {
  font-size: 21px;
  color: var(--brand-light);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero__note {
  font-size: 16px;
  color: var(--brand-light);
}

.hero__image {
  flex-shrink: 1;
  width: 440px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

/* Sections */

.section {
  padding-top: 88px;
}

.section__lead {
  max-width: 640px;
  margin-top: 12px;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--brand-light);
  border-radius: 14px;
}

.card p,
.step p,
.fact p,
.pricing__text p {
  color: var(--text-muted);
}

.icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--brand-light);
  border-radius: 18px;
}

.pricing__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 34px;
}

/* A check mark drawn with two borders, no image. */
.checks li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 5px;
  width: 8px;
  height: 15px;
  border: solid var(--primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 40px 32px;
  background: var(--primary);
  border-radius: 14px;
  color: var(--white);
  text-align: center;
}

.price__amount {
  font-size: clamp(64px, 8vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price__unit {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--brand-light);
}

/* Security */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 3px solid var(--primary);
  font-size: 17px;
}

.fact h3 {
  font-size: 20px;
}

/* Contact */

.contact {
  margin-top: 96px;
  background: var(--primary);
  color: var(--white);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact h2 {
  color: var(--white);
}

.contact p {
  max-width: 600px;
  font-size: 20px;
  color: var(--brand-light);
}

/* Footer */

.footer {
  background: var(--dark);
  color: var(--brand-light);
  font-size: 16px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer__column .logo__text {
  margin-bottom: 6px;
  font-size: 22px;
}

.footer__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--white);
}

.footer a {
  padding: 4px 0;
  color: var(--brand-light);
}

.footer a:hover {
  color: var(--white);
}

/* The page of a missing address */

.not-found {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-top: 96px;
  padding-bottom: 96px;
}

.not-found .button--outline {
  border-color: var(--primary);
  color: var(--primary);
}

.not-found .button--outline:hover {
  background: var(--brand-light);
}

@media (max-width: 860px) {
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .section {
    padding-top: 64px;
  }

  .pricing {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
