/* The styles of every page of colors.ws */
@font-face { font-family: 'Comfortaa'; font-weight: 400; font-display: swap; src: url('fonts/Comfortaa.ttf') format('truetype'); }
@font-face { font-family: 'Comfortaa'; font-weight: 700; font-display: swap; src: url('fonts/Comfortaa-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Mulish'; font-weight: 400; font-display: swap; src: url('fonts/Mulish-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Mulish'; font-weight: 700; font-display: swap; src: url('fonts/Mulish-Bold.ttf') format('truetype'); }

/* The colors of the app (src/shared/styles/Styles.js) */
:root {
  color-scheme: light;
  --text: #0C76AB;
  --text-soft: rgba(12, 118, 171, 0.7);
  --card: #E2F4F8;
  --line: #B1D5DD;
  --background: #FFFFFF;
  --gutter: 16px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--background);
  color: var(--text);
  font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Comfortaa', sans-serif; font-weight: 700; margin: 0; line-height: 1.25; }

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

/* Header */
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 0; text-decoration: none; width: max-content; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 22px; }

/* Hero: the text first, the illustration after it (beside it on wide screens) */
.hero { display: grid; gap: 28px; align-items: center; padding: 12px 0 40px; }
.hero h1 { font-size: clamp(30px, 7.5vw, 46px); }
.hero .intro { margin: 16px 0 0; font-size: 19px; }
.hero-image { border-radius: var(--radius); width: 100%; aspect-ratio: 626 / 347; object-fit: cover; }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr 1.05fr; gap: 48px; padding: 32px 0 64px; }
}

/* Store badges, the official ones (Google's PNG cropped to the badge, without its margin): both the same height */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; }
.stores a { display: block; border-radius: 8px; }
.stores img { width: auto; height: 44px; }
.free { margin: 12px 0 0; color: var(--text-soft); font-size: 15px; }
.also { display: none; margin: 6px 0 0; font-size: 15px; }
/* On a phone, the badge of its store, and a link to the other one */
.platform-ios .store-android, .platform-android .store-ios { display: none; }
.platform-ios .also-android, .platform-android .also-ios { display: block; }
.platform-ios .stores img, .platform-android .stores img { height: 52px; }

/* Features */
.features { display: grid; gap: 16px; padding: 0 0 48px; margin: 0; list-style: none; }
.feature { background: var(--card); border-radius: var(--radius); padding: 24px; }
.feature h2 { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.feature h2::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); }
.feature p { margin: 10px 0 0; }
@media (min-width: 820px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 72px; }
}

/* The last call, centered */
.cta { text-align: center; padding: 0 0 56px; }
.cta .dots { width: 64px; height: 64px; margin: 0 auto 20px; }
.cta h2 { font-size: clamp(24px, 6vw, 32px); }
.cta .stores { justify-content: center; margin-left: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--text-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav + nav { margin-top: 12px; }
footer a { text-decoration: none; }
footer a:hover, .also a:hover { text-decoration: underline; }
footer [aria-current] { color: var(--text); font-weight: 700; }

/* Text pages (account deletion): a column that reads well */
.doc { max-width: 680px; padding: 12px 0 56px; }
.doc h1 { font-size: clamp(28px, 7vw, 38px); }
.doc .intro { margin: 16px 0 0; font-size: 19px; }
.doc h2 { font-size: 21px; margin: 40px 0 0; }
.doc p, .doc li { margin: 12px 0 0; }
.doc ol, .doc ul { padding-left: 24px; margin: 12px 0 0; }
.doc li { padding-left: 4px; }
.doc strong { font-weight: 700; }
.doc .note { color: var(--text-soft); font-size: 15px; }
.doc .card { background: var(--card); border-radius: var(--radius); padding: 4px 24px 24px; margin-top: 40px; }
.doc .card h2 { margin-top: 20px; }
