@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&family=Pacifico&display=swap");

:root {
  --coral: #ff6f61;
  --coral-dark: #ed594d;
  --background: #fff9f7;
  --text: #25252b;
  --muted: #696970;
  --border: #f1e5e1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Nunito Sans", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--coral);
}

a:hover {
  color: var(--coral-dark);
}

/* Header */

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}

nav {
  max-width: 860px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Pacifico", cursive;
  color: var(--coral);
  font-size: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--coral-dark);
}

nav .links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

nav .links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}

nav .links a:hover {
  color: var(--coral);
}

/* Main Layout */

main {
  max-width: 860px;
  margin: 42px auto;
  padding: 0 24px;
}

.document {
  background: var(--white);
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 22px;
}

/* Space between homepage sections */

main > .document + .document,
main > .hero + .document {
  margin-top: 24px;
}

/* Typography */

h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 800;
}

h2 {
  font-size: 19px;
  margin-top: 34px;
  line-height: 1.4;
  font-weight: 800;
}

h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 10px;
  font-weight: 800;
}

p,
li {
  font-size: 15px;
}

p {
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 34px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

/* Hero Section */

.hero {
  text-align: center;
  padding: 70px 12px;
}

.hero h1 {
  font-size: 46px;
  max-width: 650px;
  margin: 0 auto 20px;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 520px;
  margin: 18px auto 24px;
  color: var(--muted);
}

.eyebrow {
  color: var(--coral) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px !important;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  margin: 5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.button.secondary {
  background: var(--white);
  color: var(--coral);
  border: 1px solid var(--coral);
}

.button.secondary:hover {
  background: #fff1ee;
  color: var(--coral-dark);
}

/* Feature Section */

#features {
  scroll-margin-top: 30px;
}

#features > h2 {
  font-size: 25px;
  margin-top: 0;
  margin-bottom: 28px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe8e3;
  color: var(--coral);
  border-radius: 13px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
}

.feature-card h3 {
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Support and Legal Pages */

.document > h1:first-child {
  margin-bottom: 22px;
}

.document > h2:first-child {
  margin-top: 0;
}

.document h2:not(:first-child) {
  margin-top: 34px;
}

.document h3 {
  margin-top: 24px;
}

.document a {
  overflow-wrap: anywhere;
}

.document .button {
  color: var(--white);
}

.document .button.secondary {
  color: var(--coral);
}

/* Disclaimer */

.disclaimer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

/* Footer */

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 30px 20px 50px;
}

footer p {
  font-size: 13px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--coral);
}

/* Tablet */

@media (max-width: 768px) {
  .hero {
    padding: 55px 10px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .document {
    padding: 35px;
  }

  .feature-card {
    padding: 20px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  header {
    padding: 16px;
  }

  nav {
    flex-direction: column;
    gap: 12px;
  }

  nav .links {
    gap: 10px 16px;
  }

  nav .links a {
    font-size: 12px;
  }

  main {
    margin: 22px auto;
    padding: 0 16px;
  }

  .document {
    padding: 25px 20px;
    border-radius: 18px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  .hero {
    padding: 45px 8px;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 14px;
  }

  .eyebrow {
    font-size: 10px !important;
    letter-spacing: 1.5px;
  }

  .button {
    padding: 11px 18px;
    font-size: 13px;
  }

  #features > h2 {
    font-size: 22px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  footer {
    padding: 25px 16px 40px;
  }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .feature-card {
    transition: none;
  }

  .button:hover,
  .feature-card:hover {
    transform: none;
  }
}
