/* Pluggkoll's web pages: the app's colours (forest & brass, design-system/),
   light and dark like the app. Only system fonts: nothing is loaded from
   elsewhere, so the pages track no one. */
:root {
  --page: #ffffff;
  --surface: #f1f4f2;
  --border: #e1e7e3;
  --text: #17211d;
  --muted: #55625c;
  --brand: #2f5d50;
  --brass: #e2a855;
  /* The hero is forest green in both themes, like the icon and launch screen. */
  --forest-top: #22443a;
  --forest-bottom: #376a5c;
  --cream: #f7f5f0;
  --glow: rgba(243, 220, 160, 0.22);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101815;
    --surface: #1a2420;
    --border: #2c3833;
    --text: #e6ece8;
    --muted: #9ba9a2;
    --brand: #8cc6b1;
    --brass: #d9a04f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

header {
  margin-bottom: 32px;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 19px;
}

h2 {
  margin: 36px 0 8px;
  font-size: 22px;
}

h3 {
  margin: 20px 0 4px;
  font-size: 17px;
}

p,
ul,
ol {
  margin: 0 0 12px;
}

a {
  color: var(--brand);
  font-weight: 600;
}

.card {
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
}

.card p:last-child {
  margin-bottom: 0;
}

.lang {
  float: right;
  font-size: 15px;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

/* ---- The home page ---------------------------------------------------- */

.wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* The top: forest green with the lamp's glow, as in the icon. */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 62%, var(--glow), transparent 55%),
    linear-gradient(var(--forest-top), var(--forest-bottom));
}

.hero .wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  padding-top: 48px;
  padding-bottom: 0;
}

.hero-text {
  flex: 1 1 340px;
  padding-bottom: 48px;
}

.hero .lang {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--cream);
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  margin-top: 20px;
  font-size: 52px;
}

.hero .tagline {
  color: var(--cream);
  opacity: 0.9;
  font-size: 22px;
  line-height: 1.35;
}

.hero p {
  margin-top: 16px;
  font-size: 18px;
  opacity: 0.9;
}

.badge {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brass);
  color: #17211d;
  font-weight: 700;
}

/* A phone: the screenshot with rounded corners and a thin dark frame. */
.phone {
  display: block;
  width: 100%;
  max-width: 300px;
  border: 8px solid #0d1311;
  border-radius: 44px;
  background: #0d1311;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.phone.landscape {
  max-width: 560px;
}

/* The phone peeks up from the hero's bottom edge. */
.hero-phone {
  flex: 0 1 300px;
  align-self: flex-end;
  max-height: 460px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-phone .phone {
  margin: 0 auto;
  border-bottom: 0;
  box-shadow: none;
}

/* The features: text beside a picture, every other one turned round. */
.features {
  padding-top: 88px;
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 64px;
  margin-bottom: 96px;
}

.feature:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1 1 320px;
}

.feature-picture {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.feature h2 {
  margin-top: 0;
  font-size: 30px;
  line-height: 1.2;
}

.feature p {
  color: var(--muted);
  font-size: 18px;
}

/* What you write is yours: three short points on the surface colour. */
.privacy {
  background: var(--surface);
  padding: 56px 0;
}

.privacy h2 {
  margin-top: 0;
  font-size: 30px;
}

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

.points h3 {
  margin-top: 0;
}

.points p {
  color: var(--muted);
}

.after {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
