@font-face {
  font-family: "Investona Sans";
  src: url("/assets/fonts/InvestonaSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Investona Sans";
  src: url("/assets/fonts/InvestonaSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Investona Sans";
  src: url("/assets/fonts/InvestonaSans-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --coral: #f5626c;
  --ivory: #faf7f3;
  --night: #19324b;
  --night-aa: #102a43;
  --blue: #4b6ef5;
  --gray: #e9edf2;
  --medium-gray: #a7b1bd;
  --white: #ffffff;
  --shadow: 0 28px 80px rgb(12 34 53 / 28%);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--night);
  background:
    radial-gradient(
      circle at 15% 15%,
      rgb(75 110 245 / 22%),
      transparent 32rem
    ),
    radial-gradient(
      circle at 85% 80%,
      rgb(245 98 108 / 25%),
      transparent 30rem
    ),
    var(--night);
  font-family: "Investona Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 24rem;
  height: 7rem;
  pointer-events: none;
  opacity: 0.75;
  filter: blur(1px);
}

.ambient--coral {
  right: -6rem;
  bottom: 10%;
  background: var(--coral);
  transform: rotate(-14deg);
}

.ambient--blue {
  top: 9%;
  left: -7rem;
  background: var(--blue);
  transform: rotate(12deg);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 31.5rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) clamp(1.1rem, 5vw, 2rem)
    max(0.9rem, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 34%), transparent 28%),
    var(--ivory);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(8.6rem, 37vw, 9.8rem);
  height: auto;
}

.share-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: var(--night);
  cursor: pointer;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(25 50 75 / 16%);
  border-radius: 999px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.share-button svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.share-button:active {
  transform: translateY(0);
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.05rem, 3.8vh, 2.35rem) 0 clamp(0.8rem, 2.6vh, 1.5rem);
}

.hero {
  text-align: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.7rem;
  padding: 0.25rem 0.7rem;
  margin-bottom: clamp(0.65rem, 1.8vh, 1rem);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--white);
  border: 1px solid rgb(25 50 75 / 13%);
  border-radius: 999px;
}

.trust-pill__dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--coral);
  border-radius: 50%;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 12vw, 4rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.marker {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin-top: 0.18em;
  color: var(--white);
  transform: rotate(-1.5deg);
}

.marker::before {
  position: absolute;
  z-index: -1;
  inset: -0.08em -0.18em -0.06em -0.12em;
  content: "";
  background: var(--coral);
  clip-path: polygon(1% 12%, 96% 0, 100% 85%, 9% 100%);
}

.intro {
  max-width: 22rem;
  margin: clamp(0.85rem, 2.2vh, 1.3rem) auto 0;
  font-size: clamp(0.9rem, 3.7vw, 1.03rem);
  line-height: 1.38;
}

.now-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: clamp(0.75rem, 1.8vh, 1.05rem) 0 0;
  font-size: clamp(0.68rem, 2.9vw, 0.78rem);
  font-weight: 600;
  line-height: 1.25;
}

.now-line__pulse {
  width: 0.47rem;
  height: 0.47rem;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0.28rem rgb(75 110 245 / 13%);
}

.link-list {
  display: grid;
  gap: clamp(0.5rem, 1.2vh, 0.68rem);
  margin-top: clamp(1rem, 2.4vh, 1.45rem);
}

.link-card {
  display: grid;
  grid-template-columns: 2.1rem 1fr 2rem;
  min-height: clamp(3.55rem, 8vh, 4.2rem);
  padding: 0.55rem 0.75rem;
  align-items: center;
  color: var(--night);
  text-decoration: none;
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(25 50 75 / 18%);
  border-radius: 1.05rem;
  box-shadow: 0 0.22rem 0 rgb(25 50 75 / 8%);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.link-card:hover {
  border-color: rgb(25 50 75 / 45%);
  box-shadow: 0 0.38rem 0 rgb(25 50 75 / 10%);
  transform: translateY(-2px);
}

.link-card:active {
  box-shadow: 0 0.12rem 0 rgb(25 50 75 / 10%);
  transform: translateY(1px);
}

.link-card--primary {
  color: var(--night-aa);
  background: var(--coral);
  border-color: var(--coral);
}

.link-card__number {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.65;
}

.link-card__label {
  font-size: clamp(0.98rem, 4.25vw, 1.12rem);
  font-weight: 600;
  text-align: left;
}

.link-card__arrow {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  justify-self: end;
  font-size: 1.05rem;
  background: rgb(25 50 75 / 8%);
  border-radius: 50%;
  transition: transform 160ms ease;
}

.link-card--primary .link-card__arrow {
  background: rgb(255 255 255 / 35%);
}

.link-card:hover .link-card__arrow {
  transform: translate(2px, -2px);
}

footer {
  font-size: clamp(0.625rem, 2.5vw, 0.7rem);
  line-height: 1.35;
  text-align: center;
  opacity: 0.82;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.copyright {
  margin-top: 0.35rem;
  font-weight: 600;
}

.toast {
  position: absolute;
  right: 1.25rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1.25rem;
  z-index: 5;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  visibility: hidden;
  background: var(--night);
  border-radius: 0.85rem;
  opacity: 0;
  transform: translateY(0.6rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (min-width: 33.75rem) {
  body {
    display: grid;
    min-height: 100svh;
    padding: 1rem;
    place-items: center;
  }

  .page-shell {
    min-height: min(53rem, calc(100svh - 2rem));
    border-radius: 2rem;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 33.74rem) {
  main {
    justify-content: flex-start;
    padding-top: clamp(0.65rem, 1.8vh, 1rem);
  }
}

@media (max-height: 43rem) {
  .page-shell {
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  }

  main {
    padding-top: 0.65rem;
    padding-bottom: 0.6rem;
  }

  .trust-pill {
    margin-bottom: 0.55rem;
  }

  h1 {
    font-size: clamp(2.25rem, 10.6vw, 3rem);
  }

  .intro {
    margin-top: 0.68rem;
    font-size: 0.84rem;
  }

  .now-line {
    margin-top: 0.58rem;
  }

  .link-list {
    gap: 0.42rem;
    margin-top: 0.72rem;
  }

  .link-card {
    min-height: 3.25rem;
    border-radius: 0.9rem;
  }

  footer {
    font-size: 0.625rem;
  }
}

@media (max-height: 36rem) {
  .trust-pill {
    min-height: 1.4rem;
    padding-block: 0.1rem;
    font-size: 0.64rem;
  }

  h1 {
    font-size: 2.08rem;
  }

  .intro {
    display: none;
  }

  .now-line {
    margin-top: 0.5rem;
  }

  .link-card {
    min-height: 2.95rem;
  }

  .copyright {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
