/*
 * sobrium.cloud — one stylesheet for both pages.
 *
 * Colours are the light palette of src/constants/theme.ts, copied by value: this site is
 * plain files with no build step, so it cannot import the app's tokens. If the palette
 * changes there, change it here.
 *
 * No web fonts on purpose. A font from somebody else's server sends every visitor's address
 * to that server, and the privacy policy on this very site says the site makes no such
 * requests.
 */

:root {
  --bg: #fcfcfd;
  --el: #f0f0f3;
  --bd: #cdced6;
  --tx: #1c2024;
  --tx2: #60646c;
  --ac: #a9c79b;
  --on: #1a2a1f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Inter,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

/* --------------------------------------------------------------- header */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-link {
  color: var(--tx2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* ----------------------------------------------------------------- hero */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 0 96px;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  background: var(--ac);
  color: var(--on);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
}

.sub {
  margin: 0;
  font-size: 19px;
  color: var(--tx2);
}

/* The counter card is an example, drawn the way the app draws it. */
.counter {
  flex: none;
  width: 380px;
  background: var(--ac);
  color: var(--on);
  border-radius: 24px;
  padding: 28px;
}

.counter-kind {
  font-size: 17px;
  font-weight: 500;
}

.counter-days {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.counter-days strong {
  font-size: 72px;
  line-height: 1;
}

.counter-days span {
  font-size: 22px;
  font-weight: 500;
}

.counter-since {
  font-size: 15px;
  margin-top: 4px;
}

.counter hr {
  border: 0;
  border-top: 1px solid rgba(26, 42, 31, 0.2);
  margin: 12px 0;
}

.counter-figures {
  display: flex;
  gap: 32px;
}

.counter-figures strong {
  display: block;
  font-size: 24px;
}

.counter-figures span {
  font-size: 14px;
}

/* ------------------------------------------------------------- features */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 64px;
}

.card {
  background: var(--el);
  border-radius: 20px;
  padding: 28px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 16px;
  color: var(--tx2);
}

.honest {
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 64px;
  font-size: 15px;
}

/* --------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--bd);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 14px;
  color: var(--tx2);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links .privacy {
  color: var(--tx);
  font-weight: 500;
}

/* ------------------------------------------------------- privacy policy */
.policy {
  max-width: 720px;
  padding: 24px 0 64px;
}

.policy h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.policy .updated {
  color: var(--tx2);
  margin: 0 0 32px;
}

.policy h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.policy h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.policy p,
.policy li {
  font-size: 16px;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

.policy th,
.policy td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--bd);
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 16px 0 40px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .sub {
    font-size: 17px;
  }

  .counter {
    width: auto;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 40px;
  }

  .honest {
    margin-bottom: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .policy h1 {
    font-size: 30px;
  }
}
