/* VeveAlert landing page. Colors and sizes are the variables below. */
:root {
  --yellow: #fdd224; /* the mascot's background */
  --yellow-soft: #fff4d6;
  --cream: #fffbf0;
  --teal: #0b7a75;
  --teal-dark: #075e5a;
  --teal-soft: #e2f3f1;
  --ink: #1f2a2e;
  --muted: #4d5b60;
  --radius: 20px;
  --wrap: 1080px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.small { font-size: .9rem; color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--teal-dark);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--teal-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn + .small { margin-top: 14px; }

/* 1. Hero */
.hero {
  background: var(--yellow);
  padding: 28px 0 48px;
  border-radius: 0 0 40px 40px;
}
.hero__grid { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; gap: 8px; }
.hero__veve {
  width: min(240px, 62vw);
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 12px 32px rgba(31, 42, 46, .18);
}
.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; margin-bottom: 18px; }
.lead { font-size: 1.15rem; max-width: 34em; margin-left: auto; margin-right: auto; }
.qr { display: none; }

/* 2. Demo */
.demo__grid { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.phone {
  width: min(280px, 78vw);
  padding: 10px;
  background: var(--ink);
  border-radius: 44px;
  box-shadow: 0 24px 48px rgba(31, 42, 46, .22);
}
.phone__screen {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 34px;
  background: var(--teal-soft);
}

/* 3. How it works */
.steps { background: var(--teal-soft); }
.steps h2 { text-align: center; }
.steps__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.steps__list li { text-align: center; }
.steps__list p { color: var(--muted); margin: 0; }
.icon {
  width: 64px; height: 64px;
  padding: 14px;
  margin: 0 auto 14px;
  display: block;
  background: var(--yellow);
  border-radius: 50%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 4. Features */
.features h2 { text-align: center; }
.features__list { list-style: none; margin: 24px auto 0; padding: 0; max-width: 40em; display: grid; gap: 14px; }
.features__list li { background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 2px 0 rgba(31, 42, 46, .06); }

/* 5. Pricing */
.pricing { text-align: center; }
.pricing .wrap { background: var(--yellow-soft); border-radius: var(--radius); padding-top: 36px; padding-bottom: 40px; max-width: 760px; }
.pricing__line { font-size: 1.2rem; }

/* 6. Footer */
.footer { padding: 32px 0 40px; border-top: 1px solid rgba(31, 42, 46, .1); text-align: center; font-size: .95rem; }
.footer__grid p, .footer__grid nav { margin: 0 0 10px; }
.footer a { color: var(--teal-dark); }

/* Legal pages */
.page { padding: 40px 0 56px; max-width: 760px; }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.todo { background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: 12px 16px; border-radius: 8px; }

/* Desktop */
@media (min-width: 860px) {
  section { padding: 88px 0; }
  .hero { padding: 40px 0 72px; }
  .hero__grid { flex-direction: row; text-align: left; justify-content: space-between; gap: 48px; }
  .hero__text { flex: 1 1 0; }
  .lead { margin-left: 0; }
  .hero__veve { width: 400px; flex: none; }
  .qr { display: flex; align-items: center; gap: 16px; margin: 28px 0 0; }
  .qr img { background: #fff; padding: 8px; border-radius: 12px; }
  .qr figcaption { max-width: 12em; font-size: .95rem; }
  .demo__grid { flex-direction: row; justify-content: center; text-align: left; gap: 72px; }
  .demo__grid > div:last-child { max-width: 26em; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
