/* Aguga website: one stylesheet for every page. Brand colours match the
   app (seed #5B4CF0) and the code emails. */
:root {
  --brand: #5b4cf0;
  --brand-dark: #2d2a6e;
  --violet: #9b5de5;
  --pink: #f15bb5;
  --soft: #f0eeff;
  --bg: #fbfaff;
  --surface: #ffffff;
  --text: #1d1b3a;
  --muted: #5f5c80;
  --line: #e4e1f7;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111f;
    --surface: #1c1a30;
    --soft: #25224a;
    --text: #f1efff;
    --muted: #b3afd6;
    --line: #2f2c52;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

@media (prefers-color-scheme: dark) {
  a {
    color: #a99fff;
  }
}

img {
  max-width: 100%;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  font-size: 28px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 55%, var(--pink) 100%);
  color: #fff;
  padding: 72px 0 84px;
  text-align: center;
  overflow: hidden;
}

.hero .parrot {
  font-size: 76px;
  line-height: 1;
  display: inline-block;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-8px) rotate(-4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .parrot {
    animation: none;
  }
}

.hero h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.1;
  margin: 18px 0 14px;
  font-weight: 900;
}

.hero p {
  font-size: clamp(18px, 2.6vw, 22px);
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.95;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.store small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  opacity: 0.85;
}

.store span:first-child {
  font-size: 26px;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 900;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon {
  font-size: 36px;
  line-height: 1;
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.steps li::before {
  content: counter(step);
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--muted);
}

.band {
  background: var(--soft);
}

.cta {
  text-align: center;
}

.button {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 28px;
}

/* Text pages (policy, terms, contact) */
.page {
  padding: 48px 0 72px;
}

.page .wrap {
  max-width: 780px;
}

.page h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 900;
}

.page .updated {
  color: var(--muted);
  margin: 0 0 32px;
}

.page h2 {
  font-size: 24px;
  margin: 40px 0 10px;
}

.page h3 {
  font-size: 19px;
  margin: 24px 0 6px;
}

.page ul {
  padding-left: 22px;
}

.page li {
  margin: 6px 0;
}

.note {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 800;
}

.mail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0 8px;
  text-decoration: none;
}

.mail-card .icon {
  font-size: 40px;
}

.mail-card strong {
  display: block;
  font-size: 22px;
  word-break: break-all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--brand);
}

@media (max-width: 560px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  section {
    padding: 48px 0;
  }
}
