/*
 * MegaPet's temporary front page. The look is the website's own: the colour
 * and size tokens are copied from web/src/app/globals.css (@theme and the
 * touch floor), the measures from the website's header, footer and landing
 * components. No animation or transition anywhere.
 */

/* Montserrat (SIL Open Font License, fonts/OFL.txt): 400, 500 and 700 are the
   app's committed files (app/assets/fonts), 800 - the wordmark's weight - is
   the same package's own file (@expo-google-fonts/montserrat 0.4.2). */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_400Regular-no-greek.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_500Medium-no-greek.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_700Bold-no-greek.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #0067fe;
  --color-ink: #1b242b;
  --color-surface: #f7f7f7;
  --color-tint-faint: #f5f9ff;
  --color-border: #e8e9ea;
  --control-h: 2.5rem;
  --tap-floor: 2.75rem;
}
/* The website's touch tier: phones, tablets and any window under 1024 px. */
@media (pointer: coarse), not all and (min-width: 64rem) {
  :root {
    --control-h: var(--tap-floor);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #ffffff;
  color: var(--color-ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}
img {
  display: block;
}
a {
  color: var(--color-primary);
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* The page width and side gutter: 16 px, 20 px from 768, 40 px from 1024. */
.wrap {
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .wrap {
    padding-inline: 20px;
  }
}
@media (min-width: 1024px) {
  .wrap {
    padding-inline: 40px;
  }
}

/* Header: the website's grey bar with its hairline, 64 / 72 / 86 px tall. */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  height: 64px;
}
@media (min-width: 768px) {
  .site-header .wrap {
    height: 72px;
  }
}
@media (min-width: 1024px) {
  .site-header .wrap {
    height: 86px;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* The brand paw on white, in the thin grey frame the website draws it in. */
.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
}
/* The wordmark exactly as the website's Logo draws it. */
.wordmark {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--color-primary);
}
.wordmark .e {
  color: #f50101;
}
.wordmark .g {
  color: #04ad50;
}
.wordmark .a {
  color: #ffbf01;
}
@media (max-width: 349.98px) {
  .brand img {
    width: 36px;
    height: 36px;
  }
  .wordmark {
    font-size: 22px;
  }
}

main .wrap {
  padding-bottom: 40px;
}
@media (min-width: 1024px) {
  main .wrap {
    padding-bottom: 48px;
  }
}
.column {
  max-width: 1200px;
  margin-inline: auto;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li,
dd {
  text-wrap: pretty;
}

/* Opening: the landing's centred hero. */
.hero {
  padding: 24px 0 32px;
  text-align: center;
}
.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}
.hero p {
  max-width: 700px;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.625;
}
.hero .soon {
  margin-top: 16px;
  font-weight: 500;
}
@media (min-width: 768px) {
  .hero {
    padding: 32px 0 40px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: 32px 0 40px;
  }
  .hero h1 {
    font-size: 44px;
  }
}

/* Section headings: the landing's h2. */
.section + .section {
  padding-top: 32px;
}
@media (min-width: 768px) {
  .section + .section {
    padding-top: 40px;
  }
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.centred {
  text-align: center;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 22px;
  }
}
@media (min-width: 1024px) {
  .section-title {
    font-size: 30px;
  }
}

/* How it works: the website's numbered step cards, compact form. */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
.step {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
}
.step img {
  flex-shrink: 0;
  width: 60px;
  height: 66px;
  object-fit: cover;
  object-position: top left;
}
.step div {
  min-width: 0;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.375;
}
.step p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.625;
}
@media (min-width: 768px) {
  .step h3 {
    font-size: 18px;
  }
  .step p {
    font-size: 15px;
  }
}

/* Emails from MegaPet: the website's grey band. */
.panel {
  padding: 32px 20px;
  border-radius: 20px;
  background: var(--color-surface);
}
@media (min-width: 768px) {
  .panel {
    padding: 40px 32px;
  }
}
.panel p,
.panel ul {
  max-width: 760px;
  margin-top: 12px;
  line-height: 1.625;
}
.panel ul {
  padding-inline-start: 1.5rem;
  list-style: disc;
}
.panel li + li {
  margin-top: 6px;
}
@media (min-width: 1024px) {
  .panel-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Who runs MegaPet, Contact, Privacy: the website's white cards - on a
   computer the company beside Contact over Privacy. */
.cards,
.card-stack {
  display: grid;
  gap: 16px;
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .card-stack {
    gap: 24px;
  }
}
.card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
}
.card h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.375;
}
@media (min-width: 768px) {
  .card h2 {
    font-size: 22px;
  }
}
.card p {
  margin-top: 8px;
  line-height: 1.625;
}
.facts {
  margin-top: 12px;
}
.facts div + div {
  margin-top: 12px;
}
@media (min-width: 768px) {
  .facts {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px 24px;
  }
  .facts div + div {
    margin-top: 0;
  }
}
.facts dt {
  font-size: 14px;
  font-weight: 500;
}
.facts dd {
  line-height: 1.625;
}

/* The support address, everywhere it stands: the website's text link (its
   document pages' link look), with an invisible tap area 44 px tall. */
.email-link {
  position: relative;
  color: var(--color-primary);
  text-decoration: underline;
}
.email-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--tap-floor);
  transform: translateY(-50%);
}

/* The website's ghost arrow link and its secondary button. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--control-h);
  font-weight: 500;
  text-decoration: none;
}
.arrow-link:hover {
  text-decoration: underline;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 16px;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  background: #ffffff;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.button:hover {
  background: var(--color-tint-faint);
}

/* The small page an unknown address answers with. */
.not-found {
  display: flex;
  justify-content: center;
  padding: 64px 0;
}
.not-found div {
  width: 100%;
  max-width: 520px;
  padding: 24px;
  border-radius: 14px;
  background: var(--color-surface);
}
.not-found h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.375;
}
.not-found p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.625;
}
.not-found .actions {
  margin-top: 24px;
}
@media (min-width: 768px) {
  .not-found {
    padding: 128px 0;
  }
}

/* Footer: the website's bottom bar. */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}
.site-footer p {
  padding: 16px 0;
  font-size: 13px;
}
