:root {
  --page-bg: #e7e8e9;
  --card-bg: #f7f7f7;
  --brand-bg: #343638;
  --intro-bg: #84898c;
  --row-border: #d7d9da;
  --text: #151719;
  --muted: #687078;
  --icon-default: #60686d;
  --shadow: 0 16px 48px rgb(16 20 24 / 18%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, #f5f5f5 0, var(--page-bg) 45rem),
    var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  padding: 24px 12px 48px;
}

.link-card {
  width: min(100%, 540px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid #d1d3d4;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand-header {
  display: grid;
  min-height: 225px;
  place-items: center;
  padding: 0;
  background: var(--brand-bg);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.intro {
  padding: 25px 26px 27px;
  color: #fff;
  background: var(--intro-bg);
  box-shadow: 0 4px 9px rgb(0 0 0 / 20%);
}

.intro h1 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.22;
}

.intro p {
  margin: 0;
  color: #f2f3f3;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.48;
}

.links-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-row {
  border-bottom: 1px solid var(--row-border);
}

.link-row:last-child {
  border-bottom: 0;
}

.link-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 13px 22px 13px 18px;
  text-decoration: none;
  background: #fafafa;
  transition: background-color 140ms ease, transform 140ms ease;
}

.link-item:hover,
.link-item:focus-visible {
  background: #fff;
}

.link-item:active {
  background: #f0f1f1;
  transform: scale(.995);
}

.link-item:focus-visible {
  outline: 3px solid #202224;
  outline-offset: -3px;
}

.link-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--icon-default);
  border-radius: 50%;
}

.link-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.type-whatsapp .link-icon { background: #20c76a; }
.type-instagram .link-icon { background: #e82d70; }
.type-facebook .link-icon { background: #3b5998; }
.type-form .link-icon { background: #7248b9; }
.type-menu .link-icon { background: #9a443d; }
.type-map .link-icon { background: #397b5d; }

.link-copy {
  min-width: 0;
}

.link-title,
.link-description {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-title {
  margin-bottom: 5px;
  font-size: 1.08rem;
  line-height: 1.22;
  white-space: normal;
}

.link-description {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.25;
  white-space: normal;
}

.link-arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid #9aa0a4;
  border-right: 2px solid #9aa0a4;
  transform: rotate(45deg);
}

.page-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 21px 16px 23px;
  color: #757b80;
  font-size: .82rem;
}

.share-button {
  position: fixed;
  z-index: 10;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #6b7073;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgb(0 0 0 / 30%);
  cursor: pointer;
}

.share-button:hover {
  background: #555a5d;
}

.share-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.share-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.noscript-message {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 12px;
  color: #fff;
  text-align: center;
  background: #8a2b24;
  border-radius: 8px;
}

@media (max-width: 580px) {
  .page-shell {
    padding: 0;
  }

  .link-card {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-header {
    min-height: 0;
  }

  .intro {
    padding: 23px 24px 25px;
  }

  .link-item {
    grid-template-columns: 50px minmax(0, 1fr) 16px;
    gap: 13px;
    padding-right: 18px;
    padding-left: 16px;
  }

  .link-icon {
    width: 49px;
    height: 49px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
